From f4e20a93479003957a1a1121ecf4fa249e222497 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:14:44 +0800 Subject: [PATCH] hdinsights release (#26421) https://github.com/Azure/sdk-release-request/issues/4294 Recording: https://github.com/Azure/azure-sdk-assets/tree/js/hdinsight/arm-hdinsight_cb48a84e4f --- common/config/rush/pnpm-lock.yaml | 70 +- sdk/hdinsight/arm-hdinsight/CHANGELOG.md | 16 +- sdk/hdinsight/arm-hdinsight/README.md | 2 +- sdk/hdinsight/arm-hdinsight/_meta.json | 10 +- sdk/hdinsight/arm-hdinsight/assets.json | 2 +- sdk/hdinsight/arm-hdinsight/package.json | 12 +- .../arm-hdinsight/review/arm-hdinsight.api.md | 45 +- .../samples-dev/applicationsCreateSample.ts | 2 +- .../samples-dev/applicationsDeleteSample.ts | 2 +- ...tionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../samples-dev/applicationsGetSample.ts | 4 +- .../applicationsListByClusterSample.ts | 2 +- .../samples-dev/clustersCreateSample.ts | 39 +- .../samples-dev/clustersDeleteSample.ts | 2 +- .../clustersExecuteScriptActionsSample.ts | 2 +- ...stersGetAzureAsyncOperationStatusSample.ts | 2 +- .../clustersGetGatewaySettingsSample.ts | 2 +- .../samples-dev/clustersGetSample.ts | 4 +- .../clustersListByResourceGroupSample.ts | 2 +- .../samples-dev/clustersListSample.ts | 2 +- .../samples-dev/clustersResizeSample.ts | 2 +- .../clustersRotateDiskEncryptionKeySample.ts | 2 +- ...stersUpdateAutoScaleConfigurationSample.ts | 6 +- .../clustersUpdateGatewaySettingsSample.ts | 2 +- ...clustersUpdateIdentityCertificateSample.ts | 2 +- .../samples-dev/clustersUpdateSample.ts | 2 +- .../samples-dev/configurationsGetSample.ts | 2 +- .../samples-dev/configurationsListSample.ts | 2 +- .../samples-dev/configurationsUpdateSample.ts | 4 +- .../samples-dev/extensionsCreateSample.ts | 2 +- .../samples-dev/extensionsDeleteSample.ts | 2 +- .../extensionsDisableAzureMonitorSample.ts | 2 +- .../extensionsDisableMonitoringSample.ts | 2 +- .../extensionsEnableAzureMonitorSample.ts | 2 +- .../extensionsEnableMonitoringSample.ts | 2 +- ...sionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../extensionsGetAzureMonitorStatusSample.ts | 2 +- .../extensionsGetMonitoringStatusSample.ts | 2 +- .../samples-dev/extensionsGetSample.ts | 2 +- .../locationsCheckNameAvailabilitySample.ts | 2 +- ...tionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../locationsGetCapabilitiesSample.ts | 2 +- .../locationsListBillingSpecsSample.ts | 2 +- .../samples-dev/locationsListUsagesSample.ts | 2 +- ...tionsValidateClusterCreateRequestSample.ts | 3 +- .../samples-dev/operationsListSample.ts | 40 + ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- ...eEndpointConnectionsListByClusterSample.ts | 2 +- .../privateLinkResourcesGetSample.ts | 2 +- ...privateLinkResourcesListByClusterSample.ts | 2 +- .../samples-dev/scriptActionsDeleteSample.ts | 2 +- ...sGetExecutionAsyncOperationStatusSample.ts | 2 +- .../scriptActionsGetExecutionDetailSample.ts | 2 +- .../scriptActionsListByClusterSample.ts | 2 +- ...riptExecutionHistoryListByClusterSample.ts | 2 +- .../scriptExecutionHistoryPromoteSample.ts | 2 +- ...alMachinesGetAsyncOperationStatusSample.ts | 2 +- .../virtualMachinesListHostsSample.ts | 2 +- .../virtualMachinesRestartHostsSample.ts | 2 +- .../{v1 => v1-beta}/javascript/README.md | 220 +- .../javascript/applicationsCreateSample.js | 2 +- .../javascript/applicationsDeleteSample.js | 2 +- ...tionsGetAzureAsyncOperationStatusSample.js | 2 +- .../javascript/applicationsGetSample.js | 4 +- .../applicationsListByClusterSample.js | 2 +- .../javascript/clustersCreateSample.js | 39 +- .../javascript/clustersDeleteSample.js | 2 +- .../clustersExecuteScriptActionsSample.js | 2 +- ...stersGetAzureAsyncOperationStatusSample.js | 2 +- .../clustersGetGatewaySettingsSample.js | 2 +- .../javascript/clustersGetSample.js | 4 +- .../clustersListByResourceGroupSample.js | 2 +- .../javascript/clustersListSample.js | 2 +- .../javascript/clustersResizeSample.js | 2 +- .../clustersRotateDiskEncryptionKeySample.js | 2 +- ...stersUpdateAutoScaleConfigurationSample.js | 6 +- .../clustersUpdateGatewaySettingsSample.js | 2 +- ...clustersUpdateIdentityCertificateSample.js | 2 +- .../javascript/clustersUpdateSample.js | 2 +- .../javascript/configurationsGetSample.js | 2 +- .../javascript/configurationsListSample.js | 2 +- .../javascript/configurationsUpdateSample.js | 4 +- .../javascript/extensionsCreateSample.js | 2 +- .../javascript/extensionsDeleteSample.js | 2 +- .../extensionsDisableAzureMonitorSample.js | 2 +- .../extensionsDisableMonitoringSample.js | 2 +- .../extensionsEnableAzureMonitorSample.js | 2 +- .../extensionsEnableMonitoringSample.js | 2 +- ...sionsGetAzureAsyncOperationStatusSample.js | 2 +- .../extensionsGetAzureMonitorStatusSample.js | 2 +- .../extensionsGetMonitoringStatusSample.js | 2 +- .../javascript/extensionsGetSample.js | 2 +- .../locationsCheckNameAvailabilitySample.js | 2 +- ...tionsGetAzureAsyncOperationStatusSample.js | 2 +- .../locationsGetCapabilitiesSample.js | 2 +- .../locationsListBillingSpecsSample.js | 2 +- .../javascript/locationsListUsagesSample.js | 2 +- ...tionsValidateClusterCreateRequestSample.js | 3 +- .../javascript/operationsListSample.js | 37 + .../{v1 => v1-beta}/javascript/package.json | 6 +- ...EndpointConnectionsCreateOrUpdateSample.js | 2 +- .../privateEndpointConnectionsDeleteSample.js | 2 +- .../privateEndpointConnectionsGetSample.js | 2 +- ...eEndpointConnectionsListByClusterSample.js | 2 +- .../privateLinkResourcesGetSample.js | 2 +- ...privateLinkResourcesListByClusterSample.js | 2 +- .../{v1 => v1-beta}/javascript/sample.env | 0 .../javascript/scriptActionsDeleteSample.js | 2 +- ...sGetExecutionAsyncOperationStatusSample.js | 2 +- .../scriptActionsGetExecutionDetailSample.js | 2 +- .../scriptActionsListByClusterSample.js | 2 +- ...riptExecutionHistoryListByClusterSample.js | 2 +- .../scriptExecutionHistoryPromoteSample.js | 2 +- ...alMachinesGetAsyncOperationStatusSample.js | 2 +- .../virtualMachinesListHostsSample.js | 2 +- .../virtualMachinesRestartHostsSample.js | 2 +- .../{v1 => v1-beta}/typescript/README.md | 220 +- .../{v1 => v1-beta}/typescript/package.json | 6 +- .../{v1 => v1-beta}/typescript/sample.env | 0 .../src/applicationsCreateSample.ts | 2 +- .../src/applicationsDeleteSample.ts | 2 +- ...tionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../typescript/src/applicationsGetSample.ts | 4 +- .../src/applicationsListByClusterSample.ts | 2 +- .../typescript/src/clustersCreateSample.ts | 39 +- .../typescript/src/clustersDeleteSample.ts | 2 +- .../src/clustersExecuteScriptActionsSample.ts | 2 +- ...stersGetAzureAsyncOperationStatusSample.ts | 2 +- .../src/clustersGetGatewaySettingsSample.ts | 2 +- .../typescript/src/clustersGetSample.ts | 4 +- .../src/clustersListByResourceGroupSample.ts | 2 +- .../typescript/src/clustersListSample.ts | 2 +- .../typescript/src/clustersResizeSample.ts | 2 +- .../clustersRotateDiskEncryptionKeySample.ts | 2 +- ...stersUpdateAutoScaleConfigurationSample.ts | 6 +- .../clustersUpdateGatewaySettingsSample.ts | 2 +- ...clustersUpdateIdentityCertificateSample.ts | 2 +- .../typescript/src/clustersUpdateSample.ts | 2 +- .../typescript/src/configurationsGetSample.ts | 2 +- .../src/configurationsListSample.ts | 2 +- .../src/configurationsUpdateSample.ts | 4 +- .../typescript/src/extensionsCreateSample.ts | 2 +- .../typescript/src/extensionsDeleteSample.ts | 2 +- .../extensionsDisableAzureMonitorSample.ts | 2 +- .../src/extensionsDisableMonitoringSample.ts | 2 +- .../src/extensionsEnableAzureMonitorSample.ts | 2 +- .../src/extensionsEnableMonitoringSample.ts | 2 +- ...sionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../extensionsGetAzureMonitorStatusSample.ts | 2 +- .../extensionsGetMonitoringStatusSample.ts | 2 +- .../typescript/src/extensionsGetSample.ts | 2 +- .../locationsCheckNameAvailabilitySample.ts | 2 +- ...tionsGetAzureAsyncOperationStatusSample.ts | 2 +- .../src/locationsGetCapabilitiesSample.ts | 2 +- .../src/locationsListBillingSpecsSample.ts | 2 +- .../src/locationsListUsagesSample.ts | 2 +- ...tionsValidateClusterCreateRequestSample.ts | 3 +- .../typescript/src/operationsListSample.ts | 40 + ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- ...eEndpointConnectionsListByClusterSample.ts | 2 +- .../src/privateLinkResourcesGetSample.ts | 2 +- ...privateLinkResourcesListByClusterSample.ts | 2 +- .../src/scriptActionsDeleteSample.ts | 2 +- ...sGetExecutionAsyncOperationStatusSample.ts | 2 +- .../scriptActionsGetExecutionDetailSample.ts | 2 +- .../src/scriptActionsListByClusterSample.ts | 2 +- ...riptExecutionHistoryListByClusterSample.ts | 2 +- .../scriptExecutionHistoryPromoteSample.ts | 2 +- ...alMachinesGetAsyncOperationStatusSample.ts | 2 +- .../src/virtualMachinesListHostsSample.ts | 2 +- .../src/virtualMachinesRestartHostsSample.ts | 2 +- .../{v1 => v1-beta}/typescript/tsconfig.json | 0 .../src/hDInsightManagementClient.ts | 48 +- sdk/hdinsight/arm-hdinsight/src/lroImpl.ts | 54 +- .../arm-hdinsight/src/models/index.ts | 1528 +++++------ .../arm-hdinsight/src/models/mappers.ts | 2294 +++++++++-------- .../arm-hdinsight/src/models/parameters.ts | 234 +- .../src/operations/applications.ts | 67 +- .../arm-hdinsight/src/operations/clusters.ts | 205 +- .../src/operations/configurations.ts | 32 +- .../src/operations/extensions.ts | 146 +- .../arm-hdinsight/src/operations/index.ts | 10 +- .../arm-hdinsight/src/operations/locations.ts | 8 +- .../operations/privateEndpointConnections.ts | 55 +- .../src/operations/virtualMachines.ts | 30 +- .../src/operationsInterfaces/applications.ts | 8 +- .../src/operationsInterfaces/clusters.ts | 20 +- .../operationsInterfaces/configurations.ts | 4 +- .../src/operationsInterfaces/extensions.ts | 14 +- .../src/operationsInterfaces/index.ts | 10 +- .../privateEndpointConnections.ts | 8 +- .../operationsInterfaces/virtualMachines.ts | 4 +- .../test/hdinsights_operations_test.spec.ts | 77 + .../arm-hdinsight/test/sampleTest.ts | 43 - 198 files changed, 3171 insertions(+), 2916 deletions(-) create mode 100644 sdk/hdinsight/arm-hdinsight/samples-dev/operationsListSample.ts rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/README.md (58%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/applicationsCreateSample.js (96%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/applicationsDeleteSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/applicationsGetAzureAsyncOperationStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/applicationsGetSample.js (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/applicationsListByClusterSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersCreateSample.js (95%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersDeleteSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersExecuteScriptActionsSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersGetAzureAsyncOperationStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersGetGatewaySettingsSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersGetSample.js (91%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersListByResourceGroupSample.js (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersListSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersResizeSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersRotateDiskEncryptionKeySample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersUpdateAutoScaleConfigurationSample.js (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersUpdateGatewaySettingsSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersUpdateIdentityCertificateSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/clustersUpdateSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/configurationsGetSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/configurationsListSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/configurationsUpdateSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsCreateSample.js (95%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsDeleteSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsDisableAzureMonitorSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsDisableMonitoringSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsEnableAzureMonitorSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsEnableMonitoringSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsGetAzureAsyncOperationStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsGetAzureMonitorStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsGetMonitoringStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/extensionsGetSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsCheckNameAvailabilitySample.js (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsGetAzureAsyncOperationStatusSample.js (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsGetCapabilitiesSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsListBillingSpecsSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsListUsagesSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/locationsValidateClusterCreateRequestSample.js (96%) create mode 100644 sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/operationsListSample.js rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/package.json (81%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateEndpointConnectionsCreateOrUpdateSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateEndpointConnectionsDeleteSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateEndpointConnectionsGetSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateEndpointConnectionsListByClusterSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateLinkResourcesGetSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/privateLinkResourcesListByClusterSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/sample.env (100%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptActionsDeleteSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptActionsGetExecutionDetailSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptActionsListByClusterSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptExecutionHistoryListByClusterSample.js (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/scriptExecutionHistoryPromoteSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/virtualMachinesGetAsyncOperationStatusSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/virtualMachinesListHostsSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/javascript/virtualMachinesRestartHostsSample.js (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/README.md (58%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/package.json (84%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/sample.env (100%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/applicationsCreateSample.ts (96%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/applicationsDeleteSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/applicationsGetSample.ts (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/applicationsListByClusterSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersCreateSample.ts (95%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersDeleteSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersExecuteScriptActionsSample.ts (95%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersGetGatewaySettingsSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersGetSample.ts (91%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersListByResourceGroupSample.ts (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersListSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersResizeSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersRotateDiskEncryptionKeySample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersUpdateGatewaySettingsSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersUpdateIdentityCertificateSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/clustersUpdateSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/configurationsGetSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/configurationsListSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/configurationsUpdateSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsCreateSample.ts (95%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsDeleteSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsDisableAzureMonitorSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsDisableMonitoringSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsEnableAzureMonitorSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsEnableMonitoringSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsGetAzureMonitorStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsGetMonitoringStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/extensionsGetSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsCheckNameAvailabilitySample.ts (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts (92%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsGetCapabilitiesSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsListBillingSpecsSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsListUsagesSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/locationsValidateClusterCreateRequestSample.ts (96%) create mode 100644 sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/operationsListSample.ts rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateEndpointConnectionsDeleteSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateEndpointConnectionsGetSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateEndpointConnectionsListByClusterSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateLinkResourcesGetSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/privateLinkResourcesListByClusterSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptActionsDeleteSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptActionsGetExecutionDetailSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptActionsListByClusterSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptExecutionHistoryListByClusterSample.ts (94%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/scriptExecutionHistoryPromoteSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/virtualMachinesListHostsSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/src/virtualMachinesRestartHostsSample.ts (93%) rename sdk/hdinsight/arm-hdinsight/samples/{v1 => v1-beta}/typescript/tsconfig.json (100%) create mode 100644 sdk/hdinsight/arm-hdinsight/test/hdinsights_operations_test.spec.ts delete mode 100644 sdk/hdinsight/arm-hdinsight/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 8274875e136..89e1bfed7ab 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2918,7 +2918,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/chai-as-promised/7.1.5: @@ -2940,7 +2940,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/cookie/0.4.1: @@ -2950,7 +2950,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/debug/4.1.8: @@ -2962,7 +2962,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/eslint/8.4.10: @@ -2983,7 +2983,7 @@ packages: /@types/express-serve-static-core/4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -3001,13 +3001,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/http-errors/2.0.1: @@ -3024,7 +3024,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/json-schema/7.0.12: @@ -3038,13 +3038,13 @@ packages: /@types/jsonwebtoken/9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/linkify-it/3.0.2: @@ -3103,20 +3103,20 @@ packages: /@types/mysql/2.15.19: resolution: {integrity: sha512-wSRg2QZv14CWcZXkgdvHbbV2ACufNy5EgI8mBBxnJIptchv7DBy/h53VMa2jDhyo0C9MO4iowE6z9vF8Ja1DkQ==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 form-data: 3.0.1 dev: false /@types/node-fetch/2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 form-data: 3.0.1 dev: false @@ -3149,7 +3149,7 @@ packages: /@types/pg/8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3177,7 +3177,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/resolve/1.20.2: @@ -3200,7 +3200,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/serve-static/1.15.2: @@ -3208,7 +3208,7 @@ packages: dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/shimmer/1.0.2: @@ -3234,13 +3234,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/tough-cookie/4.0.2: @@ -3254,7 +3254,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/underscore/1.11.6: @@ -3272,19 +3272,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/ws/8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false /@types/yargs-parser/21.0.0: @@ -3301,7 +3301,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.54 + '@types/node': 16.18.39 dev: false optional: true @@ -4567,7 +4567,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -4746,7 +4746,7 @@ packages: cosmiconfig: 7.1.0 debug: 4.3.4 deps-regex: 0.1.4 - ignore: 5.1.9 + ignore: 5.2.4 is-core-module: 2.12.1 js-yaml: 3.14.1 json5: 2.2.3 @@ -4778,7 +4778,7 @@ packages: '@pnpm/crypto.base32-hash': 1.0.1 '@pnpm/types': 8.9.0 encode-registry: 3.0.0 - semver: 7.3.8 + semver: 7.5.4 dev: false /deps-regex/0.1.4: @@ -4949,7 +4949,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.54 + '@types/node': 16.18.39 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5935,7 +5935,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -6353,7 +6353,7 @@ packages: cli-cursor: 3.1.0 cli-width: 3.0.0 external-editor: 3.1.0 - figures: 3.0.0 + figures: 3.2.0 lodash: 4.17.21 mute-stream: 0.0.8 run-async: 2.4.1 @@ -8817,7 +8817,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.54 + '@types/node': 16.18.39 long: 5.2.3 dev: false @@ -14133,7 +14133,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-ADZoTglLtVaIbZ8YfISjiuxydBs4wH35qccd20jpE9DUSDG9ILcDyR0FMMmA2vdaG8w1U5lPmTeX99Gat6qW9w==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-Jv8FIekfHl3zs6alhb+YASFgmSPAY4dG9JqMCOM8QFD5bdsZOL+CxbPE46JXZlzldnSPgsxFKZoIMlDqA+j+tA==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -14147,8 +14147,8 @@ packages: '@types/node': 14.18.54 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 @@ -20246,7 +20246,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-hicyFzcmDeojGMYPShRu/1QutC3O/v4RvGG+8d4gwfe+fA/s+q39ikpdm6ALIDraAZGxlMio8Q16uTmlaK5wKw==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-LVyPTRYeRdPqApVYME9x8o3UJmhVn3o+vbq1xZgXYdANtlqbUX7olOfJarXy8oa9rtAedY/NKmYNNbbGgfBZuA==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: diff --git a/sdk/hdinsight/arm-hdinsight/CHANGELOG.md b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md index 974ef6da5ba..03feadf5f97 100644 --- a/sdk/hdinsight/arm-hdinsight/CHANGELOG.md +++ b/sdk/hdinsight/arm-hdinsight/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History + +## 1.3.0-beta.1 (2023-07-06) + +**Features** -## 1.2.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface StorageAccount has a new optional parameter enableSecureChannel + ## 1.2.1 (2023-01-10) **Features** diff --git a/sdk/hdinsight/arm-hdinsight/README.md b/sdk/hdinsight/arm-hdinsight/README.md index b5a7fd6bd73..b938648d63b 100644 --- a/sdk/hdinsight/arm-hdinsight/README.md +++ b/sdk/hdinsight/arm-hdinsight/README.md @@ -6,7 +6,7 @@ HDInsight Management Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-hdinsight) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/hdinsight/arm-hdinsight/_meta.json b/sdk/hdinsight/arm-hdinsight/_meta.json index eed24985b05..23b8ecb3104 100644 --- a/sdk/hdinsight/arm-hdinsight/_meta.json +++ b/sdk/hdinsight/arm-hdinsight/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1dd79c416cdccde274113ec03b92b75069fad464", - "readme": "specification\\hdinsight\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hdinsight\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.6.20221226.1 --generate-sample=true", + "commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33", + "readme": "specification/hdinsight/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hdinsight\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.6.20221226.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.5" } \ No newline at end of file diff --git a/sdk/hdinsight/arm-hdinsight/assets.json b/sdk/hdinsight/arm-hdinsight/assets.json index 23ec3168ed6..bdb421f8518 100644 --- a/sdk/hdinsight/arm-hdinsight/assets.json +++ b/sdk/hdinsight/arm-hdinsight/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/hdinsight/arm-hdinsight", - "Tag": "js/hdinsight/arm-hdinsight_e0d77e19d3" + "Tag": "js/hdinsight/arm-hdinsight_cb48a84e4f" } diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index 9f6132b38fd..1147aacd0f8 100644 --- a/sdk/hdinsight/arm-hdinsight/package.json +++ b/sdk/hdinsight/arm-hdinsight/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HDInsightManagementClient.", - "version": "1.2.2", + "version": "1.3.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.3", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -120,4 +120,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md index d7e40b01da1..ff76073f22f 100644 --- a/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md +++ b/sdk/hdinsight/arm-hdinsight/review/arm-hdinsight.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AaddsResourceDetails { @@ -74,9 +74,9 @@ export interface ApplicationProperties { // @public export interface Applications { - beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise, ApplicationsCreateResponse>>; + beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise, ApplicationsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -396,21 +396,21 @@ export interface ClusterResizeParameters { // @public export interface Clusters { - beginCreate(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise, ClustersCreateResponse>>; + beginCreate(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise, ClustersCreateResponse>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; - beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise, void>>; + beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise, void>>; beginExecuteScriptActionsAndWait(resourceGroupName: string, clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams): Promise; - beginResize(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise, void>>; + beginResize(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise, void>>; beginResizeAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams): Promise; - beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise, void>>; + beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise, void>>; beginRotateDiskEncryptionKeyAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams): Promise; - beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise, void>>; + beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise, void>>; beginUpdateAutoScaleConfigurationAndWait(resourceGroupName: string, clusterName: string, roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams): Promise; - beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise, void>>; + beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise, void>>; beginUpdateGatewaySettingsAndWait(resourceGroupName: string, clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams): Promise; - beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise, void>>; + beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise, void>>; beginUpdateIdentityCertificateAndWait(resourceGroupName: string, clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: ClustersGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -542,7 +542,7 @@ export interface ComputeProfile { export interface Configurations { beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string; - }, options?: ConfigurationsUpdateOptionalParams): Promise, void>>; + }, options?: ConfigurationsUpdateOptionalParams): Promise, void>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string; }, options?: ConfigurationsUpdateOptionalParams): Promise; @@ -659,17 +659,17 @@ export interface Extension { // @public export interface Extensions { - beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise, void>>; + beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise, void>>; beginCreateAndWait(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams): Promise; - beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise, void>>; + beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise, void>>; beginDisableAzureMonitorAndWait(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams): Promise; - beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise, void>>; + beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise, void>>; beginDisableMonitoringAndWait(resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams): Promise; - beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise, void>>; + beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise, void>>; beginEnableAzureMonitorAndWait(resourceGroupName: string, clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams): Promise; - beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise, void>>; + beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise, void>>; beginEnableMonitoringAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, extensionName: string, options?: ExtensionsGetOptionalParams): Promise; getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: ExtensionsGetAzureAsyncOperationStatusOptionalParams): Promise; @@ -1140,9 +1140,9 @@ export type PrivateEndpointConnectionProvisioningState = string; // @public export interface PrivateEndpointConnections { - beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListByClusterOptionalParams): PagedAsyncIterableIterator; @@ -1466,6 +1466,7 @@ export interface SshPublicKey { // @public export interface StorageAccount { container?: string; + enableSecureChannel?: boolean; fileshare?: string; fileSystem?: string; isDefault?: boolean; @@ -1561,7 +1562,7 @@ export interface VersionSpec { // @public export interface VirtualMachines { - beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise, void>>; + beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise, void>>; beginRestartHostsAndWait(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise; getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: VirtualMachinesGetAsyncOperationStatusOptionalParams): Promise; listHosts(resourceGroupName: string, clusterName: string, options?: VirtualMachinesListHostsOptionalParams): Promise; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsCreateSample.ts index e39c2e799bb..5b3218853a3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates applications for the HDInsight cluster. * * @summary Creates applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json */ async function createApplication() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsDeleteSample.ts index f1854e888fe..81022fd4d74 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified application on the HDInsight cluster. * * @summary Deletes the specified application on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json */ async function deleteApplicationFromHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetAzureAsyncOperationStatusSample.ts index acc157eacf1..48ccbadffce 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json */ async function getTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetSample.ts index 3dcbac458c3..810b68d5718 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationInProgress.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json */ async function getApplicationOnHdInsightClusterCreationInProgress() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function getApplicationOnHdInsightClusterCreationInProgress() { * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreated.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreated.json */ async function getApplicationOnHdInsightClusterSuccessfullyCreated() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsListByClusterSample.ts index ac01cf719da..c9d86330139 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/applicationsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications for the HDInsight cluster. * * @summary Lists all of the applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllApplications.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json */ async function getAllApplicationsForAnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersCreateSample.ts index bae51421989..38fc94827c5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAutoscaleConfig.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json */ async function createHdInsightClusterWithAutoscaleConfiguration() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -117,6 +117,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { { name: "mystorage.blob.core.windows.net", container: "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -139,7 +140,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopAdlsGen2.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopAdlsGen2.json */ async function createHadoopClusterWithAzureDataLakeStorageGen2() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -203,6 +204,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { storageaccounts: [ { name: "mystorage.dfs.core.windows.net", + enableSecureChannel: true, fileSystem: "default", isDefault: true, key: "storagekey" @@ -227,7 +229,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPassword.json */ async function createHadoopOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -292,6 +294,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -315,7 +318,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPublicKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPublicKey.json */ async function createHadoopOnLinuxClusterWithSshPublicKey() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -380,6 +383,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -403,7 +407,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateKafkaClusterWithKafkaRestProxy.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json */ async function createKafkaClusterWithKafkaRestProxy() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -484,6 +488,7 @@ async function createKafkaClusterWithKafkaRestProxy() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -506,7 +511,7 @@ async function createKafkaClusterWithKafkaRestProxy() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSecureHadoop.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSecureHadoop.json */ async function createSecureHadoopCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -604,6 +609,7 @@ async function createSecureHadoopCluster() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -627,7 +633,7 @@ async function createSecureHadoopCluster() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxSparkSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxSparkSshPassword.json */ async function createSparkOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -681,6 +687,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storageapikey*" } @@ -704,7 +711,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithTLS12.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithTLS12.json */ async function createClusterWithTls12() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -767,6 +774,7 @@ async function createClusterWithTls12() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -789,7 +797,7 @@ async function createClusterWithTls12() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAvailabilityZones.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json */ async function createClusterWithAvailabilityZones() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -897,6 +905,7 @@ async function createClusterWithAvailabilityZones() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -919,7 +928,7 @@ async function createClusterWithAvailabilityZones() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithComputeIsolationProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json */ async function createClusterWithComputeIsolationProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -976,6 +985,7 @@ async function createClusterWithComputeIsolationProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -997,7 +1007,7 @@ async function createClusterWithComputeIsolationProperties() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionAtHost.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json */ async function createClusterWithEncryptionAtHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1060,6 +1070,7 @@ async function createClusterWithEncryptionAtHost() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -1082,7 +1093,7 @@ async function createClusterWithEncryptionAtHost() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionInTransit.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json */ async function createClusterWithEncryptionInTransit() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1145,6 +1156,7 @@ async function createClusterWithEncryptionInTransit() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -1167,7 +1179,7 @@ async function createClusterWithEncryptionInTransit() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithCustomNetworkProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json */ async function createClusterWithNetworkProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -1236,6 +1248,7 @@ async function createClusterWithNetworkProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersDeleteSample.ts index 33f0a5cee18..1f8a9053234 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified HDInsight cluster. * * @summary Deletes the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json */ async function deleteHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersExecuteScriptActionsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersExecuteScriptActionsSample.ts index f2b9adad1dd..def3b47d86c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersExecuteScriptActionsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersExecuteScriptActionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Executes script actions on the specified HDInsight cluster. * * @summary Executes script actions on the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PostExecuteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json */ async function executeScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetAzureAsyncOperationStatusSample.ts index f9d50e557e0..1459c10fb87 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The the async operation status. * * @summary The the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterCreatingAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json */ async function getAsyncOperationStatusOfCreatingCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetGatewaySettingsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetGatewaySettingsSample.ts index 265286a55f3..a70c5905602 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetGatewaySettingsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetGatewaySettingsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the gateway settings for the specified cluster. * * @summary Gets the gateway settings for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_GetGatewaySettings.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_GetGatewaySettings.json */ async function getHttpSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetSample.ts index d822bc964ff..69a9a2b8930 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopCluster.json */ async function getHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function getHadoopOnLinuxCluster() { * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxSparkCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxSparkCluster.json */ async function getSparkOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListByResourceGroupSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListByResourceGroupSample.ts index a575759c64e..f284432e9d8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListByResourceGroupSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the HDInsight clusters in a resource group. * * @summary Lists the HDInsight clusters in a resource group. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClustersInResourceGroup.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClustersInResourceGroup.json */ async function getAllHadoopOnLinuxClustersInAResourceGroup() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListSample.ts index 9b7441e142b..878343944d5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the HDInsight clusters under the subscription. * * @summary Lists all the HDInsight clusters under the subscription. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClusters.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClusters.json */ async function getAllHadoopOnLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersResizeSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersResizeSample.ts index 88765810529..128dffdda8d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersResizeSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersResizeSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Resizes the specified HDInsight cluster to the specified size. * * @summary Resizes the specified HDInsight cluster to the specified size. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ResizeLinuxHadoopCluster.json */ async function resizeTheWorkerNodesForAHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersRotateDiskEncryptionKeySample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersRotateDiskEncryptionKeySample.ts index 33dd47b4551..c97b54d501e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersRotateDiskEncryptionKeySample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersRotateDiskEncryptionKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Rotate disk encryption key of the specified HDInsight cluster. * * @summary Rotate disk encryption key of the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json */ async function rotateDiskEncryptionKeyOfTheSpecifiedHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateAutoScaleConfigurationSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateAutoScaleConfigurationSample.ts index c2beadda90e..3c3a86818d8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateAutoScaleConfigurationSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateAutoScaleConfigurationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableClusterAutoScale.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableClusterAutoScale.json */ async function disableAutoscaleForTheHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -44,7 +44,7 @@ async function disableAutoscaleForTheHdInsightCluster() { * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -69,7 +69,7 @@ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightC * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheScheduleBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateGatewaySettingsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateGatewaySettingsSample.ts index 738f56d547b..c4dc0c5c552 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateGatewaySettingsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateGatewaySettingsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Configures the gateway settings on the specified cluster. * * @summary Configures the gateway settings on the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateIdentityCertificateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateIdentityCertificateSample.ts index b9c83ba94f1..0a57ba3773f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateIdentityCertificateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateIdentityCertificateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the cluster identity certificate. * * @summary Updates the cluster identity certificate. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json */ async function updateClusterIdentityCertificate() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateSample.ts index 9e91af35263..a7765775b04 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/clustersUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch HDInsight cluster with the specified parameters. * * @summary Patch HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PatchLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PatchLinuxHadoopCluster.json */ async function patchHdInsightLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsGetSample.ts index 6b95d194b72..654ef8774dd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. * * @summary The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_Get.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_Get.json */ async function getCoreSiteSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsListSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsListSample.ts index ef4fbf017df..284caae37a0 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsListSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all configuration information for an HDI cluster. * * @summary Gets all configuration information for an HDI cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_List.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_List.json */ async function getAllConfigurationInformation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsUpdateSample.ts index d65f7069093..45ae92826ef 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/configurationsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityDisable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityDisable.json */ async function disableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -43,7 +43,7 @@ async function disableHttpConnectivity() { * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityEnable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityEnable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsCreateSample.ts index 17a62046d2a..b91184cc7b2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an HDInsight cluster extension. * * @summary Creates an HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateExtension.json */ async function createAMonitoringExtensionOnHadoopLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDeleteSample.ts index 689842cc2a1..c34e1c861ff 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified extension for HDInsight cluster. * * @summary Deletes the specified extension for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteExtension.json */ async function deleteAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableAzureMonitorSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableAzureMonitorSample.ts index e94ee7a4ad4..a963dbb3993 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableAzureMonitorSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableAzureMonitorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables the Azure Monitor on the HDInsight cluster. * * @summary Disables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableMonitoringSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableMonitoringSample.ts index 8da36bea227..b5c01d763a7 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableMonitoringSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsDisableMonitoringSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Disables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableAzureMonitorSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableAzureMonitorSample.ts index 101a98ce9de..70de2da7132 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableAzureMonitorSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableAzureMonitorSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Enables the Azure Monitor on the HDInsight cluster. * * @summary Enables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableMonitoringSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableMonitoringSample.ts index a44f2d6027e..eb24f404875 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableMonitoringSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsEnableMonitoringSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Enables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureAsyncOperationStatusSample.ts index 9ca0b744de8..3e6eb678cb2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtensionCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureMonitorStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureMonitorStatusSample.ts index ef39106b8ef..b5405d9a637 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureMonitorStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetAzureMonitorStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of Azure Monitor on the HDInsight cluster. * * @summary Gets the status of Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterAzureMonitorStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetMonitoringStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetMonitoringStatusSample.ts index 05fbff359ba..8ed3b4d831e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetMonitoringStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetMonitoringStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterMonitoringStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetSample.ts index c68807534f2..6b3e6d71f2f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/extensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the extension properties for the specified HDInsight cluster extension. * * @summary Gets the extension properties for the specified HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json */ async function getAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsCheckNameAvailabilitySample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsCheckNameAvailabilitySample.ts index 68c038069bd..7edba73f52d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsCheckNameAvailabilitySample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the cluster name is available or not. * * @summary Check the cluster name is available or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_CheckClusterNameAvailability.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetAzureAsyncOperationStatusSample.ts index bc5e76a801e..496ed21cba2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the async operation status. * * @summary Get the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_GetAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetCapabilitiesSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetCapabilitiesSample.ts index 2795a8d8c0c..6156d880f63 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetCapabilitiesSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsGetCapabilitiesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the capabilities for the specified location. * * @summary Gets the capabilities for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightCapabilities.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json */ async function getTheSubscriptionCapabilitiesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListBillingSpecsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListBillingSpecsSample.ts index 7fba5e2537c..7fafe62a86f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListBillingSpecsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListBillingSpecsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the billingSpecs for the specified subscription and location. * * @summary Lists the billingSpecs for the specified subscription and location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ListBillingSpecs.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json */ async function getTheSubscriptionBillingSpecsForTheSpecifiedLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListUsagesSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListUsagesSample.ts index 0c224a9b668..a356ebcba72 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListUsagesSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsListUsagesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the usages for the specified location. * * @summary Lists the usages for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightUsages.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsValidateClusterCreateRequestSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsValidateClusterCreateRequestSample.ts index 89398487f69..f0092ce35fd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/locationsValidateClusterCreateRequestSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/locationsValidateClusterCreateRequestSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Validate the cluster create request spec is valid or not. * * @summary Validate the cluster create request spec is valid or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -102,6 +102,7 @@ async function getTheSubscriptionUsagesForSpecificLocation() { { name: "storagename.blob.core.windows.net", container: "contianername", + enableSecureChannel: true, isDefault: true, key: "*******", resourceId: diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/operationsListSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/operationsListSample.ts new file mode 100644 index 00000000000..01ad4f51d51 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HDInsightManagementClient } from "@azure/arm-hdinsight"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all of the available HDInsight REST API operations. + * + * @summary Lists all of the available HDInsight REST API operations. + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json + */ +async function listsAllOfTheAvailableOperations() { + const subscriptionId = + process.env["HDINSIGHT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new HDInsightManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listsAllOfTheAvailableOperations(); +} + +main().catch(console.error); diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index c7dececaa4b..e054b7d7625 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection manually. * * @summary Approve or reject a private endpoint connection manually. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json */ async function approveAPrivateEndpointConnectionManually() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsDeleteSample.ts index 3bad13ed51d..550eec4cf2b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specific private endpoint connection. * * @summary Deletes the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json */ async function deleteSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsGetSample.ts index 273e4291502..21528a03697 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specific private endpoint connection. * * @summary Gets the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json */ async function getSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsListByClusterSample.ts index 17a9953e3b1..f5d51469f80 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateEndpointConnectionsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private endpoint connections for a HDInsight cluster. * * @summary Lists the private endpoint connections for a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateEndpointConnectionsInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json */ async function getAllPrivateEndpointConnectionsForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesGetSample.ts index 952a4c79586..2b19013d3dd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specific private link resource. * * @summary Gets the specific private link resource. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateLinkResource.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json */ async function getSpecificPrivateLinkResourceInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesListByClusterSample.ts index c842be52ae8..03e35787b3b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/privateLinkResourcesListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private link resources in a HDInsight cluster. * * @summary Lists the private link resources in a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateLinkResourcesInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json */ async function getAllPrivateLinkResourcesInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsDeleteSample.ts index fd4efefde27..b577f6fbf2c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a specified persisted script action of the cluster. * * @summary Deletes a specified persisted script action of the cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json */ async function deleteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.ts index f3da5008c44..0ba03f539c0 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status of execution operation. * * @summary Gets the async operation status of execution operation. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json */ async function getsTheAsyncExecutionOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionDetailSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionDetailSample.ts index fe64a61f1cc..ae405772bbe 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionDetailSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsGetExecutionDetailSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the script execution detail for the given script execution ID. * * @summary Gets the script execution detail for the given script execution ID. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptActionById.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json */ async function getScriptExecutionHistoryByScriptId() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsListByClusterSample.ts index a27c32d8314..51f808d561f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptActionsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the persisted script actions for the specified cluster. * * @summary Lists all the persisted script actions for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json */ async function listAllPersistedScriptActionsForTheGivenCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryListByClusterSample.ts index 9e2956bb232..3a2b20d85d3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all scripts' execution history for the specified cluster. * * @summary Lists all scripts' execution history for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionHistory.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json */ async function getScriptExecutionHistoryList() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryPromoteSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryPromoteSample.ts index 85029828423..b39c10744e7 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryPromoteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/scriptExecutionHistoryPromoteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Promotes the specified ad-hoc script execution to a persisted script. * * @summary Promotes the specified ad-hoc script execution to a persisted script. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PromoteLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json */ async function promoteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesGetAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesGetAsyncOperationStatusSample.ts index 9c261358aa9..b852566c13a 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesGetAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesGetAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetRestartHostsAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json */ async function getsTheAsyncOperationStatusOfRestartingHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesListHostsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesListHostsSample.ts index 13e538eacbd..a7ed1ca2127 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesListHostsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesListHostsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the HDInsight clusters hosts * * @summary Lists the HDInsight clusters hosts - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterVirtualMachines.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json */ async function getAllHostsInTheCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesRestartHostsSample.ts b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesRestartHostsSample.ts index f748f4ff59e..c2d8d4df7d1 100644 --- a/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesRestartHostsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples-dev/virtualMachinesRestartHostsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restarts the specified HDInsight cluster hosts. * * @summary Restarts the specified HDInsight cluster hosts. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RestartVirtualMachinesOperation.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json */ async function restartsTheSpecifiedHdInsightClusterHosts() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/README.md b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/README.md similarity index 58% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/README.md rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/README.md index c2f2f239f24..05be9bb93ff 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/README.md +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/README.md @@ -1,62 +1,63 @@ -# client library samples for JavaScript +# client library samples for JavaScript (Beta) These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [applicationsCreateSample.js][applicationscreatesample] | Creates applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateApplication.json | -| [applicationsDeleteSample.js][applicationsdeletesample] | Deletes the specified application on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteApplication.json | -| [applicationsGetAzureAsyncOperationStatusSample.js][applicationsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreationAsyncOperationStatus.json | -| [applicationsGetSample.js][applicationsgetsample] | Gets properties of the specified application. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationInProgress.json | -| [applicationsListByClusterSample.js][applicationslistbyclustersample] | Lists all of the applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllApplications.json | -| [clustersCreateSample.js][clusterscreatesample] | Creates a new HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAutoscaleConfig.json | -| [clustersDeleteSample.js][clustersdeletesample] | Deletes the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteLinuxHadoopCluster.json | -| [clustersExecuteScriptActionsSample.js][clustersexecutescriptactionssample] | Executes script actions on the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PostExecuteScriptAction.json | -| [clustersGetAzureAsyncOperationStatusSample.js][clustersgetazureasyncoperationstatussample] | The the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterCreatingAsyncOperationStatus.json | -| [clustersGetGatewaySettingsSample.js][clustersgetgatewaysettingssample] | Gets the gateway settings for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_GetGatewaySettings.json | -| [clustersGetSample.js][clustersgetsample] | Gets the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopCluster.json | -| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | Lists the HDInsight clusters in a resource group. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClustersInResourceGroup.json | -| [clustersListSample.js][clusterslistsample] | Lists all the HDInsight clusters under the subscription. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClusters.json | -| [clustersResizeSample.js][clustersresizesample] | Resizes the specified HDInsight cluster to the specified size. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json | -| [clustersRotateDiskEncryptionKeySample.js][clustersrotatediskencryptionkeysample] | Rotate disk encryption key of the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json | -| [clustersUpdateAutoScaleConfigurationSample.js][clustersupdateautoscaleconfigurationsample] | Updates the Autoscale Configuration for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableClusterAutoScale.json | -| [clustersUpdateGatewaySettingsSample.js][clustersupdategatewaysettingssample] | Configures the gateway settings on the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json | -| [clustersUpdateIdentityCertificateSample.js][clustersupdateidentitycertificatesample] | Updates the cluster identity certificate. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json | -| [clustersUpdateSample.js][clustersupdatesample] | Patch HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PatchLinuxHadoopCluster.json | -| [configurationsGetSample.js][configurationsgetsample] | The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_Get.json | -| [configurationsListSample.js][configurationslistsample] | Gets all configuration information for an HDI cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_List.json | -| [configurationsUpdateSample.js][configurationsupdatesample] | Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityDisable.json | -| [extensionsCreateSample.js][extensionscreatesample] | Creates an HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateExtension.json | -| [extensionsDeleteSample.js][extensionsdeletesample] | Deletes the specified extension for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteExtension.json | -| [extensionsDisableAzureMonitorSample.js][extensionsdisableazuremonitorsample] | Disables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterAzureMonitor.json | -| [extensionsDisableMonitoringSample.js][extensionsdisablemonitoringsample] | Disables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterMonitoring.json | -| [extensionsEnableAzureMonitorSample.js][extensionsenableazuremonitorsample] | Enables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterAzureMonitor.json | -| [extensionsEnableMonitoringSample.js][extensionsenablemonitoringsample] | Enables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterMonitoring.json | -| [extensionsGetAzureAsyncOperationStatusSample.js][extensionsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtensionCreationAsyncOperationStatus.json | -| [extensionsGetAzureMonitorStatusSample.js][extensionsgetazuremonitorstatussample] | Gets the status of Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterAzureMonitorStatus.json | -| [extensionsGetMonitoringStatusSample.js][extensionsgetmonitoringstatussample] | Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterMonitoringStatus.json | -| [extensionsGetSample.js][extensionsgetsample] | Gets the extension properties for the specified HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtension.json | -| [locationsCheckNameAvailabilitySample.js][locationschecknameavailabilitysample] | Check the cluster name is available or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_CheckClusterNameAvailability.json | -| [locationsGetAzureAsyncOperationStatusSample.js][locationsgetazureasyncoperationstatussample] | Get the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_GetAsyncOperationStatus.json | -| [locationsGetCapabilitiesSample.js][locationsgetcapabilitiessample] | Gets the capabilities for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightCapabilities.json | -| [locationsListBillingSpecsSample.js][locationslistbillingspecssample] | Lists the billingSpecs for the specified subscription and location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ListBillingSpecs.json | -| [locationsListUsagesSample.js][locationslistusagessample] | Lists the usages for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightUsages.json | -| [locationsValidateClusterCreateRequestSample.js][locationsvalidateclustercreaterequestsample] | Validate the cluster create request spec is valid or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection manually. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateEndpointConnection.json | -| [privateEndpointConnectionsListByClusterSample.js][privateendpointconnectionslistbyclustersample] | Lists the private endpoint connections for a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateEndpointConnectionsInCluster.json | -| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the specific private link resource. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateLinkResource.json | -| [privateLinkResourcesListByClusterSample.js][privatelinkresourceslistbyclustersample] | Lists the private link resources in a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateLinkResourcesInCluster.json | -| [scriptActionsDeleteSample.js][scriptactionsdeletesample] | Deletes a specified persisted script action of the cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteScriptAction.json | -| [scriptActionsGetExecutionAsyncOperationStatusSample.js][scriptactionsgetexecutionasyncoperationstatussample] | Gets the async operation status of execution operation. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionAsyncOperationStatus.json | -| [scriptActionsGetExecutionDetailSample.js][scriptactionsgetexecutiondetailsample] | Gets the script execution detail for the given script execution ID. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptActionById.json | -| [scriptActionsListByClusterSample.js][scriptactionslistbyclustersample] | Lists all the persisted script actions for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopScriptAction.json | -| [scriptExecutionHistoryListByClusterSample.js][scriptexecutionhistorylistbyclustersample] | Lists all scripts' execution history for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionHistory.json | -| [scriptExecutionHistoryPromoteSample.js][scriptexecutionhistorypromotesample] | Promotes the specified ad-hoc script execution to a persisted script. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PromoteLinuxHadoopScriptAction.json | -| [virtualMachinesGetAsyncOperationStatusSample.js][virtualmachinesgetasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetRestartHostsAsyncOperationStatus.json | -| [virtualMachinesListHostsSample.js][virtualmachineslisthostssample] | Lists the HDInsight clusters hosts x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterVirtualMachines.json | -| [virtualMachinesRestartHostsSample.js][virtualmachinesrestarthostssample] | Restarts the specified HDInsight cluster hosts. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RestartVirtualMachinesOperation.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [applicationsCreateSample.js][applicationscreatesample] | Creates applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json | +| [applicationsDeleteSample.js][applicationsdeletesample] | Deletes the specified application on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json | +| [applicationsGetAzureAsyncOperationStatusSample.js][applicationsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json | +| [applicationsGetSample.js][applicationsgetsample] | Gets properties of the specified application. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json | +| [applicationsListByClusterSample.js][applicationslistbyclustersample] | Lists all of the applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json | +| [clustersCreateSample.js][clusterscreatesample] | Creates a new HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json | +| [clustersDeleteSample.js][clustersdeletesample] | Deletes the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json | +| [clustersExecuteScriptActionsSample.js][clustersexecutescriptactionssample] | Executes script actions on the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json | +| [clustersGetAzureAsyncOperationStatusSample.js][clustersgetazureasyncoperationstatussample] | The the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json | +| [clustersGetGatewaySettingsSample.js][clustersgetgatewaysettingssample] | Gets the gateway settings for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_GetGatewaySettings.json | +| [clustersGetSample.js][clustersgetsample] | Gets the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopCluster.json | +| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | Lists the HDInsight clusters in a resource group. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClustersInResourceGroup.json | +| [clustersListSample.js][clusterslistsample] | Lists all the HDInsight clusters under the subscription. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClusters.json | +| [clustersResizeSample.js][clustersresizesample] | Resizes the specified HDInsight cluster to the specified size. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ResizeLinuxHadoopCluster.json | +| [clustersRotateDiskEncryptionKeySample.js][clustersrotatediskencryptionkeysample] | Rotate disk encryption key of the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json | +| [clustersUpdateAutoScaleConfigurationSample.js][clustersupdateautoscaleconfigurationsample] | Updates the Autoscale Configuration for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableClusterAutoScale.json | +| [clustersUpdateGatewaySettingsSample.js][clustersupdategatewaysettingssample] | Configures the gateway settings on the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json | +| [clustersUpdateIdentityCertificateSample.js][clustersupdateidentitycertificatesample] | Updates the cluster identity certificate. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json | +| [clustersUpdateSample.js][clustersupdatesample] | Patch HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PatchLinuxHadoopCluster.json | +| [configurationsGetSample.js][configurationsgetsample] | The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_Get.json | +| [configurationsListSample.js][configurationslistsample] | Gets all configuration information for an HDI cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_List.json | +| [configurationsUpdateSample.js][configurationsupdatesample] | Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityDisable.json | +| [extensionsCreateSample.js][extensionscreatesample] | Creates an HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateExtension.json | +| [extensionsDeleteSample.js][extensionsdeletesample] | Deletes the specified extension for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteExtension.json | +| [extensionsDisableAzureMonitorSample.js][extensionsdisableazuremonitorsample] | Disables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterAzureMonitor.json | +| [extensionsDisableMonitoringSample.js][extensionsdisablemonitoringsample] | Disables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterMonitoring.json | +| [extensionsEnableAzureMonitorSample.js][extensionsenableazuremonitorsample] | Enables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterAzureMonitor.json | +| [extensionsEnableMonitoringSample.js][extensionsenablemonitoringsample] | Enables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json | +| [extensionsGetAzureAsyncOperationStatusSample.js][extensionsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json | +| [extensionsGetAzureMonitorStatusSample.js][extensionsgetazuremonitorstatussample] | Gets the status of Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json | +| [extensionsGetMonitoringStatusSample.js][extensionsgetmonitoringstatussample] | Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json | +| [extensionsGetSample.js][extensionsgetsample] | Gets the extension properties for the specified HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json | +| [locationsCheckNameAvailabilitySample.js][locationschecknameavailabilitysample] | Check the cluster name is available or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json | +| [locationsGetAzureAsyncOperationStatusSample.js][locationsgetazureasyncoperationstatussample] | Get the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json | +| [locationsGetCapabilitiesSample.js][locationsgetcapabilitiessample] | Gets the capabilities for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json | +| [locationsListBillingSpecsSample.js][locationslistbillingspecssample] | Lists the billingSpecs for the specified subscription and location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json | +| [locationsListUsagesSample.js][locationslistusagessample] | Lists the usages for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json | +| [locationsValidateClusterCreateRequestSample.js][locationsvalidateclustercreaterequestsample] | Validate the cluster create request spec is valid or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available HDInsight REST API operations. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json | +| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection manually. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByClusterSample.js][privateendpointconnectionslistbyclustersample] | Lists the private endpoint connections for a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json | +| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the specific private link resource. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json | +| [privateLinkResourcesListByClusterSample.js][privatelinkresourceslistbyclustersample] | Lists the private link resources in a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json | +| [scriptActionsDeleteSample.js][scriptactionsdeletesample] | Deletes a specified persisted script action of the cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json | +| [scriptActionsGetExecutionAsyncOperationStatusSample.js][scriptactionsgetexecutionasyncoperationstatussample] | Gets the async operation status of execution operation. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json | +| [scriptActionsGetExecutionDetailSample.js][scriptactionsgetexecutiondetailsample] | Gets the script execution detail for the given script execution ID. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json | +| [scriptActionsListByClusterSample.js][scriptactionslistbyclustersample] | Lists all the persisted script actions for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json | +| [scriptExecutionHistoryListByClusterSample.js][scriptexecutionhistorylistbyclustersample] | Lists all scripts' execution history for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json | +| [scriptExecutionHistoryPromoteSample.js][scriptexecutionhistorypromotesample] | Promotes the specified ad-hoc script execution to a persisted script. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json | +| [virtualMachinesGetAsyncOperationStatusSample.js][virtualmachinesgetasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json | +| [virtualMachinesListHostsSample.js][virtualmachineslisthostssample] | Lists the HDInsight clusters hosts x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json | +| [virtualMachinesRestartHostsSample.js][virtualmachinesrestarthostssample] | Restarts the specified HDInsight cluster hosts. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json | ## Prerequisites @@ -96,59 +97,60 @@ npx cross-env HDINSIGHT_SUBSCRIPTION_ID="" HDINSIGHT_ Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[applicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsCreateSample.js -[applicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsDeleteSample.js -[applicationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetAzureAsyncOperationStatusSample.js -[applicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetSample.js -[applicationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsListByClusterSample.js -[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersCreateSample.js -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersDeleteSample.js -[clustersexecutescriptactionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersExecuteScriptActionsSample.js -[clustersgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetAzureAsyncOperationStatusSample.js -[clustersgetgatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetGatewaySettingsSample.js -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetSample.js -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListByResourceGroupSample.js -[clusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListSample.js -[clustersresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersResizeSample.js -[clustersrotatediskencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersRotateDiskEncryptionKeySample.js -[clustersupdateautoscaleconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateAutoScaleConfigurationSample.js -[clustersupdategatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateGatewaySettingsSample.js -[clustersupdateidentitycertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateIdentityCertificateSample.js -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateSample.js -[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsGetSample.js -[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsListSample.js -[configurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsUpdateSample.js -[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsCreateSample.js -[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDeleteSample.js -[extensionsdisableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableAzureMonitorSample.js -[extensionsdisablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableMonitoringSample.js -[extensionsenableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableAzureMonitorSample.js -[extensionsenablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableMonitoringSample.js -[extensionsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureAsyncOperationStatusSample.js -[extensionsgetazuremonitorstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureMonitorStatusSample.js -[extensionsgetmonitoringstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetMonitoringStatusSample.js -[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetSample.js -[locationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsCheckNameAvailabilitySample.js -[locationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetAzureAsyncOperationStatusSample.js -[locationsgetcapabilitiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetCapabilitiesSample.js -[locationslistbillingspecssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListBillingSpecsSample.js -[locationslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListUsagesSample.js -[locationsvalidateclustercreaterequestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsValidateClusterCreateRequestSample.js -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsCreateOrUpdateSample.js -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsGetSample.js -[privateendpointconnectionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsListByClusterSample.js -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesGetSample.js -[privatelinkresourceslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesListByClusterSample.js -[scriptactionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsDeleteSample.js -[scriptactionsgetexecutionasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js -[scriptactionsgetexecutiondetailsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionDetailSample.js -[scriptactionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsListByClusterSample.js -[scriptexecutionhistorylistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryListByClusterSample.js -[scriptexecutionhistorypromotesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryPromoteSample.js -[virtualmachinesgetasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesGetAsyncOperationStatusSample.js -[virtualmachineslisthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesListHostsSample.js -[virtualmachinesrestarthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesRestartHostsSample.js +[applicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsCreateSample.js +[applicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsDeleteSample.js +[applicationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetAzureAsyncOperationStatusSample.js +[applicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetSample.js +[applicationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsListByClusterSample.js +[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersCreateSample.js +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersDeleteSample.js +[clustersexecutescriptactionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersExecuteScriptActionsSample.js +[clustersgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetAzureAsyncOperationStatusSample.js +[clustersgetgatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetGatewaySettingsSample.js +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetSample.js +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListByResourceGroupSample.js +[clusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListSample.js +[clustersresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersResizeSample.js +[clustersrotatediskencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersRotateDiskEncryptionKeySample.js +[clustersupdateautoscaleconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateAutoScaleConfigurationSample.js +[clustersupdategatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateGatewaySettingsSample.js +[clustersupdateidentitycertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateIdentityCertificateSample.js +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateSample.js +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsGetSample.js +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsListSample.js +[configurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsUpdateSample.js +[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsCreateSample.js +[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDeleteSample.js +[extensionsdisableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableAzureMonitorSample.js +[extensionsdisablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableMonitoringSample.js +[extensionsenableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableAzureMonitorSample.js +[extensionsenablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableMonitoringSample.js +[extensionsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureAsyncOperationStatusSample.js +[extensionsgetazuremonitorstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureMonitorStatusSample.js +[extensionsgetmonitoringstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetMonitoringStatusSample.js +[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetSample.js +[locationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsCheckNameAvailabilitySample.js +[locationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetAzureAsyncOperationStatusSample.js +[locationsgetcapabilitiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetCapabilitiesSample.js +[locationslistbillingspecssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListBillingSpecsSample.js +[locationslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListUsagesSample.js +[locationsvalidateclustercreaterequestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsValidateClusterCreateRequestSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/operationsListSample.js +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsListByClusterSample.js +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesGetSample.js +[privatelinkresourceslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesListByClusterSample.js +[scriptactionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsDeleteSample.js +[scriptactionsgetexecutionasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js +[scriptactionsgetexecutiondetailsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionDetailSample.js +[scriptactionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsListByClusterSample.js +[scriptexecutionhistorylistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryListByClusterSample.js +[scriptexecutionhistorypromotesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryPromoteSample.js +[virtualmachinesgetasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesGetAsyncOperationStatusSample.js +[virtualmachineslisthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesListHostsSample.js +[virtualmachinesrestarthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesRestartHostsSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight/README.md diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsCreateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsCreateSample.js similarity index 96% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsCreateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsCreateSample.js index b79ee23013f..f12b94b6b9b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsCreateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates applications for the HDInsight cluster. * * @summary Creates applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json */ async function createApplication() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsDeleteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsDeleteSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsDeleteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsDeleteSample.js index a17b878d20f..60e1289188f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsDeleteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified application on the HDInsight cluster. * * @summary Deletes the specified application on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json */ async function deleteApplicationFromHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetAzureAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetAzureAsyncOperationStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetAzureAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetAzureAsyncOperationStatusSample.js index 07a9eec51bf..8ac3e576100 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetAzureAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetAzureAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json */ async function getTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetSample.js similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetSample.js index 8c50e363d08..6261688a5e7 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationInProgress.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json */ async function getApplicationOnHdInsightClusterCreationInProgress() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function getApplicationOnHdInsightClusterCreationInProgress() { * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreated.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreated.json */ async function getApplicationOnHdInsightClusterSuccessfullyCreated() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsListByClusterSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsListByClusterSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsListByClusterSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsListByClusterSample.js index 6a59ae69209..ccabf64ae3e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/applicationsListByClusterSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/applicationsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the applications for the HDInsight cluster. * * @summary Lists all of the applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllApplications.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json */ async function getAllApplicationsForAnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersCreateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersCreateSample.js similarity index 95% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersCreateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersCreateSample.js index 720264c315d..cb644db1168 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersCreateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAutoscaleConfig.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json */ async function createHdInsightClusterWithAutoscaleConfiguration() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -100,6 +100,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { { name: "mystorage.blob.core.windows.net", container: "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -122,7 +123,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopAdlsGen2.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopAdlsGen2.json */ async function createHadoopClusterWithAzureDataLakeStorageGen2() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -186,6 +187,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { storageaccounts: [ { name: "mystorage.dfs.core.windows.net", + enableSecureChannel: true, fileSystem: "default", isDefault: true, key: "storagekey", @@ -210,7 +212,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPassword.json */ async function createHadoopOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -275,6 +277,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -298,7 +301,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPublicKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPublicKey.json */ async function createHadoopOnLinuxClusterWithSshPublicKey() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -363,6 +366,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -386,7 +390,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateKafkaClusterWithKafkaRestProxy.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json */ async function createKafkaClusterWithKafkaRestProxy() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -467,6 +471,7 @@ async function createKafkaClusterWithKafkaRestProxy() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -489,7 +494,7 @@ async function createKafkaClusterWithKafkaRestProxy() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSecureHadoop.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSecureHadoop.json */ async function createSecureHadoopCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -584,6 +589,7 @@ async function createSecureHadoopCluster() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key", }, @@ -607,7 +613,7 @@ async function createSecureHadoopCluster() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxSparkSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxSparkSshPassword.json */ async function createSparkOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -661,6 +667,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storageapikey*", }, @@ -684,7 +691,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithTLS12.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithTLS12.json */ async function createClusterWithTls12() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -747,6 +754,7 @@ async function createClusterWithTls12() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -769,7 +777,7 @@ async function createClusterWithTls12() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAvailabilityZones.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json */ async function createClusterWithAvailabilityZones() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -869,6 +877,7 @@ async function createClusterWithAvailabilityZones() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key", }, @@ -891,7 +900,7 @@ async function createClusterWithAvailabilityZones() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithComputeIsolationProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json */ async function createClusterWithComputeIsolationProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -948,6 +957,7 @@ async function createClusterWithComputeIsolationProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key", }, @@ -969,7 +979,7 @@ async function createClusterWithComputeIsolationProperties() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionAtHost.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json */ async function createClusterWithEncryptionAtHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1032,6 +1042,7 @@ async function createClusterWithEncryptionAtHost() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -1054,7 +1065,7 @@ async function createClusterWithEncryptionAtHost() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionInTransit.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json */ async function createClusterWithEncryptionInTransit() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1117,6 +1128,7 @@ async function createClusterWithEncryptionInTransit() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey", }, @@ -1139,7 +1151,7 @@ async function createClusterWithEncryptionInTransit() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithCustomNetworkProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json */ async function createClusterWithNetworkProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -1206,6 +1218,7 @@ async function createClusterWithNetworkProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key", }, diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersDeleteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersDeleteSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersDeleteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersDeleteSample.js index 21051cbffba..588aa28a62b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersDeleteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified HDInsight cluster. * * @summary Deletes the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json */ async function deleteHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersExecuteScriptActionsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersExecuteScriptActionsSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersExecuteScriptActionsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersExecuteScriptActionsSample.js index 952f56ca133..2e0a9c0c2fe 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersExecuteScriptActionsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersExecuteScriptActionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Executes script actions on the specified HDInsight cluster. * * @summary Executes script actions on the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PostExecuteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json */ async function executeScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetAzureAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetAzureAsyncOperationStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetAzureAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetAzureAsyncOperationStatusSample.js index 5b70b245e86..92ec101953f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetAzureAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetAzureAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The the async operation status. * * @summary The the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterCreatingAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json */ async function getAsyncOperationStatusOfCreatingCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetGatewaySettingsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetGatewaySettingsSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetGatewaySettingsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetGatewaySettingsSample.js index 517530a39a2..26d5854fa68 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetGatewaySettingsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetGatewaySettingsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the gateway settings for the specified cluster. * * @summary Gets the gateway settings for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_GetGatewaySettings.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_GetGatewaySettings.json */ async function getHttpSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetSample.js similarity index 91% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetSample.js index 1801a84b08e..4af9d34e747 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopCluster.json */ async function getHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getHadoopOnLinuxCluster() { * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxSparkCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxSparkCluster.json */ async function getSparkOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListByResourceGroupSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListByResourceGroupSample.js similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListByResourceGroupSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListByResourceGroupSample.js index 4e35c7581e1..7c151b5cec3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListByResourceGroupSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the HDInsight clusters in a resource group. * * @summary Lists the HDInsight clusters in a resource group. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClustersInResourceGroup.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClustersInResourceGroup.json */ async function getAllHadoopOnLinuxClustersInAResourceGroup() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListSample.js index 7e807eb1eed..0bdfba2da16 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersListSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the HDInsight clusters under the subscription. * * @summary Lists all the HDInsight clusters under the subscription. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClusters.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClusters.json */ async function getAllHadoopOnLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersResizeSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersResizeSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersResizeSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersResizeSample.js index ba585e36748..830f680d67b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersResizeSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersResizeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Resizes the specified HDInsight cluster to the specified size. * * @summary Resizes the specified HDInsight cluster to the specified size. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ResizeLinuxHadoopCluster.json */ async function resizeTheWorkerNodesForAHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersRotateDiskEncryptionKeySample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersRotateDiskEncryptionKeySample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersRotateDiskEncryptionKeySample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersRotateDiskEncryptionKeySample.js index 4e6ca278c3f..c86df4c8689 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersRotateDiskEncryptionKeySample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersRotateDiskEncryptionKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Rotate disk encryption key of the specified HDInsight cluster. * * @summary Rotate disk encryption key of the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json */ async function rotateDiskEncryptionKeyOfTheSpecifiedHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateAutoScaleConfigurationSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateAutoScaleConfigurationSample.js similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateAutoScaleConfigurationSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateAutoScaleConfigurationSample.js index 50a16f47494..ea8ef2cb907 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateAutoScaleConfigurationSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateAutoScaleConfigurationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableClusterAutoScale.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableClusterAutoScale.json */ async function disableAutoscaleForTheHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function disableAutoscaleForTheHdInsightCluster() { * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -64,7 +64,7 @@ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightC * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheScheduleBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateGatewaySettingsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateGatewaySettingsSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateGatewaySettingsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateGatewaySettingsSample.js index 2d386885f5b..68d5533f61b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateGatewaySettingsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateGatewaySettingsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Configures the gateway settings on the specified cluster. * * @summary Configures the gateway settings on the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateIdentityCertificateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateIdentityCertificateSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateIdentityCertificateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateIdentityCertificateSample.js index a68dc4a7f42..103805d7bd3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateIdentityCertificateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateIdentityCertificateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the cluster identity certificate. * * @summary Updates the cluster identity certificate. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json */ async function updateClusterIdentityCertificate() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateSample.js index cf97c8e8d2d..f16937ae47b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/clustersUpdateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/clustersUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch HDInsight cluster with the specified parameters. * * @summary Patch HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PatchLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PatchLinuxHadoopCluster.json */ async function patchHdInsightLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsGetSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsGetSample.js index 9660e4137d2..54ed5545a54 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. * * @summary The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_Get.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_Get.json */ async function getCoreSiteSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsListSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsListSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsListSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsListSample.js index 0f7f29219a2..d5a58045e20 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsListSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all configuration information for an HDI cluster. * * @summary Gets all configuration information for an HDI cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_List.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_List.json */ async function getAllConfigurationInformation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsUpdateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsUpdateSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsUpdateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsUpdateSample.js index 888f196e0d4..d366462274a 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/configurationsUpdateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/configurationsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityDisable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityDisable.json */ async function disableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function disableHttpConnectivity() { * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityEnable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityEnable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsCreateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsCreateSample.js similarity index 95% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsCreateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsCreateSample.js index c63586396be..0a01256bbb0 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsCreateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates an HDInsight cluster extension. * * @summary Creates an HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateExtension.json */ async function createAMonitoringExtensionOnHadoopLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDeleteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDeleteSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDeleteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDeleteSample.js index b7614ab8b50..7ae7d5acb35 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDeleteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified extension for HDInsight cluster. * * @summary Deletes the specified extension for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteExtension.json */ async function deleteAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableAzureMonitorSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableAzureMonitorSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableAzureMonitorSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableAzureMonitorSample.js index cb8425db9a9..256b23eab2c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableAzureMonitorSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableAzureMonitorSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disables the Azure Monitor on the HDInsight cluster. * * @summary Disables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableMonitoringSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableMonitoringSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableMonitoringSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableMonitoringSample.js index 2c35093bbda..79d898044d3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsDisableMonitoringSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsDisableMonitoringSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Disables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableAzureMonitorSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableAzureMonitorSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableAzureMonitorSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableAzureMonitorSample.js index dc3a4b21aa1..aed80dd598a 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableAzureMonitorSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableAzureMonitorSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Enables the Azure Monitor on the HDInsight cluster. * * @summary Enables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableMonitoringSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableMonitoringSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableMonitoringSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableMonitoringSample.js index 6eaf9139e69..28b86ba2201 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsEnableMonitoringSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsEnableMonitoringSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Enables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureAsyncOperationStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureAsyncOperationStatusSample.js index c07711d5fa1..ed3660b8f6c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtensionCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureMonitorStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureMonitorStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureMonitorStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureMonitorStatusSample.js index 70f4de6df6d..71d9b9c7ecb 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetAzureMonitorStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetAzureMonitorStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of Azure Monitor on the HDInsight cluster. * * @summary Gets the status of Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterAzureMonitorStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetMonitoringStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetMonitoringStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetMonitoringStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetMonitoringStatusSample.js index 00446fe9be1..cfdbff0407b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetMonitoringStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetMonitoringStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterMonitoringStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetSample.js index b76e3c4decb..0d4b9e9b83f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/extensionsGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/extensionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the extension properties for the specified HDInsight cluster extension. * * @summary Gets the extension properties for the specified HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json */ async function getAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsCheckNameAvailabilitySample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsCheckNameAvailabilitySample.js similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsCheckNameAvailabilitySample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsCheckNameAvailabilitySample.js index e4f60f68ec9..94fc3cc1eb6 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsCheckNameAvailabilitySample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check the cluster name is available or not. * * @summary Check the cluster name is available or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_CheckClusterNameAvailability.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetAzureAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetAzureAsyncOperationStatusSample.js similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetAzureAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetAzureAsyncOperationStatusSample.js index 03c1e7027d6..f822760f83d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetAzureAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetAzureAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the async operation status. * * @summary Get the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_GetAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetCapabilitiesSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetCapabilitiesSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetCapabilitiesSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetCapabilitiesSample.js index 3589d0db8d8..cb4c515e0b1 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsGetCapabilitiesSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsGetCapabilitiesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the capabilities for the specified location. * * @summary Gets the capabilities for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightCapabilities.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json */ async function getTheSubscriptionCapabilitiesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListBillingSpecsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListBillingSpecsSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListBillingSpecsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListBillingSpecsSample.js index 0793635cd06..0af7bbf6d3b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListBillingSpecsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListBillingSpecsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the billingSpecs for the specified subscription and location. * * @summary Lists the billingSpecs for the specified subscription and location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ListBillingSpecs.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json */ async function getTheSubscriptionBillingSpecsForTheSpecifiedLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListUsagesSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListUsagesSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListUsagesSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListUsagesSample.js index db7963c0e5c..1252348c381 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsListUsagesSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the usages for the specified location. * * @summary Lists the usages for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightUsages.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsValidateClusterCreateRequestSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsValidateClusterCreateRequestSample.js similarity index 96% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsValidateClusterCreateRequestSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsValidateClusterCreateRequestSample.js index 97d9990764e..6b6b370a94c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/locationsValidateClusterCreateRequestSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/locationsValidateClusterCreateRequestSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Validate the cluster create request spec is valid or not. * * @summary Validate the cluster create request spec is valid or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -97,6 +97,7 @@ async function getTheSubscriptionUsagesForSpecificLocation() { { name: "storagename.blob.core.windows.net", container: "contianername", + enableSecureChannel: true, isDefault: true, key: "*******", resourceId: diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/operationsListSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/operationsListSample.js new file mode 100644 index 00000000000..e048037dbd5 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HDInsightManagementClient } = require("@azure/arm-hdinsight"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all of the available HDInsight REST API operations. + * + * @summary Lists all of the available HDInsight REST API operations. + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json + */ +async function listsAllOfTheAvailableOperations() { + const subscriptionId = + process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new HDInsightManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listsAllOfTheAvailableOperations(); +} + +main().catch(console.error); diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/package.json b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/package.json similarity index 81% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/package.json rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/package.json index 23a0b1f8eca..ae02f382e33 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/package.json +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-hdinsight-js", + "name": "@azure-samples/arm-hdinsight-js-beta", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript", + "description": " client library samples for JavaScript (Beta)", "engines": { "node": ">=14.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight", "dependencies": { - "@azure/arm-hdinsight": "latest", + "@azure/arm-hdinsight": "next", "dotenv": "latest", "@azure/identity": "^2.0.1" } diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsCreateOrUpdateSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js index 1309c000f3a..35ecc375ced 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Approve or reject a private endpoint connection manually. * * @summary Approve or reject a private endpoint connection manually. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json */ async function approveAPrivateEndpointConnectionManually() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsDeleteSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsDeleteSample.js index 089780823c8..5aaf07bf0f5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specific private endpoint connection. * * @summary Deletes the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json */ async function deleteSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsGetSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsGetSample.js index 9b8377aac85..24b055889f1 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specific private endpoint connection. * * @summary Gets the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json */ async function getSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsListByClusterSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsListByClusterSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsListByClusterSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsListByClusterSample.js index eec66f026dc..eaa876cd5eb 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateEndpointConnectionsListByClusterSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateEndpointConnectionsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the private endpoint connections for a HDInsight cluster. * * @summary Lists the private endpoint connections for a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateEndpointConnectionsInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json */ async function getAllPrivateEndpointConnectionsForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesGetSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesGetSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesGetSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesGetSample.js index 19070a88332..e94041346f5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesGetSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specific private link resource. * * @summary Gets the specific private link resource. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateLinkResource.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json */ async function getSpecificPrivateLinkResourceInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesListByClusterSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesListByClusterSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesListByClusterSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesListByClusterSample.js index f7dd693940c..7330c57503d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/privateLinkResourcesListByClusterSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/privateLinkResourcesListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the private link resources in a HDInsight cluster. * * @summary Lists the private link resources in a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateLinkResourcesInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json */ async function getAllPrivateLinkResourcesInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/sample.env b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/sample.env similarity index 100% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/sample.env rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/sample.env diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsDeleteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsDeleteSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsDeleteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsDeleteSample.js index 50cf4a0ab4e..deb8297ba03 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsDeleteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a specified persisted script action of the cluster. * * @summary Deletes a specified persisted script action of the cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json */ async function deleteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js index 49079f45229..62c1a43ac71 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the async operation status of execution operation. * * @summary Gets the async operation status of execution operation. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json */ async function getsTheAsyncExecutionOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionDetailSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionDetailSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionDetailSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionDetailSample.js index 5b5edf9e24b..3f8e34e19f1 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsGetExecutionDetailSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsGetExecutionDetailSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the script execution detail for the given script execution ID. * * @summary Gets the script execution detail for the given script execution ID. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptActionById.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json */ async function getScriptExecutionHistoryByScriptId() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsListByClusterSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsListByClusterSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsListByClusterSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsListByClusterSample.js index 0cc189b74e4..4affe032685 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptActionsListByClusterSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptActionsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the persisted script actions for the specified cluster. * * @summary Lists all the persisted script actions for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json */ async function listAllPersistedScriptActionsForTheGivenCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryListByClusterSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryListByClusterSample.js similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryListByClusterSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryListByClusterSample.js index 63a58e63eaa..b25446c7dbf 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryListByClusterSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all scripts' execution history for the specified cluster. * * @summary Lists all scripts' execution history for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionHistory.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json */ async function getScriptExecutionHistoryList() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryPromoteSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryPromoteSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryPromoteSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryPromoteSample.js index 6dd3cd34825..916c1cc8b2e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/scriptExecutionHistoryPromoteSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/scriptExecutionHistoryPromoteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Promotes the specified ad-hoc script execution to a persisted script. * * @summary Promotes the specified ad-hoc script execution to a persisted script. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PromoteLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json */ async function promoteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesGetAsyncOperationStatusSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesGetAsyncOperationStatusSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesGetAsyncOperationStatusSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesGetAsyncOperationStatusSample.js index adbc07b08b5..b11fc4a3596 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesGetAsyncOperationStatusSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesGetAsyncOperationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetRestartHostsAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json */ async function getsTheAsyncOperationStatusOfRestartingHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesListHostsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesListHostsSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesListHostsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesListHostsSample.js index 1d6a5d70541..2876edd6da8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesListHostsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesListHostsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the HDInsight clusters hosts * * @summary Lists the HDInsight clusters hosts - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterVirtualMachines.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json */ async function getAllHostsInTheCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesRestartHostsSample.js b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesRestartHostsSample.js similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesRestartHostsSample.js rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesRestartHostsSample.js index 1672a545c4e..d0910ab9fc8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/javascript/virtualMachinesRestartHostsSample.js +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/javascript/virtualMachinesRestartHostsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restarts the specified HDInsight cluster hosts. * * @summary Restarts the specified HDInsight cluster hosts. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RestartVirtualMachinesOperation.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json */ async function restartsTheSpecifiedHdInsightClusterHosts() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/README.md b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/README.md similarity index 58% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/README.md rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/README.md index 963b054f3c1..b550a59fa9e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/README.md +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/README.md @@ -1,62 +1,63 @@ -# client library samples for TypeScript +# client library samples for TypeScript (Beta) These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [applicationsCreateSample.ts][applicationscreatesample] | Creates applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateApplication.json | -| [applicationsDeleteSample.ts][applicationsdeletesample] | Deletes the specified application on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteApplication.json | -| [applicationsGetAzureAsyncOperationStatusSample.ts][applicationsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreationAsyncOperationStatus.json | -| [applicationsGetSample.ts][applicationsgetsample] | Gets properties of the specified application. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationInProgress.json | -| [applicationsListByClusterSample.ts][applicationslistbyclustersample] | Lists all of the applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllApplications.json | -| [clustersCreateSample.ts][clusterscreatesample] | Creates a new HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAutoscaleConfig.json | -| [clustersDeleteSample.ts][clustersdeletesample] | Deletes the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteLinuxHadoopCluster.json | -| [clustersExecuteScriptActionsSample.ts][clustersexecutescriptactionssample] | Executes script actions on the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PostExecuteScriptAction.json | -| [clustersGetAzureAsyncOperationStatusSample.ts][clustersgetazureasyncoperationstatussample] | The the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterCreatingAsyncOperationStatus.json | -| [clustersGetGatewaySettingsSample.ts][clustersgetgatewaysettingssample] | Gets the gateway settings for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_GetGatewaySettings.json | -| [clustersGetSample.ts][clustersgetsample] | Gets the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopCluster.json | -| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | Lists the HDInsight clusters in a resource group. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClustersInResourceGroup.json | -| [clustersListSample.ts][clusterslistsample] | Lists all the HDInsight clusters under the subscription. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClusters.json | -| [clustersResizeSample.ts][clustersresizesample] | Resizes the specified HDInsight cluster to the specified size. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json | -| [clustersRotateDiskEncryptionKeySample.ts][clustersrotatediskencryptionkeysample] | Rotate disk encryption key of the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json | -| [clustersUpdateAutoScaleConfigurationSample.ts][clustersupdateautoscaleconfigurationsample] | Updates the Autoscale Configuration for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableClusterAutoScale.json | -| [clustersUpdateGatewaySettingsSample.ts][clustersupdategatewaysettingssample] | Configures the gateway settings on the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json | -| [clustersUpdateIdentityCertificateSample.ts][clustersupdateidentitycertificatesample] | Updates the cluster identity certificate. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json | -| [clustersUpdateSample.ts][clustersupdatesample] | Patch HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PatchLinuxHadoopCluster.json | -| [configurationsGetSample.ts][configurationsgetsample] | The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_Get.json | -| [configurationsListSample.ts][configurationslistsample] | Gets all configuration information for an HDI cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_List.json | -| [configurationsUpdateSample.ts][configurationsupdatesample] | Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityDisable.json | -| [extensionsCreateSample.ts][extensionscreatesample] | Creates an HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateExtension.json | -| [extensionsDeleteSample.ts][extensionsdeletesample] | Deletes the specified extension for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteExtension.json | -| [extensionsDisableAzureMonitorSample.ts][extensionsdisableazuremonitorsample] | Disables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterAzureMonitor.json | -| [extensionsDisableMonitoringSample.ts][extensionsdisablemonitoringsample] | Disables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterMonitoring.json | -| [extensionsEnableAzureMonitorSample.ts][extensionsenableazuremonitorsample] | Enables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterAzureMonitor.json | -| [extensionsEnableMonitoringSample.ts][extensionsenablemonitoringsample] | Enables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterMonitoring.json | -| [extensionsGetAzureAsyncOperationStatusSample.ts][extensionsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtensionCreationAsyncOperationStatus.json | -| [extensionsGetAzureMonitorStatusSample.ts][extensionsgetazuremonitorstatussample] | Gets the status of Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterAzureMonitorStatus.json | -| [extensionsGetMonitoringStatusSample.ts][extensionsgetmonitoringstatussample] | Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterMonitoringStatus.json | -| [extensionsGetSample.ts][extensionsgetsample] | Gets the extension properties for the specified HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtension.json | -| [locationsCheckNameAvailabilitySample.ts][locationschecknameavailabilitysample] | Check the cluster name is available or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_CheckClusterNameAvailability.json | -| [locationsGetAzureAsyncOperationStatusSample.ts][locationsgetazureasyncoperationstatussample] | Get the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_GetAsyncOperationStatus.json | -| [locationsGetCapabilitiesSample.ts][locationsgetcapabilitiessample] | Gets the capabilities for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightCapabilities.json | -| [locationsListBillingSpecsSample.ts][locationslistbillingspecssample] | Lists the billingSpecs for the specified subscription and location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ListBillingSpecs.json | -| [locationsListUsagesSample.ts][locationslistusagessample] | Lists the usages for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightUsages.json | -| [locationsValidateClusterCreateRequestSample.ts][locationsvalidateclustercreaterequestsample] | Validate the cluster create request spec is valid or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection manually. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateEndpointConnection.json | -| [privateEndpointConnectionsListByClusterSample.ts][privateendpointconnectionslistbyclustersample] | Lists the private endpoint connections for a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateEndpointConnectionsInCluster.json | -| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the specific private link resource. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateLinkResource.json | -| [privateLinkResourcesListByClusterSample.ts][privatelinkresourceslistbyclustersample] | Lists the private link resources in a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateLinkResourcesInCluster.json | -| [scriptActionsDeleteSample.ts][scriptactionsdeletesample] | Deletes a specified persisted script action of the cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteScriptAction.json | -| [scriptActionsGetExecutionAsyncOperationStatusSample.ts][scriptactionsgetexecutionasyncoperationstatussample] | Gets the async operation status of execution operation. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionAsyncOperationStatus.json | -| [scriptActionsGetExecutionDetailSample.ts][scriptactionsgetexecutiondetailsample] | Gets the script execution detail for the given script execution ID. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptActionById.json | -| [scriptActionsListByClusterSample.ts][scriptactionslistbyclustersample] | Lists all the persisted script actions for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopScriptAction.json | -| [scriptExecutionHistoryListByClusterSample.ts][scriptexecutionhistorylistbyclustersample] | Lists all scripts' execution history for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionHistory.json | -| [scriptExecutionHistoryPromoteSample.ts][scriptexecutionhistorypromotesample] | Promotes the specified ad-hoc script execution to a persisted script. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PromoteLinuxHadoopScriptAction.json | -| [virtualMachinesGetAsyncOperationStatusSample.ts][virtualmachinesgetasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetRestartHostsAsyncOperationStatus.json | -| [virtualMachinesListHostsSample.ts][virtualmachineslisthostssample] | Lists the HDInsight clusters hosts x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterVirtualMachines.json | -| [virtualMachinesRestartHostsSample.ts][virtualmachinesrestarthostssample] | Restarts the specified HDInsight cluster hosts. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RestartVirtualMachinesOperation.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [applicationsCreateSample.ts][applicationscreatesample] | Creates applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json | +| [applicationsDeleteSample.ts][applicationsdeletesample] | Deletes the specified application on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json | +| [applicationsGetAzureAsyncOperationStatusSample.ts][applicationsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json | +| [applicationsGetSample.ts][applicationsgetsample] | Gets properties of the specified application. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json | +| [applicationsListByClusterSample.ts][applicationslistbyclustersample] | Lists all of the applications for the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json | +| [clustersCreateSample.ts][clusterscreatesample] | Creates a new HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json | +| [clustersDeleteSample.ts][clustersdeletesample] | Deletes the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json | +| [clustersExecuteScriptActionsSample.ts][clustersexecutescriptactionssample] | Executes script actions on the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json | +| [clustersGetAzureAsyncOperationStatusSample.ts][clustersgetazureasyncoperationstatussample] | The the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json | +| [clustersGetGatewaySettingsSample.ts][clustersgetgatewaysettingssample] | Gets the gateway settings for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_GetGatewaySettings.json | +| [clustersGetSample.ts][clustersgetsample] | Gets the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopCluster.json | +| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | Lists the HDInsight clusters in a resource group. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClustersInResourceGroup.json | +| [clustersListSample.ts][clusterslistsample] | Lists all the HDInsight clusters under the subscription. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClusters.json | +| [clustersResizeSample.ts][clustersresizesample] | Resizes the specified HDInsight cluster to the specified size. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ResizeLinuxHadoopCluster.json | +| [clustersRotateDiskEncryptionKeySample.ts][clustersrotatediskencryptionkeysample] | Rotate disk encryption key of the specified HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json | +| [clustersUpdateAutoScaleConfigurationSample.ts][clustersupdateautoscaleconfigurationsample] | Updates the Autoscale Configuration for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableClusterAutoScale.json | +| [clustersUpdateGatewaySettingsSample.ts][clustersupdategatewaysettingssample] | Configures the gateway settings on the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json | +| [clustersUpdateIdentityCertificateSample.ts][clustersupdateidentitycertificatesample] | Updates the cluster identity certificate. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json | +| [clustersUpdateSample.ts][clustersupdatesample] | Patch HDInsight cluster with the specified parameters. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PatchLinuxHadoopCluster.json | +| [configurationsGetSample.ts][configurationsgetsample] | The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_Get.json | +| [configurationsListSample.ts][configurationslistsample] | Gets all configuration information for an HDI cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_List.json | +| [configurationsUpdateSample.ts][configurationsupdatesample] | Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityDisable.json | +| [extensionsCreateSample.ts][extensionscreatesample] | Creates an HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateExtension.json | +| [extensionsDeleteSample.ts][extensionsdeletesample] | Deletes the specified extension for HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteExtension.json | +| [extensionsDisableAzureMonitorSample.ts][extensionsdisableazuremonitorsample] | Disables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterAzureMonitor.json | +| [extensionsDisableMonitoringSample.ts][extensionsdisablemonitoringsample] | Disables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterMonitoring.json | +| [extensionsEnableAzureMonitorSample.ts][extensionsenableazuremonitorsample] | Enables the Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterAzureMonitor.json | +| [extensionsEnableMonitoringSample.ts][extensionsenablemonitoringsample] | Enables the Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json | +| [extensionsGetAzureAsyncOperationStatusSample.ts][extensionsgetazureasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json | +| [extensionsGetAzureMonitorStatusSample.ts][extensionsgetazuremonitorstatussample] | Gets the status of Azure Monitor on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json | +| [extensionsGetMonitoringStatusSample.ts][extensionsgetmonitoringstatussample] | Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json | +| [extensionsGetSample.ts][extensionsgetsample] | Gets the extension properties for the specified HDInsight cluster extension. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json | +| [locationsCheckNameAvailabilitySample.ts][locationschecknameavailabilitysample] | Check the cluster name is available or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json | +| [locationsGetAzureAsyncOperationStatusSample.ts][locationsgetazureasyncoperationstatussample] | Get the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json | +| [locationsGetCapabilitiesSample.ts][locationsgetcapabilitiessample] | Gets the capabilities for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json | +| [locationsListBillingSpecsSample.ts][locationslistbillingspecssample] | Lists the billingSpecs for the specified subscription and location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json | +| [locationsListUsagesSample.ts][locationslistusagessample] | Lists the usages for the specified location. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json | +| [locationsValidateClusterCreateRequestSample.ts][locationsvalidateclustercreaterequestsample] | Validate the cluster create request spec is valid or not. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available HDInsight REST API operations. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json | +| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection manually. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specific private endpoint connection. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByClusterSample.ts][privateendpointconnectionslistbyclustersample] | Lists the private endpoint connections for a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json | +| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the specific private link resource. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json | +| [privateLinkResourcesListByClusterSample.ts][privatelinkresourceslistbyclustersample] | Lists the private link resources in a HDInsight cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json | +| [scriptActionsDeleteSample.ts][scriptactionsdeletesample] | Deletes a specified persisted script action of the cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json | +| [scriptActionsGetExecutionAsyncOperationStatusSample.ts][scriptactionsgetexecutionasyncoperationstatussample] | Gets the async operation status of execution operation. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json | +| [scriptActionsGetExecutionDetailSample.ts][scriptactionsgetexecutiondetailsample] | Gets the script execution detail for the given script execution ID. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json | +| [scriptActionsListByClusterSample.ts][scriptactionslistbyclustersample] | Lists all the persisted script actions for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json | +| [scriptExecutionHistoryListByClusterSample.ts][scriptexecutionhistorylistbyclustersample] | Lists all scripts' execution history for the specified cluster. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json | +| [scriptExecutionHistoryPromoteSample.ts][scriptexecutionhistorypromotesample] | Promotes the specified ad-hoc script execution to a persisted script. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json | +| [virtualMachinesGetAsyncOperationStatusSample.ts][virtualmachinesgetasyncoperationstatussample] | Gets the async operation status. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json | +| [virtualMachinesListHostsSample.ts][virtualmachineslisthostssample] | Lists the HDInsight clusters hosts x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json | +| [virtualMachinesRestartHostsSample.ts][virtualmachinesrestarthostssample] | Restarts the specified HDInsight cluster hosts. x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json | ## Prerequisites @@ -108,59 +109,60 @@ npx cross-env HDINSIGHT_SUBSCRIPTION_ID="" HDINSIGHT_ Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[applicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsCreateSample.ts -[applicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsDeleteSample.ts -[applicationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts -[applicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetSample.ts -[applicationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsListByClusterSample.ts -[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersCreateSample.ts -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersDeleteSample.ts -[clustersexecutescriptactionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersExecuteScriptActionsSample.ts -[clustersgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts -[clustersgetgatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetGatewaySettingsSample.ts -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetSample.ts -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListByResourceGroupSample.ts -[clusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListSample.ts -[clustersresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersResizeSample.ts -[clustersrotatediskencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersRotateDiskEncryptionKeySample.ts -[clustersupdateautoscaleconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts -[clustersupdategatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateGatewaySettingsSample.ts -[clustersupdateidentitycertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateIdentityCertificateSample.ts -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateSample.ts -[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsGetSample.ts -[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsListSample.ts -[configurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsUpdateSample.ts -[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsCreateSample.ts -[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDeleteSample.ts -[extensionsdisableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableAzureMonitorSample.ts -[extensionsdisablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableMonitoringSample.ts -[extensionsenableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableAzureMonitorSample.ts -[extensionsenablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableMonitoringSample.ts -[extensionsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts -[extensionsgetazuremonitorstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureMonitorStatusSample.ts -[extensionsgetmonitoringstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetMonitoringStatusSample.ts -[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetSample.ts -[locationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsCheckNameAvailabilitySample.ts -[locationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts -[locationsgetcapabilitiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetCapabilitiesSample.ts -[locationslistbillingspecssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListBillingSpecsSample.ts -[locationslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListUsagesSample.ts -[locationsvalidateclustercreaterequestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsValidateClusterCreateRequestSample.ts -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts -[privateendpointconnectionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsListByClusterSample.ts -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesGetSample.ts -[privatelinkresourceslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesListByClusterSample.ts -[scriptactionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsDeleteSample.ts -[scriptactionsgetexecutionasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts -[scriptactionsgetexecutiondetailsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionDetailSample.ts -[scriptactionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsListByClusterSample.ts -[scriptexecutionhistorylistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryListByClusterSample.ts -[scriptexecutionhistorypromotesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryPromoteSample.ts -[virtualmachinesgetasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts -[virtualmachineslisthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesListHostsSample.ts -[virtualmachinesrestarthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesRestartHostsSample.ts +[applicationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsCreateSample.ts +[applicationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsDeleteSample.ts +[applicationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts +[applicationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetSample.ts +[applicationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsListByClusterSample.ts +[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersCreateSample.ts +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersDeleteSample.ts +[clustersexecutescriptactionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersExecuteScriptActionsSample.ts +[clustersgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts +[clustersgetgatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetGatewaySettingsSample.ts +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetSample.ts +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListByResourceGroupSample.ts +[clusterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListSample.ts +[clustersresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersResizeSample.ts +[clustersrotatediskencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersRotateDiskEncryptionKeySample.ts +[clustersupdateautoscaleconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts +[clustersupdategatewaysettingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateGatewaySettingsSample.ts +[clustersupdateidentitycertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateIdentityCertificateSample.ts +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateSample.ts +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsGetSample.ts +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsListSample.ts +[configurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsUpdateSample.ts +[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsCreateSample.ts +[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDeleteSample.ts +[extensionsdisableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableAzureMonitorSample.ts +[extensionsdisablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableMonitoringSample.ts +[extensionsenableazuremonitorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableAzureMonitorSample.ts +[extensionsenablemonitoringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableMonitoringSample.ts +[extensionsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts +[extensionsgetazuremonitorstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureMonitorStatusSample.ts +[extensionsgetmonitoringstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetMonitoringStatusSample.ts +[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetSample.ts +[locationschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsCheckNameAvailabilitySample.ts +[locationsgetazureasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts +[locationsgetcapabilitiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetCapabilitiesSample.ts +[locationslistbillingspecssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListBillingSpecsSample.ts +[locationslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListUsagesSample.ts +[locationsvalidateclustercreaterequestsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsValidateClusterCreateRequestSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsListByClusterSample.ts +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesGetSample.ts +[privatelinkresourceslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesListByClusterSample.ts +[scriptactionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsDeleteSample.ts +[scriptactionsgetexecutionasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts +[scriptactionsgetexecutiondetailsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionDetailSample.ts +[scriptactionslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsListByClusterSample.ts +[scriptexecutionhistorylistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryListByClusterSample.ts +[scriptexecutionhistorypromotesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryPromoteSample.ts +[virtualmachinesgetasyncoperationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts +[virtualmachineslisthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesListHostsSample.ts +[virtualmachinesrestarthostssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesRestartHostsSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hdinsight?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight/README.md diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/package.json b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/package.json similarity index 84% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/package.json rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/package.json index 117f9ca4d6f..6158a1a5d63 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/package.json +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-hdinsight-ts", + "name": "@azure-samples/arm-hdinsight-ts-beta", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript", + "description": " client library samples for TypeScript (Beta)", "engines": { "node": ">=14.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hdinsight/arm-hdinsight", "dependencies": { - "@azure/arm-hdinsight": "latest", + "@azure/arm-hdinsight": "next", "dotenv": "latest", "@azure/identity": "^2.0.1" }, diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/sample.env b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/sample.env similarity index 100% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/sample.env rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/sample.env diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsCreateSample.ts similarity index 96% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsCreateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsCreateSample.ts index e39c2e799bb..5b3218853a3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates applications for the HDInsight cluster. * * @summary Creates applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json */ async function createApplication() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsDeleteSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsDeleteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsDeleteSample.ts index f1854e888fe..81022fd4d74 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified application on the HDInsight cluster. * * @summary Deletes the specified application on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteApplication.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json */ async function deleteApplicationFromHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts index acc157eacf1..48ccbadffce 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json */ async function getTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetSample.ts similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetSample.ts index 3dcbac458c3..810b68d5718 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationInProgress.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json */ async function getApplicationOnHdInsightClusterCreationInProgress() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function getApplicationOnHdInsightClusterCreationInProgress() { * This sample demonstrates how to Gets properties of the specified application. * * @summary Gets properties of the specified application. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetApplicationCreated.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreated.json */ async function getApplicationOnHdInsightClusterSuccessfullyCreated() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsListByClusterSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsListByClusterSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsListByClusterSample.ts index ac01cf719da..c9d86330139 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/applicationsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/applicationsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications for the HDInsight cluster. * * @summary Lists all of the applications for the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllApplications.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json */ async function getAllApplicationsForAnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersCreateSample.ts similarity index 95% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersCreateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersCreateSample.ts index bae51421989..38fc94827c5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAutoscaleConfig.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json */ async function createHdInsightClusterWithAutoscaleConfiguration() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -117,6 +117,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { { name: "mystorage.blob.core.windows.net", container: "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -139,7 +140,7 @@ async function createHdInsightClusterWithAutoscaleConfiguration() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopAdlsGen2.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopAdlsGen2.json */ async function createHadoopClusterWithAzureDataLakeStorageGen2() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -203,6 +204,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { storageaccounts: [ { name: "mystorage.dfs.core.windows.net", + enableSecureChannel: true, fileSystem: "default", isDefault: true, key: "storagekey" @@ -227,7 +229,7 @@ async function createHadoopClusterWithAzureDataLakeStorageGen2() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPassword.json */ async function createHadoopOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -292,6 +294,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -315,7 +318,7 @@ async function createHadoopOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSshPublicKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPublicKey.json */ async function createHadoopOnLinuxClusterWithSshPublicKey() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -380,6 +383,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -403,7 +407,7 @@ async function createHadoopOnLinuxClusterWithSshPublicKey() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateKafkaClusterWithKafkaRestProxy.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json */ async function createKafkaClusterWithKafkaRestProxy() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -484,6 +488,7 @@ async function createKafkaClusterWithKafkaRestProxy() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -506,7 +511,7 @@ async function createKafkaClusterWithKafkaRestProxy() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxHadoopSecureHadoop.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSecureHadoop.json */ async function createSecureHadoopCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -604,6 +609,7 @@ async function createSecureHadoopCluster() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -627,7 +633,7 @@ async function createSecureHadoopCluster() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateLinuxSparkSshPassword.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxSparkSshPassword.json */ async function createSparkOnLinuxClusterWithSshPassword() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -681,6 +687,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { { name: "mystorage.blob.core.windows.net", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storageapikey*" } @@ -704,7 +711,7 @@ async function createSparkOnLinuxClusterWithSshPassword() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithTLS12.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithTLS12.json */ async function createClusterWithTls12() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -767,6 +774,7 @@ async function createClusterWithTls12() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -789,7 +797,7 @@ async function createClusterWithTls12() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithAvailabilityZones.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json */ async function createClusterWithAvailabilityZones() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -897,6 +905,7 @@ async function createClusterWithAvailabilityZones() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -919,7 +928,7 @@ async function createClusterWithAvailabilityZones() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithComputeIsolationProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json */ async function createClusterWithComputeIsolationProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -976,6 +985,7 @@ async function createClusterWithComputeIsolationProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } @@ -997,7 +1007,7 @@ async function createClusterWithComputeIsolationProperties() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionAtHost.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json */ async function createClusterWithEncryptionAtHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1060,6 +1070,7 @@ async function createClusterWithEncryptionAtHost() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -1082,7 +1093,7 @@ async function createClusterWithEncryptionAtHost() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithEncryptionInTransit.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json */ async function createClusterWithEncryptionInTransit() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -1145,6 +1156,7 @@ async function createClusterWithEncryptionInTransit() { { name: "mystorage.blob.core.windows.net", container: "default8525", + enableSecureChannel: true, isDefault: true, key: "storagekey" } @@ -1167,7 +1179,7 @@ async function createClusterWithEncryptionInTransit() { * This sample demonstrates how to Creates a new HDInsight cluster with the specified parameters. * * @summary Creates a new HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateHDInsightClusterWithCustomNetworkProperties.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json */ async function createClusterWithNetworkProperties() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subId"; @@ -1236,6 +1248,7 @@ async function createClusterWithNetworkProperties() { { name: "mystorage", container: "containername", + enableSecureChannel: true, isDefault: true, key: "storage account key" } diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersDeleteSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersDeleteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersDeleteSample.ts index 33f0a5cee18..1f8a9053234 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified HDInsight cluster. * * @summary Deletes the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json */ async function deleteHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersExecuteScriptActionsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersExecuteScriptActionsSample.ts similarity index 95% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersExecuteScriptActionsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersExecuteScriptActionsSample.ts index f2b9adad1dd..def3b47d86c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersExecuteScriptActionsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersExecuteScriptActionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Executes script actions on the specified HDInsight cluster. * * @summary Executes script actions on the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PostExecuteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json */ async function executeScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts index f9d50e557e0..1459c10fb87 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The the async operation status. * * @summary The the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterCreatingAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json */ async function getAsyncOperationStatusOfCreatingCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetGatewaySettingsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetGatewaySettingsSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetGatewaySettingsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetGatewaySettingsSample.ts index 265286a55f3..a70c5905602 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetGatewaySettingsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetGatewaySettingsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the gateway settings for the specified cluster. * * @summary Gets the gateway settings for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_GetGatewaySettings.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_GetGatewaySettings.json */ async function getHttpSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetSample.ts similarity index 91% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetSample.ts index d822bc964ff..69a9a2b8930 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopCluster.json */ async function getHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function getHadoopOnLinuxCluster() { * This sample demonstrates how to Gets the specified cluster. * * @summary Gets the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxSparkCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxSparkCluster.json */ async function getSparkOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListByResourceGroupSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListByResourceGroupSample.ts similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListByResourceGroupSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListByResourceGroupSample.ts index a575759c64e..f284432e9d8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListByResourceGroupSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the HDInsight clusters in a resource group. * * @summary Lists the HDInsight clusters in a resource group. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClustersInResourceGroup.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClustersInResourceGroup.json */ async function getAllHadoopOnLinuxClustersInAResourceGroup() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListSample.ts index 9b7441e142b..878343944d5 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersListSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the HDInsight clusters under the subscription. * * @summary Lists all the HDInsight clusters under the subscription. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopAllClusters.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopAllClusters.json */ async function getAllHadoopOnLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersResizeSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersResizeSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersResizeSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersResizeSample.ts index 88765810529..128dffdda8d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersResizeSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersResizeSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Resizes the specified HDInsight cluster to the specified size. * * @summary Resizes the specified HDInsight cluster to the specified size. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ResizeLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ResizeLinuxHadoopCluster.json */ async function resizeTheWorkerNodesForAHadoopOnLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersRotateDiskEncryptionKeySample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersRotateDiskEncryptionKeySample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersRotateDiskEncryptionKeySample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersRotateDiskEncryptionKeySample.ts index 33dd47b4551..c97b54d501e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersRotateDiskEncryptionKeySample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersRotateDiskEncryptionKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Rotate disk encryption key of the specified HDInsight cluster. * * @summary Rotate disk encryption key of the specified HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RotateLinuxHadoopClusterDiskEncryptionKey.json */ async function rotateDiskEncryptionKeyOfTheSpecifiedHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts index c2beadda90e..3c3a86818d8 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateAutoScaleConfigurationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableClusterAutoScale.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableClusterAutoScale.json */ async function disableAutoscaleForTheHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -44,7 +44,7 @@ async function disableAutoscaleForTheHdInsightCluster() { * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithLoadBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -69,7 +69,7 @@ async function enableOrUpdateAutoscaleWithTheLoadBasedConfigurationForHdInsightC * This sample demonstrates how to Updates the Autoscale Configuration for HDInsight cluster. * * @summary Updates the Autoscale Configuration for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableOrUpdateAutoScaleWithScheduleBasedConfiguration.json */ async function enableOrUpdateAutoscaleWithTheScheduleBasedConfigurationForHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateGatewaySettingsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateGatewaySettingsSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateGatewaySettingsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateGatewaySettingsSample.ts index 738f56d547b..c4dc0c5c552 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateGatewaySettingsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateGatewaySettingsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Configures the gateway settings on the specified cluster. * * @summary Configures the gateway settings on the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateGatewaySettings_Enable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateIdentityCertificateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateIdentityCertificateSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateIdentityCertificateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateIdentityCertificateSample.ts index b9c83ba94f1..0a57ba3773f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateIdentityCertificateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateIdentityCertificateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the cluster identity certificate. * * @summary Updates the cluster identity certificate. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Clusters_UpdateClusterIdentityCertificate.json */ async function updateClusterIdentityCertificate() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateSample.ts index 9e91af35263..a7765775b04 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/clustersUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/clustersUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch HDInsight cluster with the specified parameters. * * @summary Patch HDInsight cluster with the specified parameters. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PatchLinuxHadoopCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PatchLinuxHadoopCluster.json */ async function patchHdInsightLinuxClusters() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsGetSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsGetSample.ts index 6b95d194b72..654ef8774dd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. * * @summary The configuration object for the specified cluster. This API is not recommended and might be removed in the future. Please consider using List configurations API instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_Get.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_Get.json */ async function getCoreSiteSettings() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsListSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsListSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsListSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsListSample.ts index ef4fbf017df..284caae37a0 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsListSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all configuration information for an HDI cluster. * * @summary Gets all configuration information for an HDI cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Configurations_List.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Configurations_List.json */ async function getAllConfigurationInformation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsUpdateSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsUpdateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsUpdateSample.ts index d65f7069093..45ae92826ef 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/configurationsUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/configurationsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityDisable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityDisable.json */ async function disableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -43,7 +43,7 @@ async function disableHttpConnectivity() { * This sample demonstrates how to Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. * * @summary Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ChangeHttpConnectivityEnable.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ChangeHttpConnectivityEnable.json */ async function enableHttpConnectivity() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsCreateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsCreateSample.ts similarity index 95% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsCreateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsCreateSample.ts index 17a62046d2a..b91184cc7b2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsCreateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an HDInsight cluster extension. * * @summary Creates an HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/CreateExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateExtension.json */ async function createAMonitoringExtensionOnHadoopLinuxCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDeleteSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDeleteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDeleteSample.ts index 689842cc2a1..c34e1c861ff 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified extension for HDInsight cluster. * * @summary Deletes the specified extension for HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteExtension.json */ async function deleteAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableAzureMonitorSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableAzureMonitorSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableAzureMonitorSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableAzureMonitorSample.ts index e94ee7a4ad4..a963dbb3993 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableAzureMonitorSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableAzureMonitorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables the Azure Monitor on the HDInsight cluster. * * @summary Disables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableMonitoringSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableMonitoringSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableMonitoringSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableMonitoringSample.ts index 8da36bea227..b5c01d763a7 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsDisableMonitoringSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsDisableMonitoringSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Disables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DisableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DisableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableAzureMonitorSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableAzureMonitorSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableAzureMonitorSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableAzureMonitorSample.ts index 101a98ce9de..70de2da7132 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableAzureMonitorSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableAzureMonitorSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Enables the Azure Monitor on the HDInsight cluster. * * @summary Enables the Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterAzureMonitor.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterAzureMonitor.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableMonitoringSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableMonitoringSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableMonitoringSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableMonitoringSample.ts index a44f2d6027e..eb24f404875 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsEnableMonitoringSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsEnableMonitoringSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Enables the Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Enables the Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/EnableLinuxClusterMonitoring.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/EnableLinuxClusterMonitoring.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts index 9ca0b744de8..3e6eb678cb2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtensionCreationAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtensionCreationAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureMonitorStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureMonitorStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureMonitorStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureMonitorStatusSample.ts index ef39106b8ef..b5405d9a637 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetAzureMonitorStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetAzureMonitorStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of Azure Monitor on the HDInsight cluster. * * @summary Gets the status of Azure Monitor on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterAzureMonitorStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterAzureMonitorStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetMonitoringStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetMonitoringStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetMonitoringStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetMonitoringStatusSample.ts index 05fbff359ba..8ed3b4d831e 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetMonitoringStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetMonitoringStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. * * @summary Gets the status of Operations Management Suite (OMS) on the HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxClusterMonitoringStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxClusterMonitoringStatus.json */ async function enableClusterMonitoring() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetSample.ts index c68807534f2..6b3e6d71f2f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/extensionsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/extensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the extension properties for the specified HDInsight cluster extension. * * @summary Gets the extension properties for the specified HDInsight cluster extension. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetExtension.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetExtension.json */ async function getAnExtension() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsCheckNameAvailabilitySample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsCheckNameAvailabilitySample.ts similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsCheckNameAvailabilitySample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsCheckNameAvailabilitySample.ts index 68c038069bd..7edba73f52d 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsCheckNameAvailabilitySample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsCheckNameAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the cluster name is available or not. * * @summary Check the cluster name is available or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_CheckClusterNameAvailability.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_CheckClusterNameAvailability.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts similarity index 92% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts index bc5e76a801e..496ed21cba2 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetAzureAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the async operation status. * * @summary Get the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_GetAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_GetAsyncOperationStatus.json */ async function getsTheAzureAsyncOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetCapabilitiesSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetCapabilitiesSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetCapabilitiesSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetCapabilitiesSample.ts index 2795a8d8c0c..6156d880f63 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsGetCapabilitiesSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsGetCapabilitiesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the capabilities for the specified location. * * @summary Gets the capabilities for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightCapabilities.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightCapabilities.json */ async function getTheSubscriptionCapabilitiesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListBillingSpecsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListBillingSpecsSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListBillingSpecsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListBillingSpecsSample.ts index 7fba5e2537c..7fafe62a86f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListBillingSpecsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListBillingSpecsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the billingSpecs for the specified subscription and location. * * @summary Lists the billingSpecs for the specified subscription and location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ListBillingSpecs.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ListBillingSpecs.json */ async function getTheSubscriptionBillingSpecsForTheSpecifiedLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListUsagesSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListUsagesSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListUsagesSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListUsagesSample.ts index 0c224a9b668..a356ebcba72 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsListUsagesSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsListUsagesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the usages for the specified location. * * @summary Lists the usages for the specified location. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetHDInsightUsages.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetHDInsightUsages.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsValidateClusterCreateRequestSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsValidateClusterCreateRequestSample.ts similarity index 96% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsValidateClusterCreateRequestSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsValidateClusterCreateRequestSample.ts index 89398487f69..f0092ce35fd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/locationsValidateClusterCreateRequestSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/locationsValidateClusterCreateRequestSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Validate the cluster create request spec is valid or not. * * @summary Validate the cluster create request spec is valid or not. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/HDI_Locations_ValidateClusterCreateRequest.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/HDI_Locations_ValidateClusterCreateRequest.json */ async function getTheSubscriptionUsagesForSpecificLocation() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; @@ -102,6 +102,7 @@ async function getTheSubscriptionUsagesForSpecificLocation() { { name: "storagename.blob.core.windows.net", container: "contianername", + enableSecureChannel: true, isDefault: true, key: "*******", resourceId: diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/operationsListSample.ts new file mode 100644 index 00000000000..01ad4f51d51 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HDInsightManagementClient } from "@azure/arm-hdinsight"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all of the available HDInsight REST API operations. + * + * @summary Lists all of the available HDInsight REST API operations. + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ListHDInsightOperations.json + */ +async function listsAllOfTheAvailableOperations() { + const subscriptionId = + process.env["HDINSIGHT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new HDInsightManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listsAllOfTheAvailableOperations(); +} + +main().catch(console.error); diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index c7dececaa4b..e054b7d7625 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection manually. * * @summary Approve or reject a private endpoint connection manually. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/ApprovePrivateEndpointConnection.json */ async function approveAPrivateEndpointConnectionManually() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts index 3bad13ed51d..550eec4cf2b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specific private endpoint connection. * * @summary Deletes the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeletePrivateEndpointConnection.json */ async function deleteSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsGetSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsGetSample.ts index 273e4291502..21528a03697 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specific private endpoint connection. * * @summary Gets the specific private endpoint connection. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateEndpointConnection.json */ async function getSpecificPrivateEndpointConnectionForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsListByClusterSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsListByClusterSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsListByClusterSample.ts index 17a9953e3b1..f5d51469f80 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateEndpointConnectionsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateEndpointConnectionsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private endpoint connections for a HDInsight cluster. * * @summary Lists the private endpoint connections for a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateEndpointConnectionsInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateEndpointConnectionsInCluster.json */ async function getAllPrivateEndpointConnectionsForASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesGetSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesGetSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesGetSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesGetSample.ts index 952a4c79586..2b19013d3dd 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specific private link resource. * * @summary Gets the specific private link resource. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetPrivateLinkResource.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetPrivateLinkResource.json */ async function getSpecificPrivateLinkResourceInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesListByClusterSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesListByClusterSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesListByClusterSample.ts index c842be52ae8..03e35787b3b 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/privateLinkResourcesListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/privateLinkResourcesListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the private link resources in a HDInsight cluster. * * @summary Lists the private link resources in a HDInsight cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetAllPrivateLinkResourcesInCluster.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllPrivateLinkResourcesInCluster.json */ async function getAllPrivateLinkResourcesInASpecificHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsDeleteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsDeleteSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsDeleteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsDeleteSample.ts index fd4efefde27..b577f6fbf2c 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsDeleteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a specified persisted script action of the cluster. * * @summary Deletes a specified persisted script action of the cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/DeleteScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteScriptAction.json */ async function deleteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts index f3da5008c44..0ba03f539c0 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status of execution operation. * * @summary Gets the async operation status of execution operation. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionAsyncOperationStatus.json */ async function getsTheAsyncExecutionOperationStatus() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionDetailSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionDetailSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionDetailSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionDetailSample.ts index fe64a61f1cc..ae405772bbe 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsGetExecutionDetailSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsGetExecutionDetailSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the script execution detail for the given script execution ID. * * @summary Gets the script execution detail for the given script execution ID. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptActionById.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptActionById.json */ async function getScriptExecutionHistoryByScriptId() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsListByClusterSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsListByClusterSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsListByClusterSample.ts index a27c32d8314..51f808d561f 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptActionsListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptActionsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the persisted script actions for the specified cluster. * * @summary Lists all the persisted script actions for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetLinuxHadoopScriptAction.json */ async function listAllPersistedScriptActionsForTheGivenCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryListByClusterSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryListByClusterSample.ts similarity index 94% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryListByClusterSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryListByClusterSample.ts index 9e2956bb232..3a2b20d85d3 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryListByClusterSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all scripts' execution history for the specified cluster. * * @summary Lists all scripts' execution history for the specified cluster. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetScriptExecutionHistory.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetScriptExecutionHistory.json */ async function getScriptExecutionHistoryList() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryPromoteSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryPromoteSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryPromoteSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryPromoteSample.ts index 85029828423..b39c10744e7 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/scriptExecutionHistoryPromoteSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/scriptExecutionHistoryPromoteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Promotes the specified ad-hoc script execution to a persisted script. * * @summary Promotes the specified ad-hoc script execution to a persisted script. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/PromoteLinuxHadoopScriptAction.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PromoteLinuxHadoopScriptAction.json */ async function promoteAScriptActionOnHdInsightCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts index 9c261358aa9..b852566c13a 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesGetAsyncOperationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the async operation status. * * @summary Gets the async operation status. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetRestartHostsAsyncOperationStatus.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetRestartHostsAsyncOperationStatus.json */ async function getsTheAsyncOperationStatusOfRestartingHost() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesListHostsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesListHostsSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesListHostsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesListHostsSample.ts index 13e538eacbd..a7ed1ca2127 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesListHostsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesListHostsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the HDInsight clusters hosts * * @summary Lists the HDInsight clusters hosts - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/GetClusterVirtualMachines.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterVirtualMachines.json */ async function getAllHostsInTheCluster() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesRestartHostsSample.ts b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesRestartHostsSample.ts similarity index 93% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesRestartHostsSample.ts rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesRestartHostsSample.ts index f748f4ff59e..c2d8d4df7d1 100644 --- a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/src/virtualMachinesRestartHostsSample.ts +++ b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/src/virtualMachinesRestartHostsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restarts the specified HDInsight cluster hosts. * * @summary Restarts the specified HDInsight cluster hosts. - * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2021-06-01/examples/RestartVirtualMachinesOperation.json + * x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/RestartVirtualMachinesOperation.json */ async function restartsTheSpecifiedHdInsightClusterHosts() { const subscriptionId = process.env["HDINSIGHT_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hdinsight/arm-hdinsight/samples/v1/typescript/tsconfig.json b/sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/tsconfig.json similarity index 100% rename from sdk/hdinsight/arm-hdinsight/samples/v1/typescript/tsconfig.json rename to sdk/hdinsight/arm-hdinsight/samples/v1-beta/typescript/tsconfig.json diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts index fc52317dae8..5624dd20f99 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts @@ -15,30 +15,30 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - ClustersImpl, ApplicationsImpl, - LocationsImpl, + ClustersImpl, ConfigurationsImpl, ExtensionsImpl, + LocationsImpl, + OperationsImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, ScriptActionsImpl, ScriptExecutionHistoryImpl, - OperationsImpl, - VirtualMachinesImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl + VirtualMachinesImpl } from "./operations"; import { - Clusters, Applications, - Locations, + Clusters, Configurations, Extensions, + Locations, + Operations, + PrivateEndpointConnections, + PrivateLinkResources, ScriptActions, ScriptExecutionHistory, - Operations, - VirtualMachines, - PrivateEndpointConnections, - PrivateLinkResources + VirtualMachines } from "./operationsInterfaces"; import { HDInsightManagementClientOptionalParams } from "./models"; @@ -75,7 +75,7 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-hdinsight/1.2.2`; + const packageDetails = `azsdk-js-arm-hdinsight/1.3.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -128,18 +128,18 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-06-01"; - this.clusters = new ClustersImpl(this); + this.apiVersion = options.apiVersion || "2023-04-15-preview"; this.applications = new ApplicationsImpl(this); - this.locations = new LocationsImpl(this); + this.clusters = new ClustersImpl(this); this.configurations = new ConfigurationsImpl(this); this.extensions = new ExtensionsImpl(this); - this.scriptActions = new ScriptActionsImpl(this); - this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this); + this.locations = new LocationsImpl(this); this.operations = new OperationsImpl(this); - this.virtualMachines = new VirtualMachinesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.scriptActions = new ScriptActionsImpl(this); + this.scriptExecutionHistory = new ScriptExecutionHistoryImpl(this); + this.virtualMachines = new VirtualMachinesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -171,15 +171,15 @@ export class HDInsightManagementClient extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - clusters: Clusters; applications: Applications; - locations: Locations; + clusters: Clusters; configurations: Configurations; extensions: Extensions; - scriptActions: ScriptActions; - scriptExecutionHistory: ScriptExecutionHistory; + locations: Locations; operations: Operations; - virtualMachines: VirtualMachines; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; + scriptActions: ScriptActions; + scriptExecutionHistory: ScriptExecutionHistory; + virtualMachines: VirtualMachines; } diff --git a/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts index 518d5f053b4..dd803cd5e28 100644 --- a/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts +++ b/sdk/hdinsight/arm-hdinsight/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 2e72dd7b101..9c6674cdc2d 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -8,105 +8,57 @@ import * as coreClient from "@azure/core-client"; -/** The CreateCluster request parameters. */ -export interface ClusterCreateParametersExtended { - /** The location of the cluster. */ - location?: string; - /** The resource tags. */ - tags?: { [propertyName: string]: string }; - /** The availability zones. */ - zones?: string[]; - /** The cluster create parameters. */ - properties?: ClusterCreateProperties; - /** The identity of the cluster, if configured. */ - identity?: ClusterIdentity; +/** Result of the request to list cluster Applications. It contains a list of operations and a URL link to get the next set of results. */ +export interface ApplicationListResult { + /** The list of HDInsight applications installed on HDInsight cluster. */ + value?: Application[]; + /** + * The URL to get the next set of operation list results if there are any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** The cluster create parameters. */ -export interface ClusterCreateProperties { - /** The version of the cluster. */ - clusterVersion?: string; - /** The type of operating system. */ - osType?: OSType; - /** The cluster tier. */ - tier?: Tier; - /** The cluster definition. */ - clusterDefinition?: ClusterDefinition; - /** The cluster kafka rest proxy configuration. */ - kafkaRestProperties?: KafkaRestProperties; - /** The security profile. */ - securityProfile?: SecurityProfile; - /** The compute profile. */ +/** The HDInsight cluster application GET response. */ +export interface ApplicationProperties { + /** The list of roles in the cluster. */ computeProfile?: ComputeProfile; - /** The storage profile. */ - storageProfile?: StorageProfile; - /** The disk encryption properties. */ - diskEncryptionProperties?: DiskEncryptionProperties; - /** The encryption-in-transit properties. */ - encryptionInTransitProperties?: EncryptionInTransitProperties; - /** The minimal supported tls version. */ - minSupportedTlsVersion?: string; - /** The network properties. */ - networkProperties?: NetworkProperties; - /** The compute isolation properties. */ - computeIsolationProperties?: ComputeIsolationProperties; + /** The list of install script actions. */ + installScriptActions?: RuntimeScriptAction[]; + /** The list of uninstall script actions. */ + uninstallScriptActions?: RuntimeScriptAction[]; + /** The list of application HTTPS endpoints. */ + httpsEndpoints?: ApplicationGetHttpsEndpoint[]; + /** The list of application SSH endpoints. */ + sshEndpoints?: ApplicationGetEndpoint[]; + /** + * The provisioning state of the application. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The application type. */ + applicationType?: string; + /** + * The application state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicationState?: string; + /** The list of errors. */ + errors?: Errors[]; + /** + * The application create date time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDate?: string; + /** + * The marketplace identifier. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly marketplaceIdentifier?: string; /** The private link configurations. */ privateLinkConfigurations?: PrivateLinkConfiguration[]; } -/** The cluster definition. */ -export interface ClusterDefinition { - /** The link to the blueprint. */ - blueprint?: string; - /** The type of cluster. */ - kind?: string; - /** The versions of different services in the cluster. */ - componentVersion?: { [propertyName: string]: string }; - /** The cluster configurations. */ - configurations?: Record; -} - -/** The kafka rest proxy configuration which contains AAD security group information. */ -export interface KafkaRestProperties { - /** The information of AAD security group. */ - clientGroupInfo?: ClientGroupInfo; - /** The configurations that need to be overriden. */ - configurationOverride?: { [propertyName: string]: string }; -} - -/** The information of AAD security group. */ -export interface ClientGroupInfo { - /** The AAD security group name. */ - groupName?: string; - /** The AAD security group id. */ - groupId?: string; -} - -/** The security profile which contains Ssh public key for the HDInsight cluster. */ -export interface SecurityProfile { - /** The directory type. */ - directoryType?: DirectoryType; - /** The organization's active directory domain. */ - domain?: string; - /** The organizational unit within the Active Directory to place the cluster and service accounts. */ - organizationalUnitDN?: string; - /** The LDAPS protocol URLs to communicate with the Active Directory. */ - ldapsUrls?: string[]; - /** The domain user account that will have admin privileges on the cluster. */ - domainUsername?: string; - /** - * The domain admin password. - * This value contains a credential. Consider obscuring before showing to users - */ - domainUserPassword?: string; - /** Optional. The Distinguished Names for cluster user groups */ - clusterUsersGroupDNs?: string[]; - /** The resource ID of the user's Azure Active Directory Domain Service. */ - aaddsResourceId?: string; - /** User assigned identity that has permissions to read and create cluster-related artifacts in the user's AADDS. */ - msiResourceId?: string; -} - /** Describes the compute profile. */ export interface ComputeProfile { /** The list of roles in the cluster. */ @@ -249,70 +201,65 @@ export interface ScriptAction { parameters: string; } -/** The storage profile. */ -export interface StorageProfile { - /** The list of storage accounts in the cluster. */ - storageaccounts?: StorageAccount[]; +/** Describes a script action on a running cluster. */ +export interface RuntimeScriptAction { + /** The name of the script action. */ + name: string; + /** The URI to the script. */ + uri: string; + /** The parameters for the script */ + parameters?: string; + /** The list of roles where script will be executed. */ + roles: string[]; + /** + * The application name of the script action, if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicationName?: string; } -/** The storage Account. */ -export interface StorageAccount { - /** The name of the storage account. */ - name?: string; - /** Whether or not the storage account is the default storage account. */ - isDefault?: boolean; - /** The container in the storage account, only to be specified for WASB storage accounts. */ - container?: string; - /** The filesystem, only to be specified for Azure Data Lake Storage Gen 2. */ - fileSystem?: string; - /** The storage account access key. */ - key?: string; - /** The resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2. */ - resourceId?: string; - /** The managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2. */ - msiResourceId?: string; - /** The shared access signature key. */ - saskey?: string; - /** The file share name. */ - fileshare?: string; +/** Gets the application HTTP endpoints. */ +export interface ApplicationGetHttpsEndpoint { + /** The list of access modes for the application. */ + accessModes?: string[]; + /** + * The location of the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** The destination port to connect to. */ + destinationPort?: number; + /** + * The public port to connect to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicPort?: number; + /** The private ip address of the endpoint. */ + privateIPAddress?: string; + /** The subdomain suffix of the application. */ + subDomainSuffix?: string; + /** The value indicates whether to disable GatewayAuth. */ + disableGatewayAuth?: boolean; } -/** The disk encryption properties */ -export interface DiskEncryptionProperties { - /** Base key vault URI where the customers key is located eg. https://myvault.vault.azure.net */ - vaultUri?: string; - /** Key name that is used for enabling disk encryption. */ - keyName?: string; - /** Specific key version that is used for enabling disk encryption. */ - keyVersion?: string; - /** Algorithm identifier for encryption, default RSA-OAEP. */ - encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm; - /** Resource ID of Managed Identity that is used to access the key vault. */ - msiResourceId?: string; - /** Indicates whether or not resource disk encryption is enabled. */ - encryptionAtHost?: boolean; +/** Gets the application SSH endpoint */ +export interface ApplicationGetEndpoint { + /** The location of the endpoint. */ + location?: string; + /** The destination port to connect to. */ + destinationPort?: number; + /** The public port to connect to. */ + publicPort?: number; + /** The private ip address of the endpoint. */ + privateIPAddress?: string; } -/** The encryption-in-transit properties. */ -export interface EncryptionInTransitProperties { - /** Indicates whether or not inter cluster node communication is encrypted in transit. */ - isEncryptionInTransitEnabled?: boolean; -} - -/** The network properties. */ -export interface NetworkProperties { - /** The direction for the resource provider connection. */ - resourceProviderConnection?: ResourceProviderConnection; - /** Indicates whether or not private link is enabled. */ - privateLink?: PrivateLink; -} - -/** The compute isolation properties. */ -export interface ComputeIsolationProperties { - /** The flag indicates whether enable compute isolation or not. */ - enableComputeIsolation?: boolean; - /** The host sku. */ - hostSku?: string; +/** The error message associated with the cluster creation. */ +export interface Errors { + /** The error code. */ + code?: string; + /** The error message. */ + message?: string; } /** The private link configuration. */ @@ -375,6 +322,224 @@ export interface ResourceId { id?: string; } +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Describes the format of Error response. */ +export interface ErrorResponse { + /** Error code */ + code?: string; + /** Error message indicating why the operation failed. */ + message?: string; +} + +/** The azure async operation response. */ +export interface AsyncOperationResult { + /** The async operation state. */ + status?: AsyncOperationState; + /** The operation error information. */ + error?: Errors; +} + +/** The CreateCluster request parameters. */ +export interface ClusterCreateParametersExtended { + /** The location of the cluster. */ + location?: string; + /** The resource tags. */ + tags?: { [propertyName: string]: string }; + /** The availability zones. */ + zones?: string[]; + /** The cluster create parameters. */ + properties?: ClusterCreateProperties; + /** The identity of the cluster, if configured. */ + identity?: ClusterIdentity; +} + +/** The cluster create parameters. */ +export interface ClusterCreateProperties { + /** The version of the cluster. */ + clusterVersion?: string; + /** The type of operating system. */ + osType?: OSType; + /** The cluster tier. */ + tier?: Tier; + /** The cluster definition. */ + clusterDefinition?: ClusterDefinition; + /** The cluster kafka rest proxy configuration. */ + kafkaRestProperties?: KafkaRestProperties; + /** The security profile. */ + securityProfile?: SecurityProfile; + /** The compute profile. */ + computeProfile?: ComputeProfile; + /** The storage profile. */ + storageProfile?: StorageProfile; + /** The disk encryption properties. */ + diskEncryptionProperties?: DiskEncryptionProperties; + /** The encryption-in-transit properties. */ + encryptionInTransitProperties?: EncryptionInTransitProperties; + /** The minimal supported tls version. */ + minSupportedTlsVersion?: string; + /** The network properties. */ + networkProperties?: NetworkProperties; + /** The compute isolation properties. */ + computeIsolationProperties?: ComputeIsolationProperties; + /** The private link configurations. */ + privateLinkConfigurations?: PrivateLinkConfiguration[]; +} + +/** The cluster definition. */ +export interface ClusterDefinition { + /** The link to the blueprint. */ + blueprint?: string; + /** The type of cluster. */ + kind?: string; + /** The versions of different services in the cluster. */ + componentVersion?: { [propertyName: string]: string }; + /** The cluster configurations. */ + configurations?: Record; +} + +/** The kafka rest proxy configuration which contains AAD security group information. */ +export interface KafkaRestProperties { + /** The information of AAD security group. */ + clientGroupInfo?: ClientGroupInfo; + /** The configurations that need to be overriden. */ + configurationOverride?: { [propertyName: string]: string }; +} + +/** The information of AAD security group. */ +export interface ClientGroupInfo { + /** The AAD security group name. */ + groupName?: string; + /** The AAD security group id. */ + groupId?: string; +} + +/** The security profile which contains Ssh public key for the HDInsight cluster. */ +export interface SecurityProfile { + /** The directory type. */ + directoryType?: DirectoryType; + /** The organization's active directory domain. */ + domain?: string; + /** The organizational unit within the Active Directory to place the cluster and service accounts. */ + organizationalUnitDN?: string; + /** The LDAPS protocol URLs to communicate with the Active Directory. */ + ldapsUrls?: string[]; + /** The domain user account that will have admin privileges on the cluster. */ + domainUsername?: string; + /** + * The domain admin password. + * This value contains a credential. Consider obscuring before showing to users + */ + domainUserPassword?: string; + /** Optional. The Distinguished Names for cluster user groups */ + clusterUsersGroupDNs?: string[]; + /** The resource ID of the user's Azure Active Directory Domain Service. */ + aaddsResourceId?: string; + /** User assigned identity that has permissions to read and create cluster-related artifacts in the user's AADDS. */ + msiResourceId?: string; +} + +/** The storage profile. */ +export interface StorageProfile { + /** The list of storage accounts in the cluster. */ + storageaccounts?: StorageAccount[]; +} + +/** The storage Account. */ +export interface StorageAccount { + /** The name of the storage account. */ + name?: string; + /** Whether or not the storage account is the default storage account. */ + isDefault?: boolean; + /** The container in the storage account, only to be specified for WASB storage accounts. */ + container?: string; + /** The filesystem, only to be specified for Azure Data Lake Storage Gen 2. */ + fileSystem?: string; + /** The storage account access key. */ + key?: string; + /** The resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2. */ + resourceId?: string; + /** The managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2. */ + msiResourceId?: string; + /** The shared access signature key. */ + saskey?: string; + /** The file share name. */ + fileshare?: string; + /** Enable secure channel or not, it's an optional field. Default value is false when cluster version < 5.1 and true when cluster version >= 5.1 , */ + enableSecureChannel?: boolean; +} + +/** The disk encryption properties */ +export interface DiskEncryptionProperties { + /** Base key vault URI where the customers key is located eg. https://myvault.vault.azure.net */ + vaultUri?: string; + /** Key name that is used for enabling disk encryption. */ + keyName?: string; + /** Specific key version that is used for enabling disk encryption. */ + keyVersion?: string; + /** Algorithm identifier for encryption, default RSA-OAEP. */ + encryptionAlgorithm?: JsonWebKeyEncryptionAlgorithm; + /** Resource ID of Managed Identity that is used to access the key vault. */ + msiResourceId?: string; + /** Indicates whether or not resource disk encryption is enabled. */ + encryptionAtHost?: boolean; +} + +/** The encryption-in-transit properties. */ +export interface EncryptionInTransitProperties { + /** Indicates whether or not inter cluster node communication is encrypted in transit. */ + isEncryptionInTransitEnabled?: boolean; +} + +/** The network properties. */ +export interface NetworkProperties { + /** The direction for the resource provider connection. */ + resourceProviderConnection?: ResourceProviderConnection; + /** Indicates whether or not private link is enabled. */ + privateLink?: PrivateLink; +} + +/** The compute isolation properties. */ +export interface ComputeIsolationProperties { + /** The flag indicates whether enable compute isolation or not. */ + enableComputeIsolation?: boolean; + /** The host sku. */ + hostSku?: string; +} + /** Identity for the cluster. */ export interface ClusterIdentity { /** @@ -470,14 +635,6 @@ export interface QuotaInfo { coresUsed?: number; } -/** The error message associated with the cluster creation. */ -export interface Errors { - /** The error code. */ - code?: string; - /** The error message. */ - message?: string; -} - /** The connectivity properties */ export interface ConnectivityEndpoint { /** The name of the endpoint. */ @@ -516,41 +673,6 @@ export interface PrivateLinkServiceConnectionState { actionsRequired?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface ResourceAutoGenerated { /** @@ -570,14 +692,6 @@ export interface ResourceAutoGenerated { readonly type?: string; } -/** Describes the format of Error response. */ -export interface ErrorResponse { - /** Error code */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; -} - /** The PatchCluster request parameters */ export interface ClusterPatchParameters { /** The resource tags. */ @@ -646,14 +760,6 @@ export interface UpdateGatewaySettingsParameters { password?: string; } -/** The azure async operation response. */ -export interface AsyncOperationResult { - /** The async operation state. */ - status?: AsyncOperationState; - /** The operation error information. */ - error?: Errors; -} - /** The update cluster identity certificate request parameters. */ export interface UpdateClusterIdentityCertificateParameters { /** The application id. */ @@ -664,108 +770,72 @@ export interface UpdateClusterIdentityCertificateParameters { certificatePassword?: string; } -/** Result of the request to list cluster Applications. It contains a list of operations and a URL link to get the next set of results. */ -export interface ApplicationListResult { - /** The list of HDInsight applications installed on HDInsight cluster. */ - value?: Application[]; - /** - * The URL to get the next set of operation list results if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** The configuration object for the specified cluster. */ +export interface ClusterConfigurations { + /** The configuration object for the specified configuration for the specified cluster. */ + configurations?: { + [propertyName: string]: { [propertyName: string]: string }; + }; } -/** The HDInsight cluster application GET response. */ -export interface ApplicationProperties { - /** The list of roles in the cluster. */ - computeProfile?: ComputeProfile; - /** The list of install script actions. */ - installScriptActions?: RuntimeScriptAction[]; - /** The list of uninstall script actions. */ - uninstallScriptActions?: RuntimeScriptAction[]; - /** The list of application HTTPS endpoints. */ - httpsEndpoints?: ApplicationGetHttpsEndpoint[]; - /** The list of application SSH endpoints. */ - sshEndpoints?: ApplicationGetEndpoint[]; - /** - * The provisioning state of the application. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The application type. */ - applicationType?: string; - /** - * The application state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applicationState?: string; - /** The list of errors. */ - errors?: Errors[]; - /** - * The application create date time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdDate?: string; - /** - * The marketplace identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly marketplaceIdentifier?: string; - /** The private link configurations. */ - privateLinkConfigurations?: PrivateLinkConfiguration[]; +/** The cluster monitor parameters. */ +export interface ClusterMonitoringRequest { + /** The cluster monitor workspace ID. */ + workspaceId?: string; + /** The cluster monitor workspace key. */ + primaryKey?: string; } -/** Describes a script action on a running cluster. */ -export interface RuntimeScriptAction { - /** The name of the script action. */ - name: string; - /** The URI to the script. */ - uri: string; - /** The parameters for the script */ - parameters?: string; - /** The list of roles where script will be executed. */ - roles: string[]; - /** - * The application name of the script action, if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly applicationName?: string; +/** The cluster monitoring status response. */ +export interface ClusterMonitoringResponse { + /** The status of the monitor on the HDInsight cluster. */ + clusterMonitoringEnabled?: boolean; + /** The workspace ID of the monitor on the HDInsight cluster. */ + workspaceId?: string; } -/** Gets the application HTTP endpoints. */ -export interface ApplicationGetHttpsEndpoint { - /** The list of access modes for the application. */ - accessModes?: string[]; - /** - * The location of the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** The destination port to connect to. */ - destinationPort?: number; - /** - * The public port to connect to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicPort?: number; - /** The private ip address of the endpoint. */ - privateIPAddress?: string; - /** The subdomain suffix of the application. */ - subDomainSuffix?: string; - /** The value indicates whether to disable GatewayAuth. */ - disableGatewayAuth?: boolean; +/** The azure monitor parameters. */ +export interface AzureMonitorRequest { + /** The Log Analytics workspace ID. */ + workspaceId?: string; + /** The Log Analytics workspace key. */ + primaryKey?: string; + /** The selected configurations. */ + selectedConfigurations?: AzureMonitorSelectedConfigurations; } -/** Gets the application SSH endpoint */ -export interface ApplicationGetEndpoint { - /** The location of the endpoint. */ - location?: string; - /** The destination port to connect to. */ - destinationPort?: number; - /** The public port to connect to. */ - publicPort?: number; - /** The private ip address of the endpoint. */ - privateIPAddress?: string; +/** The selected configurations for azure monitor. */ +export interface AzureMonitorSelectedConfigurations { + /** The configuration version. */ + configurationVersion?: string; + /** The global configurations of selected configurations. */ + globalConfigurations?: { [propertyName: string]: string }; + /** The table list. */ + tableList?: AzureMonitorTableConfiguration[]; +} + +/** The table configuration for the Log Analytics integration. */ +export interface AzureMonitorTableConfiguration { + /** The name. */ + name?: string; +} + +/** The azure monitor status response. */ +export interface AzureMonitorResponse { + /** The status of the monitor on the HDInsight cluster. */ + clusterMonitoringEnabled?: boolean; + /** The workspace ID of the monitor on the HDInsight cluster. */ + workspaceId?: string; + /** The selected configurations. */ + selectedConfigurations?: AzureMonitorSelectedConfigurations; +} + +/** Cluster monitoring extensions. */ +export interface Extension { + /** The workspace ID for the cluster monitoring extension. */ + workspaceId?: string; + /** The certificate for the cluster monitoring extensions. */ + primaryKey?: string; } /** The Get Capabilities operation response. */ @@ -1015,121 +1085,6 @@ export interface AaddsResourceDetails { tenantId?: string; } -/** The configuration object for the specified cluster. */ -export interface ClusterConfigurations { - /** The configuration object for the specified configuration for the specified cluster. */ - configurations?: { - [propertyName: string]: { [propertyName: string]: string }; - }; -} - -/** The cluster monitor parameters. */ -export interface ClusterMonitoringRequest { - /** The cluster monitor workspace ID. */ - workspaceId?: string; - /** The cluster monitor workspace key. */ - primaryKey?: string; -} - -/** The cluster monitoring status response. */ -export interface ClusterMonitoringResponse { - /** The status of the monitor on the HDInsight cluster. */ - clusterMonitoringEnabled?: boolean; - /** The workspace ID of the monitor on the HDInsight cluster. */ - workspaceId?: string; -} - -/** The azure monitor parameters. */ -export interface AzureMonitorRequest { - /** The Log Analytics workspace ID. */ - workspaceId?: string; - /** The Log Analytics workspace key. */ - primaryKey?: string; - /** The selected configurations. */ - selectedConfigurations?: AzureMonitorSelectedConfigurations; -} - -/** The selected configurations for azure monitor. */ -export interface AzureMonitorSelectedConfigurations { - /** The configuration version. */ - configurationVersion?: string; - /** The global configurations of selected configurations. */ - globalConfigurations?: { [propertyName: string]: string }; - /** The table list. */ - tableList?: AzureMonitorTableConfiguration[]; -} - -/** The table configuration for the Log Analytics integration. */ -export interface AzureMonitorTableConfiguration { - /** The name. */ - name?: string; -} - -/** The azure monitor status response. */ -export interface AzureMonitorResponse { - /** The status of the monitor on the HDInsight cluster. */ - clusterMonitoringEnabled?: boolean; - /** The workspace ID of the monitor on the HDInsight cluster. */ - workspaceId?: string; - /** The selected configurations. */ - selectedConfigurations?: AzureMonitorSelectedConfigurations; -} - -/** Cluster monitoring extensions. */ -export interface Extension { - /** The workspace ID for the cluster monitoring extension. */ - workspaceId?: string; - /** The certificate for the cluster monitoring extensions. */ - primaryKey?: string; -} - -/** The parameters for the script actions to execute on a running cluster. */ -export interface ExecuteScriptActionParameters { - /** The list of run time script actions. */ - scriptActions?: RuntimeScriptAction[]; - /** Gets or sets if the scripts needs to be persisted. */ - persistOnSuccess: boolean; -} - -/** The persisted script action for the cluster. */ -export interface ScriptActionsList { - /** The list of persisted script action details for the cluster. */ - value?: RuntimeScriptActionDetail[]; - /** - * The link (url) to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The execution summary of a script action. */ -export interface ScriptActionExecutionSummary { - /** - * The status of script action execution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * The instance count for a given script action execution status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceCount?: number; -} - -/** The list script execution history response. */ -export interface ScriptActionExecutionHistoryList { - /** - * The list of persisted script action details for the cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: RuntimeScriptActionDetail[]; - /** - * The link (url) to the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Result of the request to list HDInsight operations. It contains a list of operations and a URL link to get the next set of results. */ export interface OperationListResult { /** The list of HDInsight operations supported by the HDInsight resource provider. */ @@ -1222,16 +1177,6 @@ export interface Dimension { toBeExportedForShoebox?: boolean; } -/** The cluster host information. */ -export interface HostInfo { - /** The host name */ - name?: string; - /** The Fully Qualified Domain Name of host */ - fqdn?: string; - /** The effective disk encryption key URL used by the host */ - effectiveDiskEncryptionKeyUrl?: string; -} - /** The list private endpoint connections response. */ export interface PrivateEndpointConnectionListResult { /** The list of private endpoint connections. */ @@ -1249,6 +1194,63 @@ export interface PrivateLinkResourceListResult { value?: PrivateLinkResource[]; } +/** The parameters for the script actions to execute on a running cluster. */ +export interface ExecuteScriptActionParameters { + /** The list of run time script actions. */ + scriptActions?: RuntimeScriptAction[]; + /** Gets or sets if the scripts needs to be persisted. */ + persistOnSuccess: boolean; +} + +/** The persisted script action for the cluster. */ +export interface ScriptActionsList { + /** The list of persisted script action details for the cluster. */ + value?: RuntimeScriptActionDetail[]; + /** + * The link (url) to the next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The execution summary of a script action. */ +export interface ScriptActionExecutionSummary { + /** + * The status of script action execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * The instance count for a given script action execution status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceCount?: number; +} + +/** The list script execution history response. */ +export interface ScriptActionExecutionHistoryList { + /** + * The list of persisted script action details for the cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: RuntimeScriptActionDetail[]; + /** + * The link (url) to the next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The cluster host information. */ +export interface HostInfo { + /** The host name */ + name?: string; + /** The Fully Qualified Domain Name of host */ + fqdn?: string; + /** The effective disk encryption key URL used by the host */ + effectiveDiskEncryptionKeyUrl?: string; +} + /** The ListPersistedScriptActions operation response. */ export interface ClusterListPersistedScriptActionsResult { /** The list of Persisted Script Actions. */ @@ -1274,77 +1276,6 @@ export interface ScriptActionPersistedGetResponseSpec { applicationName?: string; } -/** The cluster create request specification. */ -export interface ClusterCreateRequestValidationParameters - extends ClusterCreateParametersExtended { - /** The cluster name. */ - name?: string; - /** The resource type. */ - type?: string; - /** The tenant id. */ - tenantId?: string; - /** This indicates whether fetch Aadds resource or not. */ - fetchAaddsResource?: boolean; -} - -/** The private endpoint connection. */ -export interface PrivateEndpointConnection extends Resource { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * The private endpoint of the private endpoint connection - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpoint?: PrivateEndpoint; - /** The private link service connection state. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; - /** - * The link identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly linkIdentifier?: string; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends ResourceAutoGenerated { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** A private link resource */ -export interface PrivateLinkResource extends ResourceAutoGenerated { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * The private link resource group id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly groupId?: string; - /** - * The private link resource required member names. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; -} - /** The execution details of a script action. */ export interface RuntimeScriptActionDetail extends RuntimeScriptAction { /** @@ -1384,6 +1315,77 @@ export interface RuntimeScriptActionDetail extends RuntimeScriptAction { readonly debugInformation?: string; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The private endpoint connection. */ +export interface PrivateEndpointConnection extends Resource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The private endpoint of the private endpoint connection + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpoint?: PrivateEndpoint; + /** The private link service connection state. */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The link identifier. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkIdentifier?: string; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** The cluster create request specification. */ +export interface ClusterCreateRequestValidationParameters + extends ClusterCreateParametersExtended { + /** The cluster name. */ + name?: string; + /** The resource type. */ + type?: string; + /** The tenant id. */ + tenantId?: string; + /** This indicates whether fetch Aadds resource or not. */ + fetchAaddsResource?: boolean; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends ResourceAutoGenerated { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** A private link resource */ +export interface PrivateLinkResource extends ResourceAutoGenerated { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; +} + /** The HDInsight cluster application */ export interface Application extends ProxyResource { /** The ETag for the application */ @@ -1416,6 +1418,129 @@ export interface Cluster extends TrackedResource { readonly systemData?: SystemData; } +/** Known values of {@link DaysOfWeek} that the service accepts. */ +export enum KnownDaysOfWeek { + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday", + /** Sunday */ + Sunday = "Sunday" +} + +/** + * Defines values for DaysOfWeek. \ + * {@link KnownDaysOfWeek} can be used interchangeably with DaysOfWeek, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** + */ +export type DaysOfWeek = string; + +/** Known values of {@link PrivateLinkConfigurationProvisioningState} that the service accepts. */ +export enum KnownPrivateLinkConfigurationProvisioningState { + /** InProgress */ + InProgress = "InProgress", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Canceled */ + Canceled = "Canceled", + /** Deleting */ + Deleting = "Deleting" +} + +/** + * Defines values for PrivateLinkConfigurationProvisioningState. \ + * {@link KnownPrivateLinkConfigurationProvisioningState} can be used interchangeably with PrivateLinkConfigurationProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Failed** \ + * **Succeeded** \ + * **Canceled** \ + * **Deleting** + */ +export type PrivateLinkConfigurationProvisioningState = string; + +/** Known values of {@link PrivateIPAllocationMethod} that the service accepts. */ +export enum KnownPrivateIPAllocationMethod { + /** Dynamic */ + Dynamic = "dynamic", + /** Static */ + Static = "static" +} + +/** + * Defines values for PrivateIPAllocationMethod. \ + * {@link KnownPrivateIPAllocationMethod} can be used interchangeably with PrivateIPAllocationMethod, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **dynamic** \ + * **static** + */ +export type PrivateIPAllocationMethod = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link AsyncOperationState} that the service accepts. */ +export enum KnownAsyncOperationState { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for AsyncOperationState. \ + * {@link KnownAsyncOperationState} can be used interchangeably with AsyncOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **Failed** + */ +export type AsyncOperationState = string; + /** Known values of {@link OSType} that the service accepts. */ export enum KnownOSType { /** Windows */ @@ -1467,39 +1592,6 @@ export enum KnownDirectoryType { */ export type DirectoryType = string; -/** Known values of {@link DaysOfWeek} that the service accepts. */ -export enum KnownDaysOfWeek { - /** Monday */ - Monday = "Monday", - /** Tuesday */ - Tuesday = "Tuesday", - /** Wednesday */ - Wednesday = "Wednesday", - /** Thursday */ - Thursday = "Thursday", - /** Friday */ - Friday = "Friday", - /** Saturday */ - Saturday = "Saturday", - /** Sunday */ - Sunday = "Sunday" -} - -/** - * Defines values for DaysOfWeek. \ - * {@link KnownDaysOfWeek} can be used interchangeably with DaysOfWeek, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** \ - * **Sunday** - */ -export type DaysOfWeek = string; - /** Known values of {@link JsonWebKeyEncryptionAlgorithm} that the service accepts. */ export enum KnownJsonWebKeyEncryptionAlgorithm { /** RSAOaep */ @@ -1557,51 +1649,6 @@ export enum KnownPrivateLink { */ export type PrivateLink = string; -/** Known values of {@link PrivateLinkConfigurationProvisioningState} that the service accepts. */ -export enum KnownPrivateLinkConfigurationProvisioningState { - /** InProgress */ - InProgress = "InProgress", - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", - /** Canceled */ - Canceled = "Canceled", - /** Deleting */ - Deleting = "Deleting" -} - -/** - * Defines values for PrivateLinkConfigurationProvisioningState. \ - * {@link KnownPrivateLinkConfigurationProvisioningState} can be used interchangeably with PrivateLinkConfigurationProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **InProgress** \ - * **Failed** \ - * **Succeeded** \ - * **Canceled** \ - * **Deleting** - */ -export type PrivateLinkConfigurationProvisioningState = string; - -/** Known values of {@link PrivateIPAllocationMethod} that the service accepts. */ -export enum KnownPrivateIPAllocationMethod { - /** Dynamic */ - Dynamic = "dynamic", - /** Static */ - Static = "static" -} - -/** - * Defines values for PrivateIPAllocationMethod. \ - * {@link KnownPrivateIPAllocationMethod} can be used interchangeably with PrivateIPAllocationMethod, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **dynamic** \ - * **static** - */ -export type PrivateIPAllocationMethod = string; - /** Known values of {@link ResourceIdentityType} that the service accepts. */ export enum KnownResourceIdentityType { /** SystemAssigned */ @@ -1707,30 +1754,6 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link RoleName} that the service accepts. */ export enum KnownRoleName { /** Workernode */ @@ -1746,27 +1769,6 @@ export enum KnownRoleName { */ export type RoleName = string; -/** Known values of {@link AsyncOperationState} that the service accepts. */ -export enum KnownAsyncOperationState { - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" -} - -/** - * Defines values for AsyncOperationState. \ - * {@link KnownAsyncOperationState} can be used interchangeably with AsyncOperationState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **InProgress** \ - * **Succeeded** \ - * **Failed** - */ -export type AsyncOperationState = string; - /** Known values of {@link FilterMode} that the service accepts. */ export enum KnownFilterMode { /** Exclude */ @@ -1791,6 +1793,55 @@ export enum KnownFilterMode { */ export type FilterMode = string; +/** Optional parameters. */ +export interface ApplicationsListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ApplicationsListByClusterResponse = ApplicationListResult; + +/** Optional parameters. */ +export interface ApplicationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationsGetResponse = Application; + +/** Optional parameters. */ +export interface ApplicationsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type ApplicationsCreateResponse = Application; + +/** Optional parameters. */ +export interface ApplicationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApplicationsGetAzureAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAzureAsyncOperationStatus operation. */ +export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; + +/** Optional parameters. */ +export interface ApplicationsListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ApplicationsListByClusterNextResponse = ApplicationListResult; + /** Optional parameters. */ export interface ClustersCreateOptionalParams extends coreClient.OperationOptions { @@ -1922,97 +1973,6 @@ export interface ClustersListNextOptionalParams /** Contains response data for the listNext operation. */ export type ClustersListNextResponse = ClusterListResult; -/** Optional parameters. */ -export interface ApplicationsListByClusterOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCluster operation. */ -export type ApplicationsListByClusterResponse = ApplicationListResult; - -/** Optional parameters. */ -export interface ApplicationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationsGetResponse = Application; - -/** Optional parameters. */ -export interface ApplicationsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type ApplicationsCreateResponse = Application; - -/** Optional parameters. */ -export interface ApplicationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApplicationsGetAzureAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAzureAsyncOperationStatus operation. */ -export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; - -/** Optional parameters. */ -export interface ApplicationsListByClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByClusterNext operation. */ -export type ApplicationsListByClusterNextResponse = ApplicationListResult; - -/** Optional parameters. */ -export interface LocationsGetCapabilitiesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getCapabilities operation. */ -export type LocationsGetCapabilitiesResponse = CapabilitiesResult; - -/** Optional parameters. */ -export interface LocationsListUsagesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listUsages operation. */ -export type LocationsListUsagesResponse = UsagesListResult; - -/** Optional parameters. */ -export interface LocationsListBillingSpecsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBillingSpecs operation. */ -export type LocationsListBillingSpecsResponse = BillingResponseListResult; - -/** Optional parameters. */ -export interface LocationsGetAzureAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAzureAsyncOperationStatus operation. */ -export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; - -/** Optional parameters. */ -export interface LocationsCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult; - -/** Optional parameters. */ -export interface LocationsValidateClusterCreateRequestOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateClusterCreateRequest operation. */ -export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult; - /** Optional parameters. */ export interface ConfigurationsListOptionalParams extends coreClient.OperationOptions {} @@ -2119,54 +2079,46 @@ export interface ExtensionsGetAzureAsyncOperationStatusOptionalParams export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; /** Optional parameters. */ -export interface ScriptActionsDeleteOptionalParams +export interface LocationsGetCapabilitiesOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getCapabilities operation. */ +export type LocationsGetCapabilitiesResponse = CapabilitiesResult; + /** Optional parameters. */ -export interface ScriptActionsListByClusterOptionalParams +export interface LocationsListUsagesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByCluster operation. */ -export type ScriptActionsListByClusterResponse = ScriptActionsList; +/** Contains response data for the listUsages operation. */ +export type LocationsListUsagesResponse = UsagesListResult; /** Optional parameters. */ -export interface ScriptActionsGetExecutionDetailOptionalParams +export interface LocationsListBillingSpecsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getExecutionDetail operation. */ -export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail; +/** Contains response data for the listBillingSpecs operation. */ +export type LocationsListBillingSpecsResponse = BillingResponseListResult; /** Optional parameters. */ -export interface ScriptActionsGetExecutionAsyncOperationStatusOptionalParams +export interface LocationsGetAzureAsyncOperationStatusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getExecutionAsyncOperationStatus operation. */ -export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult; +/** Contains response data for the getAzureAsyncOperationStatus operation. */ +export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult; /** Optional parameters. */ -export interface ScriptActionsListByClusterNextOptionalParams +export interface LocationsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByClusterNext operation. */ -export type ScriptActionsListByClusterNextResponse = ScriptActionsList; +/** Contains response data for the checkNameAvailability operation. */ +export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult; /** Optional parameters. */ -export interface ScriptExecutionHistoryListByClusterOptionalParams +export interface LocationsValidateClusterCreateRequestOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByCluster operation. */ -export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList; - -/** Optional parameters. */ -export interface ScriptExecutionHistoryPromoteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ScriptExecutionHistoryListByClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByClusterNext operation. */ -export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList; +/** Contains response data for the validateClusterCreateRequest operation. */ +export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidationResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2182,29 +2134,6 @@ export interface OperationsListNextOptionalParams /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = OperationListResult; -/** Optional parameters. */ -export interface VirtualMachinesListHostsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listHosts operation. */ -export type VirtualMachinesListHostsResponse = HostInfo[]; - -/** Optional parameters. */ -export interface VirtualMachinesRestartHostsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VirtualMachinesGetAsyncOperationStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAsyncOperationStatus operation. */ -export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult; - /** Optional parameters. */ export interface PrivateEndpointConnectionsListByClusterOptionalParams extends coreClient.OperationOptions {} @@ -2261,6 +2190,79 @@ export interface PrivateLinkResourcesGetOptionalParams /** Contains response data for the get operation. */ export type PrivateLinkResourcesGetResponse = PrivateLinkResource; +/** Optional parameters. */ +export interface ScriptActionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScriptActionsListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ScriptActionsListByClusterResponse = ScriptActionsList; + +/** Optional parameters. */ +export interface ScriptActionsGetExecutionDetailOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getExecutionDetail operation. */ +export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail; + +/** Optional parameters. */ +export interface ScriptActionsGetExecutionAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getExecutionAsyncOperationStatus operation. */ +export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperationResult; + +/** Optional parameters. */ +export interface ScriptActionsListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ScriptActionsListByClusterNextResponse = ScriptActionsList; + +/** Optional parameters. */ +export interface ScriptExecutionHistoryListByClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCluster operation. */ +export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionHistoryList; + +/** Optional parameters. */ +export interface ScriptExecutionHistoryPromoteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScriptExecutionHistoryListByClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByClusterNext operation. */ +export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecutionHistoryList; + +/** Optional parameters. */ +export interface VirtualMachinesListHostsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listHosts operation. */ +export type VirtualMachinesListHostsResponse = HostInfo[]; + +/** Optional parameters. */ +export interface VirtualMachinesRestartHostsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualMachinesGetAsyncOperationStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAsyncOperationStatus operation. */ +export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResult; + /** Optional parameters. */ export interface HDInsightManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index 47ab74f6037..29255b60051 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -8,97 +8,39 @@ import * as coreClient from "@azure/core-client"; -export const ClusterCreateParametersExtended: coreClient.CompositeMapper = { +export const ApplicationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateParametersExtended", + className: "ApplicationListResult", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - zones: { - serializedName: "zones", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Application" } } } }, - properties: { - serializedName: "properties", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "ClusterCreateProperties" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ClusterIdentity" + name: "String" } } } } }; -export const ClusterCreateProperties: coreClient.CompositeMapper = { +export const ApplicationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateProperties", + className: "ApplicationProperties", modelProperties: { - clusterVersion: { - serializedName: "clusterVersion", - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - clusterDefinition: { - serializedName: "clusterDefinition", - type: { - name: "Composite", - className: "ClusterDefinition" - } - }, - kafkaRestProperties: { - serializedName: "kafkaRestProperties", - type: { - name: "Composite", - className: "KafkaRestProperties" - } - }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, computeProfile: { serializedName: "computeProfile", type: { @@ -106,45 +48,98 @@ export const ClusterCreateProperties: coreClient.CompositeMapper = { className: "ComputeProfile" } }, - storageProfile: { - serializedName: "storageProfile", + installScriptActions: { + serializedName: "installScriptActions", type: { - name: "Composite", - className: "StorageProfile" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } } }, - diskEncryptionProperties: { - serializedName: "diskEncryptionProperties", + uninstallScriptActions: { + serializedName: "uninstallScriptActions", type: { - name: "Composite", - className: "DiskEncryptionProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } } }, - encryptionInTransitProperties: { - serializedName: "encryptionInTransitProperties", + httpsEndpoints: { + serializedName: "httpsEndpoints", type: { - name: "Composite", - className: "EncryptionInTransitProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGetHttpsEndpoint" + } + } } }, - minSupportedTlsVersion: { - serializedName: "minSupportedTlsVersion", + sshEndpoints: { + serializedName: "sshEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGetEndpoint" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - networkProperties: { - serializedName: "networkProperties", + applicationType: { + serializedName: "applicationType", type: { - name: "Composite", - className: "NetworkProperties" + name: "String" } }, - computeIsolationProperties: { - serializedName: "computeIsolationProperties", + applicationState: { + serializedName: "applicationState", + readOnly: true, type: { - name: "Composite", - className: "ComputeIsolationProperties" + name: "String" + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Errors" + } + } + } + }, + createdDate: { + serializedName: "createdDate", + readOnly: true, + type: { + name: "String" + } + }, + marketplaceIdentifier: { + serializedName: "marketplaceIdentifier", + readOnly: true, + type: { + name: "String" } }, privateLinkConfigurations: { @@ -163,158 +158,6 @@ export const ClusterCreateProperties: coreClient.CompositeMapper = { } }; -export const ClusterDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterDefinition", - modelProperties: { - blueprint: { - serializedName: "blueprint", - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - componentVersion: { - serializedName: "componentVersion", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - configurations: { - serializedName: "configurations", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const KafkaRestProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KafkaRestProperties", - modelProperties: { - clientGroupInfo: { - serializedName: "clientGroupInfo", - type: { - name: "Composite", - className: "ClientGroupInfo" - } - }, - configurationOverride: { - serializedName: "configurationOverride", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ClientGroupInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClientGroupInfo", - modelProperties: { - groupName: { - serializedName: "groupName", - type: { - name: "String" - } - }, - groupId: { - serializedName: "groupId", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityProfile", - modelProperties: { - directoryType: { - serializedName: "directoryType", - type: { - name: "String" - } - }, - domain: { - serializedName: "domain", - type: { - name: "String" - } - }, - organizationalUnitDN: { - serializedName: "organizationalUnitDN", - type: { - name: "String" - } - }, - ldapsUrls: { - serializedName: "ldapsUrls", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - domainUsername: { - serializedName: "domainUsername", - type: { - name: "String" - } - }, - domainUserPassword: { - serializedName: "domainUserPassword", - type: { - name: "String" - } - }, - clusterUsersGroupDNs: { - serializedName: "clusterUsersGroupDNs", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - aaddsResourceId: { - serializedName: "aaddsResourceId", - type: { - name: "String" - } - }, - msiResourceId: { - serializedName: "msiResourceId", - type: { - name: "String" - } - } - } - } -}; - export const ComputeProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -728,82 +571,46 @@ export const ScriptAction: coreClient.CompositeMapper = { } }; -export const StorageProfile: coreClient.CompositeMapper = { +export const RuntimeScriptAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageProfile", + className: "RuntimeScriptAction", modelProperties: { - storageaccounts: { - serializedName: "storageaccounts", + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + required: true, + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "String" + } + }, + roles: { + serializedName: "roles", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "StorageAccount" + name: "String" } } } - } - } - } -}; - -export const StorageAccount: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAccount", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } }, - isDefault: { - serializedName: "isDefault", - type: { - name: "Boolean" - } - }, - container: { - serializedName: "container", - type: { - name: "String" - } - }, - fileSystem: { - serializedName: "fileSystem", - type: { - name: "String" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - msiResourceId: { - serializedName: "msiResourceId", - type: { - name: "String" - } - }, - saskey: { - serializedName: "saskey", - type: { - name: "String" - } - }, - fileshare: { - serializedName: "fileshare", + applicationName: { + serializedName: "applicationName", + readOnly: true, type: { name: "String" } @@ -812,44 +619,56 @@ export const StorageAccount: coreClient.CompositeMapper = { } }; -export const DiskEncryptionProperties: coreClient.CompositeMapper = { +export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionProperties", + className: "ApplicationGetHttpsEndpoint", modelProperties: { - vaultUri: { - serializedName: "vaultUri", + accessModes: { + serializedName: "accessModes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - keyName: { - serializedName: "keyName", + destinationPort: { + serializedName: "destinationPort", + type: { + name: "Number" + } + }, + publicPort: { + serializedName: "publicPort", + readOnly: true, + type: { + name: "Number" + } + }, + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } }, - keyVersion: { - serializedName: "keyVersion", + subDomainSuffix: { + serializedName: "subDomainSuffix", type: { name: "String" } }, - encryptionAlgorithm: { - serializedName: "encryptionAlgorithm", - type: { - name: "String" - } - }, - msiResourceId: { - serializedName: "msiResourceId", - type: { - name: "String" - } - }, - encryptionAtHost: { - defaultValue: false, - serializedName: "encryptionAtHost", + disableGatewayAuth: { + serializedName: "disableGatewayAuth", type: { name: "Boolean" } @@ -858,35 +677,31 @@ export const DiskEncryptionProperties: coreClient.CompositeMapper = { } }; -export const EncryptionInTransitProperties: coreClient.CompositeMapper = { +export const ApplicationGetEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionInTransitProperties", + className: "ApplicationGetEndpoint", modelProperties: { - isEncryptionInTransitEnabled: { - defaultValue: false, - serializedName: "isEncryptionInTransitEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const NetworkProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProperties", - modelProperties: { - resourceProviderConnection: { - serializedName: "resourceProviderConnection", + location: { + serializedName: "location", type: { name: "String" } }, - privateLink: { - serializedName: "privateLink", + destinationPort: { + serializedName: "destinationPort", + type: { + name: "Number" + } + }, + publicPort: { + serializedName: "publicPort", + type: { + name: "Number" + } + }, + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String" } @@ -895,20 +710,19 @@ export const NetworkProperties: coreClient.CompositeMapper = { } }; -export const ComputeIsolationProperties: coreClient.CompositeMapper = { +export const Errors: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeIsolationProperties", + className: "Errors", modelProperties: { - enableComputeIsolation: { - defaultValue: false, - serializedName: "enableComputeIsolation", + code: { + serializedName: "code", type: { - name: "Boolean" + name: "String" } }, - hostSku: { - serializedName: "hostSku", + message: { + serializedName: "message", type: { name: "String" } @@ -1051,6 +865,626 @@ export const ResourceId: coreClient.CompositeMapper = { } }; +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AsyncOperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AsyncOperationResult", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "Errors" + } + } + } + } +}; + +export const ClusterCreateParametersExtended: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterCreateParametersExtended", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ClusterCreateProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ClusterIdentity" + } + } + } + } +}; + +export const ClusterCreateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterCreateProperties", + modelProperties: { + clusterVersion: { + serializedName: "clusterVersion", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + clusterDefinition: { + serializedName: "clusterDefinition", + type: { + name: "Composite", + className: "ClusterDefinition" + } + }, + kafkaRestProperties: { + serializedName: "kafkaRestProperties", + type: { + name: "Composite", + className: "KafkaRestProperties" + } + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "SecurityProfile" + } + }, + computeProfile: { + serializedName: "computeProfile", + type: { + name: "Composite", + className: "ComputeProfile" + } + }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "StorageProfile" + } + }, + diskEncryptionProperties: { + serializedName: "diskEncryptionProperties", + type: { + name: "Composite", + className: "DiskEncryptionProperties" + } + }, + encryptionInTransitProperties: { + serializedName: "encryptionInTransitProperties", + type: { + name: "Composite", + className: "EncryptionInTransitProperties" + } + }, + minSupportedTlsVersion: { + serializedName: "minSupportedTlsVersion", + type: { + name: "String" + } + }, + networkProperties: { + serializedName: "networkProperties", + type: { + name: "Composite", + className: "NetworkProperties" + } + }, + computeIsolationProperties: { + serializedName: "computeIsolationProperties", + type: { + name: "Composite", + className: "ComputeIsolationProperties" + } + }, + privateLinkConfigurations: { + serializedName: "privateLinkConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkConfiguration" + } + } + } + } + } + } +}; + +export const ClusterDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterDefinition", + modelProperties: { + blueprint: { + serializedName: "blueprint", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + componentVersion: { + serializedName: "componentVersion", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + configurations: { + serializedName: "configurations", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const KafkaRestProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KafkaRestProperties", + modelProperties: { + clientGroupInfo: { + serializedName: "clientGroupInfo", + type: { + name: "Composite", + className: "ClientGroupInfo" + } + }, + configurationOverride: { + serializedName: "configurationOverride", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const ClientGroupInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClientGroupInfo", + modelProperties: { + groupName: { + serializedName: "groupName", + type: { + name: "String" + } + }, + groupId: { + serializedName: "groupId", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityProfile", + modelProperties: { + directoryType: { + serializedName: "directoryType", + type: { + name: "String" + } + }, + domain: { + serializedName: "domain", + type: { + name: "String" + } + }, + organizationalUnitDN: { + serializedName: "organizationalUnitDN", + type: { + name: "String" + } + }, + ldapsUrls: { + serializedName: "ldapsUrls", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + domainUsername: { + serializedName: "domainUsername", + type: { + name: "String" + } + }, + domainUserPassword: { + serializedName: "domainUserPassword", + type: { + name: "String" + } + }, + clusterUsersGroupDNs: { + serializedName: "clusterUsersGroupDNs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + aaddsResourceId: { + serializedName: "aaddsResourceId", + type: { + name: "String" + } + }, + msiResourceId: { + serializedName: "msiResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const StorageProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageProfile", + modelProperties: { + storageaccounts: { + serializedName: "storageaccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } + } + } + } + } +}; + +export const StorageAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageAccount", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + container: { + serializedName: "container", + type: { + name: "String" + } + }, + fileSystem: { + serializedName: "fileSystem", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + msiResourceId: { + serializedName: "msiResourceId", + type: { + name: "String" + } + }, + saskey: { + serializedName: "saskey", + type: { + name: "String" + } + }, + fileshare: { + serializedName: "fileshare", + type: { + name: "String" + } + }, + enableSecureChannel: { + serializedName: "enableSecureChannel", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DiskEncryptionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionProperties", + modelProperties: { + vaultUri: { + serializedName: "vaultUri", + type: { + name: "String" + } + }, + keyName: { + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + type: { + name: "String" + } + }, + encryptionAlgorithm: { + serializedName: "encryptionAlgorithm", + type: { + name: "String" + } + }, + msiResourceId: { + serializedName: "msiResourceId", + type: { + name: "String" + } + }, + encryptionAtHost: { + defaultValue: false, + serializedName: "encryptionAtHost", + type: { + name: "Boolean" + } + } + } + } +}; + +export const EncryptionInTransitProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionInTransitProperties", + modelProperties: { + isEncryptionInTransitEnabled: { + defaultValue: false, + serializedName: "isEncryptionInTransitEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NetworkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkProperties", + modelProperties: { + resourceProviderConnection: { + serializedName: "resourceProviderConnection", + type: { + name: "String" + } + }, + privateLink: { + serializedName: "privateLink", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeIsolationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeIsolationProperties", + modelProperties: { + enableComputeIsolation: { + defaultValue: false, + serializedName: "enableComputeIsolation", + type: { + name: "Boolean" + } + }, + hostSku: { + serializedName: "hostSku", + type: { + name: "String" + } + } + } + } +}; + export const ClusterIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1322,27 +1756,6 @@ export const QuotaInfo: coreClient.CompositeMapper = { } }; -export const Errors: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Errors", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - export const ConnectivityEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1446,81 +1859,6 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1551,27 +1889,6 @@ export const ResourceAutoGenerated: coreClient.CompositeMapper = { } }; -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - export const ClusterPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1733,28 +2050,6 @@ export const UpdateGatewaySettingsParameters: coreClient.CompositeMapper = { } }; -export const AsyncOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AsyncOperationResult", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "Errors" - } - } - } - } -}; - export const UpdateClusterIdentityCertificateParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1782,26 +2077,37 @@ export const UpdateClusterIdentityCertificateParameters: coreClient.CompositeMap } }; -export const ApplicationListResult: coreClient.CompositeMapper = { +export const ClusterConfigurations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationListResult", + className: "ClusterConfigurations", modelProperties: { - value: { - serializedName: "value", + configurations: { + serializedName: "configurations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Application" - } + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "String" } } } } } + } + } + } +}; + +export const ClusterMonitoringRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterMonitoringRequest", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + primaryKey: { + serializedName: "primaryKey", type: { name: "String" } @@ -1810,259 +2116,145 @@ export const ApplicationListResult: coreClient.CompositeMapper = { } }; -export const ApplicationProperties: coreClient.CompositeMapper = { +export const ClusterMonitoringResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationProperties", + className: "ClusterMonitoringResponse", modelProperties: { - computeProfile: { - serializedName: "computeProfile", - type: { - name: "Composite", - className: "ComputeProfile" - } - }, - installScriptActions: { - serializedName: "installScriptActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptAction" - } - } - } - }, - uninstallScriptActions: { - serializedName: "uninstallScriptActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptAction" - } - } - } - }, - httpsEndpoints: { - serializedName: "httpsEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGetHttpsEndpoint" - } - } - } - }, - sshEndpoints: { - serializedName: "sshEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGetEndpoint" - } - } - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - applicationType: { - serializedName: "applicationType", - type: { - name: "String" - } - }, - applicationState: { - serializedName: "applicationState", - readOnly: true, - type: { - name: "String" - } - }, - errors: { - serializedName: "errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Errors" - } - } - } - }, - createdDate: { - serializedName: "createdDate", - readOnly: true, - type: { - name: "String" - } - }, - marketplaceIdentifier: { - serializedName: "marketplaceIdentifier", - readOnly: true, - type: { - name: "String" - } - }, - privateLinkConfigurations: { - serializedName: "privateLinkConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkConfiguration" - } - } - } - } - } - } -}; - -export const RuntimeScriptAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuntimeScriptAction", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - required: true, - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "String" - } - }, - roles: { - serializedName: "roles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - applicationName: { - serializedName: "applicationName", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationGetHttpsEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGetHttpsEndpoint", - modelProperties: { - accessModes: { - serializedName: "accessModes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - destinationPort: { - serializedName: "destinationPort", - type: { - name: "Number" - } - }, - publicPort: { - serializedName: "publicPort", - readOnly: true, - type: { - name: "Number" - } - }, - privateIPAddress: { - serializedName: "privateIPAddress", - type: { - name: "String" - } - }, - subDomainSuffix: { - serializedName: "subDomainSuffix", - type: { - name: "String" - } - }, - disableGatewayAuth: { - serializedName: "disableGatewayAuth", + clusterMonitoringEnabled: { + serializedName: "clusterMonitoringEnabled", type: { name: "Boolean" } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } } } } }; -export const ApplicationGetEndpoint: coreClient.CompositeMapper = { +export const AzureMonitorRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGetEndpoint", + className: "AzureMonitorRequest", modelProperties: { - location: { - serializedName: "location", + workspaceId: { + serializedName: "workspaceId", type: { name: "String" } }, - destinationPort: { - serializedName: "destinationPort", + primaryKey: { + serializedName: "primaryKey", type: { - name: "Number" + name: "String" } }, - publicPort: { - serializedName: "publicPort", + selectedConfigurations: { + serializedName: "selectedConfigurations", type: { - name: "Number" + name: "Composite", + className: "AzureMonitorSelectedConfigurations" + } + } + } + } +}; + +export const AzureMonitorSelectedConfigurations: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorSelectedConfigurations", + modelProperties: { + configurationVersion: { + serializedName: "configurationVersion", + type: { + name: "String" } }, - privateIPAddress: { - serializedName: "privateIPAddress", + globalConfigurations: { + serializedName: "globalConfigurations", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tableList: { + serializedName: "tableList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMonitorTableConfiguration" + } + } + } + } + } + } +}; + +export const AzureMonitorTableConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorTableConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const AzureMonitorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorResponse", + modelProperties: { + clusterMonitoringEnabled: { + serializedName: "clusterMonitoringEnabled", + type: { + name: "Boolean" + } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + }, + selectedConfigurations: { + serializedName: "selectedConfigurations", + type: { + name: "Composite", + className: "AzureMonitorSelectedConfigurations" + } + } + } + } +}; + +export const Extension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Extension", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + }, + primaryKey: { + serializedName: "primaryKey", type: { name: "String" } @@ -2838,300 +3030,6 @@ export const AaddsResourceDetails: coreClient.CompositeMapper = { } }; -export const ClusterConfigurations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterConfigurations", - modelProperties: { - configurations: { - serializedName: "configurations", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "String" } } } - } - } - } - } - } -}; - -export const ClusterMonitoringRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterMonitoringRequest", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterMonitoringResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterMonitoringResponse", - modelProperties: { - clusterMonitoringEnabled: { - serializedName: "clusterMonitoringEnabled", - type: { - name: "Boolean" - } - }, - workspaceId: { - serializedName: "workspaceId", - type: { - name: "String" - } - } - } - } -}; - -export const AzureMonitorRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureMonitorRequest", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", - type: { - name: "String" - } - }, - selectedConfigurations: { - serializedName: "selectedConfigurations", - type: { - name: "Composite", - className: "AzureMonitorSelectedConfigurations" - } - } - } - } -}; - -export const AzureMonitorSelectedConfigurations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureMonitorSelectedConfigurations", - modelProperties: { - configurationVersion: { - serializedName: "configurationVersion", - type: { - name: "String" - } - }, - globalConfigurations: { - serializedName: "globalConfigurations", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - tableList: { - serializedName: "tableList", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMonitorTableConfiguration" - } - } - } - } - } - } -}; - -export const AzureMonitorTableConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureMonitorTableConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const AzureMonitorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureMonitorResponse", - modelProperties: { - clusterMonitoringEnabled: { - serializedName: "clusterMonitoringEnabled", - type: { - name: "Boolean" - } - }, - workspaceId: { - serializedName: "workspaceId", - type: { - name: "String" - } - }, - selectedConfigurations: { - serializedName: "selectedConfigurations", - type: { - name: "Composite", - className: "AzureMonitorSelectedConfigurations" - } - } - } - } -}; - -export const Extension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Extension", - modelProperties: { - workspaceId: { - serializedName: "workspaceId", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", - type: { - name: "String" - } - } - } - } -}; - -export const ExecuteScriptActionParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExecuteScriptActionParameters", - modelProperties: { - scriptActions: { - serializedName: "scriptActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptAction" - } - } - } - }, - persistOnSuccess: { - serializedName: "persistOnSuccess", - required: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ScriptActionsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptActionsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptActionDetail" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ScriptActionExecutionSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptActionExecutionSummary", - modelProperties: { - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const ScriptActionExecutionHistoryList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScriptActionExecutionHistoryList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuntimeScriptActionDetail" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3418,33 +3316,6 @@ export const Dimension: coreClient.CompositeMapper = { } }; -export const HostInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HostInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - fqdn: { - serializedName: "fqdn", - type: { - name: "String" - } - }, - effectiveDiskEncryptionKeyUrl: { - serializedName: "effectiveDiskEncryptionKeyUrl", - type: { - name: "String" - } - } - } - } -}; - export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3494,6 +3365,141 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; +export const ExecuteScriptActionParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExecuteScriptActionParameters", + modelProperties: { + scriptActions: { + serializedName: "scriptActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptAction" + } + } + } + }, + persistOnSuccess: { + serializedName: "persistOnSuccess", + required: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ScriptActionsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptActionsList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptActionDetail" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ScriptActionExecutionSummary: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptActionExecutionSummary", + modelProperties: { + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + }, + instanceCount: { + serializedName: "instanceCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ScriptActionExecutionHistoryList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptActionExecutionHistoryList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeScriptActionDetail" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const HostInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HostInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + effectiveDiskEncryptionKeyUrl: { + serializedName: "effectiveDiskEncryptionKeyUrl", + type: { + name: "String" + } + } + } + } +}; + export const ClusterListPersistedScriptActionsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3566,40 +3572,81 @@ export const ScriptActionPersistedGetResponseSpec: coreClient.CompositeMapper = } }; -export const ClusterCreateRequestValidationParameters: coreClient.CompositeMapper = { +export const RuntimeScriptActionDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterCreateRequestValidationParameters", + className: "RuntimeScriptActionDetail", modelProperties: { - ...ClusterCreateParametersExtended.type.modelProperties, - name: { - serializedName: "name", + ...RuntimeScriptAction.type.modelProperties, + scriptExecutionId: { + serializedName: "scriptExecutionId", + readOnly: true, + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + endTime: { + serializedName: "endTime", + readOnly: true, type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - fetchAaddsResource: { - serializedName: "fetchAaddsResource", + operation: { + serializedName: "operation", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + executionSummary: { + serializedName: "executionSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScriptActionExecutionSummary" + } + } + } + }, + debugInformation: { + serializedName: "debugInformation", + readOnly: true, + type: { + name: "String" } } } } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3645,12 +3692,36 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { +export const ClusterCreateRequestValidationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "ClusterCreateRequestValidationParameters", modelProperties: { - ...Resource.type.modelProperties + ...ClusterCreateParametersExtended.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + fetchAaddsResource: { + serializedName: "fetchAaddsResource", + type: { + name: "Boolean" + } + } } } }; @@ -3726,71 +3797,6 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const RuntimeScriptActionDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuntimeScriptActionDetail", - modelProperties: { - ...RuntimeScriptAction.type.modelProperties, - scriptExecutionId: { - serializedName: "scriptExecutionId", - readOnly: true, - type: { - name: "Number" - } - }, - startTime: { - serializedName: "startTime", - readOnly: true, - type: { - name: "String" - } - }, - endTime: { - serializedName: "endTime", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - executionSummary: { - serializedName: "executionSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScriptActionExecutionSummary" - } - } - } - }, - debugInformation: { - serializedName: "debugInformation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const Application: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts index 4195b39dd24..22c759f50cd 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts @@ -12,6 +12,7 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + Application as ApplicationMapper, ClusterCreateParametersExtended as ClusterCreateParametersExtendedMapper, ClusterPatchParameters as ClusterPatchParametersMapper, ClusterResizeParameters as ClusterResizeParametersMapper, @@ -20,32 +21,14 @@ import { UpdateGatewaySettingsParameters as UpdateGatewaySettingsParametersMapper, UpdateClusterIdentityCertificateParameters as UpdateClusterIdentityCertificateParametersMapper, ExecuteScriptActionParameters as ExecuteScriptActionParametersMapper, - Application as ApplicationMapper, - NameAvailabilityCheckRequestParameters as NameAvailabilityCheckRequestParametersMapper, - ClusterCreateRequestValidationParameters as ClusterCreateRequestValidationParametersMapper, ClusterMonitoringRequest as ClusterMonitoringRequestMapper, AzureMonitorRequest as AzureMonitorRequestMapper, Extension as ExtensionMapper, + NameAvailabilityCheckRequestParameters as NameAvailabilityCheckRequestParametersMapper, + ClusterCreateRequestValidationParameters as ClusterCreateRequestValidationParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper } from "../models/mappers"; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } -}; - -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterCreateParametersExtendedMapper -}; - export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -106,7 +89,7 @@ export const clusterName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-01", + defaultValue: "2023-04-15-preview", isConstant: true, serializedName: "api-version", type: { @@ -115,12 +98,68 @@ export const apiVersion: OperationQueryParameter = { } }; +export const applicationName: OperationURLParameter = { + parameterPath: "applicationName", + mapper: { + serializedName: "applicationName", + required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ApplicationMapper +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + serializedName: "operationId", + required: true, + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterCreateParametersExtendedMapper +}; + +export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ClusterPatchParametersMapper }; -export const parameters2: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: ClusterResizeParametersMapper }; @@ -136,92 +175,32 @@ export const roleName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: AutoscaleConfigurationUpdateParameterMapper }; -export const parameters4: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: ClusterDiskEncryptionParametersMapper }; -export const parameters5: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: UpdateGatewaySettingsParametersMapper }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", - mapper: { - serializedName: "operationId", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: UpdateClusterIdentityCertificateParametersMapper }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: ExecuteScriptActionParametersMapper }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const applicationName: OperationURLParameter = { - parameterPath: "applicationName", - mapper: { - serializedName: "applicationName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationMapper -}; - -export const location: OperationURLParameter = { - parameterPath: "location", - mapper: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } -}; - export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: NameAvailabilityCheckRequestParametersMapper -}; - -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterCreateRequestValidationParametersMapper -}; - -export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: { serializedName: "parameters", @@ -244,17 +223,17 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: ClusterMonitoringRequestMapper }; -export const parameters13: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: AzureMonitorRequestMapper }; -export const parameters14: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: ExtensionMapper }; @@ -270,6 +249,54 @@ export const extensionName: OperationURLParameter = { } }; +export const location: OperationURLParameter = { + parameterPath: "location", + mapper: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters13: OperationParameter = { + parameterPath: "parameters", + mapper: NameAvailabilityCheckRequestParametersMapper +}; + +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterCreateRequestValidationParametersMapper +}; + +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: PrivateEndpointConnectionMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const privateLinkResourceName: OperationURLParameter = { + parameterPath: "privateLinkResourceName", + mapper: { + serializedName: "privateLinkResourceName", + required: true, + type: { + name: "String" + } + } +}; + export const scriptName: OperationURLParameter = { parameterPath: "scriptName", mapper: { @@ -307,30 +334,3 @@ export const hosts: OperationParameter = { } } }; - -export const parameters15: OperationParameter = { - parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper -}; - -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - serializedName: "privateEndpointConnectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const privateLinkResourceName: OperationURLParameter = { - parameterPath: "privateLinkResourceName", - mapper: { - serializedName: "privateLinkResourceName", - required: true, - type: { - name: "String" - } - } -}; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts index 73fbf71e156..417b05bf188 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Application, ApplicationsListByClusterNextOptionalParams, @@ -178,8 +182,8 @@ export class ApplicationsImpl implements Applications { parameters: Application, options?: ApplicationsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApplicationsCreateResponse > > { @@ -189,7 +193,7 @@ export class ApplicationsImpl implements Applications { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -222,15 +226,24 @@ export class ApplicationsImpl implements Applications { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, applicationName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + clusterName, + applicationName, + parameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ApplicationsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -273,14 +286,14 @@ export class ApplicationsImpl implements Applications { clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -313,15 +326,15 @@ export class ApplicationsImpl implements Applications { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, applicationName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, applicationName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -458,7 +471,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -467,7 +480,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -513,8 +526,8 @@ const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.operationId, - Parameters.applicationName + Parameters.applicationName, + Parameters.operationId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts index 66edd9c40d5..c24272c48d8 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Cluster, ClustersListByResourceGroupNextOptionalParams, @@ -202,8 +206,8 @@ export class ClustersImpl implements Clusters { parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ClustersCreateResponse > > { @@ -213,7 +217,7 @@ export class ClustersImpl implements Clusters { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -246,15 +250,18 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + ClustersCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -311,14 +318,14 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -351,15 +358,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -430,14 +437,14 @@ export class ClustersImpl implements Clusters { roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -470,15 +477,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, roleName, parameters, options }, - resizeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, roleName, parameters, options }, + spec: resizeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -523,14 +530,14 @@ export class ClustersImpl implements Clusters { roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -563,15 +570,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, roleName, parameters, options }, - updateAutoScaleConfigurationOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, roleName, parameters, options }, + spec: updateAutoScaleConfigurationOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -624,14 +631,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -664,15 +671,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - rotateDiskEncryptionKeyOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: rotateDiskEncryptionKeyOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -729,14 +736,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -769,15 +776,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - updateGatewaySettingsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: updateGatewaySettingsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -836,14 +843,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -876,15 +883,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - updateIdentityCertificateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: updateIdentityCertificateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -924,14 +931,14 @@ export class ClustersImpl implements Clusters { clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -964,15 +971,15 @@ export class ClustersImpl implements Clusters { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - executeScriptActionsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: executeScriptActionsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -1056,7 +1063,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1064,7 +1071,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1080,7 +1087,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1088,7 +1095,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1171,7 +1178,7 @@ const resizeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1180,7 +1187,7 @@ const resizeOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.roleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1197,7 +1204,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1206,7 +1213,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.roleName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1240,7 +1247,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1248,7 +1255,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1287,7 +1294,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1295,7 +1302,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1335,7 +1342,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1343,7 +1350,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -1363,7 +1370,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1371,7 +1378,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts index c7d6bff93f9..fffc728653e 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/configurations.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ConfigurationsListOptionalParams, ConfigurationsListResponse, @@ -65,14 +69,14 @@ export class ConfigurationsImpl implements Configurations { configurationName: string, parameters: { [propertyName: string]: string }, options?: ConfigurationsUpdateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -105,21 +109,21 @@ export class ConfigurationsImpl implements Configurations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, configurationName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -209,7 +213,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -218,7 +222,7 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.configurationName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts index 79bc5929168..7a1a945a5bb 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ClusterMonitoringRequest, ExtensionsEnableMonitoringOptionalParams, @@ -57,14 +61,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -97,15 +101,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - enableMonitoringOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: enableMonitoringOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -160,14 +164,14 @@ export class ExtensionsImpl implements Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -200,15 +204,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - disableMonitoringOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: disableMonitoringOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -245,14 +249,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -285,15 +289,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, parameters, options }, - enableAzureMonitorOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, parameters, options }, + spec: enableAzureMonitorOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -348,14 +352,14 @@ export class ExtensionsImpl implements Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -388,15 +392,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, options }, - disableAzureMonitorOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: disableAzureMonitorOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -435,14 +439,14 @@ export class ExtensionsImpl implements Extensions { extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -475,15 +479,21 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, extensionName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + clusterName, + extensionName, + parameters, + options + }, + spec: createOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -545,14 +555,14 @@ export class ExtensionsImpl implements Extensions { clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -585,15 +595,15 @@ export class ExtensionsImpl implements Extensions { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, extensionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, extensionName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -658,7 +668,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -666,7 +676,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -728,7 +738,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -736,7 +746,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -798,7 +808,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -807,7 +817,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.extensionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts index dd26cfa15f3..6badc507b99 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusters"; export * from "./applications"; -export * from "./locations"; +export * from "./clusters"; export * from "./configurations"; export * from "./extensions"; -export * from "./scriptActions"; -export * from "./scriptExecutionHistory"; +export * from "./locations"; export * from "./operations"; -export * from "./virtualMachines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./scriptActions"; +export * from "./scriptExecutionHistory"; +export * from "./virtualMachines"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts index c29fe1bda28..5d7db28361d 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts @@ -236,14 +236,14 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; @@ -259,14 +259,14 @@ const validateClusterCreateRequestOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts index b73e3d63ce6..9daf63d8bc2 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterNextOptionalParams, @@ -158,8 +162,8 @@ export class PrivateEndpointConnectionsImpl parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > > { @@ -169,7 +173,7 @@ export class PrivateEndpointConnectionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -202,21 +206,24 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -283,14 +290,14 @@ export class PrivateEndpointConnectionsImpl clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -323,20 +330,20 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -438,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts index fa9838ee2f4..dd60b33601b 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HDInsightManagementClient } from "../hDInsightManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { VirtualMachinesListHostsOptionalParams, VirtualMachinesListHostsResponse, @@ -62,14 +66,14 @@ export class VirtualMachinesImpl implements VirtualMachines { clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -102,15 +106,15 @@ export class VirtualMachinesImpl implements VirtualMachines { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, clusterName, hosts, options }, - restartHostsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, hosts, options }, + spec: restartHostsOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -208,7 +212,7 @@ const restartHostsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName ], - headerParameters: [Parameters.contentType, Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer }; diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts index 8b83898f66f..132524ad0b0 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/applications.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Application, ApplicationsListByClusterOptionalParams, @@ -62,8 +62,8 @@ export interface Applications { parameters: Application, options?: ApplicationsCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApplicationsCreateResponse > >; @@ -94,7 +94,7 @@ export interface Applications { clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified application on the HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts index 0127e96bfc2..47ded0cb147 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/clusters.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Cluster, ClustersListByResourceGroupOptionalParams, @@ -72,8 +72,8 @@ export interface Clusters { parameters: ClusterCreateParametersExtended, options?: ClustersCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ClustersCreateResponse > >; @@ -113,7 +113,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -150,7 +150,7 @@ export interface Clusters { roleName: RoleName, parameters: ClusterResizeParameters, options?: ClustersResizeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Resizes the specified HDInsight cluster to the specified size. * @param resourceGroupName The name of the resource group. @@ -180,7 +180,7 @@ export interface Clusters { roleName: RoleName, parameters: AutoscaleConfigurationUpdateParameter, options?: ClustersUpdateAutoScaleConfigurationOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Updates the Autoscale Configuration for HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -208,7 +208,7 @@ export interface Clusters { clusterName: string, parameters: ClusterDiskEncryptionParameters, options?: ClustersRotateDiskEncryptionKeyOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Rotate disk encryption key of the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -245,7 +245,7 @@ export interface Clusters { clusterName: string, parameters: UpdateGatewaySettingsParameters, options?: ClustersUpdateGatewaySettingsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Configures the gateway settings on the specified cluster. * @param resourceGroupName The name of the resource group. @@ -284,7 +284,7 @@ export interface Clusters { clusterName: string, parameters: UpdateClusterIdentityCertificateParameters, options?: ClustersUpdateIdentityCertificateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Updates the cluster identity certificate. * @param resourceGroupName The name of the resource group. @@ -310,7 +310,7 @@ export interface Clusters { clusterName: string, parameters: ExecuteScriptActionParameters, options?: ClustersExecuteScriptActionsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Executes script actions on the specified HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts index b0ebe8c5076..199bbb110b1 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/configurations.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ConfigurationsListOptionalParams, ConfigurationsListResponse, @@ -43,7 +43,7 @@ export interface Configurations { configurationName: string, parameters: { [propertyName: string]: string }, options?: ConfigurationsUpdateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Configures the HTTP settings on the specified cluster. This API is deprecated, please use * UpdateGatewaySettings in cluster endpoint instead. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts index 68e713bf18d..f938117c213 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/extensions.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ClusterMonitoringRequest, ExtensionsEnableMonitoringOptionalParams, @@ -41,7 +41,7 @@ export interface Extensions { clusterName: string, parameters: ClusterMonitoringRequest, options?: ExtensionsEnableMonitoringOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Enables the Operations Management Suite (OMS) on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -76,7 +76,7 @@ export interface Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableMonitoringOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Disables the Operations Management Suite (OMS) on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -100,7 +100,7 @@ export interface Extensions { clusterName: string, parameters: AzureMonitorRequest, options?: ExtensionsEnableAzureMonitorOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Enables the Azure Monitor on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -135,7 +135,7 @@ export interface Extensions { resourceGroupName: string, clusterName: string, options?: ExtensionsDisableAzureMonitorOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Disables the Azure Monitor on the HDInsight cluster. * @param resourceGroupName The name of the resource group. @@ -161,7 +161,7 @@ export interface Extensions { extensionName: string, parameters: Extension, options?: ExtensionsCreateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Creates an HDInsight cluster extension. * @param resourceGroupName The name of the resource group. @@ -202,7 +202,7 @@ export interface Extensions { clusterName: string, extensionName: string, options?: ExtensionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified extension for HDInsight cluster. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts index dd26cfa15f3..6badc507b99 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./clusters"; export * from "./applications"; -export * from "./locations"; +export * from "./clusters"; export * from "./configurations"; export * from "./extensions"; -export * from "./scriptActions"; -export * from "./scriptExecutionHistory"; +export * from "./locations"; export * from "./operations"; -export * from "./virtualMachines"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./scriptActions"; +export * from "./scriptExecutionHistory"; +export * from "./virtualMachines"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts index f36c767ed7c..48e3f5c0e08 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/privateEndpointConnections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterOptionalParams, @@ -47,8 +47,8 @@ export interface PrivateEndpointConnections { parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > >; @@ -92,7 +92,7 @@ export interface PrivateEndpointConnections { clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specific private endpoint connection. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts index b30be807fe9..7a56d97502d 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operationsInterfaces/virtualMachines.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { VirtualMachinesListHostsOptionalParams, VirtualMachinesListHostsResponse, @@ -40,7 +40,7 @@ export interface VirtualMachines { clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Restarts the specified HDInsight cluster hosts. * @param resourceGroupName The name of the resource group. diff --git a/sdk/hdinsight/arm-hdinsight/test/hdinsights_operations_test.spec.ts b/sdk/hdinsight/arm-hdinsight/test/hdinsights_operations_test.spec.ts new file mode 100644 index 00000000000..82f85f29e1c --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/test/hdinsights_operations_test.spec.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + Recorder, + RecorderStartOptions, + delay, + isPlaybackMode, +} from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { HDInsightManagementClient } from "../src/hDInsightManagementClient"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("hdinsights test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: HDInsightManagementClient; + let location: string; + let resourceGroup: string; + let resourcename: string; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new HDInsightManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); + location = "eastus"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("locations checkNameAvailability test", async function () { + const res = await client.locations.checkNameAvailability( + location, + { + name: "test123", + type: "clusters" + }); + }); + + it("operation list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); +}) diff --git a/sdk/hdinsight/arm-hdinsight/test/sampleTest.ts b/sdk/hdinsight/arm-hdinsight/test/sampleTest.ts deleted file mode 100644 index 25aeb3ebcc3..00000000000 --- a/sdk/hdinsight/arm-hdinsight/test/sampleTest.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - Recorder, - RecorderStartOptions, - env -} from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { Context } from "mocha"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables -}; - -describe("My test", () => { - let recorder: Recorder; - - beforeEach(async function(this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("sample test", async function() { - console.log("Hi, I'm a test!"); - }); -});