From 369982318c3535b7b520a1e6b34cf4c38086a6d5 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:32:21 +0800 Subject: [PATCH] [mgmt] hybridcontainerservice release (#28237) https://github.com/Azure/sdk-release-request/issues/4841 --- .../arm-hybridcontainerservice/CHANGELOG.md | 235 +---- .../arm-hybridcontainerservice/LICENSE | 2 +- .../arm-hybridcontainerservice/README.md | 2 +- .../arm-hybridcontainerservice/_meta.json | 6 +- .../arm-hybridcontainerservice/assets.json | 2 +- .../arm-hybridcontainerservice/package.json | 4 +- .../review/arm-hybridcontainerservice.api.md | 267 +++--- .../agentPoolCreateOrUpdateSample.ts | 19 +- .../samples-dev/agentPoolDeleteSample.ts | 8 +- .../samples-dev/agentPoolGetSample.ts | 8 +- ...agentPoolListByProvisionedClusterSample.ts | 15 +- .../samples-dev/agentPoolUpdateSample.ts | 47 - .../deleteKubernetesVersionsSample.ts | 6 +- .../samples-dev/deleteVMSkusSample.ts | 6 +- .../getKubernetesVersionsSample.ts | 6 +- .../samples-dev/getVMSkusSample.ts | 6 +- .../hybridIdentityMetadataDeleteSample.ts | 2 +- .../hybridIdentityMetadataGetSample.ts | 2 +- ...bridIdentityMetadataListByClusterSample.ts | 2 +- .../hybridIdentityMetadataPutSample.ts | 8 +- .../kubernetesVersionsListSample.ts | 6 +- .../samples-dev/operationsListSample.ts | 6 +- ...nedClusterInstancesCreateOrUpdateSample.ts | 26 +- ...provisionedClusterInstancesDeleteSample.ts | 6 +- .../provisionedClusterInstancesGetSample.ts | 6 +- ...ClusterInstancesGetUpgradeProfileSample.ts | 6 +- ...usterInstancesListAdminKubeconfigSample.ts | 6 +- .../provisionedClusterInstancesListSample.ts | 6 +- ...lusterInstancesListUserKubeconfigSample.ts | 6 +- .../putKubernetesVersionsSample.ts | 6 +- .../samples-dev/putVMSkusSample.ts | 6 +- .../virtualNetworksCreateOrUpdateSample.ts | 14 +- .../virtualNetworksDeleteSample.ts | 6 +- ...irtualNetworksListByResourceGroupSample.ts | 6 +- ...virtualNetworksListBySubscriptionSample.ts | 6 +- .../virtualNetworksRetrieveSample.ts | 6 +- .../virtualNetworksUpdateSample.ts | 6 +- .../samples-dev/vmSkusListSample.ts | 6 +- .../samples/v1-beta/javascript/README.md | 110 --- .../javascript/agentPoolUpdateSample.js | 42 - .../typescript/src/agentPoolUpdateSample.ts | 47 - .../samples/v1/javascript/README.md | 108 +++ .../agentPoolCreateOrUpdateSample.js | 21 +- .../javascript/agentPoolDeleteSample.js | 10 +- .../javascript/agentPoolGetSample.js | 8 +- ...agentPoolListByProvisionedClusterSample.js | 17 +- .../deleteKubernetesVersionsSample.js | 6 +- .../javascript/deleteVMSkusSample.js | 6 +- .../javascript/getKubernetesVersionsSample.js | 6 +- .../javascript/getVMSkusSample.js | 6 +- .../hybridIdentityMetadataDeleteSample.js | 4 +- .../hybridIdentityMetadataGetSample.js | 2 +- ...bridIdentityMetadataListByClusterSample.js | 4 +- .../hybridIdentityMetadataPutSample.js | 10 +- .../kubernetesVersionsListSample.js | 6 +- .../javascript/operationsListSample.js | 6 +- .../{v1-beta => v1}/javascript/package.json | 6 +- ...nedClusterInstancesCreateOrUpdateSample.js | 22 +- ...provisionedClusterInstancesDeleteSample.js | 8 +- .../provisionedClusterInstancesGetSample.js | 6 +- ...ClusterInstancesGetUpgradeProfileSample.js | 8 +- ...usterInstancesListAdminKubeconfigSample.js | 8 +- .../provisionedClusterInstancesListSample.js | 6 +- ...lusterInstancesListUserKubeconfigSample.js | 8 +- .../javascript/putKubernetesVersionsSample.js | 8 +- .../javascript/putVMSkusSample.js | 6 +- .../{v1-beta => v1}/javascript/sample.env | 0 .../virtualNetworksCreateOrUpdateSample.js | 16 +- .../javascript/virtualNetworksDeleteSample.js | 8 +- ...irtualNetworksListByResourceGroupSample.js | 6 +- ...virtualNetworksListBySubscriptionSample.js | 6 +- .../virtualNetworksRetrieveSample.js | 6 +- .../javascript/virtualNetworksUpdateSample.js | 8 +- .../javascript/vmSkusListSample.js | 6 +- .../{v1-beta => v1}/typescript/README.md | 128 ++- .../{v1-beta => v1}/typescript/package.json | 6 +- .../{v1-beta => v1}/typescript/sample.env | 0 .../src/agentPoolCreateOrUpdateSample.ts | 19 +- .../typescript/src/agentPoolDeleteSample.ts | 8 +- .../typescript/src/agentPoolGetSample.ts | 8 +- ...agentPoolListByProvisionedClusterSample.ts | 15 +- .../src/deleteKubernetesVersionsSample.ts | 6 +- .../typescript/src/deleteVMSkusSample.ts | 6 +- .../src/getKubernetesVersionsSample.ts | 6 +- .../typescript/src/getVMSkusSample.ts | 6 +- .../src/hybridIdentityMetadataDeleteSample.ts | 2 +- .../src/hybridIdentityMetadataGetSample.ts | 2 +- ...bridIdentityMetadataListByClusterSample.ts | 2 +- .../src/hybridIdentityMetadataPutSample.ts | 8 +- .../src/kubernetesVersionsListSample.ts | 6 +- .../typescript/src/operationsListSample.ts | 6 +- ...nedClusterInstancesCreateOrUpdateSample.ts | 26 +- ...provisionedClusterInstancesDeleteSample.ts | 6 +- .../provisionedClusterInstancesGetSample.ts | 6 +- ...ClusterInstancesGetUpgradeProfileSample.ts | 6 +- ...usterInstancesListAdminKubeconfigSample.ts | 6 +- .../provisionedClusterInstancesListSample.ts | 6 +- ...lusterInstancesListUserKubeconfigSample.ts | 6 +- .../src/putKubernetesVersionsSample.ts | 6 +- .../typescript/src/putVMSkusSample.ts | 6 +- .../virtualNetworksCreateOrUpdateSample.ts | 14 +- .../src/virtualNetworksDeleteSample.ts | 6 +- ...irtualNetworksListByResourceGroupSample.ts | 6 +- ...virtualNetworksListBySubscriptionSample.ts | 6 +- .../src/virtualNetworksRetrieveSample.ts | 6 +- .../src/virtualNetworksUpdateSample.ts | 6 +- .../typescript/src/vmSkusListSample.ts | 6 +- .../{v1-beta => v1}/typescript/tsconfig.json | 0 .../src/hybridContainerServiceClient.ts | 46 +- .../src/models/index.ts | 656 ++++++------- .../src/models/mappers.ts | 868 ++++++++---------- .../src/models/parameters.ts | 18 +- .../src/operations/agentPoolOperations.ts | 278 +++--- .../hybridIdentityMetadataOperations.ts | 16 +- .../src/operations/kubernetesVersions.ts | 10 +- .../src/operations/operations.ts | 10 +- .../operations/provisionedClusterInstances.ts | 80 +- .../src/operations/vMSkus.ts | 10 +- .../src/operations/virtualNetworks.ts | 30 +- .../agentPoolOperations.ts | 99 +- .../hybridIdentityMetadataOperations.ts | 12 +- .../kubernetesVersions.ts | 4 +- .../src/operationsInterfaces/operations.ts | 5 +- .../provisionedClusterInstances.ts | 56 +- .../src/operationsInterfaces/vMSkus.ts | 4 +- .../operationsInterfaces/virtualNetworks.ts | 26 +- 126 files changed, 1735 insertions(+), 2201 deletions(-) delete mode 100644 sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolUpdateSample.ts delete mode 100644 sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/README.md delete mode 100644 sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolUpdateSample.js delete mode 100644 sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolUpdateSample.ts create mode 100644 sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/README.md rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/agentPoolCreateOrUpdateSample.js (69%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/agentPoolDeleteSample.js (76%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/agentPoolGetSample.js (77%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/agentPoolListByProvisionedClusterSample.js (67%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/deleteKubernetesVersionsSample.js (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/deleteVMSkusSample.js (83%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/getKubernetesVersionsSample.js (79%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/getVMSkusSample.js (80%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/hybridIdentityMetadataDeleteSample.js (90%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/hybridIdentityMetadataGetSample.js (92%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/hybridIdentityMetadataListByClusterSample.js (90%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/hybridIdentityMetadataPutSample.js (85%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/kubernetesVersionsListSample.js (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/operationsListSample.js (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/package.json (79%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesCreateOrUpdateSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesDeleteSample.js (79%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesGetSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js (78%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesListSample.js (78%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/provisionedClusterInstancesListUserKubeconfigSample.js (74%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/putKubernetesVersionsSample.js (78%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/putVMSkusSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/sample.env (100%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksCreateOrUpdateSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksDeleteSample.js (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksListByResourceGroupSample.js (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksListBySubscriptionSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksRetrieveSample.js (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/virtualNetworksUpdateSample.js (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/javascript/vmSkusListSample.js (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/README.md (50%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/package.json (83%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/sample.env (100%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/agentPoolCreateOrUpdateSample.ts (71%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/agentPoolDeleteSample.ts (77%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/agentPoolGetSample.ts (77%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/agentPoolListByProvisionedClusterSample.ts (70%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/deleteKubernetesVersionsSample.ts (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/deleteVMSkusSample.ts (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/getKubernetesVersionsSample.ts (79%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/getVMSkusSample.ts (80%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/hybridIdentityMetadataDeleteSample.ts (92%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/hybridIdentityMetadataGetSample.ts (92%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/hybridIdentityMetadataListByClusterSample.ts (92%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/hybridIdentityMetadataPutSample.ts (86%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/kubernetesVersionsListSample.ts (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/operationsListSample.ts (85%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts (79%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesDeleteSample.ts (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesGetSample.ts (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts (85%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesListSample.ts (78%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts (76%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/putKubernetesVersionsSample.ts (80%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/putVMSkusSample.ts (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksCreateOrUpdateSample.ts (83%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksDeleteSample.ts (84%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksListByResourceGroupSample.ts (82%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksListBySubscriptionSample.ts (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksRetrieveSample.ts (85%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/virtualNetworksUpdateSample.ts (86%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/src/vmSkusListSample.ts (81%) rename sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/{v1-beta => v1}/typescript/tsconfig.json (100%) diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/CHANGELOG.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/CHANGELOG.md index 1745415b0646..c30955fb618b 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/CHANGELOG.md +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/CHANGELOG.md @@ -1,238 +1,5 @@ # Release History - -## 1.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.3 (2023-11-23) - -**Features** - - - Added operation group KubernetesVersions - - Added operation group ProvisionedClusterInstances - - Added operation group VirtualNetworks - - Added operation group VMSkus - - Added operation AgentPoolOperations.beginDelete - - Added operation AgentPoolOperations.beginDeleteAndWait - - Added operation AgentPoolOperations.beginUpdate - - Added operation AgentPoolOperations.beginUpdateAndWait - - Added operation HybridIdentityMetadataOperations.beginDelete - - Added operation HybridIdentityMetadataOperations.beginDeleteAndWait - - Added Interface AddonStatusProfile - - Added Interface AgentPoolDeleteHeaders - - Added Interface AgentPoolPatch - - Added Interface AgentPoolProvisioningStatusOperationStatus - - Added Interface AgentPoolProvisioningStatusOperationStatusError - - Added Interface AgentPoolUpdateHeaders - - Added Interface AgentPoolUpdateProfile - - Added Interface CredentialResult - - Added Interface DeleteKubernetesVersionsOptionalParams - - Added Interface DeleteVMSkusOptionalParams - - Added Interface ExtendedLocation - - Added Interface GetKubernetesVersionsOptionalParams - - Added Interface GetVMSkusOptionalParams - - Added Interface HybridContainerServiceClientDeleteKubernetesVersionsHeaders - - Added Interface HybridContainerServiceClientDeleteVMSkusHeaders - - Added Interface HybridIdentityMetadataDeleteHeaders - - Added Interface KubernetesPatchVersions - - Added Interface KubernetesVersionCapabilities - - Added Interface KubernetesVersionProfile - - Added Interface KubernetesVersionProfileList - - Added Interface KubernetesVersionProfileProperties - - Added Interface KubernetesVersionProperties - - Added Interface KubernetesVersionReadiness - - Added Interface KubernetesVersionsListNextOptionalParams - - Added Interface KubernetesVersionsListOptionalParams - - Added Interface ListCredentialResponse - - Added Interface ListCredentialResponseError - - Added Interface ListCredentialResponseProperties - - Added Interface NetworkProfileLoadBalancerProfile - - Added Interface Operation - - Added Interface OperationDisplay - - Added Interface OperationListResult - - Added Interface ProvisionedClusterInstancesCreateOrUpdateOptionalParams - - Added Interface ProvisionedClusterInstancesDeleteHeaders - - Added Interface ProvisionedClusterInstancesDeleteOptionalParams - - Added Interface ProvisionedClusterInstancesGetOptionalParams - - Added Interface ProvisionedClusterInstancesGetUpgradeProfileOptionalParams - - Added Interface ProvisionedClusterInstancesListAdminKubeconfigHeaders - - Added Interface ProvisionedClusterInstancesListAdminKubeconfigOptionalParams - - Added Interface ProvisionedClusterInstancesListNextOptionalParams - - Added Interface ProvisionedClusterInstancesListOptionalParams - - Added Interface ProvisionedClusterInstancesListUserKubeconfigHeaders - - Added Interface ProvisionedClusterInstancesListUserKubeconfigOptionalParams - - Added Interface ProvisionedClusterLicenseProfile - - Added Interface ProvisionedClusterProperties - - Added Interface ProvisionedClusterPropertiesStatus - - Added Interface ProvisionedClusterPropertiesStatusOperationStatus - - Added Interface ProvisionedClusterPropertiesStatusOperationStatusError - - Added Interface ProvisionedClustersListResult - - Added Interface PutKubernetesVersionsOptionalParams - - Added Interface PutVMSkusOptionalParams - - Added Interface VirtualNetwork - - Added Interface VirtualNetworkExtendedLocation - - Added Interface VirtualNetworkProperties - - Added Interface VirtualNetworkPropertiesInfraVnetProfile - - Added Interface VirtualNetworkPropertiesInfraVnetProfileHci - - Added Interface VirtualNetworkPropertiesInfraVnetProfileVmware - - Added Interface VirtualNetworkPropertiesStatus - - Added Interface VirtualNetworkPropertiesStatusOperationStatus - - Added Interface VirtualNetworkPropertiesStatusOperationStatusError - - Added Interface VirtualNetworkPropertiesVipPoolItem - - Added Interface VirtualNetworkPropertiesVmipPoolItem - - Added Interface VirtualNetworksDeleteHeaders - - Added Interface VirtualNetworksUpdateHeaders - - Added Interface VmSkuCapabilities - - Added Interface VmSkuProfile - - Added Interface VmSkuProfileList - - Added Interface VmSkuProfileProperties - - Added Interface VmSkuProperties - - Added Interface VMSkusListNextOptionalParams - - Added Interface VMSkusListOptionalParams - - Added Type Alias ActionType - - Added Type Alias AddonPhase - - Added Type Alias AgentPoolDeleteResponse - - Added Type Alias AzureHybridBenefit - - Added Type Alias DeleteKubernetesVersionsResponse - - Added Type Alias DeleteVMSkusResponse - - Added Type Alias ExtendedLocationTypes - - Added Type Alias GetKubernetesVersionsResponse - - Added Type Alias GetVMSkusResponse - - Added Type Alias HybridIdentityMetadataDeleteResponse - - Added Type Alias KubernetesVersionsListNextResponse - - Added Type Alias KubernetesVersionsListResponse - - Added Type Alias Origin - - Added Type Alias Ossku - - Added Type Alias ProvisionedClusterInstancesCreateOrUpdateResponse - - Added Type Alias ProvisionedClusterInstancesDeleteResponse - - Added Type Alias ProvisionedClusterInstancesGetResponse - - Added Type Alias ProvisionedClusterInstancesGetUpgradeProfileResponse - - Added Type Alias ProvisionedClusterInstancesListAdminKubeconfigResponse - - Added Type Alias ProvisionedClusterInstancesListNextResponse - - Added Type Alias ProvisionedClusterInstancesListResponse - - Added Type Alias ProvisionedClusterInstancesListUserKubeconfigResponse - - Added Type Alias PutKubernetesVersionsResponse - - Added Type Alias PutVMSkusResponse - - Added Type Alias ResourceProvisioningState - - Added Type Alias VirtualNetworksDeleteResponse - - Added Type Alias VMSkusListNextResponse - - Added Type Alias VMSkusListResponse - - Interface AgentPool has a new optional parameter osSKU - - Interface AgentPoolDeleteOptionalParams has a new optional parameter resumeFrom - - Interface AgentPoolDeleteOptionalParams has a new optional parameter updateIntervalInMs - - Interface AgentPoolProfile has a new optional parameter osSKU - - Interface AgentPoolProvisioningStatusStatus has a new optional parameter operationStatus - - Interface AgentPoolUpdateOptionalParams has a new optional parameter resumeFrom - - Interface AgentPoolUpdateOptionalParams has a new optional parameter updateIntervalInMs - - Interface HybridIdentityMetadataDeleteOptionalParams has a new optional parameter resumeFrom - - Interface HybridIdentityMetadataDeleteOptionalParams has a new optional parameter updateIntervalInMs - - Interface Resource has a new optional parameter systemData - - Interface VirtualNetworksDeleteOptionalParams has a new optional parameter resumeFrom - - Interface VirtualNetworksDeleteOptionalParams has a new optional parameter updateIntervalInMs - - Added Enum KnownActionType - - Added Enum KnownAddonPhase - - Added Enum KnownAzureHybridBenefit - - Added Enum KnownExtendedLocationTypes - - Added Enum KnownOrigin - - Added Enum KnownOssku - - Added Enum KnownResourceProvisioningState - -**Breaking Changes** - - - Removed operation group HybridContainerService - - Removed operation group ProvisionedClustersOperations - - Removed operation group StorageSpacesOperations - - Removed operation group VirtualNetworksOperations - - Removed operation AgentPoolOperations.delete - - Removed operation AgentPoolOperations.update - - Removed operation HybridIdentityMetadataOperations.delete - - Operation AgentPoolOperations.beginCreateOrUpdate has a new signature - - Operation AgentPoolOperations.beginCreateOrUpdateAndWait has a new signature - - Operation AgentPoolOperations.get has a new signature - - Operation AgentPoolOperations.listByProvisionedCluster has a new signature - - Operation HybridIdentityMetadataOperations.get has a new signature - - Operation HybridIdentityMetadataOperations.listByCluster has a new signature - - Operation HybridIdentityMetadataOperations.put has a new signature - - Class HybridContainerServiceClient has a new signature - - Interface AgentPool no longer has parameter cloudProviderProfile - - Interface AgentPool no longer has parameter maxCount - - Interface AgentPool no longer has parameter maxPods - - Interface AgentPool no longer has parameter minCount - - Interface AgentPool no longer has parameter mode - - Interface AgentPool no longer has parameter nodeLabels - - Interface AgentPool no longer has parameter nodeTaints - - Interface AgentPoolProfile no longer has parameter cloudProviderProfile - - Interface AgentPoolProfile no longer has parameter count - - Interface AgentPoolProfile no longer has parameter maxCount - - Interface AgentPoolProfile no longer has parameter maxPods - - Interface AgentPoolProfile no longer has parameter minCount - - Interface AgentPoolProfile no longer has parameter mode - - Interface AgentPoolProfile no longer has parameter nodeLabels - - Interface AgentPoolProfile no longer has parameter nodeTaints - - Interface AgentPoolProfile no longer has parameter vmSize - - Interface AgentPoolProvisioningStatusStatus no longer has parameter provisioningStatus - - Interface AgentPoolProvisioningStatusStatus no longer has parameter replicas - - Interface CloudProviderProfile no longer has parameter infraStorageProfile - - Interface HybridIdentityMetadata no longer has parameter identity - - Interface HybridIdentityMetadata no longer has parameter systemData - - Interface LinuxProfileProperties no longer has parameter adminUsername - - Interface NetworkProfile no longer has parameter dnsServiceIP - - Interface NetworkProfile no longer has parameter loadBalancerSku - - Interface NetworkProfile no longer has parameter podCidrs - - Interface NetworkProfile no longer has parameter serviceCidr - - Interface NetworkProfile no longer has parameter serviceCidrs - - Interface ProvisionedClusters no longer has parameter identity - - Interface ProvisionedClusters no longer has parameter systemData - - Type of parameter extendedLocation of interface AgentPool is changed from AgentPoolExtendedLocation to ExtendedLocation - - Type of parameter provisioningState of interface AgentPool is changed from AgentPoolProvisioningState to ResourceProvisioningState - - Type of parameter provisioningState of interface AgentPoolProvisioningStatus is changed from AgentPoolProvisioningState to ResourceProvisioningState - - Type of parameter readyReplicas of interface AgentPoolProvisioningStatusStatus is changed from number to AgentPoolUpdateProfile[] - - Type of parameter port of interface ControlPlaneEndpointProfileControlPlaneEndpoint is changed from string to number - - Type of parameter provisioningState of interface HybridIdentityMetadata is changed from string to ResourceProvisioningState - - Type of parameter loadBalancerProfile of interface NetworkProfile is changed from LoadBalancerProfile to NetworkProfileLoadBalancerProfile - - Type of parameter extendedLocation of interface ProvisionedClusters is changed from ProvisionedClustersExtendedLocation to ExtendedLocation - - Type of parameter properties of interface ProvisionedClusters is changed from ProvisionedClustersAllProperties to ProvisionedClusterProperties - - Type of parameter provisioningState of interface ProvisionedClusterUpgradeProfile is changed from string to ResourceProvisioningState - - Type of parameter value of interface VirtualNetworksListResult is changed from VirtualNetworks[] to VirtualNetwork[] - - Class HybridContainerServiceClient no longer has parameter hybridContainerService - - Class HybridContainerServiceClient no longer has parameter provisionedClustersOperations - - Class HybridContainerServiceClient no longer has parameter storageSpacesOperations - - Class HybridContainerServiceClient no longer has parameter virtualNetworksOperations - - Removed Enum KnownAgentPoolProvisioningState - - Removed Enum KnownAutoUpgradeOptions - - Removed Enum KnownDeploymentState - - Removed Enum KnownLicenseType - - Removed Enum KnownLoadBalancerSku - - Removed Enum KnownMode - - -## 1.0.0-beta.2 (2023-03-03) - -**Features** - - - Added operation ProvisionedClustersOperations.beginUpgradeNodeImageVersionForEntireCluster - - Added operation ProvisionedClustersOperations.beginUpgradeNodeImageVersionForEntireClusterAndWait - - Added operation ProvisionedClustersOperations.getUpgradeProfile - - Added Interface ProvisionedClusterPoolUpgradeProfile - - Added Interface ProvisionedClusterPoolUpgradeProfileProperties - - Added Interface ProvisionedClustersGetUpgradeProfileOptionalParams - - Added Interface ProvisionedClustersUpgradeNodeImageVersionForEntireClusterOptionalParams - - Added Interface ProvisionedClusterUpgradeProfile - - Added Interface VirtualNetworksPropertiesInfraVnetProfileNetworkCloud - - Added Type Alias ProvisionedClustersGetUpgradeProfileResponse - - Interface VirtualNetworksPropertiesInfraVnetProfile has a new optional parameter networkCloud - -**Breaking Changes** - - - Interface VirtualNetworksPropertiesInfraVnetProfile no longer has parameter kubevirt - -## 1.0.0-beta.1 (2022-11-09) +## 1.0.0 (2024-01-15) The package of @azure/arm-hybridcontainerservice is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/LICENSE b/sdk/hybridcontainerservice/arm-hybridcontainerservice/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/LICENSE +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md index e64abbaffe78..cdf11756d950 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md @@ -6,7 +6,7 @@ The Microsoft.HybridContainerService Rest API spec. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-hybridcontainerservice) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/_meta.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/_meta.json index 72d1a804f261..27e6eef6626a 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/_meta.json +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "8263dd64b2fcbf8e0ebbab076a52ecc8cfbd4704", + "commit": "e79c2debdebd659662c78885c117603d991d3b06", "readme": "specification/hybridaks/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\hybridaks\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\hybridaks\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true --modelerfour.flatten-models=false", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.12" + "use": "@autorest/typescript@6.0.13" } \ No newline at end of file diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/assets.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/assets.json index 2abdbb3c509b..dd8235f577b6 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/assets.json +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/hybridcontainerservice/arm-hybridcontainerservice", - "Tag": "js/hybridcontainerservice/arm-hybridcontainerservice_7cbc690e41" + "Tag": "js/hybridcontainerservice/arm-hybridcontainerservice_2ee14d5f44" } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/package.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/package.json index 3d8e193e0499..e6a959a7fb6a 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/package.json +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HybridContainerServiceClient.", - "version": "1.0.0-beta.4", + "version": "1.0.0", "engines": { "node": ">=18.0.0" }, @@ -116,4 +116,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/review/arm-hybridcontainerservice.api.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/review/arm-hybridcontainerservice.api.md index dcd2484847c5..e1a2b3fc1a9f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/review/arm-hybridcontainerservice.api.md +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/review/arm-hybridcontainerservice.api.md @@ -25,24 +25,12 @@ export interface AddonStatusProfile { } // @public -export interface AgentPool { - availabilityZones?: string[]; - count?: number; +export interface AgentPool extends ProxyResource { extendedLocation?: ExtendedLocation; - readonly id?: string; - location?: string; - readonly name?: string; - nodeImageVersion?: string; - osSKU?: Ossku; - osType?: OsType; - readonly provisioningState?: ResourceProvisioningState; - status?: AgentPoolProvisioningStatusStatus; - readonly systemData?: SystemData; + properties?: AgentPoolProperties; tags?: { [propertyName: string]: string; }; - readonly type?: string; - vmSize?: string; } // @public @@ -76,6 +64,13 @@ export interface AgentPoolGetOptionalParams extends coreClient.OperationOptions // @public export type AgentPoolGetResponse = AgentPool; +// @public +export interface AgentPoolListByProvisionedClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AgentPoolListByProvisionedClusterNextResponse = AgentPoolListResult; + // @public export interface AgentPoolListByProvisionedClusterOptionalParams extends coreClient.OperationOptions { } @@ -102,28 +97,25 @@ export interface AgentPoolOperations { beginCreateOrUpdateAndWait(connectedClusterResourceUri: string, agentPoolName: string, agentPool: AgentPool, options?: AgentPoolCreateOrUpdateOptionalParams): Promise; beginDelete(connectedClusterResourceUri: string, agentPoolName: string, options?: AgentPoolDeleteOptionalParams): Promise, AgentPoolDeleteResponse>>; beginDeleteAndWait(connectedClusterResourceUri: string, agentPoolName: string, options?: AgentPoolDeleteOptionalParams): Promise; - beginUpdate(connectedClusterResourceUri: string, agentPoolName: string, agentPool: AgentPoolPatch, options?: AgentPoolUpdateOptionalParams): Promise, AgentPoolUpdateResponse>>; - beginUpdateAndWait(connectedClusterResourceUri: string, agentPoolName: string, agentPool: AgentPoolPatch, options?: AgentPoolUpdateOptionalParams): Promise; get(connectedClusterResourceUri: string, agentPoolName: string, options?: AgentPoolGetOptionalParams): Promise; - listByProvisionedCluster(connectedClusterResourceUri: string, options?: AgentPoolListByProvisionedClusterOptionalParams): Promise; + listByProvisionedCluster(connectedClusterResourceUri: string, options?: AgentPoolListByProvisionedClusterOptionalParams): PagedAsyncIterableIterator; } // @public -export interface AgentPoolPatch { - tags?: { +export interface AgentPoolProfile { + enableAutoScaling?: boolean; + maxCount?: number; + maxPods?: number; + minCount?: number; + nodeLabels?: { [propertyName: string]: string; }; -} - -// @public -export interface AgentPoolProfile { - availabilityZones?: string[]; - nodeImageVersion?: string; + nodeTaints?: string[]; osSKU?: Ossku; osType?: OsType; } -// @public (undocumented) +// @public export interface AgentPoolProperties extends AgentPoolProfile, AgentPoolUpdateProfile, AgentPoolProvisioningStatus { } @@ -133,53 +125,21 @@ export interface AgentPoolProvisioningStatus { status?: AgentPoolProvisioningStatusStatus; } -// @public -export interface AgentPoolProvisioningStatusOperationStatus { - // (undocumented) - error?: AgentPoolProvisioningStatusOperationStatusError; - // (undocumented) - operationId?: string; - // (undocumented) - status?: string; -} - -// @public (undocumented) -export interface AgentPoolProvisioningStatusOperationStatusError { - // (undocumented) - code?: string; - // (undocumented) - message?: string; -} - // @public export interface AgentPoolProvisioningStatusStatus { + readonly currentState?: ResourceProvisioningState; errorMessage?: string; - operationStatus?: AgentPoolProvisioningStatusOperationStatus; // (undocumented) readyReplicas?: AgentPoolUpdateProfile[]; } -// @public -export interface AgentPoolUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AgentPoolUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface AgentPoolUpdateProfile { count?: number; + readonly kubernetesVersion?: string; vmSize?: string; } -// @public -export type AgentPoolUpdateResponse = AgentPool; - // @public export type AzureHybridBenefit = string; @@ -194,18 +154,20 @@ export interface CloudProviderProfileInfraNetworkProfile { } // @public -export interface ControlPlaneEndpointProfile { - controlPlaneEndpoint?: ControlPlaneEndpointProfileControlPlaneEndpoint; +export interface ClusterVMAccessProfile { + authorizedIPRanges?: string; } // @public -export interface ControlPlaneEndpointProfileControlPlaneEndpoint { - hostIP?: string; - port?: number; +export interface ControlPlaneProfile { + controlPlaneEndpoint?: ControlPlaneProfileControlPlaneEndpoint; + count?: number; + vmSize?: string; } // @public -export interface ControlPlaneProfile extends NamedAgentPoolProfile, ControlPlaneEndpointProfile, LinuxProfile { +export interface ControlPlaneProfileControlPlaneEndpoint { + hostIP?: string; } // @public @@ -255,6 +217,9 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export type Expander = string; + // @public export interface ExtendedLocation { name?: string; @@ -338,9 +303,7 @@ export interface HybridContainerServiceClientOptionalParams extends coreClient.S // @public export interface HybridIdentityMetadata extends ProxyResource { - readonly provisioningState?: ResourceProvisioningState; - publicKey?: string; - resourceUid?: string; + properties: HybridIdentityMetadataProperties; } // @public @@ -394,6 +357,13 @@ export interface HybridIdentityMetadataOperations { put(connectedClusterResourceUri: string, body: HybridIdentityMetadata, options?: HybridIdentityMetadataPutOptionalParams): Promise; } +// @public +export interface HybridIdentityMetadataProperties { + readonly provisioningState?: ResourceProvisioningState; + publicKey?: string; + resourceUid?: string; +} + // @public export interface HybridIdentityMetadataPutOptionalParams extends coreClient.OperationOptions { } @@ -433,6 +403,14 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownExpander { + LeastWaste = "least-waste", + MostPods = "most-pods", + Priority = "priority", + Random = "random" +} + // @public export enum KnownExtendedLocationTypes { CustomLocation = "CustomLocation" @@ -440,8 +418,7 @@ export enum KnownExtendedLocationTypes { // @public export enum KnownNetworkPolicy { - Calico = "calico", - Flannel = "flannel" + Calico = "calico" } // @public @@ -468,10 +445,10 @@ export enum KnownOsType { export enum KnownProvisioningState { Accepted = "Accepted", Canceled = "Canceled", - Created = "Created", + Creating = "Creating", Deleting = "Deleting", Failed = "Failed", - InProgress = "InProgress", + Pending = "Pending", Succeeded = "Succeeded", Updating = "Updating" } @@ -480,11 +457,10 @@ export enum KnownProvisioningState { export enum KnownResourceProvisioningState { Accepted = "Accepted", Canceled = "Canceled", - Created = "Created", Creating = "Creating", Deleting = "Deleting", Failed = "Failed", - InProgress = "InProgress", + Pending = "Pending", Succeeded = "Succeeded", Updating = "Updating", Upgrading = "Upgrading" @@ -496,12 +472,6 @@ export interface KubernetesPatchVersions { upgrades?: string[]; } -// @public -export interface KubernetesVersionCapabilities { - // (undocumented) - supportPlan?: string[]; -} - // @public export interface KubernetesVersionProfile extends ProxyResource { extendedLocation?: ExtendedLocation; @@ -524,7 +494,6 @@ export interface KubernetesVersionProfileProperties { // @public export interface KubernetesVersionProperties { - readonly capabilities?: KubernetesVersionCapabilities; readonly isPreview?: boolean; readonly patchVersions?: { [propertyName: string]: KubernetesPatchVersions; @@ -648,7 +617,6 @@ export interface OperationListResult { // @public export interface Operations { - // (undocumented) list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } @@ -675,10 +643,16 @@ export type Ossku = string; // @public export type OsType = string; +// @public +export interface ProvisionedCluster extends ProxyResource { + extendedLocation?: ExtendedLocation; + properties?: ProvisionedClusterProperties; +} + // @public export interface ProvisionedClusterInstances { - beginCreateOrUpdate(connectedClusterResourceUri: string, provisionedClusterInstance: ProvisionedClusters, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams): Promise, ProvisionedClusterInstancesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(connectedClusterResourceUri: string, provisionedClusterInstance: ProvisionedClusters, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(connectedClusterResourceUri: string, provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams): Promise, ProvisionedClusterInstancesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(connectedClusterResourceUri: string, provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams): Promise; beginDelete(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesDeleteOptionalParams): Promise, ProvisionedClusterInstancesDeleteResponse>>; beginDeleteAndWait(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesDeleteOptionalParams): Promise; beginListAdminKubeconfig(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListAdminKubeconfigOptionalParams): Promise, ProvisionedClusterInstancesListAdminKubeconfigResponse>>; @@ -687,7 +661,7 @@ export interface ProvisionedClusterInstances { beginListUserKubeconfigAndWait(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListUserKubeconfigOptionalParams): Promise; get(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesGetOptionalParams): Promise; getUpgradeProfile(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesGetUpgradeProfileOptionalParams): Promise; - list(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams): PagedAsyncIterableIterator; + list(connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -697,7 +671,7 @@ export interface ProvisionedClusterInstancesCreateOrUpdateOptionalParams extends } // @public -export type ProvisionedClusterInstancesCreateOrUpdateResponse = ProvisionedClusters; +export type ProvisionedClusterInstancesCreateOrUpdateResponse = ProvisionedCluster; // @public export interface ProvisionedClusterInstancesDeleteHeaders { @@ -719,7 +693,7 @@ export interface ProvisionedClusterInstancesGetOptionalParams extends coreClient } // @public -export type ProvisionedClusterInstancesGetResponse = ProvisionedClusters; +export type ProvisionedClusterInstancesGetResponse = ProvisionedCluster; // @public export interface ProvisionedClusterInstancesGetUpgradeProfileOptionalParams extends coreClient.OperationOptions { @@ -748,14 +722,14 @@ export interface ProvisionedClusterInstancesListNextOptionalParams extends coreC } // @public -export type ProvisionedClusterInstancesListNextResponse = ProvisionedClustersListResult; +export type ProvisionedClusterInstancesListNextResponse = ProvisionedClusterListResult; // @public export interface ProvisionedClusterInstancesListOptionalParams extends coreClient.OperationOptions { } // @public -export type ProvisionedClusterInstancesListResponse = ProvisionedClustersListResult; +export type ProvisionedClusterInstancesListResponse = ProvisionedClusterListResult; // @public export interface ProvisionedClusterInstancesListUserKubeconfigHeaders { @@ -777,10 +751,17 @@ export interface ProvisionedClusterLicenseProfile { azureHybridBenefit?: AzureHybridBenefit; } +// @public +export interface ProvisionedClusterListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: ProvisionedCluster[]; +} + // @public export interface ProvisionedClusterPoolUpgradeProfile { readonly kubernetesVersion?: string; - readonly name?: string; readonly osType?: OsType; upgrades?: ProvisionedClusterPoolUpgradeProfileProperties[]; } @@ -794,7 +775,9 @@ export interface ProvisionedClusterPoolUpgradeProfileProperties { // @public export interface ProvisionedClusterProperties { agentPoolProfiles?: NamedAgentPoolProfile[]; + autoScalerProfile?: ProvisionedClusterPropertiesAutoScalerProfile; cloudProviderProfile?: CloudProviderProfile; + clusterVMAccessProfile?: ClusterVMAccessProfile; controlPlane?: ControlPlaneProfile; kubernetesVersion?: string; licenseProfile?: ProvisionedClusterLicenseProfile; @@ -802,50 +785,44 @@ export interface ProvisionedClusterProperties { networkProfile?: NetworkProfile; readonly provisioningState?: ResourceProvisioningState; readonly status?: ProvisionedClusterPropertiesStatus; + storageProfile?: StorageProfile; } // @public -export interface ProvisionedClusterPropertiesStatus { - controlPlaneStatus?: AddonStatusProfile[]; - errorMessage?: string; - operationStatus?: ProvisionedClusterPropertiesStatusOperationStatus; +export interface ProvisionedClusterPropertiesAutoScalerProfile { + balanceSimilarNodeGroups?: string; + expander?: Expander; + maxEmptyBulkDelete?: string; + maxGracefulTerminationSec?: string; + maxNodeProvisionTime?: string; + maxTotalUnreadyPercentage?: string; + newPodScaleUpDelay?: string; + okTotalUnreadyCount?: string; + scaleDownDelayAfterAdd?: string; + scaleDownDelayAfterDelete?: string; + scaleDownDelayAfterFailure?: string; + scaleDownUnneededTime?: string; + scaleDownUnreadyTime?: string; + scaleDownUtilizationThreshold?: string; + scanInterval?: string; + skipNodesWithLocalStorage?: string; + skipNodesWithSystemPods?: string; } // @public -export interface ProvisionedClusterPropertiesStatusOperationStatus { - // (undocumented) - error?: ProvisionedClusterPropertiesStatusOperationStatusError; - // (undocumented) - operationId?: string; - // (undocumented) - status?: string; -} - -// @public (undocumented) -export interface ProvisionedClusterPropertiesStatusOperationStatusError { - // (undocumented) - code?: string; - // (undocumented) - message?: string; -} - -// @public -export interface ProvisionedClusters extends ProxyResource { - extendedLocation?: ExtendedLocation; - properties?: ProvisionedClusterProperties; +export interface ProvisionedClusterPropertiesStatus { + controlPlaneStatus?: AddonStatusProfile[]; + readonly currentState?: ResourceProvisioningState; + errorMessage?: string; } // @public -export interface ProvisionedClustersListResult { - // (undocumented) - nextLink?: string; - // (undocumented) - value?: ProvisionedClusters[]; +export interface ProvisionedClusterUpgradeProfile extends ProxyResource { + properties: ProvisionedClusterUpgradeProfileProperties; } // @public -export interface ProvisionedClusterUpgradeProfile extends ProxyResource { - agentPoolProfiles: ProvisionedClusterPoolUpgradeProfile[]; +export interface ProvisionedClusterUpgradeProfileProperties { controlPlaneProfile: ProvisionedClusterPoolUpgradeProfile; readonly provisioningState?: ResourceProvisioningState; } @@ -886,6 +863,22 @@ export interface Resource { // @public export type ResourceProvisioningState = string; +// @public +export interface StorageProfile { + nfsCsiDriver?: StorageProfileNfsCSIDriver; + smbCsiDriver?: StorageProfileSmbCSIDriver; +} + +// @public +export interface StorageProfileNfsCSIDriver { + enabled?: boolean; +} + +// @public +export interface StorageProfileSmbCSIDriver { + enabled?: boolean; +} + // @public export interface SystemData { createdAt?: Date; @@ -906,20 +899,18 @@ export interface TrackedResource extends Resource { // @public export interface VirtualNetwork extends TrackedResource { - // (undocumented) extendedLocation?: VirtualNetworkExtendedLocation; properties?: VirtualNetworkProperties; } -// @public (undocumented) +// @public export interface VirtualNetworkExtendedLocation { name?: string; - type?: string; + type?: ExtendedLocationTypes; } // @public export interface VirtualNetworkProperties { - dhcpServers?: string[]; dnsServers?: string[]; gateway?: string; // (undocumented) @@ -935,7 +926,6 @@ export interface VirtualNetworkProperties { // @public (undocumented) export interface VirtualNetworkPropertiesInfraVnetProfile { hci?: VirtualNetworkPropertiesInfraVnetProfileHci; - vmware?: VirtualNetworkPropertiesInfraVnetProfileVmware; } // @public @@ -945,11 +935,6 @@ export interface VirtualNetworkPropertiesInfraVnetProfileHci { mocVnetName?: string; } -// @public -export interface VirtualNetworkPropertiesInfraVnetProfileVmware { - segmentName?: string; -} - // @public export interface VirtualNetworkPropertiesStatus { operationStatus?: VirtualNetworkPropertiesStatusOperationStatus; @@ -957,20 +942,14 @@ export interface VirtualNetworkPropertiesStatus { // @public export interface VirtualNetworkPropertiesStatusOperationStatus { - // (undocumented) error?: VirtualNetworkPropertiesStatusOperationStatusError; - // (undocumented) operationId?: string; - phase?: string; - // (undocumented) status?: string; } -// @public (undocumented) +// @public export interface VirtualNetworkPropertiesStatusOperationStatusError { - // (undocumented) code?: string; - // (undocumented) message?: string; } @@ -1051,7 +1030,7 @@ export interface VirtualNetworksListBySubscriptionOptionalParams extends coreCli // @public export type VirtualNetworksListBySubscriptionResponse = VirtualNetworksListResult; -// @public (undocumented) +// @public export interface VirtualNetworksListResult { // (undocumented) nextLink?: string; @@ -1073,12 +1052,6 @@ export interface VirtualNetworksRetrieveOptionalParams extends coreClient.Operat // @public export type VirtualNetworksRetrieveResponse = VirtualNetwork; -// @public -export interface VirtualNetworksUpdateHeaders { - // (undocumented) - location?: string; -} - // @public export interface VirtualNetworksUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolCreateOrUpdateSample.ts index 2015d5e442b1..81187e43a920 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolCreateOrUpdateSample.ts @@ -18,20 +18,23 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the agent pool in the provisioned cluster * - * @summary Creates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutAgentPool.json + * @summary Creates or updates the agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutAgentPool.json */ async function putAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const agentPool: AgentPool = { - count: 1, - location: "westus", - osType: "Linux", - vmSize: "Standard_A4_v2" + properties: { + count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], + osType: "Linux", + vmSize: "Standard_A4_v2" + } }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolDeleteSample.ts index 05fec68216d8..04bdcdcd4dbf 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolDeleteSample.ts @@ -15,15 +15,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the specified agent pool in the provisioned cluster * - * @summary Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteAgentPool.json + * @summary Deletes the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteAgentPool.json */ async function deleteAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.beginDeleteAndWait( diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolGetSample.ts index 58a4842bdb9f..306383f60671 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolGetSample.ts @@ -15,15 +15,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the specified agent pool in the provisioned cluster * - * @summary Gets the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetAgentPool.json + * @summary Gets the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetAgentPool.json */ async function getAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.get( diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolListByProvisionedClusterSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolListByProvisionedClusterSample.ts index 53490184f2e5..7dc8cd02cf12 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolListByProvisionedClusterSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolListByProvisionedClusterSample.ts @@ -15,20 +15,23 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the agent pools in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the list of agent pools in the specified provisioned cluster * - * @summary Gets the agent pools in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListAgentPoolByProvisionedClusterInstance.json + * @summary Gets the list of agent pools in the specified provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListAgentPoolByProvisionedClusterInstance.json */ async function listAgentPoolByProvisionedClusterInstance() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.listByProvisionedCluster( + const resArray = new Array(); + for await (let item of client.agentPoolOperations.listByProvisionedCluster( connectedClusterResourceUri - ); - console.log(result); + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolUpdateSample.ts deleted file mode 100644 index 8eedb18e10f6..000000000000 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/agentPoolUpdateSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AgentPoolPatch, - HybridContainerServiceClient -} from "@azure/arm-hybridcontainerservice"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates the agent pool in the Hybrid AKS provisioned cluster instance - * - * @summary Updates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateAgentPool.json - */ -async function updateAgentPool() { - const connectedClusterResourceUri = - "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; - const agentPool: AgentPoolPatch = { - tags: { additionalProperties: "sample" } - }; - const credential = new DefaultAzureCredential(); - const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.beginUpdateAndWait( - connectedClusterResourceUri, - agentPoolName, - agentPool - ); - console.log(result); -} - -async function main() { - updateAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteKubernetesVersionsSample.ts index 0380eff6da53..7604ae588323 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteKubernetesVersionsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Delete the kubernetes versions resource type + * This sample demonstrates how to Delete the default kubernetes versions resource type * - * @summary Delete the kubernetes versions resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteKubernetesVersions.json + * @summary Delete the default kubernetes versions resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteKubernetesVersions.json */ async function deleteKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteVMSkusSample.ts index 5a42d430efb5..b0063de5aeec 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/deleteVMSkusSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Vm Sku resource type + * This sample demonstrates how to Deletes the default VM skus resource type * - * @summary Deletes the Vm Sku resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVmSkus.json + * @summary Deletes the default VM skus resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVmSkus.json */ async function deleteVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getKubernetesVersionsSample.ts index 1e50159ec2d0..cd43d3caf19b 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getKubernetesVersionsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Gets the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetKubernetesVersions.json */ async function getKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getVMSkusSample.ts index a73ebf6a4b59..bf41e33e0a71 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/getVMSkusSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the supported VM skus from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Gets the supported VM skus from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVmSkus.json */ async function getVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataDeleteSample.ts index 2a3782de7287..cf605e5ac0c1 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the hybrid identity metadata proxy resource. * * @summary Deletes the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteHybridIdentityMetadata.json */ async function deleteHybridIdentityMetadata() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataGetSample.ts index bc214a15d3f3..48b75ebbce8a 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the hybrid identity metadata proxy resource. * * @summary Get the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetHybridIdentityMetadata.json */ async function getHybridIdentityMetadata() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataListByClusterSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataListByClusterSample.ts index f8f3e08e3d1f..3d4b3a734cec 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataListByClusterSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. * * @summary Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/HybridIdentityMetadataListByCluster.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/HybridIdentityMetadataListByCluster.json */ async function hybridIdentityMetadataListByCluster() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataPutSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataPutSample.ts index 9bbace8de3b2..13810bb64075 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataPutSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/hybridIdentityMetadataPutSample.ts @@ -21,14 +21,16 @@ dotenv.config(); * This sample demonstrates how to Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. * * @summary Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/CreateHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/CreateHybridIdentityMetadata.json */ async function createHybridIdentityMetadata() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const body: HybridIdentityMetadata = { - publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", - resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c" + properties: { + publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c" + } }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/kubernetesVersionsListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/kubernetesVersionsListSample.ts index d954b09a4485..a0363f367f93 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/kubernetesVersionsListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/kubernetesVersionsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Lists the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListKubernetesVersions.json */ async function listKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/operationsListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/operationsListSample.ts index 8f6b154168c0..569b91466b57 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/operationsListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to + * This sample demonstrates how to Lists the supported operations * - * @summary - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListOperations.json + * @summary Lists the supported operations + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListOperations.json */ async function listOperations() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesCreateOrUpdateSample.ts index 6dd2cd83ec04..dfa4628bb2a0 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesCreateOrUpdateSample.ts @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - ProvisionedClusters, + ProvisionedCluster, HybridContainerServiceClient } from "@azure/arm-hybridcontainerservice"; import { DefaultAzureCredential } from "@azure/identity"; @@ -18,15 +18,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the provisioned cluster instance * - * @summary Creates the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutProvisionedClusterInstance.json + * @summary Creates or updates the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutProvisionedClusterInstance.json */ async function putProvisionedClusterInstance() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const provisionedClusterInstance: ProvisionedClusters = { + const provisionedClusterInstance: ProvisionedCluster = { extendedLocation: { name: "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation", @@ -37,6 +37,8 @@ async function putProvisionedClusterInstance() { { name: "default-nodepool-1", count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], osType: "Linux", vmSize: "Standard_A4_v2" } @@ -48,18 +50,8 @@ async function putProvisionedClusterInstance() { ] } }, - controlPlane: { - count: 1, - linuxProfile: { - ssh: { - publicKeys: [ - { keyData: "ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAACAQCY......" } - ] - } - }, - osType: "Linux", - vmSize: "Standard_A4_v2" - }, + clusterVMAccessProfile: { authorizedIPRanges: "127.0.0.1,127.0.0.2" }, + controlPlane: { count: 1, vmSize: "Standard_A4_v2" }, kubernetesVersion: "v1.20.5", licenseProfile: { azureHybridBenefit: "NotApplicable" }, linuxProfile: { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesDeleteSample.ts index 8fa75d8c6bc3..33deae185024 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the provisioned cluster instance * - * @summary Deletes the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteProvisionedClusterInstance.json + * @summary Deletes the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteProvisionedClusterInstance.json */ async function deleteProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetSample.ts index 5df8f8d5acea..b18a44ad991c 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the provisioned cluster instance * - * @summary Gets the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetProvisionedClusterInstance.json + * @summary Gets the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetProvisionedClusterInstance.json */ async function getProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetUpgradeProfileSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetUpgradeProfileSample.ts index 0885172bd8a8..e335f92e1390 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetUpgradeProfileSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesGetUpgradeProfileSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster instance. + * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster * - * @summary Gets the upgrade profile of a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceGetUpgradeProfile.json + * @summary Gets the upgrade profile of a provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceGetUpgradeProfile.json */ async function getUpgradeProfileForProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListAdminKubeconfigSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListAdminKubeconfigSample.ts index f09fddb3c2f7..f813d10dd958 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListAdminKubeconfigSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListAdminKubeconfigSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the admin credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the admin credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListAdminKubeconfig.json + * @summary Lists the admin credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListAdminKubeconfig.json */ async function listClusterAdminCredentials() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListSample.ts index e4803c103601..7ae89fc2ed42 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster + * This sample demonstrates how to Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster * - * @summary Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListProvisionedClusterInstances.json + * @summary Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListProvisionedClusterInstances.json */ async function listProvisionedClusterInstances() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListUserKubeconfigSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListUserKubeconfigSample.ts index 7aa58bce9cf3..10072081a6ba 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListUserKubeconfigSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/provisionedClusterInstancesListUserKubeconfigSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the user credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListUserKubeconfig.json + * @summary Lists the user credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListUserKubeconfig.json */ async function listClusterUserCredentials() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putKubernetesVersionsSample.ts index 3ce752db82c0..15130b65b80f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putKubernetesVersionsSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the kubernetes version resource type + * This sample demonstrates how to Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) * - * @summary Puts the kubernetes version resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutKubernetesVersions.json + * @summary Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutKubernetesVersions.json */ async function putKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putVMSkusSample.ts index 8fc0bce0495f..eb14c2c59a5e 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/putVMSkusSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the VM SKUs resource type + * This sample demonstrates how to Puts the default VM skus resource type (one time operation, before listing the VM skus) * - * @summary Puts the VM SKUs resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVmSkus.json + * @summary Puts the default VM skus resource type (one time operation, before listing the VM skus) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVmSkus.json */ async function putVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksCreateOrUpdateSample.ts index 2e642e50b240..3276f68707c7 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksCreateOrUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the Hybrid AKS virtual network + * This sample demonstrates how to Creates or updates the virtual network resource * - * @summary Puts the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVirtualNetwork.json + * @summary Creates or updates the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVirtualNetwork.json */ async function putVirtualNetwork() { const subscriptionId = @@ -41,7 +41,13 @@ async function putVirtualNetwork() { properties: { dnsServers: ["192.168.0.1"], gateway: "192.168.0.1", - infraVnetProfile: { vmware: { segmentName: "test-network" } }, + infraVnetProfile: { + hci: { + mocGroup: "target-group", + mocLocation: "MocLocation", + mocVnetName: "vnet1" + } + }, ipAddressPrefix: "192.168.0.0/16", vipPool: [{ endIP: "192.168.0.50", startIP: "192.168.0.10" }], vlanID: 10, diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksDeleteSample.ts index acbe58d89d33..874a78a4d698 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS virtual network + * This sample demonstrates how to Deletes the specified virtual network resource * - * @summary Deletes the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVirtualNetwork.json + * @summary Deletes the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVirtualNetwork.json */ async function deleteVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListByResourceGroupSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListByResourceGroupSample.ts index df0a6195d0c9..199dfd716cf5 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListByResourceGroupSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListByResourceGroupSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by resource group + * This sample demonstrates how to Lists the virtual networks in the specified resource group * - * @summary Lists the Hybrid AKS virtual networks by resource group - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkByResourceGroup.json + * @summary Lists the virtual networks in the specified resource group + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkByResourceGroup.json */ async function listVirtualNetworkByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListBySubscriptionSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListBySubscriptionSample.ts index 4b8e0fd34bdc..daace4ec6638 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListBySubscriptionSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksListBySubscriptionSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by subscription + * This sample demonstrates how to Lists the virtual networks in the specified subscription * - * @summary Lists the Hybrid AKS virtual networks by subscription - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkBySubscription.json + * @summary Lists the virtual networks in the specified subscription + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkBySubscription.json */ async function listVirtualNetworkBySubscription() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksRetrieveSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksRetrieveSample.ts index 79b165e8cc46..735d406c785d 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksRetrieveSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksRetrieveSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS virtual network + * This sample demonstrates how to Gets the specified virtual network resource * - * @summary Gets the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVirtualNetwork.json + * @summary Gets the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVirtualNetwork.json */ async function getVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksUpdateSample.ts index 2d5ddd6210ed..e0a1164c03ee 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/virtualNetworksUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Patches the Hybrid AKS virtual network + * This sample demonstrates how to Patches the virtual network resource * - * @summary Patches the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateVirtualNetwork.json + * @summary Patches the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/UpdateVirtualNetwork.json */ async function updateVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/vmSkusListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/vmSkusListSample.ts index a6d5975b3093..75efca029a62 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/vmSkusListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples-dev/vmSkusListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the supported VM SKUs from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Lists the supported VM SKUs from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVmSkus.json */ async function listVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/README.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/README.md deleted file mode 100644 index 52a88dc2719d..000000000000 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,110 +0,0 @@ -# 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** | -| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [agentPoolCreateOrUpdateSample.js][agentpoolcreateorupdatesample] | Creates the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutAgentPool.json | -| [agentPoolDeleteSample.js][agentpooldeletesample] | Deletes the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteAgentPool.json | -| [agentPoolGetSample.js][agentpoolgetsample] | Gets the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetAgentPool.json | -| [agentPoolListByProvisionedClusterSample.js][agentpoollistbyprovisionedclustersample] | Gets the agent pools in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListAgentPoolByProvisionedClusterInstance.json | -| [agentPoolUpdateSample.js][agentpoolupdatesample] | Updates the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateAgentPool.json | -| [deleteKubernetesVersionsSample.js][deletekubernetesversionssample] | Delete the kubernetes versions resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteKubernetesVersions.json | -| [deleteVMSkusSample.js][deletevmskussample] | Deletes the Vm Sku resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVmSkus.json | -| [getKubernetesVersionsSample.js][getkubernetesversionssample] | Gets the supported kubernetes versions from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetKubernetesVersions.json | -| [getVMSkusSample.js][getvmskussample] | Gets the supported VM skus from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVmSkus.json | -| [hybridIdentityMetadataDeleteSample.js][hybrididentitymetadatadeletesample] | Deletes the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteHybridIdentityMetadata.json | -| [hybridIdentityMetadataGetSample.js][hybrididentitymetadatagetsample] | Get the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetHybridIdentityMetadata.json | -| [hybridIdentityMetadataListByClusterSample.js][hybrididentitymetadatalistbyclustersample] | Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/HybridIdentityMetadataListByCluster.json | -| [hybridIdentityMetadataPutSample.js][hybrididentitymetadataputsample] | Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/CreateHybridIdentityMetadata.json | -| [kubernetesVersionsListSample.js][kubernetesversionslistsample] | Lists the supported kubernetes versions from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListKubernetesVersions.json | -| [operationsListSample.js][operationslistsample] | x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListOperations.json | -| [provisionedClusterInstancesCreateOrUpdateSample.js][provisionedclusterinstancescreateorupdatesample] | Creates the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutProvisionedClusterInstance.json | -| [provisionedClusterInstancesDeleteSample.js][provisionedclusterinstancesdeletesample] | Deletes the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteProvisionedClusterInstance.json | -| [provisionedClusterInstancesGetSample.js][provisionedclusterinstancesgetsample] | Gets the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetProvisionedClusterInstance.json | -| [provisionedClusterInstancesGetUpgradeProfileSample.js][provisionedclusterinstancesgetupgradeprofilesample] | Gets the upgrade profile of a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceGetUpgradeProfile.json | -| [provisionedClusterInstancesListAdminKubeconfigSample.js][provisionedclusterinstanceslistadminkubeconfigsample] | Lists the admin credentials of a provisioned cluster instance used only in direct mode. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListAdminKubeconfig.json | -| [provisionedClusterInstancesListSample.js][provisionedclusterinstanceslistsample] | Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListProvisionedClusterInstances.json | -| [provisionedClusterInstancesListUserKubeconfigSample.js][provisionedclusterinstanceslistuserkubeconfigsample] | Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListUserKubeconfig.json | -| [putKubernetesVersionsSample.js][putkubernetesversionssample] | Puts the kubernetes version resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutKubernetesVersions.json | -| [putVMSkusSample.js][putvmskussample] | Puts the VM SKUs resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVmSkus.json | -| [virtualNetworksCreateOrUpdateSample.js][virtualnetworkscreateorupdatesample] | Puts the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVirtualNetwork.json | -| [virtualNetworksDeleteSample.js][virtualnetworksdeletesample] | Deletes the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVirtualNetwork.json | -| [virtualNetworksListByResourceGroupSample.js][virtualnetworkslistbyresourcegroupsample] | Lists the Hybrid AKS virtual networks by resource group x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkByResourceGroup.json | -| [virtualNetworksListBySubscriptionSample.js][virtualnetworkslistbysubscriptionsample] | Lists the Hybrid AKS virtual networks by subscription x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkBySubscription.json | -| [virtualNetworksRetrieveSample.js][virtualnetworksretrievesample] | Gets the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVirtualNetwork.json | -| [virtualNetworksUpdateSample.js][virtualnetworksupdatesample] | Patches the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateVirtualNetwork.json | -| [vmSkusListSample.js][vmskuslistsample] | Lists the supported VM SKUs from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVmSkus.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node agentPoolCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node agentPoolCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[agentpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolCreateOrUpdateSample.js -[agentpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolDeleteSample.js -[agentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolGetSample.js -[agentpoollistbyprovisionedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolListByProvisionedClusterSample.js -[agentpoolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolUpdateSample.js -[deletekubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteKubernetesVersionsSample.js -[deletevmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteVMSkusSample.js -[getkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getKubernetesVersionsSample.js -[getvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getVMSkusSample.js -[hybrididentitymetadatadeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataDeleteSample.js -[hybrididentitymetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataGetSample.js -[hybrididentitymetadatalistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataListByClusterSample.js -[hybrididentitymetadataputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataPutSample.js -[kubernetesversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/kubernetesVersionsListSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/operationsListSample.js -[provisionedclusterinstancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesCreateOrUpdateSample.js -[provisionedclusterinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesDeleteSample.js -[provisionedclusterinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetSample.js -[provisionedclusterinstancesgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js -[provisionedclusterinstanceslistadminkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js -[provisionedclusterinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListSample.js -[provisionedclusterinstanceslistuserkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListUserKubeconfigSample.js -[putkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putKubernetesVersionsSample.js -[putvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putVMSkusSample.js -[virtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksCreateOrUpdateSample.js -[virtualnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksDeleteSample.js -[virtualnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListByResourceGroupSample.js -[virtualnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListBySubscriptionSample.js -[virtualnetworksretrievesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksRetrieveSample.js -[virtualnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksUpdateSample.js -[vmskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/vmSkusListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolUpdateSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolUpdateSample.js deleted file mode 100644 index 442cdad329d0..000000000000 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolUpdateSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { HybridContainerServiceClient } = require("@azure/arm-hybridcontainerservice"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates the agent pool in the Hybrid AKS provisioned cluster instance - * - * @summary Updates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateAgentPool.json - */ -async function updateAgentPool() { - const connectedClusterResourceUri = - "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; - const agentPool = { - tags: { additionalProperties: "sample" }, - }; - const credential = new DefaultAzureCredential(); - const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.beginUpdateAndWait( - connectedClusterResourceUri, - agentPoolName, - agentPool - ); - console.log(result); -} - -async function main() { - updateAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolUpdateSample.ts deleted file mode 100644 index 8eedb18e10f6..000000000000 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolUpdateSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AgentPoolPatch, - HybridContainerServiceClient -} from "@azure/arm-hybridcontainerservice"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates the agent pool in the Hybrid AKS provisioned cluster instance - * - * @summary Updates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateAgentPool.json - */ -async function updateAgentPool() { - const connectedClusterResourceUri = - "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; - const agentPool: AgentPoolPatch = { - tags: { additionalProperties: "sample" } - }; - const credential = new DefaultAzureCredential(); - const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.beginUpdateAndWait( - connectedClusterResourceUri, - agentPoolName, - agentPool - ); - console.log(result); -} - -async function main() { - updateAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/README.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/README.md new file mode 100644 index 000000000000..71f0a0f8f043 --- /dev/null +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/README.md @@ -0,0 +1,108 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [agentPoolCreateOrUpdateSample.js][agentpoolcreateorupdatesample] | Creates or updates the agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutAgentPool.json | +| [agentPoolDeleteSample.js][agentpooldeletesample] | Deletes the specified agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteAgentPool.json | +| [agentPoolGetSample.js][agentpoolgetsample] | Gets the specified agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetAgentPool.json | +| [agentPoolListByProvisionedClusterSample.js][agentpoollistbyprovisionedclustersample] | Gets the list of agent pools in the specified provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListAgentPoolByProvisionedClusterInstance.json | +| [deleteKubernetesVersionsSample.js][deletekubernetesversionssample] | Delete the default kubernetes versions resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteKubernetesVersions.json | +| [deleteVMSkusSample.js][deletevmskussample] | Deletes the default VM skus resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVmSkus.json | +| [getKubernetesVersionsSample.js][getkubernetesversionssample] | Lists the supported kubernetes versions for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetKubernetesVersions.json | +| [getVMSkusSample.js][getvmskussample] | Lists the supported VM skus for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVmSkus.json | +| [hybridIdentityMetadataDeleteSample.js][hybrididentitymetadatadeletesample] | Deletes the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteHybridIdentityMetadata.json | +| [hybridIdentityMetadataGetSample.js][hybrididentitymetadatagetsample] | Get the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetHybridIdentityMetadata.json | +| [hybridIdentityMetadataListByClusterSample.js][hybrididentitymetadatalistbyclustersample] | Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/HybridIdentityMetadataListByCluster.json | +| [hybridIdentityMetadataPutSample.js][hybrididentitymetadataputsample] | Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/CreateHybridIdentityMetadata.json | +| [kubernetesVersionsListSample.js][kubernetesversionslistsample] | Lists the supported kubernetes versions for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListKubernetesVersions.json | +| [operationsListSample.js][operationslistsample] | Lists the supported operations x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListOperations.json | +| [provisionedClusterInstancesCreateOrUpdateSample.js][provisionedclusterinstancescreateorupdatesample] | Creates or updates the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutProvisionedClusterInstance.json | +| [provisionedClusterInstancesDeleteSample.js][provisionedclusterinstancesdeletesample] | Deletes the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteProvisionedClusterInstance.json | +| [provisionedClusterInstancesGetSample.js][provisionedclusterinstancesgetsample] | Gets the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetProvisionedClusterInstance.json | +| [provisionedClusterInstancesGetUpgradeProfileSample.js][provisionedclusterinstancesgetupgradeprofilesample] | Gets the upgrade profile of a provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceGetUpgradeProfile.json | +| [provisionedClusterInstancesListAdminKubeconfigSample.js][provisionedclusterinstanceslistadminkubeconfigsample] | Lists the admin credentials of the provisioned cluster (can only be used within private network) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListAdminKubeconfig.json | +| [provisionedClusterInstancesListSample.js][provisionedclusterinstanceslistsample] | Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListProvisionedClusterInstances.json | +| [provisionedClusterInstancesListUserKubeconfigSample.js][provisionedclusterinstanceslistuserkubeconfigsample] | Lists the user credentials of the provisioned cluster (can only be used within private network) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListUserKubeconfig.json | +| [putKubernetesVersionsSample.js][putkubernetesversionssample] | Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutKubernetesVersions.json | +| [putVMSkusSample.js][putvmskussample] | Puts the default VM skus resource type (one time operation, before listing the VM skus) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVmSkus.json | +| [virtualNetworksCreateOrUpdateSample.js][virtualnetworkscreateorupdatesample] | Creates or updates the virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVirtualNetwork.json | +| [virtualNetworksDeleteSample.js][virtualnetworksdeletesample] | Deletes the specified virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVirtualNetwork.json | +| [virtualNetworksListByResourceGroupSample.js][virtualnetworkslistbyresourcegroupsample] | Lists the virtual networks in the specified resource group x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkByResourceGroup.json | +| [virtualNetworksListBySubscriptionSample.js][virtualnetworkslistbysubscriptionsample] | Lists the virtual networks in the specified subscription x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkBySubscription.json | +| [virtualNetworksRetrieveSample.js][virtualnetworksretrievesample] | Gets the specified virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVirtualNetwork.json | +| [virtualNetworksUpdateSample.js][virtualnetworksupdatesample] | Patches the virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/UpdateVirtualNetwork.json | +| [vmSkusListSample.js][vmskuslistsample] | Lists the supported VM skus for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVmSkus.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node agentPoolCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env node agentPoolCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[agentpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolCreateOrUpdateSample.js +[agentpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolDeleteSample.js +[agentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolGetSample.js +[agentpoollistbyprovisionedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolListByProvisionedClusterSample.js +[deletekubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteKubernetesVersionsSample.js +[deletevmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteVMSkusSample.js +[getkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getKubernetesVersionsSample.js +[getvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getVMSkusSample.js +[hybrididentitymetadatadeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataDeleteSample.js +[hybrididentitymetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataGetSample.js +[hybrididentitymetadatalistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataListByClusterSample.js +[hybrididentitymetadataputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataPutSample.js +[kubernetesversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/kubernetesVersionsListSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/operationsListSample.js +[provisionedclusterinstancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesCreateOrUpdateSample.js +[provisionedclusterinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesDeleteSample.js +[provisionedclusterinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetSample.js +[provisionedclusterinstancesgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js +[provisionedclusterinstanceslistadminkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js +[provisionedclusterinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListSample.js +[provisionedclusterinstanceslistuserkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListUserKubeconfigSample.js +[putkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putKubernetesVersionsSample.js +[putvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putVMSkusSample.js +[virtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksCreateOrUpdateSample.js +[virtualnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksDeleteSample.js +[virtualnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListByResourceGroupSample.js +[virtualnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListBySubscriptionSample.js +[virtualnetworksretrievesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksRetrieveSample.js +[virtualnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksUpdateSample.js +[vmskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/vmSkusListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolCreateOrUpdateSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolCreateOrUpdateSample.js similarity index 69% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolCreateOrUpdateSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolCreateOrUpdateSample.js index 77f45def897e..788aafccfa09 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolCreateOrUpdateSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolCreateOrUpdateSample.js @@ -13,27 +13,30 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Creates the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the agent pool in the provisioned cluster * - * @summary Creates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutAgentPool.json + * @summary Creates or updates the agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutAgentPool.json */ async function putAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const agentPool = { - count: 1, - location: "westus", - osType: "Linux", - vmSize: "Standard_A4_v2", + properties: { + count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], + osType: "Linux", + vmSize: "Standard_A4_v2", + }, }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.beginCreateOrUpdateAndWait( connectedClusterResourceUri, agentPoolName, - agentPool + agentPool, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolDeleteSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolDeleteSample.js similarity index 76% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolDeleteSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolDeleteSample.js index 57409621d4e3..1f854217b8bf 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolDeleteSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolDeleteSample.js @@ -13,20 +13,20 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deletes the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the specified agent pool in the provisioned cluster * - * @summary Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteAgentPool.json + * @summary Deletes the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteAgentPool.json */ async function deleteAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.beginDeleteAndWait( connectedClusterResourceUri, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolGetSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolGetSample.js similarity index 77% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolGetSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolGetSample.js index fa185e9ede3d..0f62d7a1e753 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolGetSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolGetSample.js @@ -13,15 +13,15 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the specified agent pool in the provisioned cluster * - * @summary Gets the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetAgentPool.json + * @summary Gets the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetAgentPool.json */ async function getAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.get(connectedClusterResourceUri, agentPoolName); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolListByProvisionedClusterSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolListByProvisionedClusterSample.js similarity index 67% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolListByProvisionedClusterSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolListByProvisionedClusterSample.js index 304b353533a5..0f20b06e3486 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/agentPoolListByProvisionedClusterSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/agentPoolListByProvisionedClusterSample.js @@ -13,20 +13,23 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the agent pools in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the list of agent pools in the specified provisioned cluster * - * @summary Gets the agent pools in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListAgentPoolByProvisionedClusterInstance.json + * @summary Gets the list of agent pools in the specified provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListAgentPoolByProvisionedClusterInstance.json */ async function listAgentPoolByProvisionedClusterInstance() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.listByProvisionedCluster( - connectedClusterResourceUri - ); - console.log(result); + const resArray = new Array(); + for await (let item of client.agentPoolOperations.listByProvisionedCluster( + connectedClusterResourceUri, + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteKubernetesVersionsSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteKubernetesVersionsSample.js similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteKubernetesVersionsSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteKubernetesVersionsSample.js index 54f903d2d5bf..65c4020e7f8d 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteKubernetesVersionsSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteKubernetesVersionsSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Delete the kubernetes versions resource type + * This sample demonstrates how to Delete the default kubernetes versions resource type * - * @summary Delete the kubernetes versions resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteKubernetesVersions.json + * @summary Delete the default kubernetes versions resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteKubernetesVersions.json */ async function deleteKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteVMSkusSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteVMSkusSample.js similarity index 83% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteVMSkusSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteVMSkusSample.js index afa794ae5186..d83388e3e829 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/deleteVMSkusSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/deleteVMSkusSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deletes the Vm Sku resource type + * This sample demonstrates how to Deletes the default VM skus resource type * - * @summary Deletes the Vm Sku resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVmSkus.json + * @summary Deletes the default VM skus resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVmSkus.json */ async function deleteVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getKubernetesVersionsSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getKubernetesVersionsSample.js similarity index 79% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getKubernetesVersionsSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getKubernetesVersionsSample.js index 7561cbda17b6..8deeae3c4d79 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getKubernetesVersionsSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getKubernetesVersionsSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Gets the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetKubernetesVersions.json */ async function getKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getVMSkusSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getVMSkusSample.js similarity index 80% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getVMSkusSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getVMSkusSample.js index 6d729c1f6ccf..03ddfd7c90d6 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/getVMSkusSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/getVMSkusSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the supported VM skus from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Gets the supported VM skus from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVmSkus.json */ async function getVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataDeleteSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataDeleteSample.js similarity index 90% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataDeleteSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataDeleteSample.js index fb687457fce3..e6c3ef965cfa 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataDeleteSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the hybrid identity metadata proxy resource. * * @summary Deletes the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteHybridIdentityMetadata.json */ async function deleteHybridIdentityMetadata() { const connectedClusterResourceUri = @@ -24,7 +24,7 @@ async function deleteHybridIdentityMetadata() { const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.hybridIdentityMetadataOperations.beginDeleteAndWait( - connectedClusterResourceUri + connectedClusterResourceUri, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataGetSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataGetSample.js similarity index 92% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataGetSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataGetSample.js index fb535abe4249..21a85d6ad2cd 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataGetSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the hybrid identity metadata proxy resource. * * @summary Get the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetHybridIdentityMetadata.json */ async function getHybridIdentityMetadata() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataListByClusterSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataListByClusterSample.js similarity index 90% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataListByClusterSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataListByClusterSample.js index 16a6c3f9ae55..de4732c7cd08 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataListByClusterSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. * * @summary Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/HybridIdentityMetadataListByCluster.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/HybridIdentityMetadataListByCluster.json */ async function hybridIdentityMetadataListByCluster() { const connectedClusterResourceUri = @@ -25,7 +25,7 @@ async function hybridIdentityMetadataListByCluster() { const client = new HybridContainerServiceClient(credential); const resArray = new Array(); for await (let item of client.hybridIdentityMetadataOperations.listByCluster( - connectedClusterResourceUri + connectedClusterResourceUri, )) { resArray.push(item); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataPutSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataPutSample.js similarity index 85% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataPutSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataPutSample.js index 26e5005abc69..79d55b1cedfd 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/hybridIdentityMetadataPutSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/hybridIdentityMetadataPutSample.js @@ -16,20 +16,22 @@ require("dotenv").config(); * This sample demonstrates how to Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. * * @summary Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/CreateHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/CreateHybridIdentityMetadata.json */ async function createHybridIdentityMetadata() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const body = { - publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", - resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + properties: { + publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + }, }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.hybridIdentityMetadataOperations.put( connectedClusterResourceUri, - body + body, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/kubernetesVersionsListSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/kubernetesVersionsListSample.js similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/kubernetesVersionsListSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/kubernetesVersionsListSample.js index 7757d3bf6436..173cfec8915e 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/kubernetesVersionsListSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/kubernetesVersionsListSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Lists the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListKubernetesVersions.json */ async function listKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/operationsListSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/operationsListSample.js similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/operationsListSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/operationsListSample.js index b48decb4defe..9b6c2a33c6a2 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/operationsListSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/operationsListSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to + * This sample demonstrates how to Lists the supported operations * - * @summary - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListOperations.json + * @summary Lists the supported operations + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListOperations.json */ async function listOperations() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/package.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/package.json similarity index 79% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/package.json rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/package.json index 3a4415c1a22d..d9817a69dc58 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/package.json +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-hybridcontainerservice-js-beta", + "name": "@azure-samples/arm-hybridcontainerservice-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice", "dependencies": { - "@azure/arm-hybridcontainerservice": "next", + "@azure/arm-hybridcontainerservice": "latest", "dotenv": "latest", "@azure/identity": "^3.3.0" } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesCreateOrUpdateSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesCreateOrUpdateSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesCreateOrUpdateSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesCreateOrUpdateSample.js index 4d3ae03b705f..f045a0749263 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesCreateOrUpdateSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesCreateOrUpdateSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Creates the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the provisioned cluster instance * - * @summary Creates the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutProvisionedClusterInstance.json + * @summary Creates or updates the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutProvisionedClusterInstance.json */ async function putProvisionedClusterInstance() { const connectedClusterResourceUri = @@ -31,6 +31,8 @@ async function putProvisionedClusterInstance() { { name: "default-nodepool-1", count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], osType: "Linux", vmSize: "Standard_A4_v2", }, @@ -42,16 +44,8 @@ async function putProvisionedClusterInstance() { ], }, }, - controlPlane: { - count: 1, - linuxProfile: { - ssh: { - publicKeys: [{ keyData: "ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAACAQCY......" }], - }, - }, - osType: "Linux", - vmSize: "Standard_A4_v2", - }, + clusterVMAccessProfile: { authorizedIPRanges: "127.0.0.1,127.0.0.2" }, + controlPlane: { count: 1, vmSize: "Standard_A4_v2" }, kubernetesVersion: "v1.20.5", licenseProfile: { azureHybridBenefit: "NotApplicable" }, linuxProfile: { @@ -66,7 +60,7 @@ async function putProvisionedClusterInstance() { const client = new HybridContainerServiceClient(credential); const result = await client.provisionedClusterInstances.beginCreateOrUpdateAndWait( connectedClusterResourceUri, - provisionedClusterInstance + provisionedClusterInstance, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesDeleteSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesDeleteSample.js similarity index 79% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesDeleteSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesDeleteSample.js index 8d9533c8e9a2..2dd8f944ce14 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesDeleteSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesDeleteSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the provisioned cluster instance * - * @summary Deletes the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteProvisionedClusterInstance.json + * @summary Deletes the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteProvisionedClusterInstance.json */ async function deleteProvisionedClusterInstance() { const connectedClusterResourceUri = @@ -24,7 +24,7 @@ async function deleteProvisionedClusterInstance() { const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.provisionedClusterInstances.beginDeleteAndWait( - connectedClusterResourceUri + connectedClusterResourceUri, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetSample.js index 1c952b7b1f9f..b19e1fc1711f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the provisioned cluster instance * - * @summary Gets the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetProvisionedClusterInstance.json + * @summary Gets the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetProvisionedClusterInstance.json */ async function getProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js index b4efc343b1bf..ad5619949f17 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesGetUpgradeProfileSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster instance. + * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster * - * @summary Gets the upgrade profile of a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceGetUpgradeProfile.json + * @summary Gets the upgrade profile of a provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceGetUpgradeProfile.json */ async function getUpgradeProfileForProvisionedClusterInstance() { const connectedClusterResourceUri = @@ -24,7 +24,7 @@ async function getUpgradeProfileForProvisionedClusterInstance() { const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.provisionedClusterInstances.getUpgradeProfile( - connectedClusterResourceUri + connectedClusterResourceUri, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js similarity index 78% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js index 4ab97cfc2bfb..e24d3e9c08f7 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListAdminKubeconfigSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the admin credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the admin credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListAdminKubeconfig.json + * @summary Lists the admin credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListAdminKubeconfig.json */ async function listClusterAdminCredentials() { const connectedClusterResourceUri = @@ -24,7 +24,7 @@ async function listClusterAdminCredentials() { const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.provisionedClusterInstances.beginListAdminKubeconfigAndWait( - connectedClusterResourceUri + connectedClusterResourceUri, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListSample.js similarity index 78% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListSample.js index 94180bee8a09..5f73c8b4a595 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster + * This sample demonstrates how to Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster * - * @summary Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListProvisionedClusterInstances.json + * @summary Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListProvisionedClusterInstances.json */ async function listProvisionedClusterInstances() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListUserKubeconfigSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListUserKubeconfigSample.js similarity index 74% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListUserKubeconfigSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListUserKubeconfigSample.js index 4ce938b12f65..39b0c70f0a37 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/provisionedClusterInstancesListUserKubeconfigSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/provisionedClusterInstancesListUserKubeconfigSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the user credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListUserKubeconfig.json + * @summary Lists the user credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListUserKubeconfig.json */ async function listClusterUserCredentials() { const connectedClusterResourceUri = @@ -24,7 +24,7 @@ async function listClusterUserCredentials() { const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.provisionedClusterInstances.beginListUserKubeconfigAndWait( - connectedClusterResourceUri + connectedClusterResourceUri, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putKubernetesVersionsSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putKubernetesVersionsSample.js similarity index 78% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putKubernetesVersionsSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putKubernetesVersionsSample.js index b5f690ef2a5f..0c2b00f14dba 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putKubernetesVersionsSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putKubernetesVersionsSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Puts the kubernetes version resource type + * This sample demonstrates how to Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) * - * @summary Puts the kubernetes version resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutKubernetesVersions.json + * @summary Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutKubernetesVersions.json */ async function putKubernetesVersions() { const customLocationResourceUri = @@ -31,7 +31,7 @@ async function putKubernetesVersions() { const client = new HybridContainerServiceClient(credential); const result = await client.beginPutKubernetesVersionsAndWait( customLocationResourceUri, - kubernetesVersions + kubernetesVersions, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putVMSkusSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putVMSkusSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putVMSkusSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putVMSkusSample.js index 2513642ecf2c..0e027ebbecc1 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/putVMSkusSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/putVMSkusSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Puts the VM SKUs resource type + * This sample demonstrates how to Puts the default VM skus resource type (one time operation, before listing the VM skus) * - * @summary Puts the VM SKUs resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVmSkus.json + * @summary Puts the default VM skus resource type (one time operation, before listing the VM skus) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVmSkus.json */ async function putVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/sample.env b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/sample.env similarity index 100% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/sample.env rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/sample.env diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksCreateOrUpdateSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksCreateOrUpdateSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksCreateOrUpdateSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksCreateOrUpdateSample.js index e6b2743914c7..33ef7e99012f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksCreateOrUpdateSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksCreateOrUpdateSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Puts the Hybrid AKS virtual network + * This sample demonstrates how to Creates or updates the virtual network resource * - * @summary Puts the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVirtualNetwork.json + * @summary Creates or updates the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVirtualNetwork.json */ async function putVirtualNetwork() { const subscriptionId = @@ -33,7 +33,13 @@ async function putVirtualNetwork() { properties: { dnsServers: ["192.168.0.1"], gateway: "192.168.0.1", - infraVnetProfile: { vmware: { segmentName: "test-network" } }, + infraVnetProfile: { + hci: { + mocGroup: "target-group", + mocLocation: "MocLocation", + mocVnetName: "vnet1", + }, + }, ipAddressPrefix: "192.168.0.0/16", vipPool: [{ endIP: "192.168.0.50", startIP: "192.168.0.10" }], vlanID: 10, @@ -45,7 +51,7 @@ async function putVirtualNetwork() { const result = await client.virtualNetworks.beginCreateOrUpdateAndWait( resourceGroupName, virtualNetworkName, - virtualNetworks + virtualNetworks, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksDeleteSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksDeleteSample.js similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksDeleteSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksDeleteSample.js index 905a2e2bfdd5..575520437961 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksDeleteSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksDeleteSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS virtual network + * This sample demonstrates how to Deletes the specified virtual network resource * - * @summary Deletes the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVirtualNetwork.json + * @summary Deletes the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVirtualNetwork.json */ async function deleteVirtualNetwork() { const subscriptionId = @@ -28,7 +28,7 @@ async function deleteVirtualNetwork() { const client = new HybridContainerServiceClient(credential, subscriptionId); const result = await client.virtualNetworks.beginDeleteAndWait( resourceGroupName, - virtualNetworkName + virtualNetworkName, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListByResourceGroupSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListByResourceGroupSample.js similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListByResourceGroupSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListByResourceGroupSample.js index 08b61cbe84e2..2f5ce94f6266 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListByResourceGroupSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListByResourceGroupSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by resource group + * This sample demonstrates how to Lists the virtual networks in the specified resource group * - * @summary Lists the Hybrid AKS virtual networks by resource group - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkByResourceGroup.json + * @summary Lists the virtual networks in the specified resource group + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkByResourceGroup.json */ async function listVirtualNetworkByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListBySubscriptionSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListBySubscriptionSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListBySubscriptionSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListBySubscriptionSample.js index e293c4dfb6b1..6c51d202d9ff 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksListBySubscriptionSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksListBySubscriptionSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by subscription + * This sample demonstrates how to Lists the virtual networks in the specified subscription * - * @summary Lists the Hybrid AKS virtual networks by subscription - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkBySubscription.json + * @summary Lists the virtual networks in the specified subscription + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkBySubscription.json */ async function listVirtualNetworkBySubscription() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksRetrieveSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksRetrieveSample.js similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksRetrieveSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksRetrieveSample.js index db2042e1de60..9cce4d90ae29 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksRetrieveSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksRetrieveSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the Hybrid AKS virtual network + * This sample demonstrates how to Gets the specified virtual network resource * - * @summary Gets the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVirtualNetwork.json + * @summary Gets the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVirtualNetwork.json */ async function getVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksUpdateSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksUpdateSample.js similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksUpdateSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksUpdateSample.js index f685ef7d40ce..58471e061e02 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/virtualNetworksUpdateSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/virtualNetworksUpdateSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Patches the Hybrid AKS virtual network + * This sample demonstrates how to Patches the virtual network resource * - * @summary Patches the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateVirtualNetwork.json + * @summary Patches the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/UpdateVirtualNetwork.json */ async function updateVirtualNetwork() { const subscriptionId = @@ -32,7 +32,7 @@ async function updateVirtualNetwork() { const result = await client.virtualNetworks.beginUpdateAndWait( resourceGroupName, virtualNetworkName, - virtualNetworks + virtualNetworks, ); console.log(result); } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/vmSkusListSample.js b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/vmSkusListSample.js similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/vmSkusListSample.js rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/vmSkusListSample.js index c96a47353053..f23d0b6d1e18 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/javascript/vmSkusListSample.js +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/javascript/vmSkusListSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Lists the supported VM SKUs from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Lists the supported VM SKUs from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVmSkus.json */ async function listVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/README.md b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/README.md similarity index 50% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/README.md rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/README.md index 2c1f379eacbb..59765ab27f8e 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/README.md +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/README.md @@ -1,40 +1,39 @@ -# client library samples for TypeScript (Beta) +# client library samples for TypeScript These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [agentPoolCreateOrUpdateSample.ts][agentpoolcreateorupdatesample] | Creates the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutAgentPool.json | -| [agentPoolDeleteSample.ts][agentpooldeletesample] | Deletes the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteAgentPool.json | -| [agentPoolGetSample.ts][agentpoolgetsample] | Gets the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetAgentPool.json | -| [agentPoolListByProvisionedClusterSample.ts][agentpoollistbyprovisionedclustersample] | Gets the agent pools in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListAgentPoolByProvisionedClusterInstance.json | -| [agentPoolUpdateSample.ts][agentpoolupdatesample] | Updates the agent pool in the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateAgentPool.json | -| [deleteKubernetesVersionsSample.ts][deletekubernetesversionssample] | Delete the kubernetes versions resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteKubernetesVersions.json | -| [deleteVMSkusSample.ts][deletevmskussample] | Deletes the Vm Sku resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVmSkus.json | -| [getKubernetesVersionsSample.ts][getkubernetesversionssample] | Gets the supported kubernetes versions from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetKubernetesVersions.json | -| [getVMSkusSample.ts][getvmskussample] | Gets the supported VM skus from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVmSkus.json | -| [hybridIdentityMetadataDeleteSample.ts][hybrididentitymetadatadeletesample] | Deletes the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteHybridIdentityMetadata.json | -| [hybridIdentityMetadataGetSample.ts][hybrididentitymetadatagetsample] | Get the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetHybridIdentityMetadata.json | -| [hybridIdentityMetadataListByClusterSample.ts][hybrididentitymetadatalistbyclustersample] | Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/HybridIdentityMetadataListByCluster.json | -| [hybridIdentityMetadataPutSample.ts][hybrididentitymetadataputsample] | Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/CreateHybridIdentityMetadata.json | -| [kubernetesVersionsListSample.ts][kubernetesversionslistsample] | Lists the supported kubernetes versions from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListKubernetesVersions.json | -| [operationsListSample.ts][operationslistsample] | x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListOperations.json | -| [provisionedClusterInstancesCreateOrUpdateSample.ts][provisionedclusterinstancescreateorupdatesample] | Creates the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutProvisionedClusterInstance.json | -| [provisionedClusterInstancesDeleteSample.ts][provisionedclusterinstancesdeletesample] | Deletes the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteProvisionedClusterInstance.json | -| [provisionedClusterInstancesGetSample.ts][provisionedclusterinstancesgetsample] | Gets the Hybrid AKS provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetProvisionedClusterInstance.json | -| [provisionedClusterInstancesGetUpgradeProfileSample.ts][provisionedclusterinstancesgetupgradeprofilesample] | Gets the upgrade profile of a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceGetUpgradeProfile.json | -| [provisionedClusterInstancesListAdminKubeconfigSample.ts][provisionedclusterinstanceslistadminkubeconfigsample] | Lists the admin credentials of a provisioned cluster instance used only in direct mode. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListAdminKubeconfig.json | -| [provisionedClusterInstancesListSample.ts][provisionedclusterinstanceslistsample] | Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListProvisionedClusterInstances.json | -| [provisionedClusterInstancesListUserKubeconfigSample.ts][provisionedclusterinstanceslistuserkubeconfigsample] | Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListUserKubeconfig.json | -| [putKubernetesVersionsSample.ts][putkubernetesversionssample] | Puts the kubernetes version resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutKubernetesVersions.json | -| [putVMSkusSample.ts][putvmskussample] | Puts the VM SKUs resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVmSkus.json | -| [virtualNetworksCreateOrUpdateSample.ts][virtualnetworkscreateorupdatesample] | Puts the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVirtualNetwork.json | -| [virtualNetworksDeleteSample.ts][virtualnetworksdeletesample] | Deletes the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVirtualNetwork.json | -| [virtualNetworksListByResourceGroupSample.ts][virtualnetworkslistbyresourcegroupsample] | Lists the Hybrid AKS virtual networks by resource group x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkByResourceGroup.json | -| [virtualNetworksListBySubscriptionSample.ts][virtualnetworkslistbysubscriptionsample] | Lists the Hybrid AKS virtual networks by subscription x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkBySubscription.json | -| [virtualNetworksRetrieveSample.ts][virtualnetworksretrievesample] | Gets the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVirtualNetwork.json | -| [virtualNetworksUpdateSample.ts][virtualnetworksupdatesample] | Patches the Hybrid AKS virtual network x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateVirtualNetwork.json | -| [vmSkusListSample.ts][vmskuslistsample] | Lists the supported VM SKUs from the underlying custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVmSkus.json | +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [agentPoolCreateOrUpdateSample.ts][agentpoolcreateorupdatesample] | Creates or updates the agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutAgentPool.json | +| [agentPoolDeleteSample.ts][agentpooldeletesample] | Deletes the specified agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteAgentPool.json | +| [agentPoolGetSample.ts][agentpoolgetsample] | Gets the specified agent pool in the provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetAgentPool.json | +| [agentPoolListByProvisionedClusterSample.ts][agentpoollistbyprovisionedclustersample] | Gets the list of agent pools in the specified provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListAgentPoolByProvisionedClusterInstance.json | +| [deleteKubernetesVersionsSample.ts][deletekubernetesversionssample] | Delete the default kubernetes versions resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteKubernetesVersions.json | +| [deleteVMSkusSample.ts][deletevmskussample] | Deletes the default VM skus resource type x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVmSkus.json | +| [getKubernetesVersionsSample.ts][getkubernetesversionssample] | Lists the supported kubernetes versions for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetKubernetesVersions.json | +| [getVMSkusSample.ts][getvmskussample] | Lists the supported VM skus for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVmSkus.json | +| [hybridIdentityMetadataDeleteSample.ts][hybrididentitymetadatadeletesample] | Deletes the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteHybridIdentityMetadata.json | +| [hybridIdentityMetadataGetSample.ts][hybrididentitymetadatagetsample] | Get the hybrid identity metadata proxy resource. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetHybridIdentityMetadata.json | +| [hybridIdentityMetadataListByClusterSample.ts][hybrididentitymetadatalistbyclustersample] | Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/HybridIdentityMetadataListByCluster.json | +| [hybridIdentityMetadataPutSample.ts][hybrididentitymetadataputsample] | Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/CreateHybridIdentityMetadata.json | +| [kubernetesVersionsListSample.ts][kubernetesversionslistsample] | Lists the supported kubernetes versions for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListKubernetesVersions.json | +| [operationsListSample.ts][operationslistsample] | Lists the supported operations x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListOperations.json | +| [provisionedClusterInstancesCreateOrUpdateSample.ts][provisionedclusterinstancescreateorupdatesample] | Creates or updates the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutProvisionedClusterInstance.json | +| [provisionedClusterInstancesDeleteSample.ts][provisionedclusterinstancesdeletesample] | Deletes the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteProvisionedClusterInstance.json | +| [provisionedClusterInstancesGetSample.ts][provisionedclusterinstancesgetsample] | Gets the provisioned cluster instance x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetProvisionedClusterInstance.json | +| [provisionedClusterInstancesGetUpgradeProfileSample.ts][provisionedclusterinstancesgetupgradeprofilesample] | Gets the upgrade profile of a provisioned cluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceGetUpgradeProfile.json | +| [provisionedClusterInstancesListAdminKubeconfigSample.ts][provisionedclusterinstanceslistadminkubeconfigsample] | Lists the admin credentials of the provisioned cluster (can only be used within private network) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListAdminKubeconfig.json | +| [provisionedClusterInstancesListSample.ts][provisionedclusterinstanceslistsample] | Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListProvisionedClusterInstances.json | +| [provisionedClusterInstancesListUserKubeconfigSample.ts][provisionedclusterinstanceslistuserkubeconfigsample] | Lists the user credentials of the provisioned cluster (can only be used within private network) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListUserKubeconfig.json | +| [putKubernetesVersionsSample.ts][putkubernetesversionssample] | Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutKubernetesVersions.json | +| [putVMSkusSample.ts][putvmskussample] | Puts the default VM skus resource type (one time operation, before listing the VM skus) x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVmSkus.json | +| [virtualNetworksCreateOrUpdateSample.ts][virtualnetworkscreateorupdatesample] | Creates or updates the virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVirtualNetwork.json | +| [virtualNetworksDeleteSample.ts][virtualnetworksdeletesample] | Deletes the specified virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVirtualNetwork.json | +| [virtualNetworksListByResourceGroupSample.ts][virtualnetworkslistbyresourcegroupsample] | Lists the virtual networks in the specified resource group x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkByResourceGroup.json | +| [virtualNetworksListBySubscriptionSample.ts][virtualnetworkslistbysubscriptionsample] | Lists the virtual networks in the specified subscription x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkBySubscription.json | +| [virtualNetworksRetrieveSample.ts][virtualnetworksretrievesample] | Gets the specified virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVirtualNetwork.json | +| [virtualNetworksUpdateSample.ts][virtualnetworksupdatesample] | Patches the virtual network resource x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/UpdateVirtualNetwork.json | +| [vmSkusListSample.ts][vmskuslistsample] | Lists the supported VM skus for the specified custom location x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVmSkus.json | ## Prerequisites @@ -86,37 +85,36 @@ npx cross-env node dist/agentPoolCreateOrUpdateSample.js Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[agentpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolCreateOrUpdateSample.ts -[agentpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolDeleteSample.ts -[agentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolGetSample.ts -[agentpoollistbyprovisionedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolListByProvisionedClusterSample.ts -[agentpoolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolUpdateSample.ts -[deletekubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteKubernetesVersionsSample.ts -[deletevmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteVMSkusSample.ts -[getkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getKubernetesVersionsSample.ts -[getvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getVMSkusSample.ts -[hybrididentitymetadatadeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataDeleteSample.ts -[hybrididentitymetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataGetSample.ts -[hybrididentitymetadatalistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataListByClusterSample.ts -[hybrididentitymetadataputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataPutSample.ts -[kubernetesversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/kubernetesVersionsListSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/operationsListSample.ts -[provisionedclusterinstancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts -[provisionedclusterinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesDeleteSample.ts -[provisionedclusterinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetSample.ts -[provisionedclusterinstancesgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts -[provisionedclusterinstanceslistadminkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts -[provisionedclusterinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListSample.ts -[provisionedclusterinstanceslistuserkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts -[putkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putKubernetesVersionsSample.ts -[putvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putVMSkusSample.ts -[virtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksCreateOrUpdateSample.ts -[virtualnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksDeleteSample.ts -[virtualnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListByResourceGroupSample.ts -[virtualnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListBySubscriptionSample.ts -[virtualnetworksretrievesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksRetrieveSample.ts -[virtualnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksUpdateSample.ts -[vmskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/vmSkusListSample.ts +[agentpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolCreateOrUpdateSample.ts +[agentpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolDeleteSample.ts +[agentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolGetSample.ts +[agentpoollistbyprovisionedclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolListByProvisionedClusterSample.ts +[deletekubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteKubernetesVersionsSample.ts +[deletevmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteVMSkusSample.ts +[getkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getKubernetesVersionsSample.ts +[getvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getVMSkusSample.ts +[hybrididentitymetadatadeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataDeleteSample.ts +[hybrididentitymetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataGetSample.ts +[hybrididentitymetadatalistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataListByClusterSample.ts +[hybrididentitymetadataputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataPutSample.ts +[kubernetesversionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/kubernetesVersionsListSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/operationsListSample.ts +[provisionedclusterinstancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts +[provisionedclusterinstancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesDeleteSample.ts +[provisionedclusterinstancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetSample.ts +[provisionedclusterinstancesgetupgradeprofilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts +[provisionedclusterinstanceslistadminkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts +[provisionedclusterinstanceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListSample.ts +[provisionedclusterinstanceslistuserkubeconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts +[putkubernetesversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putKubernetesVersionsSample.ts +[putvmskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putVMSkusSample.ts +[virtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksCreateOrUpdateSample.ts +[virtualnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksDeleteSample.ts +[virtualnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListByResourceGroupSample.ts +[virtualnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListBySubscriptionSample.ts +[virtualnetworksretrievesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksRetrieveSample.ts +[virtualnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksUpdateSample.ts +[vmskuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/vmSkusListSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcontainerservice?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice/README.md diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/package.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/package.json similarity index 83% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/package.json rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/package.json index ce4269777203..9af61e77c93f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/package.json +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-hybridcontainerservice-ts-beta", + "name": "@azure-samples/arm-hybridcontainerservice-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcontainerservice/arm-hybridcontainerservice", "dependencies": { - "@azure/arm-hybridcontainerservice": "next", + "@azure/arm-hybridcontainerservice": "latest", "dotenv": "latest", "@azure/identity": "^3.3.0" }, diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/sample.env b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/sample.env similarity index 100% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/sample.env rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/sample.env diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolCreateOrUpdateSample.ts similarity index 71% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolCreateOrUpdateSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolCreateOrUpdateSample.ts index 2015d5e442b1..81187e43a920 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolCreateOrUpdateSample.ts @@ -18,20 +18,23 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the agent pool in the provisioned cluster * - * @summary Creates the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutAgentPool.json + * @summary Creates or updates the agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutAgentPool.json */ async function putAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const agentPool: AgentPool = { - count: 1, - location: "westus", - osType: "Linux", - vmSize: "Standard_A4_v2" + properties: { + count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], + osType: "Linux", + vmSize: "Standard_A4_v2" + } }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolDeleteSample.ts similarity index 77% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolDeleteSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolDeleteSample.ts index 05fec68216d8..04bdcdcd4dbf 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolDeleteSample.ts @@ -15,15 +15,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the specified agent pool in the provisioned cluster * - * @summary Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteAgentPool.json + * @summary Deletes the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteAgentPool.json */ async function deleteAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.beginDeleteAndWait( diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolGetSample.ts similarity index 77% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolGetSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolGetSample.ts index 58a4842bdb9f..306383f60671 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolGetSample.ts @@ -15,15 +15,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the agent pool in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the specified agent pool in the provisioned cluster * - * @summary Gets the agent pool in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetAgentPool.json + * @summary Gets the specified agent pool in the provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetAgentPool.json */ async function getAgentPool() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const agentPoolName = "test-hybridaksnodepool"; + const agentPoolName = "testnodepool"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); const result = await client.agentPoolOperations.get( diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolListByProvisionedClusterSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolListByProvisionedClusterSample.ts similarity index 70% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolListByProvisionedClusterSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolListByProvisionedClusterSample.ts index 53490184f2e5..7dc8cd02cf12 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/agentPoolListByProvisionedClusterSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/agentPoolListByProvisionedClusterSample.ts @@ -15,20 +15,23 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the agent pools in the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the list of agent pools in the specified provisioned cluster * - * @summary Gets the agent pools in the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListAgentPoolByProvisionedClusterInstance.json + * @summary Gets the list of agent pools in the specified provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListAgentPoolByProvisionedClusterInstance.json */ async function listAgentPoolByProvisionedClusterInstance() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); - const result = await client.agentPoolOperations.listByProvisionedCluster( + const resArray = new Array(); + for await (let item of client.agentPoolOperations.listByProvisionedCluster( connectedClusterResourceUri - ); - console.log(result); + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteKubernetesVersionsSample.ts similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteKubernetesVersionsSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteKubernetesVersionsSample.ts index 0380eff6da53..7604ae588323 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteKubernetesVersionsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Delete the kubernetes versions resource type + * This sample demonstrates how to Delete the default kubernetes versions resource type * - * @summary Delete the kubernetes versions resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteKubernetesVersions.json + * @summary Delete the default kubernetes versions resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteKubernetesVersions.json */ async function deleteKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteVMSkusSample.ts similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteVMSkusSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteVMSkusSample.ts index 5a42d430efb5..b0063de5aeec 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/deleteVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/deleteVMSkusSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Vm Sku resource type + * This sample demonstrates how to Deletes the default VM skus resource type * - * @summary Deletes the Vm Sku resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVmSkus.json + * @summary Deletes the default VM skus resource type + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVmSkus.json */ async function deleteVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getKubernetesVersionsSample.ts similarity index 79% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getKubernetesVersionsSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getKubernetesVersionsSample.ts index 1e50159ec2d0..cd43d3caf19b 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getKubernetesVersionsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Gets the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetKubernetesVersions.json */ async function getKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getVMSkusSample.ts similarity index 80% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getVMSkusSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getVMSkusSample.ts index a73ebf6a4b59..bf41e33e0a71 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/getVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/getVMSkusSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the supported VM skus from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Gets the supported VM skus from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVmSkus.json */ async function getVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataDeleteSample.ts similarity index 92% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataDeleteSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataDeleteSample.ts index 2a3782de7287..cf605e5ac0c1 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the hybrid identity metadata proxy resource. * * @summary Deletes the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteHybridIdentityMetadata.json */ async function deleteHybridIdentityMetadata() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataGetSample.ts similarity index 92% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataGetSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataGetSample.ts index bc214a15d3f3..48b75ebbce8a 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the hybrid identity metadata proxy resource. * * @summary Get the hybrid identity metadata proxy resource. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetHybridIdentityMetadata.json */ async function getHybridIdentityMetadata() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataListByClusterSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataListByClusterSample.ts similarity index 92% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataListByClusterSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataListByClusterSample.ts index f8f3e08e3d1f..3d4b3a734cec 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataListByClusterSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. * * @summary Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/HybridIdentityMetadataListByCluster.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/HybridIdentityMetadataListByCluster.json */ async function hybridIdentityMetadataListByCluster() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataPutSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataPutSample.ts similarity index 86% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataPutSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataPutSample.ts index 9bbace8de3b2..13810bb64075 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/hybridIdentityMetadataPutSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/hybridIdentityMetadataPutSample.ts @@ -21,14 +21,16 @@ dotenv.config(); * This sample demonstrates how to Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. * * @summary Creates the hybrid identity metadata proxy resource that facilitates the managed identity provisioning. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/CreateHybridIdentityMetadata.json + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/CreateHybridIdentityMetadata.json */ async function createHybridIdentityMetadata() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; const body: HybridIdentityMetadata = { - publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", - resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c" + properties: { + publicKey: "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + resourceUid: "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c" + } }; const credential = new DefaultAzureCredential(); const client = new HybridContainerServiceClient(credential); diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/kubernetesVersionsListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/kubernetesVersionsListSample.ts similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/kubernetesVersionsListSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/kubernetesVersionsListSample.ts index d954b09a4485..a0363f367f93 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/kubernetesVersionsListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/kubernetesVersionsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the supported kubernetes versions from the underlying custom location + * This sample demonstrates how to Lists the supported kubernetes versions for the specified custom location * - * @summary Lists the supported kubernetes versions from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListKubernetesVersions.json + * @summary Lists the supported kubernetes versions for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListKubernetesVersions.json */ async function listKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/operationsListSample.ts similarity index 85% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/operationsListSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/operationsListSample.ts index 8f6b154168c0..569b91466b57 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to + * This sample demonstrates how to Lists the supported operations * - * @summary - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListOperations.json + * @summary Lists the supported operations + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListOperations.json */ async function listOperations() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts similarity index 79% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts index 6dd2cd83ec04..dfa4628bb2a0 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesCreateOrUpdateSample.ts @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - ProvisionedClusters, + ProvisionedCluster, HybridContainerServiceClient } from "@azure/arm-hybridcontainerservice"; import { DefaultAzureCredential } from "@azure/identity"; @@ -18,15 +18,15 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Creates or updates the provisioned cluster instance * - * @summary Creates the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutProvisionedClusterInstance.json + * @summary Creates or updates the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutProvisionedClusterInstance.json */ async function putProvisionedClusterInstance() { const connectedClusterResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster"; - const provisionedClusterInstance: ProvisionedClusters = { + const provisionedClusterInstance: ProvisionedCluster = { extendedLocation: { name: "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation", @@ -37,6 +37,8 @@ async function putProvisionedClusterInstance() { { name: "default-nodepool-1", count: 1, + nodeLabels: { env: "dev", goal: "test" }, + nodeTaints: ["env=prod:NoSchedule", "sku=gpu:NoSchedule"], osType: "Linux", vmSize: "Standard_A4_v2" } @@ -48,18 +50,8 @@ async function putProvisionedClusterInstance() { ] } }, - controlPlane: { - count: 1, - linuxProfile: { - ssh: { - publicKeys: [ - { keyData: "ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAACAQCY......" } - ] - } - }, - osType: "Linux", - vmSize: "Standard_A4_v2" - }, + clusterVMAccessProfile: { authorizedIPRanges: "127.0.0.1,127.0.0.2" }, + controlPlane: { count: 1, vmSize: "Standard_A4_v2" }, kubernetesVersion: "v1.20.5", licenseProfile: { azureHybridBenefit: "NotApplicable" }, linuxProfile: { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesDeleteSample.ts similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesDeleteSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesDeleteSample.ts index 8fa75d8c6bc3..33deae185024 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Deletes the provisioned cluster instance * - * @summary Deletes the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteProvisionedClusterInstance.json + * @summary Deletes the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteProvisionedClusterInstance.json */ async function deleteProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetSample.ts similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetSample.ts index 5df8f8d5acea..b18a44ad991c 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instance + * This sample demonstrates how to Gets the provisioned cluster instance * - * @summary Gets the Hybrid AKS provisioned cluster instance - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetProvisionedClusterInstance.json + * @summary Gets the provisioned cluster instance + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetProvisionedClusterInstance.json */ async function getProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts similarity index 85% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts index 0885172bd8a8..e335f92e1390 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesGetUpgradeProfileSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster instance. + * This sample demonstrates how to Gets the upgrade profile of a provisioned cluster * - * @summary Gets the upgrade profile of a provisioned cluster instance. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceGetUpgradeProfile.json + * @summary Gets the upgrade profile of a provisioned cluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceGetUpgradeProfile.json */ async function getUpgradeProfileForProvisionedClusterInstance() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts index f09fddb3c2f7..f813d10dd958 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListAdminKubeconfigSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the admin credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the admin credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListAdminKubeconfig.json + * @summary Lists the admin credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListAdminKubeconfig.json */ async function listClusterAdminCredentials() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListSample.ts similarity index 78% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListSample.ts index e4803c103601..7ae89fc2ed42 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster + * This sample demonstrates how to Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster * - * @summary Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListProvisionedClusterInstances.json + * @summary Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListProvisionedClusterInstances.json */ async function listProvisionedClusterInstances() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts similarity index 76% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts index 7aa58bce9cf3..10072081a6ba 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/provisionedClusterInstancesListUserKubeconfigSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. + * This sample demonstrates how to Lists the user credentials of the provisioned cluster (can only be used within private network) * - * @summary Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ProvisionedClusterInstanceListUserKubeconfig.json + * @summary Lists the user credentials of the provisioned cluster (can only be used within private network) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ProvisionedClusterInstanceListUserKubeconfig.json */ async function listClusterUserCredentials() { const connectedClusterResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putKubernetesVersionsSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putKubernetesVersionsSample.ts similarity index 80% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putKubernetesVersionsSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putKubernetesVersionsSample.ts index 3ce752db82c0..15130b65b80f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putKubernetesVersionsSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putKubernetesVersionsSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the kubernetes version resource type + * This sample demonstrates how to Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) * - * @summary Puts the kubernetes version resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutKubernetesVersions.json + * @summary Puts the default kubernetes version resource type (one time operation, before listing the kubernetes versions) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutKubernetesVersions.json */ async function putKubernetesVersions() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putVMSkusSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putVMSkusSample.ts similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putVMSkusSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putVMSkusSample.ts index 8fc0bce0495f..eb14c2c59a5e 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/putVMSkusSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/putVMSkusSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the VM SKUs resource type + * This sample demonstrates how to Puts the default VM skus resource type (one time operation, before listing the VM skus) * - * @summary Puts the VM SKUs resource type - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVmSkus.json + * @summary Puts the default VM skus resource type (one time operation, before listing the VM skus) + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVmSkus.json */ async function putVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksCreateOrUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksCreateOrUpdateSample.ts similarity index 83% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksCreateOrUpdateSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksCreateOrUpdateSample.ts index 2e642e50b240..3276f68707c7 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksCreateOrUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksCreateOrUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Puts the Hybrid AKS virtual network + * This sample demonstrates how to Creates or updates the virtual network resource * - * @summary Puts the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/PutVirtualNetwork.json + * @summary Creates or updates the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/PutVirtualNetwork.json */ async function putVirtualNetwork() { const subscriptionId = @@ -41,7 +41,13 @@ async function putVirtualNetwork() { properties: { dnsServers: ["192.168.0.1"], gateway: "192.168.0.1", - infraVnetProfile: { vmware: { segmentName: "test-network" } }, + infraVnetProfile: { + hci: { + mocGroup: "target-group", + mocLocation: "MocLocation", + mocVnetName: "vnet1" + } + }, ipAddressPrefix: "192.168.0.0/16", vipPool: [{ endIP: "192.168.0.50", startIP: "192.168.0.10" }], vlanID: 10, diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksDeleteSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksDeleteSample.ts similarity index 84% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksDeleteSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksDeleteSample.ts index acbe58d89d33..874a78a4d698 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksDeleteSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes the Hybrid AKS virtual network + * This sample demonstrates how to Deletes the specified virtual network resource * - * @summary Deletes the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/DeleteVirtualNetwork.json + * @summary Deletes the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/DeleteVirtualNetwork.json */ async function deleteVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListByResourceGroupSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListByResourceGroupSample.ts similarity index 82% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListByResourceGroupSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListByResourceGroupSample.ts index df0a6195d0c9..199dfd716cf5 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListByResourceGroupSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListByResourceGroupSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by resource group + * This sample demonstrates how to Lists the virtual networks in the specified resource group * - * @summary Lists the Hybrid AKS virtual networks by resource group - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkByResourceGroup.json + * @summary Lists the virtual networks in the specified resource group + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkByResourceGroup.json */ async function listVirtualNetworkByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListBySubscriptionSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListBySubscriptionSample.ts similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListBySubscriptionSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListBySubscriptionSample.ts index 4b8e0fd34bdc..daace4ec6638 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksListBySubscriptionSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksListBySubscriptionSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the Hybrid AKS virtual networks by subscription + * This sample demonstrates how to Lists the virtual networks in the specified subscription * - * @summary Lists the Hybrid AKS virtual networks by subscription - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVirtualNetworkBySubscription.json + * @summary Lists the virtual networks in the specified subscription + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVirtualNetworkBySubscription.json */ async function listVirtualNetworkBySubscription() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksRetrieveSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksRetrieveSample.ts similarity index 85% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksRetrieveSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksRetrieveSample.ts index 79b165e8cc46..735d406c785d 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksRetrieveSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksRetrieveSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the Hybrid AKS virtual network + * This sample demonstrates how to Gets the specified virtual network resource * - * @summary Gets the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/GetVirtualNetwork.json + * @summary Gets the specified virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/GetVirtualNetwork.json */ async function getVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksUpdateSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksUpdateSample.ts similarity index 86% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksUpdateSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksUpdateSample.ts index 2d5ddd6210ed..e0a1164c03ee 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/virtualNetworksUpdateSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/virtualNetworksUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Patches the Hybrid AKS virtual network + * This sample demonstrates how to Patches the virtual network resource * - * @summary Patches the Hybrid AKS virtual network - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/UpdateVirtualNetwork.json + * @summary Patches the virtual network resource + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/UpdateVirtualNetwork.json */ async function updateVirtualNetwork() { const subscriptionId = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/vmSkusListSample.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/vmSkusListSample.ts similarity index 81% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/vmSkusListSample.ts rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/vmSkusListSample.ts index a6d5975b3093..75efca029a62 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/src/vmSkusListSample.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/src/vmSkusListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the supported VM SKUs from the underlying custom location + * This sample demonstrates how to Lists the supported VM skus for the specified custom location * - * @summary Lists the supported VM SKUs from the underlying custom location - * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/preview/2023-11-15-preview/examples/ListVmSkus.json + * @summary Lists the supported VM skus for the specified custom location + * x-ms-original-file: specification/hybridaks/resource-manager/Microsoft.HybridContainerService/stable/2024-01-01/examples/ListVmSkus.json */ async function listVMSkus() { const customLocationResourceUri = diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/tsconfig.json b/sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/tsconfig.json similarity index 100% rename from sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1-beta/typescript/tsconfig.json rename to sdk/hybridcontainerservice/arm-hybridcontainerservice/samples/v1/typescript/tsconfig.json diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/hybridContainerServiceClient.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/hybridContainerServiceClient.ts index 63fd5b32a1f2..d7eee8e99d0b 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/hybridContainerServiceClient.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/hybridContainerServiceClient.ts @@ -106,7 +106,7 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-hybridcontainerservice/1.0.0-beta.4`; + const packageDetails = `azsdk-js-arm-hybridcontainerservice/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,7 +159,7 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-15-preview"; + this.apiVersion = options.apiVersion || "2024-01-01"; this.provisionedClusterInstances = new ProvisionedClusterInstancesImpl( this ); @@ -203,8 +203,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Gets the supported kubernetes versions from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported kubernetes versions for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -219,8 +219,9 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Puts the kubernetes version resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Puts the default kubernetes version resource type (one time operation, before listing the kubernetes + * versions) + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param kubernetesVersions Kubernetes Versions resource definition * @param options The options parameters. @@ -292,8 +293,9 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Puts the kubernetes version resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Puts the default kubernetes version resource type (one time operation, before listing the kubernetes + * versions) + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param kubernetesVersions Kubernetes Versions resource definition * @param options The options parameters. @@ -312,8 +314,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Delete the kubernetes versions resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Delete the default kubernetes versions resource type + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -383,8 +385,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Delete the kubernetes versions resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Delete the default kubernetes versions resource type + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -400,8 +402,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Gets the supported VM skus from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported VM skus for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -416,8 +418,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Puts the VM SKUs resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Puts the default VM skus resource type (one time operation, before listing the VM skus) + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param skus VM SKUs resource definition * @param options The options parameters. @@ -486,8 +488,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Puts the VM SKUs resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Puts the default VM skus resource type (one time operation, before listing the VM skus) + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param skus VM SKUs resource definition * @param options The options parameters. @@ -506,8 +508,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Deletes the Vm Sku resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Deletes the default VM skus resource type + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -574,8 +576,8 @@ export class HybridContainerServiceClient extends coreClient.ServiceClient { } /** - * Deletes the Vm Sku resource type - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Deletes the default VM skus resource type + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/index.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/index.ts index 1d8c01340565..d6d3d8aea2ca 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/index.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/index.ts @@ -8,170 +8,240 @@ import * as coreClient from "@azure/core-client"; -/** All properties of the provisioned cluster */ +/** Properties of the provisioned cluster. */ export interface ProvisionedClusterProperties { - /** LinuxProfile - The profile for Linux VMs in the Provisioned Cluster. */ + /** The profile for Linux VMs in the provisioned cluster. */ linuxProfile?: LinuxProfileProperties; - /** ControlPlane - ControlPlane Configuration */ + /** The profile for control plane of the provisioned cluster. */ controlPlane?: ControlPlaneProfile; - /** KubernetesVersion - Version of Kubernetes specified when creating the managed cluster. */ + /** The version of Kubernetes in use by the provisioned cluster. */ kubernetesVersion?: string; - /** NetworkProfile - Profile of network configuration. */ + /** The network configuration profile for the provisioned cluster. */ networkProfile?: NetworkProfile; - /** The agent pools of the cluster. */ + /** The storage configuration profile for the provisioned cluster. */ + storageProfile?: StorageProfile; + /** The SSH restricted access profile for the VMs in the provisioned cluster. */ + clusterVMAccessProfile?: ClusterVMAccessProfile; + /** The agent pool properties for the provisioned cluster. */ agentPoolProfiles?: NamedAgentPoolProfile[]; - /** The underlying cloud infra provider properties. */ + /** The profile for the underlying cloud infrastructure provider for the provisioned cluster. */ cloudProviderProfile?: CloudProviderProfile; /** - * Provisioning state of the resource + * The status of the latest long running operation for the provisioned cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ResourceProvisioningState; /** - * HybridAKSClusterStatus defines the observed state of HybridAKSCluster + * The observed status of the provisioned cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: ProvisionedClusterPropertiesStatus; /** The license profile of the provisioned cluster. */ licenseProfile?: ProvisionedClusterLicenseProfile; + /** Parameters to be applied to the cluster-autoscaler when auto scaling is enabled for the provisioned cluster. */ + autoScalerProfile?: ProvisionedClusterPropertiesAutoScalerProfile; } -/** LinuxProfile - Profile for Linux VMs in the container service cluster. */ +/** SSH profile for control plane and nodepool VMs of the provisioned cluster. */ export interface LinuxProfileProperties { - /** SSH - SSH configuration for Linux-based VMs running on Azure. */ + /** SSH configuration for VMs of the provisioned cluster. */ ssh?: LinuxProfilePropertiesSsh; } -/** SSH - SSH configuration for Linux-based VMs running on Azure. */ +/** SSH configuration for VMs of the provisioned cluster. */ export interface LinuxProfilePropertiesSsh { - /** PublicKeys - The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified. */ + /** The list of SSH public keys used to authenticate with VMs. A maximum of 1 key may be specified. */ publicKeys?: LinuxProfilePropertiesSshPublicKeysItem[]; } export interface LinuxProfilePropertiesSshPublicKeysItem { - /** KeyData - Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. */ + /** Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers. */ keyData?: string; } -/** AgentPool configuration */ -export interface AgentPoolProfile { - /** AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones */ - availabilityZones?: string[]; - /** The particular KubernetesVersion's Image's OS Type (Linux, Windows) */ - osType?: OsType; - /** Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows. */ - osSKU?: Ossku; - /** The version of node image */ - nodeImageVersion?: string; -} - -/** AgentPool update configuration */ -export interface AgentPoolUpdateProfile { - /** Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. */ +/** The properties of the control plane nodes of the provisioned cluster */ +export interface ControlPlaneProfile { + /** Number of control plane nodes. The default value is 1, and the count should be an odd number */ count?: number; - /** VmSize - The size of the agent pool VMs. */ + /** VM sku size of the control plane nodes */ vmSize?: string; + /** IP Address of the Kubernetes API server */ + controlPlaneEndpoint?: ControlPlaneProfileControlPlaneEndpoint; } -/** AgentPool Name */ -export interface AgentPoolName { - /** Unique name of the agent pool profile in the context of the subscription and resource group. */ - name?: string; -} - -/** controlPlaneEndpoint - API server endpoint for the control plane */ -export interface ControlPlaneEndpointProfile { - /** API server endpoint for the control plane */ - controlPlaneEndpoint?: ControlPlaneEndpointProfileControlPlaneEndpoint; -} - -/** API server endpoint for the control plane */ -export interface ControlPlaneEndpointProfileControlPlaneEndpoint { - /** Host IP address for API server */ +/** IP Address of the Kubernetes API server */ +export interface ControlPlaneProfileControlPlaneEndpoint { + /** IP address of the Kubernetes API server */ hostIP?: string; - /** Port for the API server */ - port?: number; } -/** LinuxProfile - Profile for Linux VMs in the container service cluster. */ -export interface LinuxProfile { - /** Profile for Linux VMs in the container service cluster. */ - linuxProfile?: LinuxProfileProperties; -} - -/** NetworkProfile - Profile of network configuration. */ +/** The network configuration profile for the provisioned cluster. */ export interface NetworkProfile { - /** LoadBalancerProfile - Profile of the cluster load balancer. */ + /** Profile of the HA Proxy load balancer. */ loadBalancerProfile?: NetworkProfileLoadBalancerProfile; - /** NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico', 'flannel'. Default is 'calico' */ + /** Network policy used for building Kubernetes network. Possible values include: 'calico'. */ networkPolicy?: NetworkPolicy; - /** PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used. */ + /** A CIDR notation IP Address range from which to assign pod IPs. */ podCidr?: string; } -/** LoadBalancerProfile - Profile of the cluster load balancer. */ +/** Profile of the HA Proxy load balancer. */ export interface NetworkProfileLoadBalancerProfile { - /** Count - Number of load balancer VMs. The default value is 0. */ + /** Number of HA Proxy load balancer VMs. The default value is 0. */ + count?: number; +} + +/** The storage configuration profile for the provisioned cluster. */ +export interface StorageProfile { + /** SMB CSI Driver settings for the storage profile. */ + smbCsiDriver?: StorageProfileSmbCSIDriver; + /** NFS CSI Driver settings for the storage profile. */ + nfsCsiDriver?: StorageProfileNfsCSIDriver; +} + +/** SMB CSI Driver settings for the storage profile. */ +export interface StorageProfileSmbCSIDriver { + /** Indicates whether to enable SMB CSI Driver. The default value is true. */ + enabled?: boolean; +} + +/** NFS CSI Driver settings for the storage profile. */ +export interface StorageProfileNfsCSIDriver { + /** Indicates whether to enable NFS CSI Driver. The default value is true. */ + enabled?: boolean; +} + +/** The SSH restricted access profile for the VMs in the provisioned cluster. */ +export interface ClusterVMAccessProfile { + /** IP Address or CIDR for SSH access to VMs in the provisioned cluster */ + authorizedIPRanges?: string; +} + +/** Profile for agent pool properties specified during creation */ +export interface AgentPoolProfile { + /** The particular KubernetesVersion Image OS Type (Linux, Windows) */ + osType?: OsType; + /** Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows. */ + osSKU?: Ossku; + /** The node labels to be persisted across all nodes in agent pool. */ + nodeLabels?: { [propertyName: string]: string }; + /** Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule. */ + nodeTaints?: string[]; + /** The maximum number of nodes for auto-scaling */ + maxCount?: number; + /** The minimum number of nodes for auto-scaling */ + minCount?: number; + /** Whether to enable auto-scaler. Default value is false */ + enableAutoScaling?: boolean; + /** The maximum number of pods that can run on a node. */ + maxPods?: number; +} + +/** Profile for agent pool properties that can be updated */ +export interface AgentPoolUpdateProfile { + /** Number of nodes in the agent pool. The default value is 1. */ count?: number; + /** The VM sku size of the agent pool node VMs. */ + vmSize?: string; + /** + * Version of Kubernetes in use by the agent pool. This is inherited from the kubernetesVersion of the provisioned cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kubernetesVersion?: string; } -/** CloudProviderProfile - The underlying cloud infra provider properties. */ +/** Name of the default Agent Pool */ +export interface AgentPoolName { + /** Unique name of the default agent pool in the context of the provisioned cluster. Default value is -nodepool1 */ + name?: string; +} + +/** The profile for the underlying cloud infrastructure provider for the provisioned cluster. */ export interface CloudProviderProfile { - /** InfraNetworkProfile - List of infra network profiles for the provisioned cluster */ + /** The profile for the infrastructure networks used by the provisioned cluster */ infraNetworkProfile?: CloudProviderProfileInfraNetworkProfile; } -/** InfraNetworkProfile - List of infra network profiles for the provisioned cluster */ +/** The profile for the infrastructure networks used by the provisioned cluster */ export interface CloudProviderProfileInfraNetworkProfile { - /** Array of references to azure resource corresponding to the Network object e.g. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName} */ + /** List of ARM resource Ids (maximum 1) for the infrastructure network object e.g. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName} */ vnetSubnetIds?: string[]; } -/** HybridAKSClusterStatus defines the observed state of HybridAKSCluster */ +/** The observed status of the provisioned cluster. */ export interface ProvisionedClusterPropertiesStatus { - /** Status of the control plane components */ + /** The detailed status of the provisioned cluster components including addons. */ controlPlaneStatus?: AddonStatusProfile[]; - /** ErrorMessage - Error messages during creation of cluster */ + /** + * The current state of the provisioned cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentState?: ResourceProvisioningState; + /** Error messages during a provisioned cluster operation or steady state. */ errorMessage?: string; - /** Contains Provisioning errors */ - operationStatus?: ProvisionedClusterPropertiesStatusOperationStatus; } -/** Defines the addon status profile. */ +/** The status profile of the addons and other kubernetes components */ export interface AddonStatusProfile { - /** Name of the addon */ + /** Name of the addon or component */ name?: string; - /** Observed phase of the addon on the target cluster. Possible values include: 'pending', 'provisioning', 'provisioning {HelmChartInstalled}', 'provisioning {MSICertificateDownloaded}', 'provisioned', 'deleting', 'failed', 'upgrading' */ + /** Observed phase of the addon or component on the provisioned cluster. Possible values include: 'pending', 'provisioning', 'provisioning {HelmChartInstalled}', 'provisioning {MSICertificateDownloaded}', 'provisioned', 'deleting', 'failed', 'upgrading' */ phase?: AddonPhase; - /** Indicates whether the addon is ready */ + /** Indicates whether the addon or component is ready */ ready?: boolean; - /** Error message while deploying the addon */ + /** Observed error message from the addon or component */ errorMessage?: string; } -/** Contains Provisioning errors */ -export interface ProvisionedClusterPropertiesStatusOperationStatus { - error?: ProvisionedClusterPropertiesStatusOperationStatusError; - operationId?: string; - status?: string; -} - -export interface ProvisionedClusterPropertiesStatusOperationStatusError { - code?: string; - message?: string; -} - /** The license profile of the provisioned cluster. */ export interface ProvisionedClusterLicenseProfile { - /** Indicates whether Azure Hybrid Benefit is opted in */ + /** Indicates whether Azure Hybrid Benefit is opted in. Default value is false */ azureHybridBenefit?: AzureHybridBenefit; } -/** Extended Location definition */ +/** Parameters to be applied to the cluster-autoscaler when auto scaling is enabled for the provisioned cluster. */ +export interface ProvisionedClusterPropertiesAutoScalerProfile { + /** Valid values are 'true' and 'false' */ + balanceSimilarNodeGroups?: string; + /** If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for more information. */ + expander?: Expander; + /** The default is 10. */ + maxEmptyBulkDelete?: string; + /** The default is 600. */ + maxGracefulTerminationSec?: string; + /** The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + maxNodeProvisionTime?: string; + /** The default is 45. The maximum is 100 and the minimum is 0. */ + maxTotalUnreadyPercentage?: string; + /** For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc). */ + newPodScaleUpDelay?: string; + /** This must be an integer. The default is 3. */ + okTotalUnreadyCount?: string; + /** The default is '10'. Values must be an integer number of seconds. */ + scanInterval?: string; + /** The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + scaleDownDelayAfterAdd?: string; + /** The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + scaleDownDelayAfterDelete?: string; + /** The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + scaleDownDelayAfterFailure?: string; + /** The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + scaleDownUnneededTime?: string; + /** The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported. */ + scaleDownUnreadyTime?: string; + /** The default is '0.5'. */ + scaleDownUtilizationThreshold?: string; + /** The default is true. */ + skipNodesWithLocalStorage?: string; + /** The default is true. */ + skipNodesWithSystemPods?: string; +} + +/** Extended location pointing to the underlying infrastructure */ export interface ExtendedLocation { - /** The extended location type. */ + /** The extended location type. Allowed value: 'CustomLocation' */ type?: ExtendedLocationTypes; - /** The extended location name. */ + /** ARM Id of the extended location. */ name?: string; } @@ -264,30 +334,36 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** A list of provisioned clusters resources. */ -export interface ProvisionedClustersListResult { - value?: ProvisionedClusters[]; +/** Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster. */ +export interface ProvisionedClusterListResult { + value?: ProvisionedCluster[]; nextLink?: string; } -/** The list of available upgrade versions. */ -export interface ProvisionedClusterPoolUpgradeProfile { +/** Control plane and agent pool upgrade profiles. */ +export interface ProvisionedClusterUpgradeProfileProperties { /** - * The Kubernetes version (major.minor.patch). + * Provisioning state of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly kubernetesVersion?: string; + readonly provisioningState?: ResourceProvisioningState; + /** The list of available kubernetes version upgrades for the control plane. */ + controlPlaneProfile: ProvisionedClusterPoolUpgradeProfile; +} + +/** The list of available kubernetes versions for upgrade. */ +export interface ProvisionedClusterPoolUpgradeProfile { /** - * The Agent Pool name. + * The Kubernetes version (major.minor.patch). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly kubernetesVersion?: string; /** - * The particular KubernetesVersion's Image's OS Type (Linux, Windows) + * The particular KubernetesVersion Image OS Type (Linux, Windows) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osType?: OsType; - /** List of orchestrator types and versions available for upgrade. */ + /** List of available kubernetes versions for upgrade. */ upgrades?: ProvisionedClusterPoolUpgradeProfileProperties[]; } @@ -305,6 +381,19 @@ export interface ProvisionedClusterPoolUpgradeProfileProperties { readonly isPreview?: boolean; } +/** Defines the resource properties for the hybrid identity metadata. */ +export interface HybridIdentityMetadataProperties { + /** Unique id of the parent provisioned cluster resource. */ + resourceUid?: string; + /** Onboarding public key for provisioning the Managed identity for the connected cluster. */ + publicKey?: string; + /** + * Provisioning state of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; +} + /** List of hybridIdentityMetadata. */ export interface HybridIdentityMetadataList { /** Url to follow for getting next page of hybridIdentityMetadata. */ @@ -313,94 +402,30 @@ export interface HybridIdentityMetadataList { value: HybridIdentityMetadata[]; } -/** The agentPool resource definition */ -export interface AgentPool { - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource Name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource Type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** - * 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; - /** Extended Location definition */ - extendedLocation?: ExtendedLocation; - /** AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones */ - availabilityZones?: string[]; - /** The particular KubernetesVersion's Image's OS Type (Linux, Windows) */ - osType?: OsType; - /** Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows. */ - osSKU?: Ossku; - /** The version of node image */ - nodeImageVersion?: string; - /** Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. */ - count?: number; - /** VmSize - The size of the agent pool VMs. */ - vmSize?: string; - /** - * Provisioning state of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; - /** Defines the observed state of the agent pool */ - status?: AgentPoolProvisioningStatusStatus; -} - /** The agentPool resource provisioning status definition */ export interface AgentPoolProvisioningStatus { /** - * Provisioning state of the resource + * The status of the latest long running operation for the agent pool. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ResourceProvisioningState; - /** Defines the observed state of the agent pool */ + /** The observed status of the agent pool. */ status?: AgentPoolProvisioningStatusStatus; } -/** Defines the observed state of the agent pool */ +/** The observed status of the agent pool. */ export interface AgentPoolProvisioningStatusStatus { - /** ErrorMessage - Error messages during creation of agent pool */ + /** + * The current state of the agent pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentState?: ResourceProvisioningState; + /** Error messages during an agent pool operation or steady state. */ errorMessage?: string; - /** Contains Provisioning errors */ - operationStatus?: AgentPoolProvisioningStatusOperationStatus; readyReplicas?: AgentPoolUpdateProfile[]; } -/** Contains Provisioning errors */ -export interface AgentPoolProvisioningStatusOperationStatus { - error?: AgentPoolProvisioningStatusOperationStatusError; - operationId?: string; - status?: string; -} - -export interface AgentPoolProvisioningStatusOperationStatusError { - code?: string; - message?: string; -} - -/** The agentPool resource patch definition */ -export interface AgentPoolPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** A list of agent pool resources. */ +/** List of all agent pool resources associated with the provisioned cluster. */ export interface AgentPoolListResult { value?: AgentPool[]; nextLink?: string; @@ -476,11 +501,6 @@ export interface KubernetesVersionProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: string; - /** - * Capabilities on this kubernetes version - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capabilities?: KubernetesVersionCapabilities; /** * Whether this version is in preview mode. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -493,41 +513,36 @@ export interface KubernetesVersionProperties { readonly patchVersions?: { [propertyName: string]: KubernetesPatchVersions }; } -/** Capabilities on this kubernetes version */ -export interface KubernetesVersionCapabilities { - supportPlan?: string[]; -} - /** Kubernetes Patch Version profile */ export interface KubernetesPatchVersions { - /** Whether the kubernetes version variant (Linux, Windows, Windows2022) is ready or not */ + /** Indicates whether the kubernetes version image is ready or not */ readiness?: KubernetesVersionReadiness[]; - /** Possible upgrade path for given patch version */ + /** Possible upgrade paths for given patch version */ upgrades?: string[]; } -/** Whether a particular kubernetes version's variant (CBLMariner, Windows, Windows2022) is ready or not */ +/** Indicates whether the kubernetes version image is ready or not */ export interface KubernetesVersionReadiness { /** - * The particular KubernetesVersion's Image's OS Type (Linux, Windows) + * The particular KubernetesVersion Image OS Type (Linux, Windows) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osType?: OsType; /** Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows. */ osSku?: Ossku; /** - * Whether or not the given image is ready + * Whether the kubernetes version image is ready or not * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ready?: boolean; /** - * If image is not ready, the error message for version not being ready + * The error message for version not being ready * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly errorMessage?: string; } -/** A list of kubernetes version resources. */ +/** List of supported kubernetes versions. */ export interface KubernetesVersionProfileList { value?: KubernetesVersionProfile[]; nextLink?: string; @@ -539,54 +554,54 @@ export interface VmSkuProfileProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ResourceProvisioningState; - /** Array of HybridAKS Support VM Skus */ + /** List of supported VM SKUs. */ values?: VmSkuProperties[]; } -/** The profile for supported VM skus */ +/** The profile for supported VM SKUs */ export interface VmSkuProperties { /** - * The resource type of the vm + * The type of resource the SKU applies to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceType?: string; /** - * A name value pair to describe the specific vm's capability + * The list of name-value pairs to describe VM SKU capabilities like MemoryGB, vCPUs, etc. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capabilities?: VmSkuCapabilities[]; /** - * The name of the VM Family + * The name of the VM SKU * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The tier of the VM Family + * The tier of the VM SKU * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tier?: string; /** - * The size of the VM Family + * The size of the VM SKU * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly size?: string; } -/** describes the vm sku capabilities object */ +/** Describes the VM SKU capabilities like MemoryGB, vCPUs, etc. */ export interface VmSkuCapabilities { /** - * An invariant to describe the feature + * Name of the VM SKU capability * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * An invariant if the feature is measured by quantity + * Value of the VM SKU capability * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: string; } -/** A list of VM SKU resources. */ +/** The list of supported VM SKUs. */ export interface VmSkuProfileList { value?: VmSkuProfile[]; nextLink?: string; @@ -656,18 +671,16 @@ export interface OperationDisplay { readonly description?: string; } -/** HybridAKSNetworkSpec defines the desired state of HybridAKSNetwork */ +/** Properties of the virtual network resource */ export interface VirtualNetworkProperties { infraVnetProfile?: VirtualNetworkPropertiesInfraVnetProfile; - /** Virtual IP Pool for Kubernetes */ + /** Range of IP Addresses for Kubernetes API Server and services if using HA Proxy load balancer */ vipPool?: VirtualNetworkPropertiesVipPoolItem[]; - /** IP Pool for Virtual Machines */ + /** Range of IP Addresses for Kubernetes node VMs */ vmipPool?: VirtualNetworkPropertiesVmipPoolItem[]; - /** Address of the DHCP servers associated with the network */ - dhcpServers?: string[]; - /** Address of the DNS servers associated with the network */ + /** List of DNS server IP Addresses associated with the network */ dnsServers?: string[]; - /** Address of the Gateway associated with the network */ + /** IP Address of the Gateway associated with the network */ gateway?: string; /** IP Address Prefix of the network */ ipAddressPrefix?: string; @@ -676,22 +689,20 @@ export interface VirtualNetworkProperties { /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; /** - * HybridAKSNetworkStatus defines the observed state of HybridAKSNetwork + * Status of the virtual network resource * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: VirtualNetworkPropertiesStatus; } export interface VirtualNetworkPropertiesInfraVnetProfile { - /** Infra network profile for HCI platform */ + /** Infrastructure network profile for HCI platform */ hci?: VirtualNetworkPropertiesInfraVnetProfileHci; - /** Infra network profile for VMware platform */ - vmware?: VirtualNetworkPropertiesInfraVnetProfileVmware; } -/** Infra network profile for HCI platform */ +/** Infrastructure network profile for HCI platform */ export interface VirtualNetworkPropertiesInfraVnetProfileHci { - /** Resource group in MOC(Microsoft On-premises Cloud) */ + /** Group in MOC(Microsoft On-premises Cloud) */ mocGroup?: string; /** Location in MOC(Microsoft On-premises Cloud) */ mocLocation?: string; @@ -699,12 +710,6 @@ export interface VirtualNetworkPropertiesInfraVnetProfileHci { mocVnetName?: string; } -/** Infra network profile for VMware platform */ -export interface VirtualNetworkPropertiesInfraVnetProfileVmware { - /** Name of the network segment in VSphere */ - segmentName?: string; -} - export interface VirtualNetworkPropertiesVipPoolItem { /** Ending IP address for the IP Pool */ endIP?: string; @@ -719,61 +724,68 @@ export interface VirtualNetworkPropertiesVmipPoolItem { startIP?: string; } -/** HybridAKSNetworkStatus defines the observed state of HybridAKSNetwork */ +/** Status of the virtual network resource */ export interface VirtualNetworkPropertiesStatus { - /** Contains Provisioning errors */ + /** The detailed status of the long running operation. */ operationStatus?: VirtualNetworkPropertiesStatusOperationStatus; } -/** Contains Provisioning errors */ +/** The detailed status of the long running operation. */ export interface VirtualNetworkPropertiesStatusOperationStatus { + /** The error if any from the operation. */ error?: VirtualNetworkPropertiesStatusOperationStatusError; + /** The identifier of the operation. */ operationId?: string; - /** Phase represents the current phase of the virtual network provisioning. E.g. Pending, Running, Terminating, Failed etc. */ - phase?: string; + /** The status of the operation. */ status?: string; } +/** The error if any from the operation. */ export interface VirtualNetworkPropertiesStatusOperationStatusError { + /** The error code from the operation. */ code?: string; + /** The error message from the operation. */ message?: string; } +/** Extended location pointing to the underlying infrastructure */ export interface VirtualNetworkExtendedLocation { - /** The extended location type. */ - type?: string; - /** The extended location name. */ + /** The extended location type. Allowed value: 'CustomLocation' */ + type?: ExtendedLocationTypes; + /** ARM Id of the extended location. */ name?: string; } -/** The virtualNetworks resource patch definition. */ +/** The Virtual Network resource patch definition. */ export interface VirtualNetworksPatch { /** Resource tags */ tags?: { [propertyName: string]: string }; } +/** A list of virtual network resources. */ export interface VirtualNetworksListResult { value?: VirtualNetwork[]; nextLink?: string; } -/** Agent pool profile along with a name parameter */ +/** The profile for Linux VMs in the provisioned cluster. */ +export interface LinuxProfile { + /** Profile for Linux VMs in the container service cluster. */ + linuxProfile?: LinuxProfileProperties; +} + +/** Profile of the default agent pool along with a name parameter */ export interface NamedAgentPoolProfile extends AgentPoolProfile, AgentPoolUpdateProfile, AgentPoolName {} +/** Properties of the agent pool resource */ export interface AgentPoolProperties extends AgentPoolProfile, AgentPoolUpdateProfile, AgentPoolProvisioningStatus {} -/** ControlPlaneProfile - The control plane properties for the provisioned cluster. */ -export interface ControlPlaneProfile - extends NamedAgentPoolProfile, - ControlPlaneEndpointProfile, - LinuxProfile {} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -785,43 +797,39 @@ export interface TrackedResource extends Resource { location: string; } -/** The provisionedClusterInstances resource definition. */ -export interface ProvisionedClusters extends ProxyResource { - /** All properties of the provisioned cluster */ +/** The provisioned cluster resource definition. */ +export interface ProvisionedCluster extends ProxyResource { + /** Properties of the provisioned cluster. */ properties?: ProvisionedClusterProperties; - /** Extended Location definition */ + /** Extended location pointing to the underlying infrastructure */ extendedLocation?: ExtendedLocation; } -/** The list of available upgrades for compute pools. */ +/** The list of available kubernetes version upgrades for the provisioned cluster. */ export interface ProvisionedClusterUpgradeProfile extends ProxyResource { - /** - * Provisioning state of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; - /** The list of available upgrade versions for the control plane. */ - controlPlaneProfile: ProvisionedClusterPoolUpgradeProfile; - /** The list of available upgrade versions for agent pools. */ - agentPoolProfiles: ProvisionedClusterPoolUpgradeProfile[]; + /** The properties of the upgrade profile. */ + properties: ProvisionedClusterUpgradeProfileProperties; } /** Defines the hybridIdentityMetadata. */ export interface HybridIdentityMetadata extends ProxyResource { - /** Unique id of the parent provisioned cluster resource. */ - resourceUid?: string; - /** Onboarding public key for provisioning the Managed identity for the HybridAKS cluster. */ - publicKey?: string; - /** - * Provisioning state of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; + /** Resource properties. */ + properties: HybridIdentityMetadataProperties; +} + +/** The agentPool resource definition */ +export interface AgentPool extends ProxyResource { + /** Properties of the agent pool resource */ + properties?: AgentPoolProperties; + /** Resource tags */ + tags?: { [propertyName: string]: string }; + /** Extended location pointing to the underlying infrastructure */ + extendedLocation?: ExtendedLocation; } /** The supported kubernetes versions. */ export interface KubernetesVersionProfile extends ProxyResource { - /** Extended Location definition */ + /** Extended location pointing to the underlying infrastructure */ extendedLocation?: ExtendedLocation; /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: KubernetesVersionProfileProperties; @@ -829,16 +837,17 @@ export interface KubernetesVersionProfile extends ProxyResource { /** The list of supported VM SKUs. */ export interface VmSkuProfile extends ProxyResource { - /** Extended Location definition */ + /** Extended location pointing to the underlying infrastructure */ extendedLocation?: ExtendedLocation; /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: VmSkuProfileProperties; } -/** The virtualNetworks resource definition. */ +/** The Virtual Network resource definition. */ export interface VirtualNetwork extends TrackedResource { - /** HybridAKSNetworkSpec defines the desired state of HybridAKSNetwork */ + /** Properties of the virtual network resource */ properties?: VirtualNetworkProperties; + /** Extended location pointing to the underlying infrastructure */ extendedLocation?: VirtualNetworkExtendedLocation; } @@ -867,11 +876,6 @@ export interface AgentPoolDeleteHeaders { location?: string; } -/** Defines headers for AgentPool_update operation. */ -export interface AgentPoolUpdateHeaders { - location?: string; -} - /** Defines headers for HybridContainerServiceClient_deleteKubernetesVersions operation. */ export interface HybridContainerServiceClientDeleteKubernetesVersionsHeaders { location?: string; @@ -887,11 +891,21 @@ export interface VirtualNetworksDeleteHeaders { location?: string; } -/** Defines headers for VirtualNetworks_update operation. */ -export interface VirtualNetworksUpdateHeaders { - location?: string; +/** Known values of {@link NetworkPolicy} that the service accepts. */ +export enum KnownNetworkPolicy { + /** Calico */ + Calico = "calico" } +/** + * Defines values for NetworkPolicy. \ + * {@link KnownNetworkPolicy} can be used interchangeably with NetworkPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **calico** + */ +export type NetworkPolicy = string; + /** Known values of {@link OsType} that the service accepts. */ export enum KnownOsType { /** Windows */ @@ -931,24 +945,6 @@ export enum KnownOssku { */ export type Ossku = string; -/** Known values of {@link NetworkPolicy} that the service accepts. */ -export enum KnownNetworkPolicy { - /** Calico */ - Calico = "calico", - /** Flannel */ - Flannel = "flannel" -} - -/** - * Defines values for NetworkPolicy. \ - * {@link KnownNetworkPolicy} can be used interchangeably with NetworkPolicy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **calico** \ - * **flannel** - */ -export type NetworkPolicy = string; - /** Known values of {@link ResourceProvisioningState} that the service accepts. */ export enum KnownResourceProvisioningState { /** Succeeded */ @@ -957,6 +953,8 @@ export enum KnownResourceProvisioningState { Failed = "Failed", /** Canceled */ Canceled = "Canceled", + /** Pending */ + Pending = "Pending", /** Creating */ Creating = "Creating", /** Deleting */ @@ -965,12 +963,8 @@ export enum KnownResourceProvisioningState { Updating = "Updating", /** Upgrading */ Upgrading = "Upgrading", - /** InProgress */ - InProgress = "InProgress", /** Accepted */ - Accepted = "Accepted", - /** Created */ - Created = "Created" + Accepted = "Accepted" } /** @@ -981,13 +975,12 @@ export enum KnownResourceProvisioningState { * **Succeeded** \ * **Failed** \ * **Canceled** \ + * **Pending** \ * **Creating** \ * **Deleting** \ * **Updating** \ * **Upgrading** \ - * **InProgress** \ - * **Accepted** \ - * **Created** + * **Accepted** */ export type ResourceProvisioningState = string; @@ -1048,6 +1041,30 @@ export enum KnownAzureHybridBenefit { */ export type AzureHybridBenefit = string; +/** Known values of {@link Expander} that the service accepts. */ +export enum KnownExpander { + /** Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources. */ + LeastWaste = "least-waste", + /** Selects the node group that would be able to schedule the most pods when scaling up. This is useful when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once. */ + MostPods = "most-pods", + /** Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https:\//github.com\/kubernetes\/autoscaler\/blob\/master\/cluster-autoscaler\/expander\/priority\/readme.md). */ + Priority = "priority", + /** Used when you don't have a particular need for the node groups to scale differently. */ + Random = "random" +} + +/** + * Defines values for Expander. \ + * {@link KnownExpander} can be used interchangeably with Expander, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **least-waste**: Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources. \ + * **most-pods**: Selects the node group that would be able to schedule the most pods when scaling up. This is useful when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once. \ + * **priority**: Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https:\/\/github.com\/kubernetes\/autoscaler\/blob\/master\/cluster-autoscaler\/expander\/priority\/readme.md). \ + * **random**: Used when you don't have a particular need for the node groups to scale differently. + */ +export type Expander = string; + /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** CustomLocation */ @@ -1131,16 +1148,16 @@ export enum KnownProvisioningState { Failed = "Failed", /** Canceled */ Canceled = "Canceled", - /** InProgress */ - InProgress = "InProgress", + /** Pending */ + Pending = "Pending", + /** Creating */ + Creating = "Creating", /** Deleting */ Deleting = "Deleting", /** Updating */ Updating = "Updating", /** Accepted */ - Accepted = "Accepted", - /** Created */ - Created = "Created" + Accepted = "Accepted" } /** @@ -1151,11 +1168,11 @@ export enum KnownProvisioningState { * **Succeeded** \ * **Failed** \ * **Canceled** \ - * **InProgress** \ + * **Pending** \ + * **Creating** \ * **Deleting** \ * **Updating** \ - * **Accepted** \ - * **Created** + * **Accepted** */ export type ProvisioningState = string; @@ -1164,7 +1181,7 @@ export interface ProvisionedClusterInstancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProvisionedClusterInstancesGetResponse = ProvisionedClusters; +export type ProvisionedClusterInstancesGetResponse = ProvisionedCluster; /** Optional parameters. */ export interface ProvisionedClusterInstancesCreateOrUpdateOptionalParams @@ -1176,7 +1193,7 @@ export interface ProvisionedClusterInstancesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ProvisionedClusterInstancesCreateOrUpdateResponse = ProvisionedClusters; +export type ProvisionedClusterInstancesCreateOrUpdateResponse = ProvisionedCluster; /** Optional parameters. */ export interface ProvisionedClusterInstancesDeleteOptionalParams @@ -1195,7 +1212,7 @@ export interface ProvisionedClusterInstancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ProvisionedClusterInstancesListResponse = ProvisionedClustersListResult; +export type ProvisionedClusterInstancesListResponse = ProvisionedClusterListResult; /** Optional parameters. */ export interface ProvisionedClusterInstancesGetUpgradeProfileOptionalParams @@ -1233,7 +1250,7 @@ export interface ProvisionedClusterInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ProvisionedClusterInstancesListNextResponse = ProvisionedClustersListResult; +export type ProvisionedClusterInstancesListNextResponse = ProvisionedClusterListResult; /** Optional parameters. */ export interface HybridIdentityMetadataPutOptionalParams @@ -1306,18 +1323,6 @@ export interface AgentPoolDeleteOptionalParams /** Contains response data for the delete operation. */ export type AgentPoolDeleteResponse = AgentPoolDeleteHeaders; -/** Optional parameters. */ -export interface AgentPoolUpdateOptionalParams - 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 update operation. */ -export type AgentPoolUpdateResponse = AgentPool; - /** Optional parameters. */ export interface AgentPoolListByProvisionedClusterOptionalParams extends coreClient.OperationOptions {} @@ -1325,6 +1330,13 @@ export interface AgentPoolListByProvisionedClusterOptionalParams /** Contains response data for the listByProvisionedCluster operation. */ export type AgentPoolListByProvisionedClusterResponse = AgentPoolListResult; +/** Optional parameters. */ +export interface AgentPoolListByProvisionedClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProvisionedClusterNext operation. */ +export type AgentPoolListByProvisionedClusterNextResponse = AgentPoolListResult; + /** Optional parameters. */ export interface GetKubernetesVersionsOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/mappers.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/mappers.ts index a8830d98febd..01b274af3994 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/mappers.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/mappers.ts @@ -40,6 +40,20 @@ export const ProvisionedClusterProperties: coreClient.CompositeMapper = { className: "NetworkProfile" } }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "StorageProfile" + } + }, + clusterVMAccessProfile: { + serializedName: "clusterVMAccessProfile", + type: { + name: "Composite", + className: "ClusterVMAccessProfile" + } + }, agentPoolProfiles: { serializedName: "agentPoolProfiles", type: { @@ -79,6 +93,13 @@ export const ProvisionedClusterProperties: coreClient.CompositeMapper = { name: "Composite", className: "ProvisionedClusterLicenseProfile" } + }, + autoScalerProfile: { + serializedName: "autoScalerProfile", + type: { + name: "Composite", + className: "ProvisionedClusterPropertiesAutoScalerProfile" + } } } } @@ -136,36 +157,42 @@ export const LinuxProfilePropertiesSshPublicKeysItem: coreClient.CompositeMapper } }; -export const AgentPoolProfile: coreClient.CompositeMapper = { +export const ControlPlaneProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolProfile", + className: "ControlPlaneProfile", modelProperties: { - availabilityZones: { - serializedName: "availabilityZones", + count: { + defaultValue: 1, + serializedName: "count", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - osType: { - serializedName: "osType", + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - osSKU: { - serializedName: "osSKU", + controlPlaneEndpoint: { + serializedName: "controlPlaneEndpoint", type: { - name: "String" + name: "Composite", + className: "ControlPlaneProfileControlPlaneEndpoint" } - }, - nodeImageVersion: { - serializedName: "nodeImageVersion", + } + } + } +}; + +export const ControlPlaneProfileControlPlaneEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ControlPlaneProfileControlPlaneEndpoint", + modelProperties: { + hostIP: { + serializedName: "hostIP", type: { name: "String" } @@ -174,20 +201,27 @@ export const AgentPoolProfile: coreClient.CompositeMapper = { } }; -export const AgentPoolUpdateProfile: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolUpdateProfile", + className: "NetworkProfile", modelProperties: { - count: { - defaultValue: 1, - serializedName: "count", + loadBalancerProfile: { + serializedName: "loadBalancerProfile", type: { - name: "Number" + name: "Composite", + className: "NetworkProfileLoadBalancerProfile" } }, - vmSize: { - serializedName: "vmSize", + networkPolicy: { + defaultValue: "calico", + serializedName: "networkPolicy", + type: { + name: "String" + } + }, + podCidr: { + serializedName: "podCidr", type: { name: "String" } @@ -196,114 +230,195 @@ export const AgentPoolUpdateProfile: coreClient.CompositeMapper = { } }; -export const AgentPoolName: coreClient.CompositeMapper = { +export const NetworkProfileLoadBalancerProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolName", + className: "NetworkProfileLoadBalancerProfile", modelProperties: { - name: { - serializedName: "name", + count: { + defaultValue: 0, + serializedName: "count", type: { - name: "String" + name: "Number" } } } } }; -export const ControlPlaneEndpointProfile: coreClient.CompositeMapper = { +export const StorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ControlPlaneEndpointProfile", + className: "StorageProfile", modelProperties: { - controlPlaneEndpoint: { - serializedName: "controlPlaneEndpoint", + smbCsiDriver: { + serializedName: "smbCsiDriver", type: { name: "Composite", - className: "ControlPlaneEndpointProfileControlPlaneEndpoint" + className: "StorageProfileSmbCSIDriver" + } + }, + nfsCsiDriver: { + serializedName: "nfsCsiDriver", + type: { + name: "Composite", + className: "StorageProfileNfsCSIDriver" } } } } }; -export const ControlPlaneEndpointProfileControlPlaneEndpoint: coreClient.CompositeMapper = { +export const StorageProfileSmbCSIDriver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ControlPlaneEndpointProfileControlPlaneEndpoint", + className: "StorageProfileSmbCSIDriver", modelProperties: { - hostIP: { - serializedName: "hostIP", + enabled: { + defaultValue: true, + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } - }, - port: { - serializedName: "port", + } + } + } +}; + +export const StorageProfileNfsCSIDriver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageProfileNfsCSIDriver", + modelProperties: { + enabled: { + defaultValue: true, + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const LinuxProfile: coreClient.CompositeMapper = { +export const ClusterVMAccessProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxProfile", + className: "ClusterVMAccessProfile", modelProperties: { - linuxProfile: { - serializedName: "linuxProfile", + authorizedIPRanges: { + serializedName: "authorizedIPRanges", type: { - name: "Composite", - className: "LinuxProfileProperties" + name: "String" } } } } }; -export const NetworkProfile: coreClient.CompositeMapper = { +export const AgentPoolProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfile", + className: "AgentPoolProfile", modelProperties: { - loadBalancerProfile: { - serializedName: "loadBalancerProfile", + osType: { + serializedName: "osType", type: { - name: "Composite", - className: "NetworkProfileLoadBalancerProfile" + name: "String" } }, - networkPolicy: { - defaultValue: "calico", - serializedName: "networkPolicy", + osSKU: { + serializedName: "osSKU", type: { name: "String" } }, - podCidr: { - serializedName: "podCidr", + nodeLabels: { + serializedName: "nodeLabels", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + nodeTaints: { + serializedName: "nodeTaints", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxCount: { + serializedName: "maxCount", + type: { + name: "Number" + } + }, + minCount: { + serializedName: "minCount", + type: { + name: "Number" + } + }, + enableAutoScaling: { + defaultValue: false, + serializedName: "enableAutoScaling", + type: { + name: "Boolean" + } + }, + maxPods: { + serializedName: "maxPods", + type: { + name: "Number" } } } } }; -export const NetworkProfileLoadBalancerProfile: coreClient.CompositeMapper = { +export const AgentPoolUpdateProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfileLoadBalancerProfile", + className: "AgentPoolUpdateProfile", modelProperties: { count: { - defaultValue: 0, + defaultValue: 1, serializedName: "count", type: { name: "Number" } + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + kubernetesVersion: { + serializedName: "kubernetesVersion", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AgentPoolName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPoolName", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } } } } @@ -362,17 +477,17 @@ export const ProvisionedClusterPropertiesStatus: coreClient.CompositeMapper = { } } }, - errorMessage: { - serializedName: "errorMessage", + currentState: { + serializedName: "currentState", + readOnly: true, type: { name: "String" } }, - operationStatus: { - serializedName: "operationStatus", + errorMessage: { + serializedName: "errorMessage", type: { - name: "Composite", - className: "ProvisionedClusterPropertiesStatusOperationStatus" + name: "String" } } } @@ -412,26 +527,14 @@ export const AddonStatusProfile: coreClient.CompositeMapper = { } }; -export const ProvisionedClusterPropertiesStatusOperationStatus: coreClient.CompositeMapper = { +export const ProvisionedClusterLicenseProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClusterPropertiesStatusOperationStatus", + className: "ProvisionedClusterLicenseProfile", modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ProvisionedClusterPropertiesStatusOperationStatusError" - } - }, - operationId: { - serializedName: "operationId", - type: { - name: "String" - } - }, - status: { - serializedName: "status", + azureHybridBenefit: { + defaultValue: "NotApplicable", + serializedName: "azureHybridBenefit", type: { name: "String" } @@ -440,35 +543,109 @@ export const ProvisionedClusterPropertiesStatusOperationStatus: coreClient.Compo } }; -export const ProvisionedClusterPropertiesStatusOperationStatusError: coreClient.CompositeMapper = { +export const ProvisionedClusterPropertiesAutoScalerProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClusterPropertiesStatusOperationStatusError", + className: "ProvisionedClusterPropertiesAutoScalerProfile", modelProperties: { - code: { - serializedName: "code", + balanceSimilarNodeGroups: { + serializedName: "balance-similar-node-groups", type: { name: "String" } }, - message: { - serializedName: "message", + expander: { + serializedName: "expander", type: { name: "String" } - } - } - } -}; - -export const ProvisionedClusterLicenseProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProvisionedClusterLicenseProfile", - modelProperties: { - azureHybridBenefit: { - defaultValue: "NotApplicable", - serializedName: "azureHybridBenefit", + }, + maxEmptyBulkDelete: { + serializedName: "max-empty-bulk-delete", + type: { + name: "String" + } + }, + maxGracefulTerminationSec: { + serializedName: "max-graceful-termination-sec", + type: { + name: "String" + } + }, + maxNodeProvisionTime: { + serializedName: "max-node-provision-time", + type: { + name: "String" + } + }, + maxTotalUnreadyPercentage: { + serializedName: "max-total-unready-percentage", + type: { + name: "String" + } + }, + newPodScaleUpDelay: { + serializedName: "new-pod-scale-up-delay", + type: { + name: "String" + } + }, + okTotalUnreadyCount: { + serializedName: "ok-total-unready-count", + type: { + name: "String" + } + }, + scanInterval: { + serializedName: "scan-interval", + type: { + name: "String" + } + }, + scaleDownDelayAfterAdd: { + serializedName: "scale-down-delay-after-add", + type: { + name: "String" + } + }, + scaleDownDelayAfterDelete: { + serializedName: "scale-down-delay-after-delete", + type: { + name: "String" + } + }, + scaleDownDelayAfterFailure: { + serializedName: "scale-down-delay-after-failure", + type: { + name: "String" + } + }, + scaleDownUnneededTime: { + serializedName: "scale-down-unneeded-time", + type: { + name: "String" + } + }, + scaleDownUnreadyTime: { + serializedName: "scale-down-unready-time", + type: { + name: "String" + } + }, + scaleDownUtilizationThreshold: { + serializedName: "scale-down-utilization-threshold", + type: { + name: "String" + } + }, + skipNodesWithLocalStorage: { + serializedName: "skip-nodes-with-local-storage", + type: { + name: "String" + } + }, + skipNodesWithSystemPods: { + serializedName: "skip-nodes-with-system-pods", type: { name: "String" } @@ -676,10 +853,10 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const ProvisionedClustersListResult: coreClient.CompositeMapper = { +export const ProvisionedClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClustersListResult", + className: "ProvisionedClusterListResult", modelProperties: { value: { serializedName: "value", @@ -688,7 +865,7 @@ export const ProvisionedClustersListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProvisionedClusters" + className: "ProvisionedCluster" } } } @@ -703,52 +880,33 @@ export const ProvisionedClustersListResult: coreClient.CompositeMapper = { } }; -export const ProvisionedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { +export const ProvisionedClusterUpgradeProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClusterPoolUpgradeProfile", + className: "ProvisionedClusterUpgradeProfileProperties", modelProperties: { - kubernetesVersion: { - serializedName: "kubernetesVersion", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - osType: { - serializedName: "osType", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } }, - upgrades: { - serializedName: "upgrades", + controlPlaneProfile: { + serializedName: "controlPlaneProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProvisionedClusterPoolUpgradeProfileProperties" - } - } + name: "Composite", + className: "ProvisionedClusterPoolUpgradeProfile" } } } } }; -export const ProvisionedClusterPoolUpgradeProfileProperties: coreClient.CompositeMapper = { +export const ProvisionedClusterPoolUpgradeProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClusterPoolUpgradeProfileProperties", + className: "ProvisionedClusterPoolUpgradeProfile", modelProperties: { kubernetesVersion: { serializedName: "kubernetesVersion", @@ -757,37 +915,21 @@ export const ProvisionedClusterPoolUpgradeProfileProperties: coreClient.Composit name: "String" } }, - isPreview: { - serializedName: "isPreview", + osType: { + serializedName: "osType", readOnly: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const HybridIdentityMetadataList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridIdentityMetadataList", - modelProperties: { - nextLink: { - serializedName: "nextLink", type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + upgrades: { + serializedName: "upgrades", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HybridIdentityMetadata" + className: "ProvisionedClusterPoolUpgradeProfileProperties" } } } @@ -796,168 +938,77 @@ export const HybridIdentityMetadataList: coreClient.CompositeMapper = { } }; -export const AgentPool: coreClient.CompositeMapper = { +export const ProvisionedClusterPoolUpgradeProfileProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPool", - 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" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - availabilityZones: { - serializedName: "properties.availabilityZones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "String" - } - }, - osSKU: { - serializedName: "properties.osSKU", - type: { - name: "String" - } - }, - nodeImageVersion: { - serializedName: "properties.nodeImageVersion", - type: { - name: "String" - } - }, - count: { - defaultValue: 1, - serializedName: "properties.count", - type: { - name: "Number" - } - }, - vmSize: { - serializedName: "properties.vmSize", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + className: "ProvisionedClusterPoolUpgradeProfileProperties", + modelProperties: { + kubernetesVersion: { + serializedName: "kubernetesVersion", readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + isPreview: { + serializedName: "isPreview", + readOnly: true, type: { - name: "Composite", - className: "AgentPoolProvisioningStatusStatus" + name: "Boolean" } } } } }; -export const AgentPoolProvisioningStatus: coreClient.CompositeMapper = { +export const HybridIdentityMetadataProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolProvisioningStatus", + className: "HybridIdentityMetadataProperties", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + resourceUid: { + serializedName: "resourceUid", type: { name: "String" } }, - status: { - serializedName: "status", + publicKey: { + serializedName: "publicKey", type: { - name: "Composite", - className: "AgentPoolProvisioningStatusStatus" + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const AgentPoolProvisioningStatusStatus: coreClient.CompositeMapper = { +export const HybridIdentityMetadataList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolProvisioningStatusStatus", + className: "HybridIdentityMetadataList", modelProperties: { - errorMessage: { - serializedName: "errorMessage", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - operationStatus: { - serializedName: "operationStatus", - type: { - name: "Composite", - className: "AgentPoolProvisioningStatusOperationStatus" - } - }, - readyReplicas: { - serializedName: "readyReplicas", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AgentPoolUpdateProfile" + className: "HybridIdentityMetadata" } } } @@ -966,20 +1017,14 @@ export const AgentPoolProvisioningStatusStatus: coreClient.CompositeMapper = { } }; -export const AgentPoolProvisioningStatusOperationStatus: coreClient.CompositeMapper = { +export const AgentPoolProvisioningStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolProvisioningStatusOperationStatus", + className: "AgentPoolProvisioningStatus", modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "AgentPoolProvisioningStatusOperationStatusError" - } - }, - operationId: { - serializedName: "operationId", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -987,44 +1032,42 @@ export const AgentPoolProvisioningStatusOperationStatus: coreClient.CompositeMap status: { serializedName: "status", type: { - name: "String" + name: "Composite", + className: "AgentPoolProvisioningStatusStatus" } } } } }; -export const AgentPoolProvisioningStatusOperationStatusError: coreClient.CompositeMapper = { +export const AgentPoolProvisioningStatusStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentPoolProvisioningStatusOperationStatusError", + className: "AgentPoolProvisioningStatusStatus", modelProperties: { - code: { - serializedName: "code", + currentState: { + serializedName: "currentState", + readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } - } - } - } -}; - -export const AgentPoolPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolPatch", - modelProperties: { - tags: { - serializedName: "tags", + }, + readyReplicas: { + serializedName: "readyReplicas", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentPoolUpdateProfile" + } + } } } } @@ -1215,13 +1258,6 @@ export const KubernetesVersionProperties: coreClient.CompositeMapper = { name: "String" } }, - capabilities: { - serializedName: "capabilities", - type: { - name: "Composite", - className: "KubernetesVersionCapabilities" - } - }, isPreview: { serializedName: "isPreview", readOnly: true, @@ -1243,28 +1279,6 @@ export const KubernetesVersionProperties: coreClient.CompositeMapper = { } }; -export const KubernetesVersionCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KubernetesVersionCapabilities", - modelProperties: { - supportPlan: { - serializedName: "supportPlan", - type: { - name: "Sequence", - element: { - defaultValue: "KubernetesOfficial", - isConstant: true, - type: { - name: "String" - } - } - } - } - } - } -}; - export const KubernetesPatchVersions: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1634,17 +1648,6 @@ export const VirtualNetworkProperties: coreClient.CompositeMapper = { } } }, - dhcpServers: { - serializedName: "dhcpServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, dnsServers: { serializedName: "dnsServers", type: { @@ -1703,13 +1706,6 @@ export const VirtualNetworkPropertiesInfraVnetProfile: coreClient.CompositeMappe name: "Composite", className: "VirtualNetworkPropertiesInfraVnetProfileHci" } - }, - vmware: { - serializedName: "vmware", - type: { - name: "Composite", - className: "VirtualNetworkPropertiesInfraVnetProfileVmware" - } } } } @@ -1742,21 +1738,6 @@ export const VirtualNetworkPropertiesInfraVnetProfileHci: coreClient.CompositeMa } }; -export const VirtualNetworkPropertiesInfraVnetProfileVmware: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkPropertiesInfraVnetProfileVmware", - modelProperties: { - segmentName: { - serializedName: "segmentName", - type: { - name: "String" - } - } - } - } -}; - export const VirtualNetworkPropertiesVipPoolItem: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1833,12 +1814,6 @@ export const VirtualNetworkPropertiesStatusOperationStatus: coreClient.Composite name: "String" } }, - phase: { - serializedName: "phase", - type: { - name: "String" - } - }, status: { serializedName: "status", type: { @@ -1934,6 +1909,22 @@ export const VirtualNetworksListResult: coreClient.CompositeMapper = { } }; +export const LinuxProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinuxProfile", + modelProperties: { + linuxProfile: { + serializedName: "linuxProfile", + type: { + name: "Composite", + className: "LinuxProfileProperties" + } + } + } + } +}; + export const NamedAgentPoolProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1958,18 +1949,6 @@ export const AgentPoolProperties: coreClient.CompositeMapper = { } }; -export const ControlPlaneProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ControlPlaneProfile", - modelProperties: { - ...NamedAgentPoolProfile.type.modelProperties, - ...ControlPlaneEndpointProfile.type.modelProperties, - ...LinuxProfile.type.modelProperties - } - } -}; - export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2004,10 +1983,10 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const ProvisionedClusters: coreClient.CompositeMapper = { +export const ProvisionedCluster: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisionedClusters", + className: "ProvisionedCluster", modelProperties: { ...ProxyResource.type.modelProperties, properties: { @@ -2034,31 +2013,11 @@ export const ProvisionedClusterUpgradeProfile: coreClient.CompositeMapper = { className: "ProvisionedClusterUpgradeProfile", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - controlPlaneProfile: { - serializedName: "properties.controlPlaneProfile", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ProvisionedClusterPoolUpgradeProfile" - } - }, - agentPoolProfiles: { - serializedName: "properties.agentPoolProfiles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProvisionedClusterPoolUpgradeProfile" - } - } + className: "ProvisionedClusterUpgradeProfileProperties" } } } @@ -2071,23 +2030,42 @@ export const HybridIdentityMetadata: coreClient.CompositeMapper = { className: "HybridIdentityMetadata", modelProperties: { ...ProxyResource.type.modelProperties, - resourceUid: { - serializedName: "properties.resourceUid", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "HybridIdentityMetadataProperties" + } + } + } + } +}; + +export const AgentPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentPool", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AgentPoolProperties" } }, - publicKey: { - serializedName: "properties.publicKey", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } } } @@ -2241,21 +2219,6 @@ export const AgentPoolDeleteHeaders: coreClient.CompositeMapper = { } }; -export const AgentPoolUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentPoolUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - export const HybridContainerServiceClientDeleteKubernetesVersionsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2300,18 +2263,3 @@ export const VirtualNetworksDeleteHeaders: coreClient.CompositeMapper = { } } }; - -export const VirtualNetworksUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworksUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/parameters.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/parameters.ts index bb361415ad9d..21faf39f4f53 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/parameters.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/models/parameters.ts @@ -12,10 +12,9 @@ import { OperationQueryParameter } from "@azure/core-client"; import { - ProvisionedClusters as ProvisionedClustersMapper, + ProvisionedCluster as ProvisionedClusterMapper, HybridIdentityMetadata as HybridIdentityMetadataMapper, AgentPool as AgentPoolMapper, - AgentPoolPatch as AgentPoolPatchMapper, KubernetesVersionProfile as KubernetesVersionProfileMapper, VmSkuProfile as VmSkuProfileMapper, VirtualNetwork as VirtualNetworkMapper, @@ -61,7 +60,7 @@ export const connectedClusterResourceUri: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-11-15-preview", + defaultValue: "2024-01-01", isConstant: true, serializedName: "api-version", type: { @@ -84,7 +83,7 @@ export const contentType: OperationParameter = { export const provisionedClusterInstance: OperationParameter = { parameterPath: "provisionedClusterInstance", - mapper: ProvisionedClustersMapper + mapper: ProvisionedClusterMapper }; export const nextLink: OperationURLParameter = { @@ -108,10 +107,8 @@ export const agentPoolName: OperationURLParameter = { parameterPath: "agentPoolName", mapper: { constraints: { - Pattern: new RegExp( - "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$" - ), - MaxLength: 64, + Pattern: new RegExp("^[a-z][a-z0-9]{2,11}$"), + MaxLength: 12, MinLength: 3 }, serializedName: "agentPoolName", @@ -127,11 +124,6 @@ export const agentPool: OperationParameter = { mapper: AgentPoolMapper }; -export const agentPool1: OperationParameter = { - parameterPath: "agentPool", - mapper: AgentPoolPatchMapper -}; - export const customLocationResourceUri: OperationURLParameter = { parameterPath: "customLocationResourceUri", mapper: { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/agentPoolOperations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/agentPoolOperations.ts index 85bf8b8e071c..cf2d6d2201e9 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/agentPoolOperations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/agentPoolOperations.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { AgentPoolOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,20 +20,20 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + AgentPool, + AgentPoolListByProvisionedClusterNextOptionalParams, + AgentPoolListByProvisionedClusterOptionalParams, + AgentPoolListByProvisionedClusterResponse, AgentPoolGetOptionalParams, AgentPoolGetResponse, - AgentPool, AgentPoolCreateOrUpdateOptionalParams, AgentPoolCreateOrUpdateResponse, AgentPoolDeleteOptionalParams, AgentPoolDeleteResponse, - AgentPoolPatch, - AgentPoolUpdateOptionalParams, - AgentPoolUpdateResponse, - AgentPoolListByProvisionedClusterOptionalParams, - AgentPoolListByProvisionedClusterResponse + AgentPoolListByProvisionedClusterNextResponse } from "../models"; +/// /** Class containing AgentPoolOperations operations. */ export class AgentPoolOperationsImpl implements AgentPoolOperations { private readonly client: HybridContainerServiceClient; @@ -45,10 +47,86 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Gets the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the list of agent pools in the specified provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param options The options parameters. + */ + public listByProvisionedCluster( + connectedClusterResourceUri: string, + options?: AgentPoolListByProvisionedClusterOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProvisionedClusterPagingAll( + connectedClusterResourceUri, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProvisionedClusterPagingPage( + connectedClusterResourceUri, + options, + settings + ); + } + }; + } + + private async *listByProvisionedClusterPagingPage( + connectedClusterResourceUri: string, + options?: AgentPoolListByProvisionedClusterOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AgentPoolListByProvisionedClusterResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProvisionedCluster( + connectedClusterResourceUri, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProvisionedClusterNext( + connectedClusterResourceUri, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProvisionedClusterPagingAll( + connectedClusterResourceUri: string, + options?: AgentPoolListByProvisionedClusterOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProvisionedClusterPagingPage( + connectedClusterResourceUri, + options + )) { + yield* page; + } + } + + /** + * Gets the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the + * connected cluster resource. + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ get( @@ -63,11 +141,11 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Creates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource definition + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. + * @param agentPool Agent Pool resource definition * @param options The options parameters. */ async beginCreateOrUpdate( @@ -138,11 +216,11 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Creates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource definition + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. + * @param agentPool Agent Pool resource definition * @param options The options parameters. */ async beginCreateOrUpdateAndWait( @@ -161,10 +239,10 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ async beginDelete( @@ -234,10 +312,10 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ async beginDeleteAndWait( @@ -254,116 +332,37 @@ export class AgentPoolOperationsImpl implements AgentPoolOperations { } /** - * Updates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the list of agent pools in the specified provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource patch definition * @param options The options parameters. */ - async beginUpdate( + private _listByProvisionedCluster( connectedClusterResourceUri: string, - agentPoolName: string, - agentPool: AgentPoolPatch, - options?: AgentPoolUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AgentPoolUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { connectedClusterResourceUri, agentPoolName, agentPool, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - AgentPoolUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Updates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the - * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource patch definition - * @param options The options parameters. - */ - async beginUpdateAndWait( - connectedClusterResourceUri: string, - agentPoolName: string, - agentPool: AgentPoolPatch, - options?: AgentPoolUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - connectedClusterResourceUri, - agentPoolName, - agentPool, - options + options?: AgentPoolListByProvisionedClusterOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { connectedClusterResourceUri, options }, + listByProvisionedClusterOperationSpec ); - return poller.pollUntilDone(); } /** - * Gets the agent pools in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * ListByProvisionedClusterNext + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. + * @param nextLink The nextLink from the previous successful call to the ListByProvisionedCluster + * method. * @param options The options parameters. */ - listByProvisionedCluster( + private _listByProvisionedClusterNext( connectedClusterResourceUri: string, - options?: AgentPoolListByProvisionedClusterOptionalParams - ): Promise { + nextLink: string, + options?: AgentPoolListByProvisionedClusterNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { connectedClusterResourceUri, options }, - listByProvisionedClusterOperationSpec + { connectedClusterResourceUri, nextLink, options }, + listByProvisionedClusterNextOperationSpec ); } } @@ -453,41 +452,25 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const updateOperationSpec: coreClient.OperationSpec = { +const listByProvisionedClusterOperationSpec: coreClient.OperationSpec = { path: - "/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/{agentPoolName}", - httpMethod: "PATCH", + "/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPool - }, - 201: { - bodyMapper: Mappers.AgentPool - }, - 202: { - bodyMapper: Mappers.AgentPool - }, - 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPoolListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.agentPool1, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.connectedClusterResourceUri, - Parameters.agentPoolName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + urlParameters: [Parameters.$host, Parameters.connectedClusterResourceUri], + headerParameters: [Parameters.accept], serializer }; -const listByProvisionedClusterOperationSpec: coreClient.OperationSpec = { - path: - "/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", +const listByProvisionedClusterNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", httpMethod: "GET", responses: { 200: { @@ -497,8 +480,11 @@ const listByProvisionedClusterOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.connectedClusterResourceUri], + urlParameters: [ + Parameters.$host, + Parameters.connectedClusterResourceUri, + Parameters.nextLink + ], headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/hybridIdentityMetadataOperations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/hybridIdentityMetadataOperations.ts index f971f8676aba..da9a645b900a 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/hybridIdentityMetadataOperations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/hybridIdentityMetadataOperations.ts @@ -49,7 +49,7 @@ export class HybridIdentityMetadataOperationsImpl /** * Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -123,9 +123,9 @@ export class HybridIdentityMetadataOperationsImpl /** * Creates the hybrid identity metadata proxy resource that facilitates the managed identity * provisioning. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param body Defines the hybridIdentityMetadata. + * @param body Hybrid Identity Metadata resource definition * @param options The options parameters. */ put( @@ -141,7 +141,7 @@ export class HybridIdentityMetadataOperationsImpl /** * Get the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -157,7 +157,7 @@ export class HybridIdentityMetadataOperationsImpl /** * Deletes the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -228,7 +228,7 @@ export class HybridIdentityMetadataOperationsImpl /** * Deletes the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -242,7 +242,7 @@ export class HybridIdentityMetadataOperationsImpl /** * Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -258,7 +258,7 @@ export class HybridIdentityMetadataOperationsImpl /** * ListByClusterNext - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param nextLink The nextLink from the previous successful call to the ListByCluster method. * @param options The options parameters. diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/kubernetesVersions.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/kubernetesVersions.ts index 8a414edfa336..444228bc2ca3 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/kubernetesVersions.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/kubernetesVersions.ts @@ -35,8 +35,8 @@ export class KubernetesVersionsImpl implements KubernetesVersions { } /** - * Lists the supported kubernetes versions from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported kubernetes versions for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -105,8 +105,8 @@ export class KubernetesVersionsImpl implements KubernetesVersions { } /** - * Lists the supported kubernetes versions from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported kubernetes versions for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -122,7 +122,7 @@ export class KubernetesVersionsImpl implements KubernetesVersions { /** * ListNext - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/operations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/operations.ts index 7263c0d93c82..98e89dd8cb11 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/operations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/operations.ts @@ -34,7 +34,10 @@ export class OperationsImpl implements Operations { this.client = client; } - /** @param options The options parameters. */ + /** + * Lists the supported operations + * @param options The options parameters. + */ public list( options?: OperationsListOptionalParams ): PagedAsyncIterableIterator { @@ -85,7 +88,10 @@ export class OperationsImpl implements Operations { } } - /** @param options The options parameters. */ + /** + * Lists the supported operations + * @param options The options parameters. + */ private _list( options?: OperationsListOptionalParams ): Promise { diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/provisionedClusterInstances.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/provisionedClusterInstances.ts index c59770f80653..85ac59ed5a66 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/provisionedClusterInstances.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/provisionedClusterInstances.ts @@ -20,7 +20,7 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - ProvisionedClusters, + ProvisionedCluster, ProvisionedClusterInstancesListNextOptionalParams, ProvisionedClusterInstancesListOptionalParams, ProvisionedClusterInstancesListResponse, @@ -54,15 +54,15 @@ export class ProvisionedClusterInstancesImpl } /** - * Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ public list( connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(connectedClusterResourceUri, options); return { next() { @@ -88,7 +88,7 @@ export class ProvisionedClusterInstancesImpl connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams, settings?: PageSettings - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result: ProvisionedClusterInstancesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { @@ -114,7 +114,7 @@ export class ProvisionedClusterInstancesImpl private async *listPagingAll( connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage( connectedClusterResourceUri, options @@ -124,8 +124,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Gets the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -140,15 +140,15 @@ export class ProvisionedClusterInstancesImpl } /** - * Creates the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param provisionedClusterInstance The provisionedClusterInstances resource definition. + * @param provisionedClusterInstance Provisioned Cluster resource definition * @param options The options parameters. */ async beginCreateOrUpdate( connectedClusterResourceUri: string, - provisionedClusterInstance: ProvisionedClusters, + provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -217,15 +217,15 @@ export class ProvisionedClusterInstancesImpl } /** - * Creates the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param provisionedClusterInstance The provisionedClusterInstances resource definition. + * @param provisionedClusterInstance Provisioned Cluster resource definition * @param options The options parameters. */ async beginCreateOrUpdateAndWait( connectedClusterResourceUri: string, - provisionedClusterInstance: ProvisionedClusters, + provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams ): Promise { const poller = await this.beginCreateOrUpdate( @@ -237,8 +237,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Deletes the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -308,8 +308,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Deletes the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -322,8 +322,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -338,8 +338,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Gets the upgrade profile of a provisioned cluster instance. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the upgrade profile of a provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -354,8 +354,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the user credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -425,8 +425,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the user credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -442,8 +442,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the admin credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -513,8 +513,8 @@ export class ProvisionedClusterInstancesImpl } /** - * Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the admin credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -531,7 +531,7 @@ export class ProvisionedClusterInstancesImpl /** * ListNext - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -556,7 +556,7 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProvisionedClusters + bodyMapper: Mappers.ProvisionedCluster }, default: { bodyMapper: Mappers.ErrorResponse @@ -573,16 +573,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ProvisionedClusters + bodyMapper: Mappers.ProvisionedCluster }, 201: { - bodyMapper: Mappers.ProvisionedClusters + bodyMapper: Mappers.ProvisionedCluster }, 202: { - bodyMapper: Mappers.ProvisionedClusters + bodyMapper: Mappers.ProvisionedCluster }, 204: { - bodyMapper: Mappers.ProvisionedClusters + bodyMapper: Mappers.ProvisionedCluster }, default: { bodyMapper: Mappers.ErrorResponse @@ -627,7 +627,7 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProvisionedClustersListResult + bodyMapper: Mappers.ProvisionedClusterListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -712,7 +712,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProvisionedClustersListResult + bodyMapper: Mappers.ProvisionedClusterListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/vMSkus.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/vMSkus.ts index 6ea36b7ca3d4..7629db560c34 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/vMSkus.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/vMSkus.ts @@ -35,8 +35,8 @@ export class VMSkusImpl implements VMSkus { } /** - * Lists the supported VM SKUs from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported VM skus for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -105,8 +105,8 @@ export class VMSkusImpl implements VMSkus { } /** - * Lists the supported VM SKUs from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported VM skus for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ @@ -122,7 +122,7 @@ export class VMSkusImpl implements VMSkus { /** * ListNext - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/virtualNetworks.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/virtualNetworks.ts index 783870e64c52..2539fd268039 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/virtualNetworks.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operations/virtualNetworks.ts @@ -54,7 +54,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Lists the Hybrid AKS virtual networks by resource group + * Lists the virtual networks in the specified resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -123,7 +123,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Lists the Hybrid AKS virtual networks by subscription + * Lists the virtual networks in the specified subscription * @param options The options parameters. */ public listBySubscription( @@ -177,7 +177,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Gets the Hybrid AKS virtual network + * Gets the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -194,10 +194,10 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Puts the Hybrid AKS virtual network + * Creates or updates the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource definition. + * @param virtualNetworks Virtual Network resource definition * @param options The options parameters. */ async beginCreateOrUpdate( @@ -268,10 +268,10 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Puts the Hybrid AKS virtual network + * Creates or updates the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource definition. + * @param virtualNetworks Virtual Network resource definition * @param options The options parameters. */ async beginCreateOrUpdateAndWait( @@ -290,7 +290,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Deletes the Hybrid AKS virtual network + * Deletes the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -362,7 +362,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Deletes the Hybrid AKS virtual network + * Deletes the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -381,10 +381,10 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Patches the Hybrid AKS virtual network + * Patches the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource patch definition. + * @param virtualNetworks Virtual Network resource patch definition * @param options The options parameters. */ async beginUpdate( @@ -455,10 +455,10 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Patches the Hybrid AKS virtual network + * Patches the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource patch definition. + * @param virtualNetworks Virtual Network resource patch definition * @param options The options parameters. */ async beginUpdateAndWait( @@ -477,7 +477,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Lists the Hybrid AKS virtual networks by resource group + * Lists the virtual networks in the specified resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -492,7 +492,7 @@ export class VirtualNetworksImpl implements VirtualNetworks { } /** - * Lists the Hybrid AKS virtual networks by subscription + * Lists the virtual networks in the specified subscription * @param options The options parameters. */ private _listBySubscription( diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/agentPoolOperations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/agentPoolOperations.ts index cd8d7314a7b8..e4257efaef7f 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/agentPoolOperations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/agentPoolOperations.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + AgentPool, + AgentPoolListByProvisionedClusterOptionalParams, AgentPoolGetOptionalParams, AgentPoolGetResponse, - AgentPool, AgentPoolCreateOrUpdateOptionalParams, AgentPoolCreateOrUpdateResponse, AgentPoolDeleteOptionalParams, - AgentPoolDeleteResponse, - AgentPoolPatch, - AgentPoolUpdateOptionalParams, - AgentPoolUpdateResponse, - AgentPoolListByProvisionedClusterOptionalParams, - AgentPoolListByProvisionedClusterResponse + AgentPoolDeleteResponse } from "../models"; +/// /** Interface representing a AgentPoolOperations. */ export interface AgentPoolOperations { /** - * Gets the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the list of agent pools in the specified provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param options The options parameters. + */ + listByProvisionedCluster( + connectedClusterResourceUri: string, + options?: AgentPoolListByProvisionedClusterOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the + * connected cluster resource. + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ get( @@ -37,11 +45,11 @@ export interface AgentPoolOperations { options?: AgentPoolGetOptionalParams ): Promise; /** - * Creates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource definition + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. + * @param agentPool Agent Pool resource definition * @param options The options parameters. */ beginCreateOrUpdate( @@ -56,11 +64,11 @@ export interface AgentPoolOperations { > >; /** - * Creates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource definition + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. + * @param agentPool Agent Pool resource definition * @param options The options parameters. */ beginCreateOrUpdateAndWait( @@ -70,10 +78,10 @@ export interface AgentPoolOperations { options?: AgentPoolCreateOrUpdateOptionalParams ): Promise; /** - * Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ beginDelete( @@ -87,10 +95,10 @@ export interface AgentPoolOperations { > >; /** - * Deletes the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the specified agent pool in the provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster + * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster. * @param options The options parameters. */ beginDeleteAndWait( @@ -98,47 +106,4 @@ export interface AgentPoolOperations { agentPoolName: string, options?: AgentPoolDeleteOptionalParams ): Promise; - /** - * Updates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the - * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource patch definition - * @param options The options parameters. - */ - beginUpdate( - connectedClusterResourceUri: string, - agentPoolName: string, - agentPool: AgentPoolPatch, - options?: AgentPoolUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AgentPoolUpdateResponse - > - >; - /** - * Updates the agent pool in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the - * connected cluster resource. - * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster - * @param agentPool The agentPool resource patch definition - * @param options The options parameters. - */ - beginUpdateAndWait( - connectedClusterResourceUri: string, - agentPoolName: string, - agentPool: AgentPoolPatch, - options?: AgentPoolUpdateOptionalParams - ): Promise; - /** - * Gets the agent pools in the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the - * connected cluster resource. - * @param options The options parameters. - */ - listByProvisionedCluster( - connectedClusterResourceUri: string, - options?: AgentPoolListByProvisionedClusterOptionalParams - ): Promise; } diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/hybridIdentityMetadataOperations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/hybridIdentityMetadataOperations.ts index e233b878cc77..12ec4d03f973 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/hybridIdentityMetadataOperations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/hybridIdentityMetadataOperations.ts @@ -24,7 +24,7 @@ import { export interface HybridIdentityMetadataOperations { /** * Lists the hybrid identity metadata proxy resource in a provisioned cluster instance. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -35,9 +35,9 @@ export interface HybridIdentityMetadataOperations { /** * Creates the hybrid identity metadata proxy resource that facilitates the managed identity * provisioning. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param body Defines the hybridIdentityMetadata. + * @param body Hybrid Identity Metadata resource definition * @param options The options parameters. */ put( @@ -47,7 +47,7 @@ export interface HybridIdentityMetadataOperations { ): Promise; /** * Get the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -57,7 +57,7 @@ export interface HybridIdentityMetadataOperations { ): Promise; /** * Deletes the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -72,7 +72,7 @@ export interface HybridIdentityMetadataOperations { >; /** * Deletes the hybrid identity metadata proxy resource. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/kubernetesVersions.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/kubernetesVersions.ts index bc740c87dfe3..23e9ecdad774 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/kubernetesVersions.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/kubernetesVersions.ts @@ -16,8 +16,8 @@ import { /** Interface representing a KubernetesVersions. */ export interface KubernetesVersions { /** - * Lists the supported kubernetes versions from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported kubernetes versions for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/operations.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/operations.ts index f700b7a04c57..c44ef58e1907 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/operations.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/operations.ts @@ -12,7 +12,10 @@ import { Operation, OperationsListOptionalParams } from "../models"; /// /** Interface representing a Operations. */ export interface Operations { - /** @param options The options parameters. */ + /** + * Lists the supported operations + * @param options The options parameters. + */ list( options?: OperationsListOptionalParams ): PagedAsyncIterableIterator; diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/provisionedClusterInstances.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/provisionedClusterInstances.ts index 4837cb33e82e..b90289f3b7b2 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/provisionedClusterInstances.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/provisionedClusterInstances.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - ProvisionedClusters, + ProvisionedCluster, ProvisionedClusterInstancesListOptionalParams, ProvisionedClusterInstancesGetOptionalParams, ProvisionedClusterInstancesGetResponse, @@ -29,18 +29,18 @@ import { /** Interface representing a ProvisionedClusterInstances. */ export interface ProvisionedClusterInstances { /** - * Gets the Hybrid AKS provisioned cluster instances associated with the connected cluster - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the ProvisionedClusterInstance resource associated with the ConnectedCluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ list( connectedClusterResourceUri: string, options?: ProvisionedClusterInstancesListOptionalParams - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; /** - * Gets the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -49,15 +49,15 @@ export interface ProvisionedClusterInstances { options?: ProvisionedClusterInstancesGetOptionalParams ): Promise; /** - * Creates the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param provisionedClusterInstance The provisionedClusterInstances resource definition. + * @param provisionedClusterInstance Provisioned Cluster resource definition * @param options The options parameters. */ beginCreateOrUpdate( connectedClusterResourceUri: string, - provisionedClusterInstance: ProvisionedClusters, + provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< @@ -66,20 +66,20 @@ export interface ProvisionedClusterInstances { > >; /** - * Creates the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Creates or updates the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. - * @param provisionedClusterInstance The provisionedClusterInstances resource definition. + * @param provisionedClusterInstance Provisioned Cluster resource definition * @param options The options parameters. */ beginCreateOrUpdateAndWait( connectedClusterResourceUri: string, - provisionedClusterInstance: ProvisionedClusters, + provisionedClusterInstance: ProvisionedCluster, options?: ProvisionedClusterInstancesCreateOrUpdateOptionalParams ): Promise; /** - * Deletes the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -93,8 +93,8 @@ export interface ProvisionedClusterInstances { > >; /** - * Deletes the Hybrid AKS provisioned cluster instance - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Deletes the provisioned cluster instance + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -103,8 +103,8 @@ export interface ProvisionedClusterInstances { options?: ProvisionedClusterInstancesDeleteOptionalParams ): Promise; /** - * Gets the upgrade profile of a provisioned cluster instance. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Gets the upgrade profile of a provisioned cluster + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -113,8 +113,8 @@ export interface ProvisionedClusterInstances { options?: ProvisionedClusterInstancesGetUpgradeProfileOptionalParams ): Promise; /** - * Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the user credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -128,8 +128,8 @@ export interface ProvisionedClusterInstances { > >; /** - * Lists the AAD user credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the user credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -138,8 +138,8 @@ export interface ProvisionedClusterInstances { options?: ProvisionedClusterInstancesListUserKubeconfigOptionalParams ): Promise; /** - * Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the admin credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ @@ -153,8 +153,8 @@ export interface ProvisionedClusterInstances { > >; /** - * Lists the admin credentials of a provisioned cluster instance used only in direct mode. - * @param connectedClusterResourceUri The fully qualified Azure Resource manager identifier of the + * Lists the admin credentials of the provisioned cluster (can only be used within private network) + * @param connectedClusterResourceUri The fully qualified Azure Resource Manager identifier of the * connected cluster resource. * @param options The options parameters. */ diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/vMSkus.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/vMSkus.ts index 4c8dbe44e55d..48f7aa0b08c7 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/vMSkus.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/vMSkus.ts @@ -13,8 +13,8 @@ import { VmSkuProfile, VMSkusListOptionalParams } from "../models"; /** Interface representing a VMSkus. */ export interface VMSkus { /** - * Lists the supported VM SKUs from the underlying custom location - * @param customLocationResourceUri The fully qualified Azure Resource manager identifier of the custom + * Lists the supported VM skus for the specified custom location + * @param customLocationResourceUri The fully qualified Azure Resource Manager identifier of the custom * location resource. * @param options The options parameters. */ diff --git a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/virtualNetworks.ts b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/virtualNetworks.ts index 1b1762073c31..4150dce94642 100644 --- a/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/virtualNetworks.ts +++ b/sdk/hybridcontainerservice/arm-hybridcontainerservice/src/operationsInterfaces/virtualNetworks.ts @@ -27,7 +27,7 @@ import { /** Interface representing a VirtualNetworks. */ export interface VirtualNetworks { /** - * Lists the Hybrid AKS virtual networks by resource group + * Lists the virtual networks in the specified resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -36,14 +36,14 @@ export interface VirtualNetworks { options?: VirtualNetworksListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the Hybrid AKS virtual networks by subscription + * Lists the virtual networks in the specified subscription * @param options The options parameters. */ listBySubscription( options?: VirtualNetworksListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the Hybrid AKS virtual network + * Gets the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -54,10 +54,10 @@ export interface VirtualNetworks { options?: VirtualNetworksRetrieveOptionalParams ): Promise; /** - * Puts the Hybrid AKS virtual network + * Creates or updates the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource definition. + * @param virtualNetworks Virtual Network resource definition * @param options The options parameters. */ beginCreateOrUpdate( @@ -72,10 +72,10 @@ export interface VirtualNetworks { > >; /** - * Puts the Hybrid AKS virtual network + * Creates or updates the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource definition. + * @param virtualNetworks Virtual Network resource definition * @param options The options parameters. */ beginCreateOrUpdateAndWait( @@ -85,7 +85,7 @@ export interface VirtualNetworks { options?: VirtualNetworksCreateOrUpdateOptionalParams ): Promise; /** - * Deletes the Hybrid AKS virtual network + * Deletes the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -101,7 +101,7 @@ export interface VirtualNetworks { > >; /** - * Deletes the Hybrid AKS virtual network + * Deletes the specified virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network * @param options The options parameters. @@ -112,10 +112,10 @@ export interface VirtualNetworks { options?: VirtualNetworksDeleteOptionalParams ): Promise; /** - * Patches the Hybrid AKS virtual network + * Patches the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource patch definition. + * @param virtualNetworks Virtual Network resource patch definition * @param options The options parameters. */ beginUpdate( @@ -130,10 +130,10 @@ export interface VirtualNetworks { > >; /** - * Patches the Hybrid AKS virtual network + * Patches the virtual network resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualNetworkName Parameter for the name of the virtual network - * @param virtualNetworks The virtualNetworks resource patch definition. + * @param virtualNetworks Virtual Network resource patch definition * @param options The options parameters. */ beginUpdateAndWait(