@azure/arm-streamanalytics 4.1.1-alpha.20240226.1 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +170 -8
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +6060 -3785
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +14 -6
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +12 -4
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +12 -4
- package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +12 -4
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +11 -3
- package/dist-esm/samples-dev/clustersListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListStreamingJobsSample.js +12 -4
- package/dist-esm/samples-dev/clustersListStreamingJobsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +13 -5
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsCreateOrReplaceSample.js +97 -16
- package/dist-esm/samples-dev/functionsCreateOrReplaceSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/functionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsGetSample.js +17 -8
- package/dist-esm/samples-dev/functionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsListByStreamingJobSample.js +12 -4
- package/dist-esm/samples-dev/functionsListByStreamingJobSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsRetrieveDefaultDefinitionSample.js +15 -7
- package/dist-esm/samples-dev/functionsRetrieveDefaultDefinitionSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsTestSample.js +18 -9
- package/dist-esm/samples-dev/functionsTestSample.js.map +1 -1
- package/dist-esm/samples-dev/functionsUpdateSample.js +26 -14
- package/dist-esm/samples-dev/functionsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsCreateOrReplaceSample.js +147 -31
- package/dist-esm/samples-dev/inputsCreateOrReplaceSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/inputsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsGetSample.js +27 -16
- package/dist-esm/samples-dev/inputsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsListByStreamingJobSample.js +18 -9
- package/dist-esm/samples-dev/inputsListByStreamingJobSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsTestSample.js +12 -4
- package/dist-esm/samples-dev/inputsTestSample.js.map +1 -1
- package/dist-esm/samples-dev/inputsUpdateSample.js +39 -28
- package/dist-esm/samples-dev/inputsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsCreateOrReplaceSample.js +261 -56
- package/dist-esm/samples-dev/outputsCreateOrReplaceSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/outputsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsGetSample.js +98 -41
- package/dist-esm/samples-dev/outputsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsListByStreamingJobSample.js +12 -4
- package/dist-esm/samples-dev/outputsListByStreamingJobSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsTestSample.js +12 -4
- package/dist-esm/samples-dev/outputsTestSample.js.map +1 -1
- package/dist-esm/samples-dev/outputsUpdateSample.js +150 -54
- package/dist-esm/samples-dev/outputsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointsCreateOrUpdateSample.js +21 -11
- package/dist-esm/samples-dev/privateEndpointsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointsGetSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointsListByClusterSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/skuListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skuListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skuListSample.js +55 -0
- package/dist-esm/samples-dev/skuListSample.js.map +1 -0
- package/dist-esm/samples-dev/streamingJobsCreateOrReplaceSample.js +85 -22
- package/dist-esm/samples-dev/streamingJobsCreateOrReplaceSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/streamingJobsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsGetSample.js +18 -9
- package/dist-esm/samples-dev/streamingJobsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsListByResourceGroupSample.js +18 -9
- package/dist-esm/samples-dev/streamingJobsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsListSample.js +16 -7
- package/dist-esm/samples-dev/streamingJobsListSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsScaleSample.js +15 -7
- package/dist-esm/samples-dev/streamingJobsScaleSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsStartSample.js +26 -16
- package/dist-esm/samples-dev/streamingJobsStartSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsStopSample.js +12 -4
- package/dist-esm/samples-dev/streamingJobsStopSample.js.map +1 -1
- package/dist-esm/samples-dev/streamingJobsUpdateSample.js +14 -6
- package/dist-esm/samples-dev/streamingJobsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/subscriptionsCompileQuerySample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionsCompileQuerySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionsCompileQuerySample.js +53 -0
- package/dist-esm/samples-dev/subscriptionsCompileQuerySample.js.map +1 -0
- package/dist-esm/samples-dev/subscriptionsListQuotasSample.js +11 -3
- package/dist-esm/samples-dev/subscriptionsListQuotasSample.js.map +1 -1
- package/dist-esm/samples-dev/subscriptionsSampleInputSample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionsSampleInputSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionsSampleInputSample.js +60 -0
- package/dist-esm/samples-dev/subscriptionsSampleInputSample.js.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestInputSample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionsTestInputSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestInputSample.js +57 -0
- package/dist-esm/samples-dev/subscriptionsTestInputSample.js.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestOutputSample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionsTestOutputSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestOutputSample.js +53 -0
- package/dist-esm/samples-dev/subscriptionsTestOutputSample.js.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestQuerySample.d.ts +2 -0
- package/dist-esm/samples-dev/subscriptionsTestQuerySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/subscriptionsTestQuerySample.js +78 -0
- package/dist-esm/samples-dev/subscriptionsTestQuerySample.js.map +1 -0
- package/dist-esm/samples-dev/transformationsCreateOrReplaceSample.js +14 -6
- package/dist-esm/samples-dev/transformationsCreateOrReplaceSample.js.map +1 -1
- package/dist-esm/samples-dev/transformationsGetSample.js +12 -4
- package/dist-esm/samples-dev/transformationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/transformationsUpdateSample.js +13 -5
- package/dist-esm/samples-dev/transformationsUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +1320 -469
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +126 -22
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +108 -42
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +3129 -1585
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +19 -13
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +162 -131
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +4 -4
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +105 -93
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/functions.d.ts +2 -2
- package/dist-esm/src/operations/functions.d.ts.map +1 -1
- package/dist-esm/src/operations/functions.js +64 -60
- package/dist-esm/src/operations/functions.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +5 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +5 -4
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/inputs.d.ts +2 -2
- package/dist-esm/src/operations/inputs.d.ts.map +1 -1
- package/dist-esm/src/operations/inputs.js +58 -54
- package/dist-esm/src/operations/inputs.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/outputs.d.ts +2 -2
- package/dist-esm/src/operations/outputs.d.ts.map +1 -1
- package/dist-esm/src/operations/outputs.js +58 -54
- package/dist-esm/src/operations/outputs.js.map +1 -1
- package/dist-esm/src/operations/privateEndpoints.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpoints.js +47 -43
- package/dist-esm/src/operations/privateEndpoints.js.map +1 -1
- package/dist-esm/src/operations/skuOperations.d.ts +38 -0
- package/dist-esm/src/operations/skuOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/skuOperations.js +150 -0
- package/dist-esm/src/operations/skuOperations.js.map +1 -0
- package/dist-esm/src/operations/streamingJobs.d.ts +6 -6
- package/dist-esm/src/operations/streamingJobs.d.ts.map +1 -1
- package/dist-esm/src/operations/streamingJobs.js +119 -99
- package/dist-esm/src/operations/streamingJobs.js.map +1 -1
- package/dist-esm/src/operations/subscriptions.d.ts +79 -4
- package/dist-esm/src/operations/subscriptions.d.ts.map +1 -1
- package/dist-esm/src/operations/subscriptions.js +401 -8
- package/dist-esm/src/operations/subscriptions.js.map +1 -1
- package/dist-esm/src/operations/transformations.js +22 -22
- package/dist-esm/src/operations/transformations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/functions.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/functions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -4
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +5 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/inputs.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/inputs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/outputs.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/outputs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/skuOperations.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/skuOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skuOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/skuOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +79 -4
- package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -1
- package/dist-esm/src/streamAnalyticsManagementClient.d.ts +6 -8
- package/dist-esm/src/streamAnalyticsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/streamAnalyticsManagementClient.js +12 -41
- package/dist-esm/src/streamAnalyticsManagementClient.js.map +1 -1
- package/dist-esm/test/streamanalytics_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/streamanalytics_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/streamanalytics_operations_test.spec.js +112 -0
- package/dist-esm/test/streamanalytics_operations_test.spec.js.map +1 -0
- package/package.json +15 -14
- package/review/arm-streamanalytics.api.md +614 -55
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1514 -538
- package/src/models/mappers.ts +3649 -1881
- package/src/models/parameters.ts +182 -140
- package/src/operations/clusters.ts +189 -189
- package/src/operations/functions.ts +115 -113
- package/src/operations/index.ts +5 -4
- package/src/operations/inputs.ts +103 -103
- package/src/operations/operations.ts +16 -16
- package/src/operations/outputs.ts +103 -103
- package/src/operations/privateEndpoints.ts +83 -84
- package/src/operations/skuOperations.ts +193 -0
- package/src/operations/streamingJobs.ts +208 -215
- package/src/operations/subscriptions.ts +551 -13
- package/src/operations/transformations.ts +32 -35
- package/src/operationsInterfaces/clusters.ts +17 -17
- package/src/operationsInterfaces/functions.ts +14 -11
- package/src/operationsInterfaces/index.ts +5 -4
- package/src/operationsInterfaces/inputs.ts +10 -10
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/outputs.ts +10 -10
- package/src/operationsInterfaces/privateEndpoints.ts +8 -8
- package/src/operationsInterfaces/skuOperations.ts +26 -0
- package/src/operationsInterfaces/streamingJobs.ts +22 -22
- package/src/operationsInterfaces/subscriptions.ts +151 -5
- package/src/operationsInterfaces/transformations.ts +4 -4
- package/src/pagingHelper.ts +1 -1
- package/src/streamAnalyticsManagementClient.ts +34 -65
- package/types/arm-streamanalytics.d.ts +1129 -109
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -8,25 +8,55 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { StreamAnalyticsManagementClient } from "@azure/arm-streamanalytics";
|
|
11
|
+
import { StreamAnalyticsManagementClient, } from "@azure/arm-streamanalytics";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
15
17
|
*
|
|
16
18
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
17
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
19
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DeltaLake.json
|
|
20
|
+
*/
|
|
21
|
+
function updateADeltaLakeOutput() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
25
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
26
|
+
const jobName = "sjName";
|
|
27
|
+
const outputName = "output1221";
|
|
28
|
+
const output = {
|
|
29
|
+
datasource: { type: "Microsoft.Storage/Blob", container: "deltaoutput2" },
|
|
30
|
+
serialization: {
|
|
31
|
+
type: "Delta",
|
|
32
|
+
deltaTablePath: "/folder1/table2",
|
|
33
|
+
partitionColumns: ["column2"],
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const credential = new DefaultAzureCredential();
|
|
37
|
+
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
38
|
+
const result = yield client.outputs.update(resourceGroupName, jobName, outputName, output);
|
|
39
|
+
console.log(result);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
44
|
+
*
|
|
45
|
+
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
46
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DocumentDB.json
|
|
18
47
|
*/
|
|
19
48
|
function updateADocumentDbOutput() {
|
|
20
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "
|
|
22
|
-
|
|
50
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
51
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
52
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg7983";
|
|
23
53
|
const jobName = "sj2331";
|
|
24
54
|
const outputName = "output3022";
|
|
25
55
|
const output = {
|
|
26
56
|
datasource: {
|
|
27
57
|
type: "Microsoft.Storage/DocumentDB",
|
|
28
|
-
partitionKey: "differentPartitionKey"
|
|
29
|
-
}
|
|
58
|
+
partitionKey: "differentPartitionKey",
|
|
59
|
+
},
|
|
30
60
|
};
|
|
31
61
|
const credential = new DefaultAzureCredential();
|
|
32
62
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -34,21 +64,21 @@ function updateADocumentDbOutput() {
|
|
|
34
64
|
console.log(result);
|
|
35
65
|
});
|
|
36
66
|
}
|
|
37
|
-
updateADocumentDbOutput().catch(console.error);
|
|
38
67
|
/**
|
|
39
68
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
40
69
|
*
|
|
41
70
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
42
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
71
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_PowerBI.json
|
|
43
72
|
*/
|
|
44
73
|
function updateAPowerBiOutput() {
|
|
45
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const subscriptionId = "
|
|
47
|
-
|
|
75
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
76
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
77
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg7983";
|
|
48
78
|
const jobName = "sj2331";
|
|
49
79
|
const outputName = "output3022";
|
|
50
80
|
const output = {
|
|
51
|
-
datasource: { type: "PowerBI", dataset: "differentDataset" }
|
|
81
|
+
datasource: { type: "PowerBI", dataset: "differentDataset" },
|
|
52
82
|
};
|
|
53
83
|
const credential = new DefaultAzureCredential();
|
|
54
84
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -56,25 +86,25 @@ function updateAPowerBiOutput() {
|
|
|
56
86
|
console.log(result);
|
|
57
87
|
});
|
|
58
88
|
}
|
|
59
|
-
updateAPowerBiOutput().catch(console.error);
|
|
60
89
|
/**
|
|
61
90
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
62
91
|
*
|
|
63
92
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
64
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
93
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_ServiceBusQueue.json
|
|
65
94
|
*/
|
|
66
95
|
function updateAServiceBusQueueOutputWithAvroSerialization() {
|
|
67
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const subscriptionId = "
|
|
69
|
-
|
|
97
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
98
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
99
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg3410";
|
|
70
100
|
const jobName = "sj5095";
|
|
71
101
|
const outputName = "output3456";
|
|
72
102
|
const output = {
|
|
73
103
|
datasource: {
|
|
74
104
|
type: "Microsoft.ServiceBus/Queue",
|
|
75
|
-
queueName: "differentQueueName"
|
|
105
|
+
queueName: "differentQueueName",
|
|
76
106
|
},
|
|
77
|
-
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" }
|
|
107
|
+
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" },
|
|
78
108
|
};
|
|
79
109
|
const credential = new DefaultAzureCredential();
|
|
80
110
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -82,25 +112,25 @@ function updateAServiceBusQueueOutputWithAvroSerialization() {
|
|
|
82
112
|
console.log(result);
|
|
83
113
|
});
|
|
84
114
|
}
|
|
85
|
-
updateAServiceBusQueueOutputWithAvroSerialization().catch(console.error);
|
|
86
115
|
/**
|
|
87
116
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
88
117
|
*
|
|
89
118
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
90
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
119
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_ServiceBusTopic.json
|
|
91
120
|
*/
|
|
92
121
|
function updateAServiceBusTopicOutputWithCsvSerialization() {
|
|
93
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
const subscriptionId = "
|
|
95
|
-
|
|
123
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
124
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
125
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg6450";
|
|
96
126
|
const jobName = "sj7094";
|
|
97
127
|
const outputName = "output7886";
|
|
98
128
|
const output = {
|
|
99
129
|
datasource: {
|
|
100
130
|
type: "Microsoft.ServiceBus/Topic",
|
|
101
|
-
topicName: "differentTopicName"
|
|
131
|
+
topicName: "differentTopicName",
|
|
102
132
|
},
|
|
103
|
-
serialization: { type: "Csv", encoding: "UTF8", fieldDelimiter: "|" }
|
|
133
|
+
serialization: { type: "Csv", encoding: "UTF8", fieldDelimiter: "|" },
|
|
104
134
|
};
|
|
105
135
|
const credential = new DefaultAzureCredential();
|
|
106
136
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -108,25 +138,25 @@ function updateAServiceBusTopicOutputWithCsvSerialization() {
|
|
|
108
138
|
console.log(result);
|
|
109
139
|
});
|
|
110
140
|
}
|
|
111
|
-
updateAServiceBusTopicOutputWithCsvSerialization().catch(console.error);
|
|
112
141
|
/**
|
|
113
142
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
114
143
|
*
|
|
115
144
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
116
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
145
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_Blob.json
|
|
117
146
|
*/
|
|
118
147
|
function updateABlobOutputWithCsvSerialization() {
|
|
119
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
const subscriptionId = "
|
|
121
|
-
|
|
149
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
150
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
151
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg5023";
|
|
122
152
|
const jobName = "sj900";
|
|
123
153
|
const outputName = "output1623";
|
|
124
154
|
const output = {
|
|
125
155
|
datasource: {
|
|
126
156
|
type: "Microsoft.Storage/Blob",
|
|
127
|
-
container: "differentContainer"
|
|
157
|
+
container: "differentContainer",
|
|
128
158
|
},
|
|
129
|
-
serialization: { type: "Csv", encoding: "UTF8", fieldDelimiter: "|" }
|
|
159
|
+
serialization: { type: "Csv", encoding: "UTF8", fieldDelimiter: "|" },
|
|
130
160
|
};
|
|
131
161
|
const credential = new DefaultAzureCredential();
|
|
132
162
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -134,25 +164,50 @@ function updateABlobOutputWithCsvSerialization() {
|
|
|
134
164
|
console.log(result);
|
|
135
165
|
});
|
|
136
166
|
}
|
|
137
|
-
updateABlobOutputWithCsvSerialization().catch(console.error);
|
|
138
167
|
/**
|
|
139
168
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
140
169
|
*
|
|
141
170
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
142
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
171
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureDataLakeStore.json
|
|
143
172
|
*/
|
|
144
173
|
function updateAnAzureDataLakeStoreOutputWithJsonSerialization() {
|
|
145
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
const subscriptionId = "
|
|
147
|
-
|
|
175
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
176
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
177
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg6912";
|
|
148
178
|
const jobName = "sj3310";
|
|
149
179
|
const outputName = "output5195";
|
|
150
180
|
const output = {
|
|
151
181
|
datasource: {
|
|
152
182
|
type: "Microsoft.DataLake/Accounts",
|
|
153
|
-
accountName: "differentaccount"
|
|
183
|
+
accountName: "differentaccount",
|
|
184
|
+
},
|
|
185
|
+
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" },
|
|
186
|
+
};
|
|
187
|
+
const credential = new DefaultAzureCredential();
|
|
188
|
+
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
189
|
+
const result = yield client.outputs.update(resourceGroupName, jobName, outputName, output);
|
|
190
|
+
console.log(result);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
195
|
+
*
|
|
196
|
+
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
197
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DataWarehouse.json
|
|
198
|
+
*/
|
|
199
|
+
function updateAnAzureDataWarehouseOutput() {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
202
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
203
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
204
|
+
const jobName = "sjName";
|
|
205
|
+
const outputName = "dwOutput";
|
|
206
|
+
const output = {
|
|
207
|
+
datasource: {
|
|
208
|
+
type: "Microsoft.Sql/Server/Database",
|
|
209
|
+
table: "differentTable",
|
|
154
210
|
},
|
|
155
|
-
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" }
|
|
156
211
|
};
|
|
157
212
|
const credential = new DefaultAzureCredential();
|
|
158
213
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -160,24 +215,49 @@ function updateAnAzureDataLakeStoreOutputWithJsonSerialization() {
|
|
|
160
215
|
console.log(result);
|
|
161
216
|
});
|
|
162
217
|
}
|
|
163
|
-
updateAnAzureDataLakeStoreOutputWithJsonSerialization().catch(console.error);
|
|
164
218
|
/**
|
|
165
219
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
166
220
|
*
|
|
167
221
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
168
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
222
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureFunction.json
|
|
223
|
+
*/
|
|
224
|
+
function updateAnAzureFunctionOutput() {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
227
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
228
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
229
|
+
const jobName = "sjName";
|
|
230
|
+
const outputName = "azureFunction1";
|
|
231
|
+
const output = {
|
|
232
|
+
datasource: {
|
|
233
|
+
type: "Microsoft.AzureFunction",
|
|
234
|
+
functionName: "differentFunctionName",
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
const credential = new DefaultAzureCredential();
|
|
238
|
+
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
239
|
+
const result = yield client.outputs.update(resourceGroupName, jobName, outputName, output);
|
|
240
|
+
console.log(result);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
245
|
+
*
|
|
246
|
+
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
247
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureSQL.json
|
|
169
248
|
*/
|
|
170
249
|
function updateAnAzureSqlDatabaseOutput() {
|
|
171
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
-
const subscriptionId = "
|
|
173
|
-
|
|
251
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
252
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
253
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg2157";
|
|
174
254
|
const jobName = "sj6458";
|
|
175
255
|
const outputName = "output1755";
|
|
176
256
|
const output = {
|
|
177
257
|
datasource: {
|
|
178
258
|
type: "Microsoft.Sql/Server/Database",
|
|
179
|
-
table: "differentTable"
|
|
180
|
-
}
|
|
259
|
+
table: "differentTable",
|
|
260
|
+
},
|
|
181
261
|
};
|
|
182
262
|
const credential = new DefaultAzureCredential();
|
|
183
263
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -185,24 +265,24 @@ function updateAnAzureSqlDatabaseOutput() {
|
|
|
185
265
|
console.log(result);
|
|
186
266
|
});
|
|
187
267
|
}
|
|
188
|
-
updateAnAzureSqlDatabaseOutput().catch(console.error);
|
|
189
268
|
/**
|
|
190
269
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
191
270
|
*
|
|
192
271
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
193
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
272
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureTable.json
|
|
194
273
|
*/
|
|
195
274
|
function updateAnAzureTableOutput() {
|
|
196
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
-
const subscriptionId = "
|
|
198
|
-
|
|
276
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
277
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
278
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg5176";
|
|
199
279
|
const jobName = "sj2790";
|
|
200
280
|
const outputName = "output958";
|
|
201
281
|
const output = {
|
|
202
282
|
datasource: {
|
|
203
283
|
type: "Microsoft.Storage/Table",
|
|
204
|
-
partitionKey: "differentPartitionKey"
|
|
205
|
-
}
|
|
284
|
+
partitionKey: "differentPartitionKey",
|
|
285
|
+
},
|
|
206
286
|
};
|
|
207
287
|
const credential = new DefaultAzureCredential();
|
|
208
288
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -210,25 +290,25 @@ function updateAnAzureTableOutput() {
|
|
|
210
290
|
console.log(result);
|
|
211
291
|
});
|
|
212
292
|
}
|
|
213
|
-
updateAnAzureTableOutput().catch(console.error);
|
|
214
293
|
/**
|
|
215
294
|
* This sample demonstrates how to Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
216
295
|
*
|
|
217
296
|
* @summary Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
|
|
218
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
297
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_EventHub.json
|
|
219
298
|
*/
|
|
220
299
|
function updateAnEventHubOutputWithJsonSerialization() {
|
|
221
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
-
const subscriptionId = "
|
|
223
|
-
|
|
301
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
302
|
+
"56b5e0a9-b645-407d-99b0-c64f86013e3d";
|
|
303
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg6912";
|
|
224
304
|
const jobName = "sj3310";
|
|
225
305
|
const outputName = "output5195";
|
|
226
306
|
const output = {
|
|
227
307
|
datasource: {
|
|
228
308
|
type: "Microsoft.ServiceBus/EventHub",
|
|
229
|
-
partitionKey: "differentPartitionKey"
|
|
309
|
+
partitionKey: "differentPartitionKey",
|
|
230
310
|
},
|
|
231
|
-
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" }
|
|
311
|
+
serialization: { type: "Json", format: "LineSeparated", encoding: "UTF8" },
|
|
232
312
|
};
|
|
233
313
|
const credential = new DefaultAzureCredential();
|
|
234
314
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -236,5 +316,21 @@ function updateAnEventHubOutputWithJsonSerialization() {
|
|
|
236
316
|
console.log(result);
|
|
237
317
|
});
|
|
238
318
|
}
|
|
239
|
-
|
|
319
|
+
function main() {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
updateADeltaLakeOutput();
|
|
322
|
+
updateADocumentDbOutput();
|
|
323
|
+
updateAPowerBiOutput();
|
|
324
|
+
updateAServiceBusQueueOutputWithAvroSerialization();
|
|
325
|
+
updateAServiceBusTopicOutputWithCsvSerialization();
|
|
326
|
+
updateABlobOutputWithCsvSerialization();
|
|
327
|
+
updateAnAzureDataLakeStoreOutputWithJsonSerialization();
|
|
328
|
+
updateAnAzureDataWarehouseOutput();
|
|
329
|
+
updateAnAzureFunctionOutput();
|
|
330
|
+
updateAnAzureSqlDatabaseOutput();
|
|
331
|
+
updateAnAzureTableOutput();
|
|
332
|
+
updateAnEventHubOutputWithJsonSerialization();
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
main().catch(console.error);
|
|
240
336
|
//# sourceMappingURL=outputsUpdateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/outputsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,
|
|
1
|
+
{"version":3,"file":"outputsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/outputsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC;YAC9C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,MAAM,CAAC;QAC1D,MAAM,OAAO,GAAG,QAAQ,CAAC;QACzB,MAAM,UAAU,GAAG,YAAY,CAAC;QAChC,MAAM,MAAM,GAAW;YACrB,UAAU,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,SAAS,EAAE,cAAc,EAAE;YACzE,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,cAAc,EAAE,iBAAiB;gBACjC,gBAAgB,EAAE,CAAC,SAAS,CAAC;aAC9B;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CACxC,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,MAAM,CACP,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,uBAAuB;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ft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { StreamAnalyticsManagementClient } from "@azure/arm-streamanalytics";
|
|
11
|
+
import { StreamAnalyticsManagementClient, } from "@azure/arm-streamanalytics";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.
|
|
15
17
|
*
|
|
16
18
|
* @summary Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.
|
|
17
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
19
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Create.json
|
|
18
20
|
*/
|
|
19
21
|
function createAPrivateEndpoint() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "
|
|
22
|
-
|
|
23
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
25
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
23
26
|
const clusterName = "testcluster";
|
|
24
27
|
const privateEndpointName = "testpe";
|
|
25
28
|
const privateEndpoint = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
properties: {
|
|
30
|
+
manualPrivateLinkServiceConnections: [
|
|
31
|
+
{
|
|
32
|
+
groupIds: ["groupIdFromResource"],
|
|
33
|
+
privateLinkServiceId: "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
32
37
|
};
|
|
33
38
|
const credential = new DefaultAzureCredential();
|
|
34
39
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -36,5 +41,10 @@ function createAPrivateEndpoint() {
|
|
|
36
41
|
console.log(result);
|
|
37
42
|
});
|
|
38
43
|
}
|
|
39
|
-
|
|
44
|
+
function main() {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
createAPrivateEndpoint();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
main().catch(console.error);
|
|
40
50
|
//# sourceMappingURL=privateEndpointsCreateOrUpdateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,
|
|
1
|
+
{"version":3,"file":"privateEndpointsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC;YAC9C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,MAAM,CAAC;QAC1D,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;QACrC,MAAM,eAAe,GAAoB;YACvC,UAAU,EAAE;gBACV,mCAAmC,EAAE;oBACnC;wBACE,QAAQ,EAAE,CAAC,qBAAqB,CAAC;wBACjC,oBAAoB,EAClB,iGAAiG;qBACpG;iBACF;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,cAAc,CACzD,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,19 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StreamAnalyticsManagementClient } from "@azure/arm-streamanalytics";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Delete the specified private endpoint.
|
|
15
17
|
*
|
|
16
18
|
* @summary Delete the specified private endpoint.
|
|
17
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
19
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Delete.json
|
|
18
20
|
*/
|
|
19
21
|
function deleteAPrivateEndpoint() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "
|
|
22
|
-
|
|
23
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
25
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
23
26
|
const clusterName = "testcluster";
|
|
24
27
|
const privateEndpointName = "testpe";
|
|
25
28
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +31,10 @@ function deleteAPrivateEndpoint() {
|
|
|
28
31
|
console.log(result);
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
|
-
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
deleteAPrivateEndpoint();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
32
40
|
//# sourceMappingURL=privateEndpointsDeleteSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"privateEndpointsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC;YAC9C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,MAAM,CAAC;QAC1D,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;QACrC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAC7D,iBAAiB,EACjB,WAAW,EACX,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,19 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StreamAnalyticsManagementClient } from "@azure/arm-streamanalytics";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets information about the specified Private Endpoint.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets information about the specified Private Endpoint.
|
|
17
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
19
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Get.json
|
|
18
20
|
*/
|
|
19
21
|
function getAPrivateEndpoint() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "
|
|
22
|
-
|
|
23
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
25
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
23
26
|
const clusterName = "testcluster";
|
|
24
27
|
const privateEndpointName = "testpe";
|
|
25
28
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +31,10 @@ function getAPrivateEndpoint() {
|
|
|
28
31
|
console.log(result);
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
|
-
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
getAPrivateEndpoint();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
32
40
|
//# sourceMappingURL=privateEndpointsGetSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"privateEndpointsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC;YAC9C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,MAAM,CAAC;QAC1D,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;QACrC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,iBAAiB,EACjB,WAAW,EACX,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,17 +10,20 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StreamAnalyticsManagementClient } from "@azure/arm-streamanalytics";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists the private endpoints in the cluster.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists the private endpoints in the cluster.
|
|
17
|
-
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/
|
|
19
|
+
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_ListByCluster.json
|
|
18
20
|
*/
|
|
19
21
|
function getThePrivateEndpointsInACluster() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "
|
|
23
|
-
|
|
24
|
+
const subscriptionId = process.env["STREAMANALYTICS_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
26
|
+
const resourceGroupName = process.env["STREAMANALYTICS_RESOURCE_GROUP"] || "sjrg";
|
|
24
27
|
const clusterName = "testcluster";
|
|
25
28
|
const credential = new DefaultAzureCredential();
|
|
26
29
|
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
|
|
@@ -43,5 +46,10 @@ function getThePrivateEndpointsInACluster() {
|
|
|
43
46
|
console.log(resArray);
|
|
44
47
|
});
|
|
45
48
|
}
|
|
46
|
-
|
|
49
|
+
function main() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
getThePrivateEndpointsInACluster();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
main().catch(console.error);
|
|
47
55
|
//# sourceMappingURL=privateEndpointsListByClusterSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointsListByClusterSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsListByClusterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"privateEndpointsListByClusterSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointsListByClusterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,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