Skip to content

Commit a9e7dc0

Browse files
author
SDKAuto
committed
CodeGen from PR 11630 in Azure/azure-rest-api-specs
Merge 994cb571d72c5326224b3cf686187b4235c7e673 into 7c8fd7f0705552f77bf442c567c854af01ab4805
1 parent 2becdb6 commit a9e7dc0

28 files changed

+6877
-2880
lines changed

sdk/streamanalytics/arm-streamanalytics/LICENSE.txt

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) 2019 Microsoft
3+
Copyright (c) 2020 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

sdk/streamanalytics/arm-streamanalytics/README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,29 @@ npm install @azure/arm-streamanalytics
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
18+
#### nodejs - client creation and get functions as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
2728

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2830
```typescript
29-
import * as msRest from "@azure/ms-rest-js";
30-
import * as msRestAzure from "@azure/ms-rest-azure-js";
31-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
32-
import { StreamAnalyticsManagementClient, StreamAnalyticsManagementModels, StreamAnalyticsManagementMappers } from "@azure/arm-streamanalytics";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics");
3333
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3434

3535
msRestNodeAuth.interactiveLogin().then((creds) => {
3636
const client = new StreamAnalyticsManagementClient(creds, subscriptionId);
37-
client.operations.list().then((result) => {
37+
const resourceGroupName = "testresourceGroupName";
38+
const jobName = "testjobName";
39+
const functionName = "testfunctionName";
40+
client.functions.get(resourceGroupName, jobName, functionName).then((result) => {
3841
console.log("The result is:");
3942
console.log(result);
4043
});
@@ -43,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4346
});
4447
```
4548

46-
#### browser - Authentication, client creation and list operations as an example written in JavaScript.
49+
#### browser - Authentication, client creation and get functions as an example written in JavaScript.
4750

4851
##### Install @azure/ms-rest-browserauth
4952

