Skip to content

Commit 8a30741

Browse files
author
SDKAuto
committed
CodeGen from PR 17697 in Azure/azure-rest-api-specs
Merge 6a2d393e781b1d0ec333fbece63126f43fc00d52 into 3f59f46d112c58cb8f6231732e88848f0f97872c
1 parent 2d47bff commit 8a30741

File tree

11 files changed

+165
-52
lines changed

11 files changed

+165
-52
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/streamanalytics/arm-streamanalytics/CHANGELOG.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Release History
2+
3+
## 5.0.0 (2022-02-17)
4+
5+
**Features**
26

3-
## 4.0.1 (Unreleased)
7+
- Added Type Alias AzureFunctionOutputDataSource
8+
- Interface BlobDataSourceProperties has a new optional parameter authenticationMode
9+
- Type Alias BlobReferenceInputDataSource has a new parameter authenticationMode
10+
- Type Alias BlobStreamInputDataSource has a new parameter authenticationMode
411

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12+
**Breaking Changes**
1213

14+
- Type Alias BlobOutputDataSourceProperties no longer has parameter authenticationMode
15+
16+
1317
## 4.0.0 (2021-12-10)
1418

1519
The package of @azure/arm-streamanalytics is using our next generation design principles since version 4.0.0, which contains breaking changes.

sdk/streamanalytics/arm-streamanalytics/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Microsoft
3+
Copyright (c) 2022 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "76f8e0c50629ef12aa338d55782278ceca46212a",
2+
"commit": "5931f0e9508225e4b0382d15c4fd62e9e3e9ebb3",
33
"readme": "specification/streamanalytics/resource-manager/readme.md",
4-
"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/[email protected].20211130.1",
4+
"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/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20211130.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-streamanalytics.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/streamanalytics/arm-streamanalytics/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for StreamAnalyticsManagementClient.",
6-
"version": "4.0.1",
6+
"version": "5.0.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -29,12 +29,12 @@
2929
"types": "./types/arm-streamanalytics.d.ts",
3030
"devDependencies": {
3131
"@microsoft/api-extractor": "^7.18.11",
32-
"@rollup/plugin-commonjs": "^21.0.1",
32+
"@rollup/plugin-commonjs": "11.0.2",
3333
"@rollup/plugin-json": "^4.0.0",
3434
"@rollup/plugin-multi-entry": "^3.0.0",
3535
"@rollup/plugin-node-resolve": "^8.0.0",
3636
"mkdirp": "^1.0.4",
37-
"rollup": "^2.0.0",
37+
"rollup": "^1.16.3",
3838
"rollup-plugin-sourcemaps": "^0.4.2",
3939
"typescript": "~4.2.0",
4040
"uglify-js": "^3.4.9",
@@ -99,4 +99,4 @@
9999
},
100100
"sideEffects": false,
101101
"autoPublish": true
102-
}
102+
}

sdk/streamanalytics/arm-streamanalytics/review/arm-streamanalytics.api.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ export type AzureDataLakeStoreOutputDataSourceProperties = OAuthBasedDataSourceP
4343
authenticationMode?: AuthenticationMode;
4444
};
4545

