Skip to content

Commit c02bea3

Browse files
author
SDKAuto
committed
CodeGen from PR 16880 in Azure/azure-rest-api-specs
Merge c942be0857fecee1c3928a9e2760d12b5e3de198 into b6b834584cb58a3c2cbe887570fa0942b397dfc7
1 parent 94c7e2f commit c02bea3

26 files changed

+3118
-3691
lines changed

sdk/streamanalytics/arm-streamanalytics/README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure StreamAnalyticsManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StreamAnalyticsManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for StreamAnalyticsManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-streamanalytics @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
41-
#### nodejs - Authentication, client creation, and get functions as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -51,10 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new StreamAnalyticsManagementClient(creds, subscriptionId);
54-
const resourceGroupName = "testresourceGroupName";
55-
const jobName = "testjobName";
56-
const functionName = "testfunctionName";
57-
client.functions.get(resourceGroupName, jobName, functionName).then((result) => {
52+
client.operations.list().then((result) => {
5853
console.log("The result is:");
5954
console.log(result);
6055
}).catch((err) => {
@@ -63,7 +58,7 @@ client.functions.get(resourceGroupName, jobName, functionName).then((result) =>
6358
});
6459
```
6560

66-
#### browser - Authentication, client creation, and get functions as an example written in JavaScript.
61+
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
6762

6863
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6964
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -88,13 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8883
const credential = new InteractiveBrowserCredential(
8984
{
9085
clientId: "<client id for your Azure AD app>",
91-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9287
});
9388
const client = new Azure.ArmStreamanalytics.StreamAnalyticsManagementClient(creds, subscriptionId);
94-
const resourceGroupName = "testresourceGroupName";
95-
const jobName = "testjobName";
96-
const functionName = "testfunctionName";
97-
client.functions.get(resourceGroupName, jobName, functionName).then((result) => {
89+
client.operations.list().then((result) => {
9890
console.log("The result is:");
9991
console.log(result);
10092
}).catch((err) => {

sdk/streamanalytics/arm-streamanalytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/streamanalytics/arm-streamanalytics",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/streamanalytics/arm-streamanalytics",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

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

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,14 @@
88

99
export {
1010
discriminators,
11-
AggregateFunctionProperties,
1211
AvroSerialization,
1312
AzureDataLakeStoreOutputDataSource,
14-
AzureFunctionOutputDataSource,
15-
AzureMachineLearningServiceFunctionBinding,
16-
AzureMachineLearningServiceInputColumn,
17-
AzureMachineLearningServiceOutputColumn,
18-
AzureMachineLearningStudioFunctionBinding,
19-
AzureMachineLearningStudioInputColumn,
20-
AzureMachineLearningStudioInputs,
21-
AzureMachineLearningStudioOutputColumn,
13+
AzureMachineLearningWebServiceFunctionBinding,
14+
AzureMachineLearningWebServiceInputColumn,
15+
AzureMachineLearningWebServiceInputs,
16+
AzureMachineLearningWebServiceOutputColumn,
2217
AzureSqlDatabaseOutputDataSource,
2318
AzureSqlReferenceInputDataSource,
24-
AzureSqlReferenceInputDataSourceProperties,
2519
AzureSynapseOutputDataSource,
2620
AzureTableOutputDataSource,
2721
BaseResource,
@@ -33,12 +27,9 @@ export {
3327
ClusterJob,
3428
ClusterJobListResult,
3529
ClusterListResult,
36-
ClusterProperties,
3730
ClusterSku,
3831
Compression,
39-
CSharpFunctionBinding,
4032
CsvSerialization,
41-
CustomClrSerialization,
4233
DiagnosticCondition,
4334
Diagnostics,
4435
DocumentDbOutputDataSource,
@@ -49,7 +40,6 @@ export {
4940
EventHubStreamInputDataSource,
5041
EventHubV2OutputDataSource,
5142
EventHubV2StreamInputDataSource,
52-
External,
5343
FunctionBinding,
5444
FunctionInput,
5545
FunctionModel,
@@ -67,7 +57,6 @@ export {
6757
ParquetSerialization,
6858
PowerBIOutputDataSource,
6959
PrivateEndpoint,
70-
PrivateEndpointProperties,
7160
PrivateLinkConnectionState,
7261
PrivateLinkServiceConnection,
7362
ProxyResource,
@@ -78,9 +67,9 @@ export {
7867
Serialization,
7968
ServiceBusQueueOutputDataSource,
8069
ServiceBusTopicOutputDataSource,
70+
Sku,
8171
StorageAccount,
8272
StreamingJob,
83-
StreamingJobSku,
8473
StreamInputDataSource,
8574
StreamInputProperties,
8675
SubResource,

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

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,37 @@
88

99
export {
1010
discriminators,
11-
AggregateFunctionProperties,
1211
AvroSerialization,
1312
AzureDataLakeStoreOutputDataSource,
14-
AzureFunctionOutputDataSource,
15-
AzureMachineLearningServiceFunctionBinding,
16-
AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters,
17-
AzureMachineLearningServiceInputColumn,
18-
AzureMachineLearningServiceOutputColumn,
19-
AzureMachineLearningStudioFunctionBinding,
20-
AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters,
21-
AzureMachineLearningStudioInputColumn,
22-
AzureMachineLearningStudioInputs,
23-
AzureMachineLearningStudioOutputColumn,
13+
AzureMachineLearningWebServiceFunctionBinding,
14+
AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters,
15+
AzureMachineLearningWebServiceInputColumn,
16+
AzureMachineLearningWebServiceInputs,
17+
AzureMachineLearningWebServiceOutputColumn,
2418
AzureSqlDatabaseOutputDataSource,
2519
AzureSqlReferenceInputDataSource,
26-
AzureSqlReferenceInputDataSourceProperties,
2720
AzureSynapseOutputDataSource,
2821
AzureTableOutputDataSource,
2922
BaseResource,
3023
BlobOutputDataSource,
3124
BlobReferenceInputDataSource,
3225
BlobStreamInputDataSource,
33-
CloudError,
3426
Cluster,
3527
ClusterInfo,
36-
ClusterProperties,
3728
ClusterSku,
3829
Compression,
39-
CSharpFunctionBinding,
40-
CSharpFunctionRetrieveDefaultDefinitionParameters,
4130
CsvSerialization,
42-
CustomClrSerialization,
4331
DiagnosticCondition,
4432
Diagnostics,
4533
DocumentDbOutputDataSource,
34+
ErrorDetails,
35+
ErrorError,
36+
ErrorModel,
4637
ErrorResponse,
4738
EventHubOutputDataSource,
4839
EventHubStreamInputDataSource,
4940
EventHubV2OutputDataSource,
5041
EventHubV2StreamInputDataSource,
51-
External,
5242
FunctionBinding,
5343
FunctionInput,
5444
FunctionListResult,
@@ -72,7 +62,6 @@ export {
7262
ParquetSerialization,
7363
PowerBIOutputDataSource,
7464
PrivateEndpoint,
75-
PrivateEndpointProperties,
7665
PrivateLinkConnectionState,
7766
PrivateLinkServiceConnection,
7867
ProxyResource,
@@ -84,9 +73,9 @@ export {
8473
Serialization,
8574
ServiceBusQueueOutputDataSource,
8675
ServiceBusTopicOutputDataSource,
76+
Sku,
8777
StorageAccount,
8878
StreamingJob,
89-
StreamingJobSku,
9079
StreamInputDataSource,
9180
StreamInputProperties,
9281
SubResource,

0 commit comments

Comments
 (0)