Skip to content

Commit

Permalink
CodeGen from PR 17798 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 75da041fe50704a25f7ce85d5d7bf1cfb6a822fa into 5e70c3eb623ab35637966d34b889f3e391a21d85
  • Loading branch information
SDKAuto committed Feb 25, 2022
1 parent 2f2444b commit 0399c4c
Show file tree
Hide file tree
Showing 11 changed files with 163 additions and 50 deletions.
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions sdk/streamanalytics/arm-streamanalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 5.0.0 (2022-02-25)

**Features**

## 4.0.1 (Unreleased)
- Added Type Alias AzureFunctionOutputDataSource
- Interface BlobDataSourceProperties has a new optional parameter authenticationMode
- Type Alias BlobReferenceInputDataSource has a new parameter authenticationMode
- Type Alias BlobStreamInputDataSource has a new parameter authenticationMode

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
**Breaking Changes**

- Type Alias BlobOutputDataSourceProperties no longer has parameter authenticationMode


## 4.0.0 (2021-12-10)

The package of @azure/arm-streamanalytics is using our next generation design principles since version 4.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/streamanalytics/arm-streamanalytics/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions sdk/streamanalytics/arm-streamanalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "76f8e0c50629ef12aa338d55782278ceca46212a",
"commit": "b7e98c5968f189e83458bcc00dfe389bb3b3333a",
"readme": "specification/streamanalytics/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/streamanalytics/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211130.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/streamanalytics/arm-streamanalytics/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-streamanalytics.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
8 changes: 4 additions & 4 deletions sdk/streamanalytics/arm-streamanalytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for StreamAnalyticsManagementClient.",
"version": "4.0.1",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,12 +29,12 @@
"types": "./types/arm-streamanalytics.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ export type AzureDataLakeStoreOutputDataSourceProperties = OAuthBasedDataSourceP
authenticationMode?: AuthenticationMode;
};

// @public
export type AzureFunctionOutputDataSource = OutputDataSource & {
type: "Microsoft.AzureFunction";
functionAppName?: string;
functionName?: string;
apiKey?: string;
maxBatchSize?: number;
maxBatchCount?: number;
};