@@ -77,7 +80,10 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
7780
authManager.login();
7881
}
7982
const client = new Azure.ArmStreamanalytics.StreamAnalyticsManagementClient(res.creds, subscriptionId);
80-
client.operations.list().then((result) => {
83+
const resourceGroupName = "testresourceGroupName";
84+
const jobName = "testjobName";
85+
const functionName = "testfunctionName";
86+
client.functions.get(resourceGroupName, jobName, functionName).then((result) => {
8187
console.log("The result is:");
8288
console.log(result);
8389
}).catch((err) => {
@@ -95,4 +101,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
95101

96102
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
97103

98-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstreamanalytics%2Farm-streamanalytics%2FREADME.png)
104+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/streamanalytics/arm-streamanalytics/README.png)

sdk/streamanalytics/arm-streamanalytics/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "StreamAnalyticsManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "1.1.1",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^2.0.0",
8-
"@azure/ms-rest-js": "^2.0.3",
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
99
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
@@ -20,11 +20,11 @@
2020
"module": "./esm/streamAnalyticsManagementClient.js",
2121
"types": "./esm/streamAnalyticsManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
2929
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/streamanalytics/arm-streamanalytics",
3030
"repository": {

sdk/streamanalytics/arm-streamanalytics/rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AggregateFunctionProperties,
12+
AvroSerialization,
13+
AzureDataLakeStoreOutputDataSource,
14+
AzureFunctionOutputDataSource,
15+
AzureMachineLearningServiceFunctionBinding,
16+
AzureMachineLearningServiceInputColumn,
17+
AzureMachineLearningServiceOutputColumn,
18+
AzureMachineLearningStudioFunctionBinding,
19+
AzureMachineLearningStudioInputColumn,
20+
AzureMachineLearningStudioInputs,
21+
AzureMachineLearningStudioOutputColumn,
22+
AzureSqlDatabaseOutputDataSource,
23+
AzureSqlReferenceInputDataSource,
24+
AzureSqlReferenceInputDataSourceProperties,
25+
AzureSynapseOutputDataSource,
26+
AzureTableOutputDataSource,
27+
BaseResource,
28+
BlobOutputDataSource,
29+
BlobReferenceInputDataSource,
30+
BlobStreamInputDataSource,
31+
Cluster,
32+
ClusterInfo,
33+
ClusterJob,
34+
ClusterJobListResult,
35+
ClusterListResult,
36+
ClusterProperties,
37+
ClusterSku,
38+
Compression,
39+
CSharpFunctionBinding,
40+
CsvSerialization,
41+
CustomClrSerialization,
42+
DiagnosticCondition,
43+
Diagnostics,
44+
DocumentDbOutputDataSource,
45+
ErrorDetails,
46+
ErrorError,
47+
ErrorModel,
48+
EventHubOutputDataSource,
49+
EventHubStreamInputDataSource,
50+
EventHubV2OutputDataSource,
51+
EventHubV2StreamInputDataSource,
52+
External,
53+
FunctionBinding,
54+
FunctionInput,
55+
FunctionModel,
56+
FunctionOutput,
57+
FunctionProperties,
58+
Identity,
59+
Input,
60+
InputProperties,
61+
IoTHubStreamInputDataSource,
62+
JavaScriptFunctionBinding,
63+
JobStorageAccount,
64+
JsonSerialization,
65+
Output,
66+
OutputDataSource,
67+
ParquetSerialization,
68+
PowerBIOutputDataSource,
69+
PrivateEndpoint,
70+
PrivateEndpointProperties,
71+
PrivateLinkConnectionState,
72+
PrivateLinkServiceConnection,
73+
ProxyResource,
74+
ReferenceInputDataSource,
75+
ReferenceInputProperties,
76+
Resource,
77+
ScalarFunctionProperties,
78+
Serialization,
79+
ServiceBusQueueOutputDataSource,
80+
ServiceBusTopicOutputDataSource,
81+
StorageAccount,
82+
StreamingJob,
83+
StreamingJobSku,
84+
StreamInputDataSource,
85+
StreamInputProperties,
86+
SubResource,
87+
SubscriptionQuota,
88+
TrackedResource,
89+
Transformation
90+
} from "../models/mappers";
Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,54 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11+
AggregateFunctionProperties,
1112
AvroSerialization,
1213
AzureDataLakeStoreOutputDataSource,
13-
AzureMachineLearningWebServiceFunctionBinding,
14-
AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters,
15-
AzureMachineLearningWebServiceInputColumn,
16-
AzureMachineLearningWebServiceInputs,
17-
AzureMachineLearningWebServiceOutputColumn,
14+
AzureFunctionOutputDataSource,
15+
AzureMachineLearningServiceFunctionBinding,
16+
AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters,
17+
AzureMachineLearningServiceInputColumn,
18+
AzureMachineLearningServiceOutputColumn,
19+
AzureMachineLearningStudioFunctionBinding,
20+
AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters,
21+
AzureMachineLearningStudioInputColumn,
22+
AzureMachineLearningStudioInputs,
23+
AzureMachineLearningStudioOutputColumn,
1824
AzureSqlDatabaseOutputDataSource,
25+
AzureSqlReferenceInputDataSource,
26+
AzureSqlReferenceInputDataSourceProperties,
27+
AzureSynapseOutputDataSource,
1928
AzureTableOutputDataSource,
2029
BaseResource,
2130
BlobOutputDataSource,
2231
BlobReferenceInputDataSource,
2332
BlobStreamInputDataSource,
2433
CloudError,
34+
Cluster,
35+
ClusterInfo,
36+
ClusterProperties,
37+
ClusterSku,
38+
Compression,
39+
CSharpFunctionBinding,
40+
CSharpFunctionRetrieveDefaultDefinitionParameters,
2541
CsvSerialization,
42+
CustomClrSerialization,
2643
DiagnosticCondition,
2744
Diagnostics,
2845
DocumentDbOutputDataSource,
2946
ErrorResponse,
3047
EventHubOutputDataSource,
3148
EventHubStreamInputDataSource,
49+
EventHubV2OutputDataSource,
50+
EventHubV2StreamInputDataSource,
51+
External,
3252
FunctionBinding,
3353
FunctionInput,
3454
FunctionListResult,
@@ -39,15 +59,23 @@ export {
3959
FunctionsCreateOrReplaceHeaders,
4060
FunctionsGetHeaders,
4161
FunctionsUpdateHeaders,
62+
Identity,
4263
Input,
4364
InputProperties,
4465
IoTHubStreamInputDataSource,
4566
JavaScriptFunctionBinding,
4667
JavaScriptFunctionRetrieveDefaultDefinitionParameters,
68+
JobStorageAccount,
4769
JsonSerialization,
4870
Output,
4971
OutputDataSource,
72+
ParquetSerialization,
5073
PowerBIOutputDataSource,
74+
PrivateEndpoint,
75+
PrivateEndpointProperties,
76+
PrivateLinkConnectionState,
77+
PrivateLinkServiceConnection,
78+
ProxyResource,
5179
ReferenceInputDataSource,
5280
ReferenceInputProperties,
5381
Resource,
@@ -56,12 +84,13 @@ export {
5684
Serialization,
5785
ServiceBusQueueOutputDataSource,
5886
ServiceBusTopicOutputDataSource,
59-
Sku,
6087
StorageAccount,
6188
StreamingJob,
89+
StreamingJobSku,
6290
StreamInputDataSource,
6391
StreamInputProperties,
6492
SubResource,
6593
SubscriptionQuota,
94+
TrackedResource,
6695
Transformation
6796
} from "../models/mappers";

0 commit comments

Comments
 (0)