46+
// @public
47+
export type AzureFunctionOutputDataSource = OutputDataSource & {
48+
type: "Microsoft.AzureFunction";
49+
functionAppName?: string;
50+
functionName?: string;
51+
apiKey?: string;
52+
maxBatchSize?: number;
53+
maxBatchCount?: number;
54+
};
55+
4656
// @public
4757
export type AzureMachineLearningWebServiceFunctionBinding = FunctionBinding & {
4858
type: "Microsoft.MachineLearning/WebService";
@@ -157,6 +167,7 @@ export type AzureTableOutputDataSource = OutputDataSource & {
157167

158168
// @public
159169
export interface BlobDataSourceProperties {
170+
authenticationMode?: AuthenticationMode;
160171
container?: string;
161172
dateFormat?: string;
162173
pathPattern?: string;
@@ -176,9 +187,7 @@ export type BlobOutputDataSource = OutputDataSource & {
176187
};
177188

178189
// @public
179-
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {
180-
authenticationMode?: AuthenticationMode;
181-
};
190+
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {};
182191

183192
// @public
184193
export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
@@ -188,6 +197,7 @@ export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
188197
pathPattern?: string;
189198
dateFormat?: string;
190199
timeFormat?: string;
200+
authenticationMode?: AuthenticationMode;
191201
};
192202

193203
// @public
@@ -201,6 +211,7 @@ export type BlobStreamInputDataSource = StreamInputDataSource & {
201211
pathPattern?: string;
202212
dateFormat?: string;
203213
timeFormat?: string;
214+
authenticationMode?: AuthenticationMode;
204215
sourcePartitionCount?: number;
205216
};
206217

@@ -976,11 +987,11 @@ export type Output = SubResource & {
976987

977988
// @public
978989
export interface OutputDataSource {
979-
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";
990+
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";
980991
}
981992

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

985996
// @public
986997
export type OutputErrorPolicy = string;

sdk/streamanalytics/arm-streamanalytics/src/models/index.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export type OutputDataSourceUnion =
2727
| AzureSqlDatabaseOutputDataSource
2828
| AzureSynapseOutputDataSource
2929
| DocumentDbOutputDataSource
30+
| AzureFunctionOutputDataSource
3031
| ServiceBusQueueOutputDataSource
3132
| ServiceBusTopicOutputDataSource
3233
| PowerBIOutputDataSource
@@ -230,6 +231,7 @@ export interface OutputDataSource {
230231
| "Microsoft.Sql/Server/Database"
231232
| "Microsoft.Sql/Server/DataWarehouse"
232233
| "Microsoft.Storage/DocumentDB"
234+
| "Microsoft.AzureFunction"
233235
| "Microsoft.ServiceBus/Queue"
234236
| "Microsoft.ServiceBus/Topic"
235237
| "PowerBI"
@@ -536,6 +538,8 @@ export interface BlobDataSourceProperties {
536538
dateFormat?: string;
537539
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
538540
timeFormat?: string;
541+
/** Authentication Mode. */
542+
authenticationMode?: AuthenticationMode;
539543
}
540544

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

898+
/** Defines the metadata of AzureFunctionOutputDataSource */
899+
export type AzureFunctionOutputDataSource = OutputDataSource & {
900+
/** Polymorphic discriminator, which specifies the different types this object can be */
901+
type: "Microsoft.AzureFunction";
902+
/** The name of your Azure Functions app. */
903+
functionAppName?: string;
904+
/** The name of the function in your Azure Functions app. */
905+
functionName?: string;
906+
/** If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function. */
907+
apiKey?: string;
908+
/** 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). */
909+
maxBatchSize?: number;
910+
/** 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. */
911+
maxBatchCount?: number;
912+
};
913+
894914
/** Describes a Service Bus Queue output data source. */
895915
export type ServiceBusQueueOutputDataSource = OutputDataSource & {
896916
/** Polymorphic discriminator, which specifies the different types this object can be */
@@ -1040,6 +1060,8 @@ export type BlobStreamInputDataSource = StreamInputDataSource & {
10401060
dateFormat?: string;
10411061
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
10421062
timeFormat?: string;
1063+
/** Authentication Mode. */
1064+
authenticationMode?: AuthenticationMode;
10431065
/** The partition count of the blob input data source. Range 1 - 256. */
10441066
sourcePartitionCount?: number;
10451067
};
@@ -1110,6 +1132,8 @@ export type BlobReferenceInputDataSource = ReferenceInputDataSource & {
11101132
dateFormat?: string;
11111133
/** The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. */
11121134
timeFormat?: string;
1135+
/** Authentication Mode. */
1136+
authenticationMode?: AuthenticationMode;
11131137
};
11141138

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

11481172
/** The properties that are associated with a blob output. */
1149-
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {
1150-
/** Authentication Mode. */
1151-
authenticationMode?: AuthenticationMode;
1152-
};
1173+
export type BlobOutputDataSourceProperties = BlobDataSourceProperties & {};
11531174

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

0 commit comments

Comments
 (0)