// @public
export type AzureMachineLearningWebServiceFunctionBinding = FunctionBinding & {
type: "Microsoft.MachineLearning/WebService";
Expand Down Expand Up @@ -157,6 +167,7 @@ export type AzureTableOutputDataSource = OutputDataSource & {

// @public
export interface BlobDataSourceProperties {
authenticationMode?: AuthenticationMode;
container?: string;
dateFormat?: string;
pathPattern?: string;
Expand All @@ -176,9 +187,7 @@ export type BlobOutputDataSource = OutputDataSource & {
};

// @public
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {
authenticationMode?: AuthenticationMode;
};
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {};

// @public
export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
Expand All @@ -188,6 +197,7 @@ export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
pathPattern?: string;
dateFormat?: string;
timeFormat?: string;
authenticationMode?: AuthenticationMode;
};

// @public
Expand All @@ -201,6 +211,7 @@ export type BlobStreamInputDataSource = StreamInputDataSource & {
pathPattern?: string;
dateFormat?: string;
timeFormat?: string;
authenticationMode?: AuthenticationMode;
sourcePartitionCount?: number;
};

Expand Down Expand Up @@ -976,11 +987,11 @@ export type Output = SubResource & {

// @public
export interface OutputDataSource {
type: "Microsoft.Storage/Blob" | "Microsoft.Storage/Table" | "Microsoft.ServiceBus/EventHub" | "Microsoft.EventHub/EventHub" | "Microsoft.Sql/Server/Database" | "Microsoft.Sql/Server/DataWarehouse" | "Microsoft.Storage/DocumentDB" | "Microsoft.ServiceBus/Queue" | "Microsoft.ServiceBus/Topic" | "PowerBI" | "Microsoft.DataLake/Accounts";
type: "Microsoft.Storage/Blob" | "Microsoft.Storage/Table" | "Microsoft.ServiceBus/EventHub" | "Microsoft.EventHub/EventHub" | "Microsoft.Sql/Server/Database" | "Microsoft.Sql/Server/DataWarehouse" | "Microsoft.Storage/DocumentDB" | "Microsoft.AzureFunction" | "Microsoft.ServiceBus/Queue" | "Microsoft.ServiceBus/Topic" | "PowerBI" | "Microsoft.DataLake/Accounts";
}

// @public (undocumented)
export type OutputDataSourceUnion = OutputDataSource | BlobOutputDataSource | AzureTableOutputDataSource | EventHubOutputDataSource | EventHubV2OutputDataSource | AzureSqlDatabaseOutputDataSource | AzureSynapseOutputDataSource | DocumentDbOutputDataSource | ServiceBusQueueOutputDataSource | ServiceBusTopicOutputDataSource | PowerBIOutputDataSource | AzureDataLakeStoreOutputDataSource;
export type OutputDataSourceUnion = OutputDataSource | BlobOutputDataSource | AzureTableOutputDataSource | EventHubOutputDataSource | EventHubV2OutputDataSource | AzureSqlDatabaseOutputDataSource | AzureSynapseOutputDataSource | DocumentDbOutputDataSource | AzureFunctionOutputDataSource | ServiceBusQueueOutputDataSource | ServiceBusTopicOutputDataSource | PowerBIOutputDataSource | AzureDataLakeStoreOutputDataSource;

// @public
export type OutputErrorPolicy = string;
Expand Down
29 changes: 25 additions & 4 deletions sdk/streamanalytics/arm-streamanalytics/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type OutputDataSourceUnion =
| AzureSqlDatabaseOutputDataSource
| AzureSynapseOutputDataSource
| DocumentDbOutputDataSource
| AzureFunctionOutputDataSource
| ServiceBusQueueOutputDataSource
| ServiceBusTopicOutputDataSource
| PowerBIOutputDataSource
Expand Down Expand Up @@ -230,6 +231,7 @@ export interface OutputDataSource {
| "Microsoft.Sql/Server/Database"
| "Microsoft.Sql/Server/DataWarehouse"
| "Microsoft.Storage/DocumentDB"
| "Microsoft.AzureFunction"
| "Microsoft.ServiceBus/Queue"
| "Microsoft.ServiceBus/Topic"
| "PowerBI"
Expand Down Expand Up @@ -536,6 +538,8 @@ export interface BlobDataSourceProperties {
dateFormat?: string;
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
timeFormat?: string;
/** Authentication Mode. */
authenticationMode?: AuthenticationMode;
}

/** The common properties that are associated with Service Bus data sources (Queues, Topics, Event Hubs, etc.). */
Expand Down Expand Up @@ -891,6 +895,22 @@ export type DocumentDbOutputDataSource = OutputDataSource & {
documentId?: string;
};

/** Defines the metadata of AzureFunctionOutputDataSource */
export type AzureFunctionOutputDataSource = OutputDataSource & {
/** Polymorphic discriminator, which specifies the different types this object can be */
type: "Microsoft.AzureFunction";
/** The name of your Azure Functions app. */
functionAppName?: string;
/** The name of the function in your Azure Functions app. */
functionName?: string;
/** If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function. */
apiKey?: string;
/** A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB). */
maxBatchSize?: number;
/** A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default value is 100. */
maxBatchCount?: number;
};

/** Describes a Service Bus Queue output data source. */
export type ServiceBusQueueOutputDataSource = OutputDataSource & {
/** Polymorphic discriminator, which specifies the different types this object can be */
Expand Down Expand Up @@ -1040,6 +1060,8 @@ export type BlobStreamInputDataSource = StreamInputDataSource & {
dateFormat?: string;
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
timeFormat?: string;
/** Authentication Mode. */
authenticationMode?: AuthenticationMode;
/** The partition count of the blob input data source. Range 1 - 256. */
sourcePartitionCount?: number;
};
Expand Down Expand Up @@ -1110,6 +1132,8 @@ export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
dateFormat?: string;
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
timeFormat?: string;
/** Authentication Mode. */
authenticationMode?: AuthenticationMode;
};

/** Describes an Azure SQL database reference input data source. */
Expand Down Expand Up @@ -1146,10 +1170,7 @@ export type BlobStreamInputDataSourceProperties = BlobDataSourceProperties & {
export type BlobReferenceInputDataSourceProperties = BlobDataSourceProperties & {};

/** The properties that are associated with a blob output. */
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {
/** Authentication Mode. */
authenticationMode?: AuthenticationMode;
};
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {};

/** The common properties that are associated with Event Hub data sources. */
export type EventHubDataSourceProperties = ServiceBusDataSourceProperties & {
Expand Down
Loading

0 comments on commit 0399c4c

Please sign in to comment.