@azure/arm-hdinsight 1.2.2-alpha.20230627.1 → 1.3.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 +6 -10
- package/README.md +1 -1
- package/dist/index.js +3489 -3399
- 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/applicationsCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
- package/dist-esm/samples-dev/applicationsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/clustersCreateSample.js +26 -13
- package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +2 -2
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +1 -1
- package/dist-esm/samples-dev/clustersResizeSample.js +1 -1
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListSample.js +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +1 -1
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +1 -1
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
- package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
- package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +2 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
- package/dist-esm/src/hDInsightManagementClient.d.ts +6 -6
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.js +8 -8
- package/dist-esm/src/hDInsightManagementClient.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 +696 -694
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +62 -62
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +35 -35
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1451 -1445
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +12 -12
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +91 -91
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts +3 -3
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +30 -16
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +9 -9
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +90 -58
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts +2 -2
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +19 -15
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts +7 -7
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +68 -38
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +5 -5
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +5 -5
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/locations.js +4 -4
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +32 -24
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +2 -2
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +12 -8
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/applications.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +5 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/hdinsights_operations_test.spec.js +86 -0
- package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -0
- package/package.json +7 -7
- package/review/arm-hdinsight.api.md +23 -22
- package/src/hDInsightManagementClient.ts +24 -24
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +838 -836
- package/src/models/mappers.ts +1559 -1553
- package/src/models/parameters.ts +101 -101
- package/src/operations/applications.ts +40 -27
- package/src/operations/clusters.ts +106 -99
- package/src/operations/configurations.ts +18 -14
- package/src/operations/extensions.ts +78 -68
- package/src/operations/index.ts +5 -5
- package/src/operations/locations.ts +4 -4
- package/src/operations/privateEndpointConnections.ts +31 -24
- package/src/operations/virtualMachines.ts +17 -13
- package/src/operationsInterfaces/applications.ts +4 -4
- package/src/operationsInterfaces/clusters.ts +10 -10
- package/src/operationsInterfaces/configurations.ts +2 -2
- package/src/operationsInterfaces/extensions.ts +7 -7
- package/src/operationsInterfaces/index.ts +5 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/virtualMachines.ts +2 -2
- package/types/arm-hdinsight.d.ts +29 -27
- package/types/tsdoc-metadata.json +1 -1
- 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
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Enables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Enables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json
|
|
20
20
|
*/
|
|
21
21
|
function enableClusterMonitoring() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the async operation status.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the async operation status.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function getsTheAzureAsyncOperationStatus() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the status of Azure Monitor on the HDInsight cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the status of Azure Monitor on the HDInsight cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function enableClusterMonitoring() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the status of Operations Management Suite (OMS) on the HDInsight cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the status of Operations Management Suite (OMS) on the HDInsight cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function enableClusterMonitoring() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the extension properties for the specified HDInsight cluster extension.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the extension properties for the specified HDInsight cluster extension.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json
|
|
20
20
|
*/
|
|
21
21
|
function getAnExtension() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Check the cluster name is available or not.
|
|
17
17
|
*
|
|
18
18
|
* @summary Check the cluster name is available or not.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json
|
|
20
20
|
*/
|
|
21
21
|
function getTheSubscriptionUsagesForSpecificLocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the async operation status.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the async operation status.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function getsTheAzureAsyncOperationStatus() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the capabilities for the specified location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the capabilities for the specified location.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json
|
|
20
20
|
*/
|
|
21
21
|
function getTheSubscriptionCapabilitiesForSpecificLocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the billingSpecs for the specified subscription and location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the billingSpecs for the specified subscription and location.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json
|
|
20
20
|
*/
|
|
21
21
|
function getTheSubscriptionBillingSpecsForTheSpecifiedLocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the usages for the specified location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the usages for the specified location.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json
|
|
20
20
|
*/
|
|
21
21
|
function getTheSubscriptionUsagesForSpecificLocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Validate the cluster create request spec is valid or not.
|
|
17
17
|
*
|
|
18
18
|
* @summary Validate the cluster create request spec is valid or not.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json
|
|
20
20
|
*/
|
|
21
21
|
function getTheSubscriptionUsagesForSpecificLocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -98,6 +98,7 @@ function getTheSubscriptionUsagesForSpecificLocation() {
|
|
|
98
98
|
{
|
|
99
99
|
name: "storagename.blob.core.windows.net",
|
|
100
100
|
container: "contianername",
|
|
101
|
+
enableSecureChannel: true,
|
|
101
102
|
isDefault: true,
|
|
102
103
|
key: "*******",
|
|
103
104
|
resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storagename"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationsValidateClusterCreateRequestSample.js","sourceRoot":"","sources":["../../samples-dev/locationsValidateClusterCreateRequestSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD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AAqB,EAAE,EAAE;yBAC1B;wBACD;4BACE,IAAI,EAAE,eAAe;4BACrB,sBAAsB,EAAE,EAAE;4BAC1B,eAAe,EAAE,EAAE;4BACnB,eAAe,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;4BAC9C,gBAAgB,EAAE,CAAC;4BACnB,SAAS,EAAE;gCACT,2BAA2B,EAAE;oCAC3B,QAAQ,EAAE,YAAY;oCACtB,QAAQ,EAAE,SAAS;iCACpB;6BACF;4BACD,aAAa,EAAE,EAAE;4BACjB,mBAAmB,EAAE,CAAC;4BACtB,qBAAqB,EAAE,EAAE;yBAC1B;qBACF;iBACF;gBACD,sBAAsB,EAAE,KAAK;gBAC7B,MAAM,EAAE,OAAO;gBACf,cAAc,EAAE;oBACd,eAAe,EAAE;wBACf;4BACE,IAAI,EAAE,mCAAmC;4BACzC,SAAS,EAAE,eAAe;4BAC1B,SAAS,EAAE,IAAI;4BACf,GAAG,EAAE,SAAS;4BACd,UAAU,EACR,gIAAgI;yBACnI;qBACF;iBACF;gBACD,IAAI,EAAE,UAAU;aACjB;YACD,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,sCAAsC;SACjD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,4BAA4B,CAChE,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2CAA2C,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"locationsValidateClusterCreateRequestSample.js","sourceRoot":"","sources":["../../samples-dev/locationsValidateCluster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C,SAAS,CAAC,4BAA4B,CAChE,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2CAA2C,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { HDInsightManagementClient } from "@azure/arm-hdinsight";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Lists all of the available HDInsight REST API operations.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists all of the available HDInsight REST API operations.
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json
|
|
20
|
+
*/
|
|
21
|
+
function listsAllOfTheAvailableOperations() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new HDInsightManagementClient(credential, subscriptionId);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
43
|
+
finally {
|
|
44
|
+
try {
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
46
|
+
}
|
|
47
|
+
finally { if (e_1) throw e_1.error; }
|
|
48
|
+
}
|
|
49
|
+
console.log(resArray);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
listsAllOfTheAvailableOperations();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
58
|
+
//# sourceMappingURL=operationsListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACxC,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Approve or reject a private endpoint connection manually.
|
|
17
17
|
*
|
|
18
18
|
* @summary Approve or reject a private endpoint connection manually.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function approveAPrivateEndpointConnectionManually() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes the specific private endpoint connection.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes the specific private endpoint connection.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function deleteSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the specific private endpoint connection.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the specific private endpoint connection.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function getSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the private endpoint connections for a HDInsight cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the private endpoint connections for a HDInsight cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json
|
|
20
20
|
*/
|
|
21
21
|
function getAllPrivateEndpointConnectionsForASpecificHdInsightCluster() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the specific private link resource.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the specific private link resource.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json
|
|
20
20
|
*/
|
|
21
21
|
function getSpecificPrivateLinkResourceInASpecificHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the private link resources in a HDInsight cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the private link resources in a HDInsight cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json
|
|
20
20
|
*/
|
|
21
21
|
function getAllPrivateLinkResourcesInASpecificHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes a specified persisted script action of the cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes a specified persisted script action of the cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json
|
|
20
20
|
*/
|
|
21
21
|
function deleteAScriptActionOnHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the async operation status of execution operation.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the async operation status of execution operation.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function getsTheAsyncExecutionOperationStatus() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the script execution detail for the given script execution ID.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the script execution detail for the given script execution ID.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json
|
|
20
20
|
*/
|
|
21
21
|
function getScriptExecutionHistoryByScriptId() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all the persisted script actions for the specified cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all the persisted script actions for the specified cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json
|
|
20
20
|
*/
|
|
21
21
|
function listAllPersistedScriptActionsForTheGivenCluster() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all scripts' execution history for the specified cluster.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all scripts' execution history for the specified cluster.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json
|
|
20
20
|
*/
|
|
21
21
|
function getScriptExecutionHistoryList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Promotes the specified ad-hoc script execution to a persisted script.
|
|
17
17
|
*
|
|
18
18
|
* @summary Promotes the specified ad-hoc script execution to a persisted script.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json
|
|
20
20
|
*/
|
|
21
21
|
function promoteAScriptActionOnHdInsightCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the async operation status.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the async operation status.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function getsTheAsyncOperationStatusOfRestartingHost() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the HDInsight clusters hosts
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the HDInsight clusters hosts
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json
|
|
20
20
|
*/
|
|
21
21
|
function getAllHostsInTheCluster() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Restarts the specified HDInsight cluster hosts.
|
|
17
17
|
*
|
|
18
18
|
* @summary Restarts the specified HDInsight cluster hosts.
|
|
19
|
-
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/
|
|
19
|
+
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json
|
|
20
20
|
*/
|
|
21
21
|
function restartsTheSpecifiedHdInsightClusterHosts() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import {
|
|
3
|
+
import { Applications, Clusters, Configurations, Extensions, Locations, Operations, PrivateEndpointConnections, PrivateLinkResources, ScriptActions, ScriptExecutionHistory, VirtualMachines } from "./operationsInterfaces";
|
|
4
4
|
import { HDInsightManagementClientOptionalParams } from "./models";
|
|
5
5
|
export declare class HDInsightManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -16,16 +16,16 @@ export declare class HDInsightManagementClient extends coreClient.ServiceClient
|
|
|
16
16
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: HDInsightManagementClientOptionalParams);
|
|
17
17
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
18
18
|
private addCustomApiVersionPolicy;
|
|
19
|
-
clusters: Clusters;
|
|
20
19
|
applications: Applications;
|
|
21
|
-
|
|
20
|
+
clusters: Clusters;
|
|
22
21
|
configurations: Configurations;
|
|
23
22
|
extensions: Extensions;
|
|
24
|
-
|
|
25
|
-
scriptExecutionHistory: ScriptExecutionHistory;
|
|
23
|
+
locations: Locations;
|
|
26
24
|
operations: Operations;
|
|
27
|
-
virtualMachines: VirtualMachines;
|
|
28
25
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
29
26
|
privateLinkResources: PrivateLinkResources;
|
|
27
|
+
scriptActions: ScriptActions;
|
|
28
|
+
scriptExecutionHistory: ScriptExecutionHistory;
|
|
29
|
+
virtualMachines: VirtualMachines;
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=hDInsightManagementClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hDInsightManagementClient.d.ts","sourceRoot":"","sources":["../../src/hDInsightManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAc7C,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"hDInsightManagementClient.d.ts","sourceRoot":"","sources":["../../src/hDInsightManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAc7C,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAU,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uCAAuC,EAAE,MAAM,UAAU,CAAC;AAEnE,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IAsFnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC;IACvB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC;IAC7B,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import {
|
|
11
|
+
import { ApplicationsImpl, ClustersImpl, ConfigurationsImpl, ExtensionsImpl, LocationsImpl, OperationsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ScriptActionsImpl, ScriptExecutionHistoryImpl, VirtualMachinesImpl } from "./operations";
|
|
12
12
|
export class HDInsightManagementClient extends coreClient.ServiceClient {
|
|
13
13
|
/**
|
|
14
14
|
* Initializes a new instance of the HDInsightManagementClient class.
|
|
@@ -33,7 +33,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {
|
|
|
33
33
|
requestContentType: "application/json; charset=utf-8",
|
|
34
34
|
credential: credentials
|
|
35
35
|
};
|
|
36
|
-
const packageDetails = `azsdk-js-arm-hdinsight/1.
|
|
36
|
+
const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.1`;
|
|
37
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
39
|
: `${packageDetails}`;
|
|
@@ -66,18 +66,18 @@ export class HDInsightManagementClient extends coreClient.ServiceClient {
|
|
|
66
66
|
this.subscriptionId = subscriptionId;
|
|
67
67
|
// Assigning values to Constant parameters
|
|
68
68
|
this.$host = options.$host || "https://management.azure.com";
|
|
69
|
-
this.apiVersion = options.apiVersion || "
|
|
70
|
-
this.clusters = new ClustersImpl(this);
|
|
69
|
+
this.apiVersion = options.apiVersion || "2023-04-15-preview";
|
|
71
70
|
this.applications = new ApplicationsImpl(this);
|
|
72
|
-
this.
|
|
71
|
+
this.clusters = new ClustersImpl(this);
|
|
73
72
|
this.configurations = new ConfigurationsImpl(this);
|
|
74
73
|
this.extensions = new ExtensionsImpl(this);
|
|
75
|
-
this.
|
|
76
|
-
this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this);
|
|
74
|
+
this.locations = new LocationsImpl(this);
|
|
77
75
|
this.operations = new OperationsImpl(this);
|
|
78
|
-
this.virtualMachines = new VirtualMachinesImpl(this);
|
|
79
76
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
80
77
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
78
|
+
this.scriptActions = new ScriptActionsImpl(this);
|
|
79
|
+
this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this);
|
|
80
|
+
this.virtualMachines = new VirtualMachinesImpl(this);
|
|
81
81
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
82
82
|
}
|
|
83
83
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hDInsightManagementClient.js","sourceRoot":"","sources":["../../src/hDInsightManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"hDInsightManagementClient.js","sourceRoot":"","sources":["../../src/hDInsightManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACx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CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAaF"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist-esm/src/lroImpl.js
CHANGED
|
@@ -5,25 +5,17 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
sendPollRequest(path) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
export function createLroSpec(inputs) {
|
|
10
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
11
|
+
return {
|
|
12
|
+
requestMethod: spec.httpMethod,
|
|
13
|
+
requestPath: spec.path,
|
|
14
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
|
+
sendPollRequest: (path, options) => {
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
28
20
|
}
|
|
29
21
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|