From b4a6af689611a3c47adb5da732f5fb36fcfffdfe Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Sep 2024 16:04:09 +0000 Subject: [PATCH] CodeGen from PR 30628 in Azure/azure-rest-api-specs Merge 4e71b2fb96b3b3b90ff8c336a796ca9d4edac652 into 6d11bffac41f2c3b64216c7e8b045ca4134ce303 --- common/config/rush/pnpm-lock.yaml | 40 +- .../arm-networkcloud/CHANGELOG.md | 139 +- sdk/networkcloud/arm-networkcloud/LICENSE | 2 +- sdk/networkcloud/arm-networkcloud/README.md | 2 +- sdk/networkcloud/arm-networkcloud/_meta.json | 8 +- sdk/networkcloud/arm-networkcloud/assets.json | 6 - .../arm-networkcloud/package.json | 36 +- .../review/arm-networkcloud.api.md | 529 +- .../agentPoolsCreateOrUpdateSample.ts | 96 - .../samples-dev/agentPoolsDeleteSample.ts | 45 - .../samples-dev/agentPoolsGetSample.ts | 45 - ...agentPoolsListByKubernetesClusterSample.ts | 46 - .../samples-dev/agentPoolsUpdateSample.ts | 56 - ...MetalMachineKeySetsCreateOrUpdateSample.ts | 80 - .../bareMetalMachineKeySetsDeleteSample.ts | 45 - .../bareMetalMachineKeySetsGetSample.ts | 45 - ...eMetalMachineKeySetsListByClusterSample.ts | 46 - .../bareMetalMachineKeySetsUpdateSample.ts | 78 - .../bareMetalMachinesCordonSample.ts | 54 - .../bareMetalMachinesCreateOrUpdateSample.ts | 66 - .../bareMetalMachinesDeleteSample.ts | 45 - .../samples-dev/bareMetalMachinesGetSample.ts | 43 - ...eMetalMachinesListByResourceGroupSample.ts | 44 - ...reMetalMachinesListBySubscriptionSample.ts | 40 - .../bareMetalMachinesPowerOffSample.ts | 54 - .../bareMetalMachinesReimageSample.ts | 43 - .../bareMetalMachinesReplaceSample.ts | 58 - .../bareMetalMachinesRestartSample.ts | 43 - .../bareMetalMachinesRunCommandSample.ts | 52 - .../bareMetalMachinesRunDataExtractsSample.ts | 56 - .../bareMetalMachinesRunReadCommandsSample.ts | 54 - .../bareMetalMachinesStartSample.ts | 43 - .../bareMetalMachinesUncordonSample.ts | 43 - .../bareMetalMachinesUpdateSample.ts | 55 - .../bmcKeySetsCreateOrUpdateSample.ts | 78 - .../samples-dev/bmcKeySetsDeleteSample.ts | 45 - .../samples-dev/bmcKeySetsGetSample.ts | 45 - .../bmcKeySetsListByClusterSample.ts | 46 - .../samples-dev/bmcKeySetsUpdateSample.ts | 75 - ...oudServicesNetworksCreateOrUpdateSample.ts | 65 - .../cloudServicesNetworksDeleteSample.ts | 43 - .../cloudServicesNetworksGetSample.ts | 43 - ...rvicesNetworksListByResourceGroupSample.ts | 44 - ...ervicesNetworksListBySubscriptionSample.ts | 40 - .../cloudServicesNetworksUpdateSample.ts | 66 - .../clusterManagersCreateOrUpdateSample.ts | 56 - .../clusterManagersDeleteSample.ts | 43 - .../samples-dev/clusterManagersGetSample.ts | 43 - ...lusterManagersListByResourceGroupSample.ts | 44 - ...clusterManagersListBySubscriptionSample.ts | 40 - .../clusterManagersUpdateSample.ts | 54 - .../clustersCreateOrUpdateSample.ts | 149 - .../samples-dev/clustersDeleteSample.ts | 43 - .../samples-dev/clustersDeploySample.ts | 78 - .../samples-dev/clustersGetSample.ts | 40 - .../clustersListByResourceGroupSample.ts | 44 - .../clustersListBySubscriptionSample.ts | 40 - .../samples-dev/clustersUpdateSample.ts | 122 - .../clustersUpdateVersionSample.ts | 50 - .../consolesCreateOrUpdateSample.ts | 61 - .../samples-dev/consolesDeleteSample.ts | 45 - .../samples-dev/consolesGetSample.ts | 45 - .../consolesListByVirtualMachineSample.ts | 46 - .../samples-dev/consolesUpdateSample.ts | 60 - .../kubernetesClustersCreateOrUpdateSample.ts | 195 - .../kubernetesClustersDeleteSample.ts | 43 - .../kubernetesClustersGetSample.ts | 43 - ...rnetesClustersListByResourceGroupSample.ts | 44 - ...ernetesClustersListBySubscriptionSample.ts | 40 - .../kubernetesClustersRestartNodeSample.ts | 50 - .../kubernetesClustersUpdateSample.ts | 56 - .../l2NetworksCreateOrUpdateSample.ts | 57 - .../samples-dev/l2NetworksDeleteSample.ts | 43 - .../samples-dev/l2NetworksGetSample.ts | 40 - .../l2NetworksListByResourceGroupSample.ts | 44 - .../l2NetworksListBySubscriptionSample.ts | 40 - .../samples-dev/l2NetworksUpdateSample.ts | 52 - .../l3NetworksCreateOrUpdateSample.ts | 60 - .../samples-dev/l3NetworksDeleteSample.ts | 43 - .../samples-dev/l3NetworksGetSample.ts | 40 - .../l3NetworksListByResourceGroupSample.ts | 44 - .../l3NetworksListBySubscriptionSample.ts | 40 - .../samples-dev/l3NetworksUpdateSample.ts | 52 - ...tricsConfigurationsCreateOrUpdateSample.ts | 60 - .../metricsConfigurationsDeleteSample.ts | 45 - .../metricsConfigurationsGetSample.ts | 45 - ...etricsConfigurationsListByClusterSample.ts | 46 - .../metricsConfigurationsUpdateSample.ts | 58 - .../samples-dev/operationsListSample.ts | 40 - .../samples-dev/rackSkusGetSample.ts | 38 - .../rackSkusListBySubscriptionSample.ts | 40 - .../samples-dev/racksCreateOrUpdateSample.ts | 59 - .../samples-dev/racksDeleteSample.ts | 45 - .../samples-dev/racksGetSample.ts | 40 - .../racksListByResourceGroupSample.ts | 42 - .../racksListBySubscriptionSample.ts | 40 - .../samples-dev/racksUpdateSample.ts | 54 - .../storageAppliancesCreateOrUpdateSample.ts | 61 - .../storageAppliancesDeleteSample.ts | 45 - ...ncesDisableRemoteVendorManagementSample.ts | 43 - ...ancesEnableRemoteVendorManagementSample.ts | 54 - .../samples-dev/storageAppliancesGetSample.ts | 43 - ...rageAppliancesListByResourceGroupSample.ts | 44 - ...orageAppliancesListBySubscriptionSample.ts | 40 - .../storageAppliancesUpdateSample.ts | 55 - .../trunkedNetworksCreateOrUpdateSample.ts | 59 - .../trunkedNetworksDeleteSample.ts | 43 - .../samples-dev/trunkedNetworksGetSample.ts | 43 - ...runkedNetworksListByResourceGroupSample.ts | 44 - ...trunkedNetworksListBySubscriptionSample.ts | 40 - .../trunkedNetworksUpdateSample.ts | 54 - .../virtualMachinesCreateOrUpdateSample.ts | 107 - .../virtualMachinesDeleteSample.ts | 43 - .../samples-dev/virtualMachinesGetSample.ts | 43 - ...irtualMachinesListByResourceGroupSample.ts | 44 - ...virtualMachinesListBySubscriptionSample.ts | 40 - .../virtualMachinesPowerOffSample.ts | 54 - .../virtualMachinesReimageSample.ts | 43 - .../virtualMachinesRestartSample.ts | 43 - .../samples-dev/virtualMachinesStartSample.ts | 43 - .../virtualMachinesUpdateSample.ts | 59 - .../volumesCreateOrUpdateSample.ts | 54 - .../samples-dev/volumesDeleteSample.ts | 43 - .../samples-dev/volumesGetSample.ts | 40 - .../volumesListByResourceGroupSample.ts | 44 - .../volumesListBySubscriptionSample.ts | 40 - .../samples-dev/volumesUpdateSample.ts | 52 - .../samples/v1/javascript/README.md | 286 - .../agentPoolsCreateOrUpdateSample.js | 91 - .../v1/javascript/agentPoolsDeleteSample.js | 41 - .../v1/javascript/agentPoolsGetSample.js | 41 - ...agentPoolsListByKubernetesClusterSample.js | 42 - .../v1/javascript/agentPoolsUpdateSample.js | 48 - ...MetalMachineKeySetsCreateOrUpdateSample.js | 73 - .../bareMetalMachineKeySetsDeleteSample.js | 41 - .../bareMetalMachineKeySetsGetSample.js | 41 - ...eMetalMachineKeySetsListByClusterSample.js | 42 - .../bareMetalMachineKeySetsUpdateSample.js | 68 - .../bareMetalMachinesCordonSample.js | 46 - .../bareMetalMachinesCreateOrUpdateSample.js | 61 - .../bareMetalMachinesDeleteSample.js | 41 - .../javascript/bareMetalMachinesGetSample.js | 36 - ...eMetalMachinesListByResourceGroupSample.js | 38 - ...reMetalMachinesListBySubscriptionSample.js | 37 - .../bareMetalMachinesPowerOffSample.js | 46 - .../bareMetalMachinesReimageSample.js | 39 - .../bareMetalMachinesReplaceSample.js | 50 - .../bareMetalMachinesRestartSample.js | 39 - .../bareMetalMachinesRunCommandSample.js | 45 - .../bareMetalMachinesRunDataExtractsSample.js | 49 - .../bareMetalMachinesRunReadCommandsSample.js | 47 - .../bareMetalMachinesStartSample.js | 39 - .../bareMetalMachinesUncordonSample.js | 39 - .../bareMetalMachinesUpdateSample.js | 47 - .../bmcKeySetsCreateOrUpdateSample.js | 71 - .../v1/javascript/bmcKeySetsDeleteSample.js | 41 - .../v1/javascript/bmcKeySetsGetSample.js | 37 - .../bmcKeySetsListByClusterSample.js | 39 - .../v1/javascript/bmcKeySetsUpdateSample.js | 65 - ...oudServicesNetworksCreateOrUpdateSample.js | 60 - .../cloudServicesNetworksDeleteSample.js | 39 - .../cloudServicesNetworksGetSample.js | 39 - ...rvicesNetworksListByResourceGroupSample.js | 38 - ...ervicesNetworksListBySubscriptionSample.js | 37 - .../cloudServicesNetworksUpdateSample.js | 58 - .../clusterManagersCreateOrUpdateSample.js | 52 - .../javascript/clusterManagersDeleteSample.js | 39 - .../v1/javascript/clusterManagersGetSample.js | 36 - ...lusterManagersListByResourceGroupSample.js | 38 - ...clusterManagersListBySubscriptionSample.js | 37 - .../javascript/clusterManagersUpdateSample.js | 46 - .../clustersCreateOrUpdateSample.js | 144 - .../v1/javascript/clustersDeleteSample.js | 36 - .../v1/javascript/clustersDeploySample.js | 60 - .../v1/javascript/clustersGetSample.js | 36 - .../clustersListByResourceGroupSample.js | 38 - .../clustersListBySubscriptionSample.js | 37 - .../v1/javascript/clustersUpdateSample.js | 104 - .../javascript/clustersUpdateVersionSample.js | 43 - .../consolesCreateOrUpdateSample.js | 56 - .../v1/javascript/consolesDeleteSample.js | 41 - .../v1/javascript/consolesGetSample.js | 37 - .../consolesListByVirtualMachineSample.js | 42 - .../v1/javascript/consolesUpdateSample.js | 52 - .../kubernetesClustersCreateOrUpdateSample.js | 190 - .../kubernetesClustersDeleteSample.js | 39 - .../javascript/kubernetesClustersGetSample.js | 36 - ...rnetesClustersListByResourceGroupSample.js | 38 - ...ernetesClustersListBySubscriptionSample.js | 37 - .../kubernetesClustersRestartNodeSample.js | 43 - .../kubernetesClustersUpdateSample.js | 48 - .../l2NetworksCreateOrUpdateSample.js | 52 - .../v1/javascript/l2NetworksDeleteSample.js | 36 - .../v1/javascript/l2NetworksGetSample.js | 36 - .../l2NetworksListByResourceGroupSample.js | 38 - .../l2NetworksListBySubscriptionSample.js | 37 - .../v1/javascript/l2NetworksUpdateSample.js | 40 - .../l3NetworksCreateOrUpdateSample.js | 55 - .../v1/javascript/l3NetworksDeleteSample.js | 36 - .../v1/javascript/l3NetworksGetSample.js | 36 - .../l3NetworksListByResourceGroupSample.js | 38 - .../l3NetworksListBySubscriptionSample.js | 37 - .../v1/javascript/l3NetworksUpdateSample.js | 40 - ...tricsConfigurationsCreateOrUpdateSample.js | 52 - .../metricsConfigurationsDeleteSample.js | 41 - .../metricsConfigurationsGetSample.js | 41 - ...etricsConfigurationsListByClusterSample.js | 42 - .../metricsConfigurationsUpdateSample.js | 50 - .../v1/javascript/operationsListSample.js | 37 - .../samples/v1/javascript/package.json | 32 - .../v1/javascript/rackSkusGetSample.js | 35 - .../rackSkusListBySubscriptionSample.js | 37 - .../javascript/racksCreateOrUpdateSample.js | 54 - .../v1/javascript/racksDeleteSample.js | 38 - .../samples/v1/javascript/racksGetSample.js | 36 - .../racksListByResourceGroupSample.js | 38 - .../racksListBySubscriptionSample.js | 37 - .../v1/javascript/racksUpdateSample.js | 42 - .../samples/v1/javascript/sample.env | 4 - .../storageAppliancesCreateOrUpdateSample.js | 56 - .../storageAppliancesDeleteSample.js | 41 - ...ncesDisableRemoteVendorManagementSample.js | 39 - ...ancesEnableRemoteVendorManagementSample.js | 46 - .../javascript/storageAppliancesGetSample.js | 36 - ...rageAppliancesListByResourceGroupSample.js | 38 - ...orageAppliancesListBySubscriptionSample.js | 37 - .../storageAppliancesUpdateSample.js | 47 - .../trunkedNetworksCreateOrUpdateSample.js | 54 - .../javascript/trunkedNetworksDeleteSample.js | 39 - .../v1/javascript/trunkedNetworksGetSample.js | 36 - ...runkedNetworksListByResourceGroupSample.js | 38 - ...trunkedNetworksListBySubscriptionSample.js | 37 - .../javascript/trunkedNetworksUpdateSample.js | 46 - .../virtualMachinesCreateOrUpdateSample.js | 102 - .../javascript/virtualMachinesDeleteSample.js | 39 - .../v1/javascript/virtualMachinesGetSample.js | 36 - ...irtualMachinesListByResourceGroupSample.js | 38 - ...virtualMachinesListBySubscriptionSample.js | 37 - .../virtualMachinesPowerOffSample.js | 46 - .../virtualMachinesReimageSample.js | 39 - .../virtualMachinesRestartSample.js | 39 - .../javascript/virtualMachinesStartSample.js | 39 - .../javascript/virtualMachinesUpdateSample.js | 51 - .../javascript/volumesCreateOrUpdateSample.js | 49 - .../v1/javascript/volumesDeleteSample.js | 36 - .../samples/v1/javascript/volumesGetSample.js | 36 - .../volumesListByResourceGroupSample.js | 38 - .../volumesListBySubscriptionSample.js | 37 - .../v1/javascript/volumesUpdateSample.js | 40 - .../samples/v1/typescript/README.md | 299 - .../samples/v1/typescript/package.json | 41 - .../samples/v1/typescript/sample.env | 4 - .../src/agentPoolsCreateOrUpdateSample.ts | 96 - .../typescript/src/agentPoolsDeleteSample.ts | 45 - .../v1/typescript/src/agentPoolsGetSample.ts | 45 - ...agentPoolsListByKubernetesClusterSample.ts | 46 - .../typescript/src/agentPoolsUpdateSample.ts | 56 - ...MetalMachineKeySetsCreateOrUpdateSample.ts | 80 - .../bareMetalMachineKeySetsDeleteSample.ts | 45 - .../src/bareMetalMachineKeySetsGetSample.ts | 45 - ...eMetalMachineKeySetsListByClusterSample.ts | 46 - .../bareMetalMachineKeySetsUpdateSample.ts | 78 - .../src/bareMetalMachinesCordonSample.ts | 54 - .../bareMetalMachinesCreateOrUpdateSample.ts | 66 - .../src/bareMetalMachinesDeleteSample.ts | 45 - .../src/bareMetalMachinesGetSample.ts | 43 - ...eMetalMachinesListByResourceGroupSample.ts | 44 - ...reMetalMachinesListBySubscriptionSample.ts | 40 - .../src/bareMetalMachinesPowerOffSample.ts | 54 - .../src/bareMetalMachinesReimageSample.ts | 43 - .../src/bareMetalMachinesReplaceSample.ts | 58 - .../src/bareMetalMachinesRestartSample.ts | 43 - .../src/bareMetalMachinesRunCommandSample.ts | 52 - .../bareMetalMachinesRunDataExtractsSample.ts | 56 - .../bareMetalMachinesRunReadCommandsSample.ts | 54 - .../src/bareMetalMachinesStartSample.ts | 43 - .../src/bareMetalMachinesUncordonSample.ts | 43 - .../src/bareMetalMachinesUpdateSample.ts | 55 - .../src/bmcKeySetsCreateOrUpdateSample.ts | 78 - .../typescript/src/bmcKeySetsDeleteSample.ts | 45 - .../v1/typescript/src/bmcKeySetsGetSample.ts | 45 - .../src/bmcKeySetsListByClusterSample.ts | 46 - .../typescript/src/bmcKeySetsUpdateSample.ts | 75 - ...oudServicesNetworksCreateOrUpdateSample.ts | 65 - .../src/cloudServicesNetworksDeleteSample.ts | 43 - .../src/cloudServicesNetworksGetSample.ts | 43 - ...rvicesNetworksListByResourceGroupSample.ts | 44 - ...ervicesNetworksListBySubscriptionSample.ts | 40 - .../src/cloudServicesNetworksUpdateSample.ts | 66 - .../clusterManagersCreateOrUpdateSample.ts | 56 - .../src/clusterManagersDeleteSample.ts | 43 - .../src/clusterManagersGetSample.ts | 43 - ...lusterManagersListByResourceGroupSample.ts | 44 - ...clusterManagersListBySubscriptionSample.ts | 40 - .../src/clusterManagersUpdateSample.ts | 54 - .../src/clustersCreateOrUpdateSample.ts | 149 - .../v1/typescript/src/clustersDeleteSample.ts | 43 - .../v1/typescript/src/clustersDeploySample.ts | 78 - .../v1/typescript/src/clustersGetSample.ts | 40 - .../src/clustersListByResourceGroupSample.ts | 44 - .../src/clustersListBySubscriptionSample.ts | 40 - .../v1/typescript/src/clustersUpdateSample.ts | 122 - .../src/clustersUpdateVersionSample.ts | 50 - .../src/consolesCreateOrUpdateSample.ts | 61 - .../v1/typescript/src/consolesDeleteSample.ts | 45 - .../v1/typescript/src/consolesGetSample.ts | 45 - .../src/consolesListByVirtualMachineSample.ts | 46 - .../v1/typescript/src/consolesUpdateSample.ts | 60 - .../kubernetesClustersCreateOrUpdateSample.ts | 195 - .../src/kubernetesClustersDeleteSample.ts | 43 - .../src/kubernetesClustersGetSample.ts | 43 - ...rnetesClustersListByResourceGroupSample.ts | 44 - ...ernetesClustersListBySubscriptionSample.ts | 40 - .../kubernetesClustersRestartNodeSample.ts | 50 - .../src/kubernetesClustersUpdateSample.ts | 56 - .../src/l2NetworksCreateOrUpdateSample.ts | 57 - .../typescript/src/l2NetworksDeleteSample.ts | 43 - .../v1/typescript/src/l2NetworksGetSample.ts | 40 - .../l2NetworksListByResourceGroupSample.ts | 44 - .../src/l2NetworksListBySubscriptionSample.ts | 40 - .../typescript/src/l2NetworksUpdateSample.ts | 52 - .../src/l3NetworksCreateOrUpdateSample.ts | 60 - .../typescript/src/l3NetworksDeleteSample.ts | 43 - .../v1/typescript/src/l3NetworksGetSample.ts | 40 - .../l3NetworksListByResourceGroupSample.ts | 44 - .../src/l3NetworksListBySubscriptionSample.ts | 40 - .../typescript/src/l3NetworksUpdateSample.ts | 52 - ...tricsConfigurationsCreateOrUpdateSample.ts | 60 - .../src/metricsConfigurationsDeleteSample.ts | 45 - .../src/metricsConfigurationsGetSample.ts | 45 - ...etricsConfigurationsListByClusterSample.ts | 46 - .../src/metricsConfigurationsUpdateSample.ts | 58 - .../v1/typescript/src/operationsListSample.ts | 40 - .../v1/typescript/src/rackSkusGetSample.ts | 38 - .../src/rackSkusListBySubscriptionSample.ts | 40 - .../src/racksCreateOrUpdateSample.ts | 59 - .../v1/typescript/src/racksDeleteSample.ts | 45 - .../v1/typescript/src/racksGetSample.ts | 40 - .../src/racksListByResourceGroupSample.ts | 42 - .../src/racksListBySubscriptionSample.ts | 40 - .../v1/typescript/src/racksUpdateSample.ts | 54 - .../storageAppliancesCreateOrUpdateSample.ts | 61 - .../src/storageAppliancesDeleteSample.ts | 45 - ...ncesDisableRemoteVendorManagementSample.ts | 43 - ...ancesEnableRemoteVendorManagementSample.ts | 54 - .../src/storageAppliancesGetSample.ts | 43 - ...rageAppliancesListByResourceGroupSample.ts | 44 - ...orageAppliancesListBySubscriptionSample.ts | 40 - .../src/storageAppliancesUpdateSample.ts | 55 - .../trunkedNetworksCreateOrUpdateSample.ts | 59 - .../src/trunkedNetworksDeleteSample.ts | 43 - .../src/trunkedNetworksGetSample.ts | 43 - ...runkedNetworksListByResourceGroupSample.ts | 44 - ...trunkedNetworksListBySubscriptionSample.ts | 40 - .../src/trunkedNetworksUpdateSample.ts | 54 - .../virtualMachinesCreateOrUpdateSample.ts | 107 - .../src/virtualMachinesDeleteSample.ts | 43 - .../src/virtualMachinesGetSample.ts | 43 - ...irtualMachinesListByResourceGroupSample.ts | 44 - ...virtualMachinesListBySubscriptionSample.ts | 40 - .../src/virtualMachinesPowerOffSample.ts | 54 - .../src/virtualMachinesReimageSample.ts | 43 - .../src/virtualMachinesRestartSample.ts | 43 - .../src/virtualMachinesStartSample.ts | 43 - .../src/virtualMachinesUpdateSample.ts | 59 - .../src/volumesCreateOrUpdateSample.ts | 54 - .../v1/typescript/src/volumesDeleteSample.ts | 43 - .../v1/typescript/src/volumesGetSample.ts | 40 - .../src/volumesListByResourceGroupSample.ts | 44 - .../src/volumesListBySubscriptionSample.ts | 40 - .../v1/typescript/src/volumesUpdateSample.ts | 52 - .../samples/v1/typescript/tsconfig.json | 17 - .../arm-networkcloud/src/lroImpl.ts | 6 +- .../arm-networkcloud/src/models/index.ts | 1138 ++- .../arm-networkcloud/src/models/mappers.ts | 6219 ++++++++++------- .../arm-networkcloud/src/models/parameters.ts | 336 +- .../arm-networkcloud/src/networkCloud.ts | 39 +- .../src/operations/agentPools.ts | 245 +- .../src/operations/bareMetalMachineKeySets.ts | 245 +- .../src/operations/bareMetalMachines.ts | 760 +- .../src/operations/bmcKeySets.ts | 241 +- .../src/operations/cloudServicesNetworks.ts | 274 +- .../src/operations/clusterManagers.ts | 243 +- .../src/operations/clusters.ts | 637 +- .../src/operations/consoles.ts | 241 +- .../arm-networkcloud/src/operations/index.ts | 1 + .../operations/kubernetesClusterFeatures.ts | 654 ++ .../src/operations/kubernetesClusters.ts | 324 +- .../src/operations/l2Networks.ts | 241 +- .../src/operations/l3Networks.ts | 241 +- .../src/operations/metricsConfigurations.ts | 245 +- .../src/operations/operations.ts | 32 +- .../src/operations/rackSkus.ts | 56 +- .../arm-networkcloud/src/operations/racks.ts | 265 +- .../src/operations/storageAppliances.ts | 370 +- .../src/operations/trunkedNetworks.ts | 243 +- .../src/operations/virtualMachines.ts | 466 +- .../src/operations/volumes.ts | 241 +- .../src/operationsInterfaces/agentPools.ts | 28 +- .../bareMetalMachineKeySets.ts | 28 +- .../operationsInterfaces/bareMetalMachines.ts | 70 +- .../src/operationsInterfaces/bmcKeySets.ts | 28 +- .../cloudServicesNetworks.ts | 30 +- .../operationsInterfaces/clusterManagers.ts | 28 +- .../src/operationsInterfaces/clusters.ts | 109 +- .../src/operationsInterfaces/consoles.ts | 28 +- .../src/operationsInterfaces/index.ts | 1 + .../kubernetesClusterFeatures.ts | 150 + .../kubernetesClusters.ts | 34 +- .../src/operationsInterfaces/l2Networks.ts | 28 +- .../src/operationsInterfaces/l3Networks.ts | 28 +- .../metricsConfigurations.ts | 28 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/rackSkus.ts | 6 +- .../src/operationsInterfaces/racks.ts | 27 +- .../operationsInterfaces/storageAppliances.ts | 38 +- .../operationsInterfaces/trunkedNetworks.ts | 28 +- .../operationsInterfaces/virtualMachines.ts | 46 +- .../src/operationsInterfaces/volumes.ts | 28 +- .../arm-networkcloud/src/pagingHelper.ts | 2 +- .../test/networkcloud_operations_test.spec.ts | 72 - .../arm-networkcloud/test/sampleTest.ts | 43 + .../arm-networkcloud/tsconfig.json | 10 +- 423 files changed, 9713 insertions(+), 24576 deletions(-) delete mode 100644 sdk/networkcloud/arm-networkcloud/assets.json delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json create mode 100644 sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts create mode 100644 sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts delete mode 100644 sdk/networkcloud/arm-networkcloud/test/networkcloud_operations_test.spec.ts create mode 100644 sdk/networkcloud/arm-networkcloud/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 07a389eaa442..2efc18b0658f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10488,6 +10488,37 @@ packages: yn: 3.1.1 dev: false + /ts-node@10.9.2(@types/node@18.19.50)(typescript@5.5.4): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.19.50 + acorn: 8.12.1 + acorn-walk: 8.3.4 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.5.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.2(@types/node@18.19.50)(typescript@5.6.2): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -13742,7 +13773,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-Wl42MhvqkSN9qt7aI2dq9MoSjUPhKs9Vd7ph4z1NDv/4+Tr5TThGfXEcF6li2/uyM/oej6wCchIOXcN+x5t8Ug==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-giEQbgQSPKX5IztgAepOuRLfULJTB4rv9RXCMFBYOh9cAjTSCfDW5HXmQ9KyPDtFJ1XAEtWRzIcIqEb+93rJ1A==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -16890,7 +16921,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-8h61VDXkOPtIMZT92EqmVtbZ89phYJWTVGzUUh8SdQZbTxT+zRQQGfK8Eca+/fzv9AtEXNAcgizxuJDgE4L+fg==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-Nq88YvS1oW21EICT8EFnrL+paI58hWaMG+uC5q1eTlslUbzmeOq97hz3S7D4m5OvHzga0faXuLeH4Ad3sqn9Cw==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -16909,9 +16940,10 @@ packages: mkdirp: 3.0.1 mocha: 10.7.3 rimraf: 5.0.10 - ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.6.2) + ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.5.4) tslib: 2.7.0 - typescript: 5.6.2 + tsx: 4.19.1 + typescript: 5.5.4 uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/networkcloud/arm-networkcloud/CHANGELOG.md b/sdk/networkcloud/arm-networkcloud/CHANGELOG.md index 60d984a9420e..d35b5762a713 100644 --- a/sdk/networkcloud/arm-networkcloud/CHANGELOG.md +++ b/sdk/networkcloud/arm-networkcloud/CHANGELOG.md @@ -1,5 +1,142 @@ # Release History +## 1.1.0 (2024-09-24) + +### Features Added + + - Added operation group KubernetesClusterFeatures + - Added operation Clusters.beginContinueUpdateVersion + - Added operation Clusters.beginContinueUpdateVersionAndWait + - Added operation Clusters.beginScanRuntime + - Added operation Clusters.beginScanRuntimeAndWait + - Added Interface AdministratorConfigurationPatch + - Added Interface ClusterContinueUpdateVersionParameters + - Added Interface ClusterScanRuntimeParameters + - Added Interface ClustersContinueUpdateVersionHeaders + - Added Interface ClustersContinueUpdateVersionOptionalParams + - Added Interface ClusterSecretArchive + - Added Interface ClustersScanRuntimeHeaders + - Added Interface ClustersScanRuntimeOptionalParams + - Added Interface ClusterUpdateStrategy + - Added Interface CommandOutputSettings + - Added Interface IdentitySelector + - Added Interface KubernetesClusterFeature + - Added Interface KubernetesClusterFeatureList + - Added Interface KubernetesClusterFeaturePatchParameters + - Added Interface KubernetesClusterFeaturesCreateOrUpdateHeaders + - Added Interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams + - Added Interface KubernetesClusterFeaturesDeleteHeaders + - Added Interface KubernetesClusterFeaturesDeleteOptionalParams + - Added Interface KubernetesClusterFeaturesGetOptionalParams + - Added Interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams + - Added Interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams + - Added Interface KubernetesClusterFeaturesUpdateHeaders + - Added Interface KubernetesClusterFeaturesUpdateOptionalParams + - Added Interface L2ServiceLoadBalancerConfiguration + - Added Interface ManagedServiceIdentity + - Added Interface NodePoolAdministratorConfigurationPatch + - Added Interface RuntimeProtectionConfiguration + - Added Interface RuntimeProtectionStatus + - Added Interface SecretArchiveReference + - Added Interface SecretRotationStatus + - Added Interface StringKeyValuePair + - Added Interface UserAssignedIdentity + - Added Type Alias AgentPoolsDeleteResponse + - Added Type Alias BareMetalMachineKeySetsDeleteResponse + - Added Type Alias BareMetalMachinesDeleteResponse + - Added Type Alias BmcKeySetsDeleteResponse + - Added Type Alias CloudServicesNetworksDeleteResponse + - Added Type Alias ClusterContinueUpdateVersionMachineGroupTargetingMode + - Added Type Alias ClusterManagersDeleteResponse + - Added Type Alias ClusterScanRuntimeParametersScanActivity + - Added Type Alias ClustersContinueUpdateVersionResponse + - Added Type Alias ClustersDeleteResponse + - Added Type Alias ClusterSecretArchiveEnabled + - Added Type Alias ClustersScanRuntimeResponse + - Added Type Alias ClusterUpdateStrategyType + - Added Type Alias ConsolesDeleteResponse + - Added Type Alias KubernetesClusterFeatureAvailabilityLifecycle + - Added Type Alias KubernetesClusterFeatureDetailedStatus + - Added Type Alias KubernetesClusterFeatureProvisioningState + - Added Type Alias KubernetesClusterFeatureRequired + - Added Type Alias KubernetesClusterFeaturesCreateOrUpdateResponse + - Added Type Alias KubernetesClusterFeaturesDeleteResponse + - Added Type Alias KubernetesClusterFeaturesGetResponse + - Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterNextResponse + - Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterResponse + - Added Type Alias KubernetesClusterFeaturesUpdateResponse + - Added Type Alias KubernetesClustersDeleteResponse + - Added Type Alias L2NetworksDeleteResponse + - Added Type Alias L3NetworksDeleteResponse + - Added Type Alias ManagedServiceIdentitySelectorType + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias MetricsConfigurationsDeleteResponse + - Added Type Alias RacksDeleteResponse + - Added Type Alias RuntimeProtectionEnforcementLevel + - Added Type Alias StorageAppliancesDeleteResponse + - Added Type Alias TrunkedNetworksDeleteResponse + - Added Type Alias VirtualMachinesDeleteResponse + - Added Type Alias VolumesDeleteResponse + - Interface AgentPoolPatchParameters has a new optional parameter administratorConfiguration + - Interface AgentPoolsUpdateHeaders has a new optional parameter location + - Interface AgentPoolUpgradeSettings has a new optional parameter drainTimeout + - Interface AgentPoolUpgradeSettings has a new optional parameter maxUnavailable + - Interface BareMetalMachine has a new optional parameter machineClusterVersion + - Interface BareMetalMachine has a new optional parameter machineRoles + - Interface BareMetalMachine has a new optional parameter runtimeProtectionStatus + - Interface BareMetalMachine has a new optional parameter secretRotationStatus + - Interface BareMetalMachineKeySetsUpdateHeaders has a new optional parameter location + - Interface BareMetalMachinesUpdateHeaders has a new optional parameter location + - Interface BmcKeySetsUpdateHeaders has a new optional parameter location + - Interface CloudServicesNetworksUpdateHeaders has a new optional parameter location + - Interface Cluster has a new optional parameter commandOutputSettings + - Interface Cluster has a new optional parameter identity + - Interface Cluster has a new optional parameter runtimeProtectionConfiguration + - Interface Cluster has a new optional parameter secretArchive + - Interface Cluster has a new optional parameter updateStrategy + - Interface ClusterManager has a new optional parameter identity + - Interface ClusterManagerPatchParameters has a new optional parameter identity + - Interface ClusterPatchParameters has a new optional parameter commandOutputSettings + - Interface ClusterPatchParameters has a new optional parameter identity + - Interface ClusterPatchParameters has a new optional parameter runtimeProtectionConfiguration + - Interface ClusterPatchParameters has a new optional parameter secretArchive + - Interface ClusterPatchParameters has a new optional parameter updateStrategy + - Interface ClustersUpdateHeaders has a new optional parameter location + - Interface ConsolesUpdateHeaders has a new optional parameter location + - Interface ControlPlaneNodePatchConfiguration has a new optional parameter administratorConfiguration + - Interface KeySetUser has a new optional parameter userPrincipalName + - Interface KubernetesClusterPatchParameters has a new optional parameter administratorConfiguration + - Interface KubernetesClustersUpdateHeaders has a new optional parameter location + - Interface MetricsConfigurationsUpdateHeaders has a new optional parameter location + - Interface NetworkConfiguration has a new optional parameter l2ServiceLoadBalancerConfiguration + - Interface OperationStatusResult has a new optional parameter exitCode + - Interface OperationStatusResult has a new optional parameter outputHead + - Interface OperationStatusResult has a new optional parameter resultRef + - Interface OperationStatusResult has a new optional parameter resultUrl + - Interface RacksUpdateHeaders has a new optional parameter location + - Interface StorageAppliance has a new optional parameter manufacturer + - Interface StorageAppliance has a new optional parameter model + - Interface StorageAppliance has a new optional parameter secretRotationStatus + - Interface StorageAppliance has a new optional parameter version + - Interface StorageAppliancesUpdateHeaders has a new optional parameter location + - Interface VirtualMachinesUpdateHeaders has a new optional parameter location + - Added Enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode + - Added Enum KnownClusterScanRuntimeParametersScanActivity + - Added Enum KnownClusterSecretArchiveEnabled + - Added Enum KnownClusterUpdateStrategyType + - Added Enum KnownKubernetesClusterFeatureAvailabilityLifecycle + - Added Enum KnownKubernetesClusterFeatureDetailedStatus + - Added Enum KnownKubernetesClusterFeatureProvisioningState + - Added Enum KnownKubernetesClusterFeatureRequired + - Added Enum KnownManagedServiceIdentitySelectorType + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownRuntimeProtectionEnforcementLevel + - Enum KnownClusterConnectionStatus has a new value Disconnected + - Enum KnownClusterDetailedStatus has a new value UpdatePaused + - Enum KnownRackSkuProvisioningState has a new value Canceled + - Enum KnownRackSkuProvisioningState has a new value Failed + + ## 1.0.0 (2023-08-22) -The package of @azure/arm-networkcloud is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-networkcloud 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/networkcloud/arm-networkcloud/LICENSE b/sdk/networkcloud/arm-networkcloud/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/networkcloud/arm-networkcloud/LICENSE +++ b/sdk/networkcloud/arm-networkcloud/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/networkcloud/arm-networkcloud/README.md b/sdk/networkcloud/arm-networkcloud/README.md index 26ebda613e81..b8b0485f3e1b 100644 --- a/sdk/networkcloud/arm-networkcloud/README.md +++ b/sdk/networkcloud/arm-networkcloud/README.md @@ -2,7 +2,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure NetworkCloud client. -The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. +The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkcloud) | diff --git a/sdk/networkcloud/arm-networkcloud/_meta.json b/sdk/networkcloud/arm-networkcloud/_meta.json index 5fd598b8576b..04a9670f04cb 100644 --- a/sdk/networkcloud/arm-networkcloud/_meta.json +++ b/sdk/networkcloud/arm-networkcloud/_meta.json @@ -1,8 +1,8 @@ { - "commit": "bcfe02ef3ec205b5e52d927680d5c5f261c20a7a", + "commit": "aeedd5953a39fe9054ec193d56e025b375fb659e", "readme": "specification/networkcloud/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\\networkcloud\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/networkcloud/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.14", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/assets.json b/sdk/networkcloud/arm-networkcloud/assets.json deleted file mode 100644 index a9a2c2cfbbee..000000000000 --- a/sdk/networkcloud/arm-networkcloud/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/networkcloud/arm-networkcloud", - "Tag": "js/networkcloud/arm-networkcloud_02907c4af7" -} diff --git a/sdk/networkcloud/arm-networkcloud/package.json b/sdk/networkcloud/arm-networkcloud/package.json index 331ed862b244..ee2c82efaf4a 100644 --- a/sdk/networkcloud/arm-networkcloud/package.json +++ b/sdk/networkcloud/arm-networkcloud/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkCloud.", - "version": "1.0.0", + "version": "1.1.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,21 +30,22 @@ "devDependencies": { "@microsoft/api-extractor": "^7.31.1", "mkdirp": "^3.0.1", - "typescript": "~5.6.2", + "typescript": "~5.5.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^4.0.1", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.2.1", "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud" +} \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md b/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md index 8734d2d72ecb..3cb4a58176fd 100644 --- a/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md +++ b/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md @@ -30,6 +30,11 @@ export interface AdministratorConfiguration { sshPublicKeys?: SshPublicKey[]; } +// @public +export interface AdministratorConfigurationPatch { + sshPublicKeys?: SshPublicKey[]; +} + // @public export type AdvertiseToFabric = string; @@ -86,6 +91,7 @@ export type AgentPoolMode = string; // @public export interface AgentPoolPatchParameters { + administratorConfiguration?: NodePoolAdministratorConfigurationPatch; count?: number; tags?: { [propertyName: string]: string; @@ -100,8 +106,8 @@ export type AgentPoolProvisioningState = string; export interface AgentPools { beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise, AgentPoolsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise, AgentPoolsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsUpdateOptionalParams): Promise, AgentPoolsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsGetOptionalParams): Promise; @@ -133,6 +139,9 @@ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type AgentPoolsDeleteResponse = OperationStatusResult; + // @public export interface AgentPoolsGetOptionalParams extends coreClient.OperationOptions { } @@ -157,6 +166,7 @@ export type AgentPoolsListByKubernetesClusterResponse = AgentPoolList; // @public export interface AgentPoolsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -171,7 +181,9 @@ export type AgentPoolsUpdateResponse = AgentPool; // @public export interface AgentPoolUpgradeSettings { + drainTimeout?: number; maxSurge?: string; + maxUnavailable?: string; } // @public @@ -207,8 +219,10 @@ export interface BareMetalMachine extends TrackedResource { readonly hybridAksClustersAssociatedIds?: string[]; readonly kubernetesNodeName?: string; readonly kubernetesVersion?: string; + machineClusterVersion?: string; machineDetails: string; machineName: string; + readonly machineRoles?: string[]; machineSkuId: string; readonly oamIpv4Address?: string; readonly oamIpv6Address?: string; @@ -218,6 +232,8 @@ export interface BareMetalMachine extends TrackedResource { rackId: string; rackSlot: number; readonly readyState?: BareMetalMachineReadyState; + readonly runtimeProtectionStatus?: RuntimeProtectionStatus; + readonly secretRotationStatus?: SecretRotationStatus[]; serialNumber: string; readonly serviceTag?: string; readonly virtualMachinesAssociatedIds?: string[]; @@ -303,8 +319,8 @@ export type BareMetalMachineKeySetProvisioningState = string; export interface BareMetalMachineKeySets { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams): Promise, BareMetalMachineKeySetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise, BareMetalMachineKeySetsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsUpdateOptionalParams): Promise, BareMetalMachineKeySetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsGetOptionalParams): Promise; @@ -336,6 +352,9 @@ export interface BareMetalMachineKeySetsDeleteOptionalParams extends coreClient. updateIntervalInMs?: number; } +// @public +export type BareMetalMachineKeySetsDeleteResponse = OperationStatusResult; + // @public export interface BareMetalMachineKeySetsGetOptionalParams extends coreClient.OperationOptions { } @@ -360,6 +379,7 @@ export type BareMetalMachineKeySetsListByClusterResponse = BareMetalMachineKeySe // @public export interface BareMetalMachineKeySetsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -437,8 +457,8 @@ export interface BareMetalMachines { beginCordonAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesCordonOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, options?: BareMetalMachinesCreateOrUpdateOptionalParams): Promise, BareMetalMachinesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, options?: BareMetalMachinesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise, BareMetalMachinesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise; beginPowerOff(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesPowerOffOptionalParams): Promise, BareMetalMachinesPowerOffResponse>>; beginPowerOffAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesPowerOffOptionalParams): Promise; beginReimage(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesReimageOptionalParams): Promise, BareMetalMachinesReimageResponse>>; @@ -504,6 +524,9 @@ export interface BareMetalMachinesDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } +// @public +export type BareMetalMachinesDeleteResponse = OperationStatusResult; + // @public export interface BareMetalMachinesGetOptionalParams extends coreClient.OperationOptions { } @@ -673,6 +696,7 @@ export type BareMetalMachinesUncordonResponse = OperationStatusResult; // @public export interface BareMetalMachinesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -749,8 +773,8 @@ export type BmcKeySetProvisioningState = string; export interface BmcKeySets { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, options?: BmcKeySetsCreateOrUpdateOptionalParams): Promise, BmcKeySetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, options?: BmcKeySetsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise, BmcKeySetsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsUpdateOptionalParams): Promise, BmcKeySetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsGetOptionalParams): Promise; @@ -782,6 +806,9 @@ export interface BmcKeySetsDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type BmcKeySetsDeleteResponse = OperationStatusResult; + // @public export interface BmcKeySetsGetOptionalParams extends coreClient.OperationOptions { } @@ -806,6 +833,7 @@ export type BmcKeySetsListByClusterResponse = BmcKeySetList; // @public export interface BmcKeySetsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -865,8 +893,8 @@ export type CloudServicesNetworkProvisioningState = string; export interface CloudServicesNetworks { beginCreateOrUpdate(resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, options?: CloudServicesNetworksCreateOrUpdateOptionalParams): Promise, CloudServicesNetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, options?: CloudServicesNetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise, CloudServicesNetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksUpdateOptionalParams): Promise, CloudServicesNetworksUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksUpdateOptionalParams): Promise; get(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksGetOptionalParams): Promise; @@ -899,6 +927,9 @@ export interface CloudServicesNetworksDeleteOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export type CloudServicesNetworksDeleteResponse = OperationStatusResult; + // @public export interface CloudServicesNetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -937,6 +968,7 @@ export type CloudServicesNetworksListBySubscriptionResponse = CloudServicesNetwo // @public export interface CloudServicesNetworksUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -963,17 +995,22 @@ export interface Cluster extends TrackedResource { clusterServicePrincipal?: ServicePrincipalInformation; clusterType: ClusterType; clusterVersion: string; + commandOutputSettings?: CommandOutputSettings; computeDeploymentThreshold?: ValidationThreshold; computeRackDefinitions?: RackDefinition[]; readonly detailedStatus?: ClusterDetailedStatus; readonly detailedStatusMessage?: string; extendedLocation: ExtendedLocation; readonly hybridAksExtendedLocation?: ExtendedLocation; + identity?: ManagedServiceIdentity; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly manualActionCount?: number; networkFabricId: string; readonly provisioningState?: ClusterProvisioningState; + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + secretArchive?: ClusterSecretArchive; readonly supportExpiryDate?: string; + updateStrategy?: ClusterUpdateStrategy; readonly workloadResourceIds?: string[]; } @@ -1008,6 +1045,14 @@ export interface ClusterCapacity { // @public export type ClusterConnectionStatus = string; +// @public +export type ClusterContinueUpdateVersionMachineGroupTargetingMode = string; + +// @public +export interface ClusterContinueUpdateVersionParameters { + machineGroupTargetingMode?: ClusterContinueUpdateVersionMachineGroupTargetingMode; +} + // @public export interface ClusterDeployParameters { skipValidationsForMachines?: string[]; @@ -1030,6 +1075,7 @@ export interface ClusterManager extends TrackedResource { readonly detailedStatus?: ClusterManagerDetailedStatus; readonly detailedStatusMessage?: string; fabricControllerId: string; + identity?: ManagedServiceIdentity; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly managerExtendedLocation?: ExtendedLocation; readonly provisioningState?: ClusterManagerProvisioningState; @@ -1050,6 +1096,7 @@ export interface ClusterManagerList { // @public export interface ClusterManagerPatchParameters { + identity?: ManagedServiceIdentity; tags?: { [propertyName: string]: string; }; @@ -1062,8 +1109,8 @@ export type ClusterManagerProvisioningState = string; export interface ClusterManagers { beginCreateOrUpdate(resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, options?: ClusterManagersCreateOrUpdateOptionalParams): Promise, ClusterManagersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, options?: ClusterManagersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise, ClusterManagersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ClusterManagersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ClusterManagersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -1095,6 +1142,9 @@ export interface ClusterManagersDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type ClusterManagersDeleteResponse = OperationStatusResult; + // @public export interface ClusterManagersGetOptionalParams extends coreClient.OperationOptions { } @@ -1175,11 +1225,16 @@ export interface ClusterPatchParameters { aggregatorOrSingleRackDefinition?: RackDefinition; clusterLocation?: string; clusterServicePrincipal?: ServicePrincipalInformation; + commandOutputSettings?: CommandOutputSettings; computeDeploymentThreshold?: ValidationThreshold; computeRackDefinitions?: RackDefinition[]; + identity?: ManagedServiceIdentity; + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + secretArchive?: ClusterSecretArchive; tags?: { [propertyName: string]: string; }; + updateStrategy?: ClusterUpdateStrategy; } // @public @@ -1187,12 +1242,16 @@ export type ClusterProvisioningState = string; // @public export interface Clusters { + beginContinueUpdateVersion(resourceGroupName: string, clusterName: string, clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, options?: ClustersContinueUpdateVersionOptionalParams): Promise, ClustersContinueUpdateVersionResponse>>; + beginContinueUpdateVersionAndWait(resourceGroupName: string, clusterName: string, clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, options?: ClustersContinueUpdateVersionOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, clusterName: string, clusterParameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise, ClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, clusterParameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, ClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; beginDeploy(resourceGroupName: string, clusterName: string, options?: ClustersDeployOptionalParams): Promise, ClustersDeployResponse>>; beginDeployAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeployOptionalParams): Promise; + beginScanRuntime(resourceGroupName: string, clusterName: string, options?: ClustersScanRuntimeOptionalParams): Promise, ClustersScanRuntimeResponse>>; + beginScanRuntimeAndWait(resourceGroupName: string, clusterName: string, options?: ClustersScanRuntimeOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, options?: ClustersUpdateOptionalParams): Promise, ClustersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, options?: ClustersUpdateOptionalParams): Promise; beginUpdateVersion(resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, options?: ClustersUpdateVersionOptionalParams): Promise, ClustersUpdateVersionResponse>>; @@ -1202,6 +1261,28 @@ export interface Clusters { listBySubscription(options?: ClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ClusterScanRuntimeParameters { + scanActivity?: ClusterScanRuntimeParametersScanActivity; +} + +// @public +export type ClusterScanRuntimeParametersScanActivity = string; + +// @public +export interface ClustersContinueUpdateVersionHeaders { + location?: string; +} + +// @public +export interface ClustersContinueUpdateVersionOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ClustersContinueUpdateVersionResponse = OperationStatusResult; + // @public export interface ClustersCreateOrUpdateHeaders { azureAsyncOperation?: string; @@ -1227,6 +1308,9 @@ export interface ClustersDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export type ClustersDeleteResponse = OperationStatusResult; + // @public export interface ClustersDeployHeaders { location?: string; @@ -1242,6 +1326,15 @@ export interface ClustersDeployOptionalParams extends coreClient.OperationOption // @public export type ClustersDeployResponse = OperationStatusResult; +// @public +export interface ClusterSecretArchive { + keyVaultId: string; + useKeyVault?: ClusterSecretArchiveEnabled; +} + +// @public +export type ClusterSecretArchiveEnabled = string; + // @public export interface ClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -1277,9 +1370,25 @@ export interface ClustersListBySubscriptionOptionalParams extends coreClient.Ope // @public export type ClustersListBySubscriptionResponse = ClusterList; +// @public +export interface ClustersScanRuntimeHeaders { + location?: string; +} + +// @public +export interface ClustersScanRuntimeOptionalParams extends coreClient.OperationOptions { + clusterScanRuntimeParameters?: ClusterScanRuntimeParameters; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ClustersScanRuntimeResponse = OperationStatusResult; + // @public export interface ClustersUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -1309,11 +1418,29 @@ export type ClustersUpdateVersionResponse = OperationStatusResult; // @public export type ClusterType = string; +// @public +export interface ClusterUpdateStrategy { + maxUnavailable?: number; + strategyType: ClusterUpdateStrategyType; + thresholdType: ValidationThresholdType; + thresholdValue: number; + waitTimeMinutes?: number; +} + +// @public +export type ClusterUpdateStrategyType = string; + // @public export interface ClusterUpdateVersionParameters { targetClusterVersion: string; } +// @public +export interface CommandOutputSettings { + associatedIdentity?: IdentitySelector; + containerUrl?: string; +} + // @public interface Console_2 extends TrackedResource { readonly detailedStatus?: ConsoleDetailedStatus; @@ -1357,8 +1484,8 @@ export type ConsoleProvisioningState = string; export interface Consoles { beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, consoleName: string, consoleParameters: Console_2, options?: ConsolesCreateOrUpdateOptionalParams): Promise, ConsolesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, consoleParameters: Console_2, options?: ConsolesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise, ConsolesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesUpdateOptionalParams): Promise, ConsolesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesUpdateOptionalParams): Promise; get(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesGetOptionalParams): Promise; @@ -1390,6 +1517,9 @@ export interface ConsolesDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export type ConsolesDeleteResponse = OperationStatusResult; + // @public export interface ConsolesGetOptionalParams extends coreClient.OperationOptions { } @@ -1414,6 +1544,7 @@ export type ConsolesListByVirtualMachineResponse = ConsoleList; // @public export interface ConsolesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -1439,6 +1570,7 @@ export interface ControlPlaneNodeConfiguration { // @public export interface ControlPlaneNodePatchConfiguration { + administratorConfiguration?: AdministratorConfigurationPatch; count?: number; } @@ -1539,6 +1671,12 @@ export type HybridAksIpamEnabled = string; // @public export type HybridAksPluginType = string; +// @public +export interface IdentitySelector { + identityType?: ManagedServiceIdentitySelectorType; + userAssignedIdentityResourceId?: string; +} + // @public export interface ImageRepositoryCredentials { password: string; @@ -1577,6 +1715,7 @@ export interface KeySetUser { azureUserName: string; description?: string; sshPublicKey: SshPublicKey; + userPrincipalName?: string; } // @public @@ -1777,10 +1916,16 @@ export enum KnownCloudServicesNetworkProvisioningState { // @public export enum KnownClusterConnectionStatus { Connected = "Connected", + Disconnected = "Disconnected", Timeout = "Timeout", Undefined = "Undefined" } +// @public +export enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode { + AlphaByRack = "AlphaByRack" +} + // @public export enum KnownClusterDetailedStatus { Degraded = "Degraded", @@ -1790,6 +1935,7 @@ export enum KnownClusterDetailedStatus { Failed = "Failed", PendingDeployment = "PendingDeployment", Running = "Running", + UpdatePaused = "UpdatePaused", Updating = "Updating" } @@ -1845,12 +1991,30 @@ export enum KnownClusterProvisioningState { Validating = "Validating" } +// @public +export enum KnownClusterScanRuntimeParametersScanActivity { + Scan = "Scan", + Skip = "Skip" +} + +// @public +export enum KnownClusterSecretArchiveEnabled { + False = "False", + True = "True" +} + // @public export enum KnownClusterType { MultiRack = "MultiRack", SingleRack = "SingleRack" } +// @public +export enum KnownClusterUpdateStrategyType { + PauseAfterRack = "PauseAfterRack", + Rack = "Rack" +} + // @public export enum KnownConsoleDetailedStatus { Error = "Error", @@ -1949,6 +2113,35 @@ export enum KnownKubernetesClusterDetailedStatus { Provisioning = "Provisioning" } +// @public +export enum KnownKubernetesClusterFeatureAvailabilityLifecycle { + GenerallyAvailable = "GenerallyAvailable", + Preview = "Preview" +} + +// @public +export enum KnownKubernetesClusterFeatureDetailedStatus { + Error = "Error", + Installed = "Installed", + Provisioning = "Provisioning" +} + +// @public +export enum KnownKubernetesClusterFeatureProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownKubernetesClusterFeatureRequired { + False = "False", + True = "True" +} + // @public export enum KnownKubernetesClusterNodeDetailedStatus { Available = "Available", @@ -2041,6 +2234,20 @@ export enum KnownMachineSkuDiskConnectionType { Sata = "SATA" } +// @public +export enum KnownManagedServiceIdentitySelectorType { + SystemAssignedIdentity = "SystemAssignedIdentity", + UserAssignedIdentity = "UserAssignedIdentity" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownOrigin { System = "system", @@ -2076,6 +2283,8 @@ export enum KnownRackProvisioningState { // @public export enum KnownRackSkuProvisioningState { + Canceled = "Canceled", + Failed = "Failed", Succeeded = "Succeeded" } @@ -2099,6 +2308,15 @@ export enum KnownRemoteVendorManagementStatus { Unsupported = "Unsupported" } +// @public +export enum KnownRuntimeProtectionEnforcementLevel { + Audit = "Audit", + Disabled = "Disabled", + OnDemand = "OnDemand", + Passive = "Passive", + RealTime = "RealTime" +} + // @public export enum KnownSkipShutdown { False = "False", @@ -2273,6 +2491,120 @@ export interface KubernetesCluster extends TrackedResource { // @public export type KubernetesClusterDetailedStatus = string; +// @public +export interface KubernetesClusterFeature extends TrackedResource { + readonly availabilityLifecycle?: KubernetesClusterFeatureAvailabilityLifecycle; + readonly detailedStatus?: KubernetesClusterFeatureDetailedStatus; + readonly detailedStatusMessage?: string; + options?: StringKeyValuePair[]; + readonly provisioningState?: KubernetesClusterFeatureProvisioningState; + readonly required?: KubernetesClusterFeatureRequired; + readonly version?: string; +} + +// @public +export type KubernetesClusterFeatureAvailabilityLifecycle = string; + +// @public +export type KubernetesClusterFeatureDetailedStatus = string; + +// @public +export interface KubernetesClusterFeatureList { + nextLink?: string; + value?: KubernetesClusterFeature[]; +} + +// @public +export interface KubernetesClusterFeaturePatchParameters { + options?: StringKeyValuePair[]; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type KubernetesClusterFeatureProvisioningState = string; + +// @public +export type KubernetesClusterFeatureRequired = string; + +// @public +export interface KubernetesClusterFeatures { + beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, featureName: string, kubernetesClusterFeatureParameters: KubernetesClusterFeature, options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams): Promise, KubernetesClusterFeaturesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, kubernetesClusterFeatureParameters: KubernetesClusterFeature, options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesDeleteOptionalParams): Promise, KubernetesClusterFeaturesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesUpdateOptionalParams): Promise, KubernetesClusterFeaturesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesUpdateOptionalParams): Promise; + get(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesGetOptionalParams): Promise; + listByKubernetesCluster(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KubernetesClusterFeaturesCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesCreateOrUpdateResponse = KubernetesClusterFeature; + +// @public +export interface KubernetesClusterFeaturesDeleteHeaders { + location?: string; +} + +// @public +export interface KubernetesClusterFeaturesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesDeleteResponse = OperationStatusResult; + +// @public +export interface KubernetesClusterFeaturesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesGetResponse = KubernetesClusterFeature; + +// @public +export interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesListByKubernetesClusterNextResponse = KubernetesClusterFeatureList; + +// @public +export interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesListByKubernetesClusterResponse = KubernetesClusterFeatureList; + +// @public +export interface KubernetesClusterFeaturesUpdateHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface KubernetesClusterFeaturesUpdateOptionalParams extends coreClient.OperationOptions { + kubernetesClusterFeatureUpdateParameters?: KubernetesClusterFeaturePatchParameters; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesUpdateResponse = KubernetesClusterFeature; + // @public export interface KubernetesClusterList { nextLink?: string; @@ -2306,6 +2638,7 @@ export type KubernetesClusterNodeDetailedStatus = string; // @public export interface KubernetesClusterPatchParameters { + administratorConfiguration?: AdministratorConfigurationPatch; controlPlaneNodeConfiguration?: ControlPlaneNodePatchConfiguration; kubernetesVersion?: string; tags?: { @@ -2325,8 +2658,8 @@ export interface KubernetesClusterRestartNodeParameters { export interface KubernetesClusters { beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, options?: KubernetesClustersCreateOrUpdateOptionalParams): Promise, KubernetesClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, options?: KubernetesClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise, KubernetesClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise; beginRestartNode(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, options?: KubernetesClustersRestartNodeOptionalParams): Promise, KubernetesClustersRestartNodeResponse>>; beginRestartNodeAndWait(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, options?: KubernetesClustersRestartNodeOptionalParams): Promise; beginUpdate(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersUpdateOptionalParams): Promise, KubernetesClustersUpdateResponse>>; @@ -2361,6 +2694,9 @@ export interface KubernetesClustersDeleteOptionalParams extends coreClient.Opera updateIntervalInMs?: number; } +// @public +export type KubernetesClustersDeleteResponse = OperationStatusResult; + // @public export interface KubernetesClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -2413,6 +2749,7 @@ export type KubernetesClustersRestartNodeResponse = OperationStatusResult; // @public export interface KubernetesClustersUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -2484,8 +2821,8 @@ export type L2NetworkProvisioningState = string; export interface L2Networks { beginCreateOrUpdate(resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, options?: L2NetworksCreateOrUpdateOptionalParams): Promise, L2NetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, options?: L2NetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise, L2NetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L2NetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L2NetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2517,6 +2854,9 @@ export interface L2NetworksDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type L2NetworksDeleteResponse = OperationStatusResult; + // @public export interface L2NetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -2560,6 +2900,11 @@ export interface L2NetworksUpdateOptionalParams extends coreClient.OperationOpti // @public export type L2NetworksUpdateResponse = L2Network; +// @public +export interface L2ServiceLoadBalancerConfiguration { + ipAddressPools?: IpAddressPool[]; +} + // @public export interface L3Network extends TrackedResource { readonly associatedResourceIds?: string[]; @@ -2613,8 +2958,8 @@ export type L3NetworkProvisioningState = string; export interface L3Networks { beginCreateOrUpdate(resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, options?: L3NetworksCreateOrUpdateOptionalParams): Promise, L3NetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, options?: L3NetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise, L3NetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L3NetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L3NetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2646,6 +2991,9 @@ export interface L3NetworksDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type L3NetworksDeleteResponse = OperationStatusResult; + // @public export interface L3NetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -2729,12 +3077,28 @@ export interface ManagedResourceGroupConfiguration { name?: string; } +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity | null; + }; +} + +// @public +export type ManagedServiceIdentitySelectorType = string; + +// @public +export type ManagedServiceIdentityType = string; + // @public export interface MetricsConfigurations { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, options?: MetricsConfigurationsCreateOrUpdateOptionalParams): Promise, MetricsConfigurationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, options?: MetricsConfigurationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise, MetricsConfigurationsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsUpdateOptionalParams): Promise, MetricsConfigurationsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsGetOptionalParams): Promise; @@ -2766,6 +3130,9 @@ export interface MetricsConfigurationsDeleteOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export type MetricsConfigurationsDeleteResponse = OperationStatusResult; + // @public export interface MetricsConfigurationsGetOptionalParams extends coreClient.OperationOptions { } @@ -2790,6 +3157,7 @@ export type MetricsConfigurationsListByClusterResponse = ClusterMetricsConfigura // @public export interface MetricsConfigurationsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -2837,6 +3205,8 @@ export class NetworkCloud extends coreClient.ServiceClient { // (undocumented) consoles: Consoles; // (undocumented) + kubernetesClusterFeatures: KubernetesClusterFeatures; + // (undocumented) kubernetesClusters: KubernetesClusters; // (undocumented) l2Networks: L2Networks; @@ -2876,6 +3246,7 @@ export interface NetworkConfiguration { cloudServicesNetworkId: string; cniNetworkId: string; dnsServiceIp?: string; + l2ServiceLoadBalancerConfiguration?: L2ServiceLoadBalancerConfiguration; podCidrs?: string[]; serviceCidrs?: string[]; } @@ -2898,6 +3269,11 @@ export interface Nic { readonly name?: string; } +// @public +export interface NodePoolAdministratorConfigurationPatch { + sshPublicKeys?: SshPublicKey[]; +} + // @public export interface Operation { readonly actionType?: ActionType; @@ -2942,14 +3318,18 @@ export type OperationsListResponse = OperationListResult; // @public export interface OperationStatusResult { - endTime?: Date; - error?: ErrorDetail; - id?: string; - name?: string; - operations?: OperationStatusResult[]; - percentComplete?: number; + readonly endTime?: Date; + readonly error?: ErrorDetail; + readonly exitCode?: string; + readonly id?: string; + readonly name?: string; + readonly operations?: OperationStatusResult[]; + readonly outputHead?: string; + readonly percentComplete?: number; readonly resourceId?: string; - startTime?: Date; + readonly resultRef?: string; + readonly resultUrl?: string; + readonly startTime?: Date; status: string; } @@ -3018,8 +3398,8 @@ export type RackProvisioningState = string; export interface Racks { beginCreateOrUpdate(resourceGroupName: string, rackName: string, rackParameters: Rack, options?: RacksCreateOrUpdateOptionalParams): Promise, RacksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, rackName: string, rackParameters: Rack, options?: RacksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise, RacksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, rackName: string, options?: RacksUpdateOptionalParams): Promise, RacksUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, rackName: string, options?: RacksUpdateOptionalParams): Promise; get(resourceGroupName: string, rackName: string, options?: RacksGetOptionalParams): Promise; @@ -3052,6 +3432,9 @@ export interface RacksDeleteOptionalParams extends coreClient.OperationOptions { updateIntervalInMs?: number; } +// @public +export type RacksDeleteResponse = OperationStatusResult; + // @public export interface RacksGetOptionalParams extends coreClient.OperationOptions { } @@ -3141,6 +3524,7 @@ export type RacksListBySubscriptionResponse = RackList; // @public export interface RacksUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3167,6 +3551,39 @@ export interface Resource { readonly type?: string; } +// @public +export interface RuntimeProtectionConfiguration { + enforcementLevel?: RuntimeProtectionEnforcementLevel; +} + +// @public +export type RuntimeProtectionEnforcementLevel = string; + +// @public +export interface RuntimeProtectionStatus { + readonly definitionsLastUpdated?: Date; + readonly definitionsVersion?: string; + readonly scanCompletedTime?: Date; + readonly scanScheduledTime?: Date; + readonly scanStartedTime?: Date; +} + +// @public +export interface SecretArchiveReference { + readonly keyVaultId?: string; + readonly secretName?: string; + readonly secretVersion?: string; +} + +// @public +export interface SecretRotationStatus { + readonly expirePeriodDays?: number; + readonly lastRotationTime?: Date; + readonly rotationPeriodDays?: number; + readonly secretArchiveReference?: SecretArchiveReference; + readonly secretType?: string; +} + // @public export interface ServiceLoadBalancerBgpPeer { bfdEnabled?: BfdEnabled; @@ -3207,13 +3624,17 @@ export interface StorageAppliance extends TrackedResource { readonly detailedStatusMessage?: string; extendedLocation: ExtendedLocation; readonly managementIpv4Address?: string; + readonly manufacturer?: string; + readonly model?: string; readonly provisioningState?: StorageApplianceProvisioningState; rackId: string; rackSlot: number; readonly remoteVendorManagementFeature?: RemoteVendorManagementFeature; readonly remoteVendorManagementStatus?: RemoteVendorManagementStatus; + readonly secretRotationStatus?: SecretRotationStatus[]; serialNumber: string; storageApplianceSkuId: string; + readonly version?: string; } // @public @@ -3253,8 +3674,8 @@ export type StorageApplianceProvisioningState = string; export interface StorageAppliances { beginCreateOrUpdate(resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, options?: StorageAppliancesCreateOrUpdateOptionalParams): Promise, StorageAppliancesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, options?: StorageAppliancesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise, StorageAppliancesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise; beginDisableRemoteVendorManagement(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams): Promise, StorageAppliancesDisableRemoteVendorManagementResponse>>; beginDisableRemoteVendorManagementAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams): Promise; beginEnableRemoteVendorManagement(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams): Promise, StorageAppliancesEnableRemoteVendorManagementResponse>>; @@ -3291,6 +3712,9 @@ export interface StorageAppliancesDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } +// @public +export type StorageAppliancesDeleteResponse = OperationStatusResult; + // @public export interface StorageAppliancesDisableRemoteVendorManagementHeaders { location?: string; @@ -3365,6 +3789,7 @@ export type StorageAppliancesListBySubscriptionResponse = StorageApplianceList; // @public export interface StorageAppliancesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3383,6 +3808,12 @@ export interface StorageProfile { volumeAttachments?: string[]; } +// @public +export interface StringKeyValuePair { + key: string; + value: string; +} + // @public export interface SystemData { createdAt?: Date; @@ -3453,8 +3884,8 @@ export type TrunkedNetworkProvisioningState = string; export interface TrunkedNetworks { beginCreateOrUpdate(resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, options?: TrunkedNetworksCreateOrUpdateOptionalParams): Promise, TrunkedNetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, options?: TrunkedNetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise, TrunkedNetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: TrunkedNetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: TrunkedNetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -3486,6 +3917,9 @@ export interface TrunkedNetworksDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type TrunkedNetworksDeleteResponse = OperationStatusResult; + // @public export interface TrunkedNetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -3529,6 +3963,12 @@ export interface TrunkedNetworksUpdateOptionalParams extends coreClient.Operatio // @public export type TrunkedNetworksUpdateResponse = TrunkedNetwork; +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + // @public export interface ValidationThreshold { grouping: ValidationThresholdGrouping; @@ -3629,8 +4069,8 @@ export type VirtualMachineProvisioningState = string; export interface VirtualMachines { beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise, VirtualMachinesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, VirtualMachinesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise; beginPowerOff(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise, VirtualMachinesPowerOffResponse>>; beginPowerOffAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise; beginReimage(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesReimageOptionalParams): Promise, VirtualMachinesReimageResponse>>; @@ -3674,6 +4114,9 @@ export interface VirtualMachinesDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type VirtualMachinesDeleteResponse = OperationStatusResult; + // @public export interface VirtualMachinesGetOptionalParams extends coreClient.OperationOptions { } @@ -3769,6 +4212,7 @@ export type VirtualMachinesStartResponse = OperationStatusResult; // @public export interface VirtualMachinesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3818,8 +4262,8 @@ export type VolumeProvisioningState = string; export interface Volumes { beginCreateOrUpdate(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise, VolumesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise, VolumesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise; get(resourceGroupName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: VolumesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: VolumesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -3851,6 +4295,9 @@ export interface VolumesDeleteOptionalParams extends coreClient.OperationOptions updateIntervalInMs?: number; } +// @public +export type VolumesDeleteResponse = OperationStatusResult; + // @public export interface VolumesGetOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts deleted file mode 100644 index a2076609325e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,96 +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 { AgentPool, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json - */ -async function createOrUpdateKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolParameters: AgentPool = { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - labels: [{ key: "kubernetes.label", value: "true" }], - location: "location", - mode: "System", - tags: { key1: "myvalue1", key2: "myvalue2" }, - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - agentPoolParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts deleted file mode 100644 index 00a8c645c664..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. - * - * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json - */ -async function deleteKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - deleteKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts deleted file mode 100644 index 001c12fe032d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. - * - * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json - */ -async function getKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.get( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - getKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts deleted file mode 100644 index 26a902bff4c7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. - * - * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json - */ -async function listAgentPoolsOfTheKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.agentPools.listByKubernetesCluster( - resourceGroupName, - kubernetesClusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAgentPoolsOfTheKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts deleted file mode 100644 index 14a95490d128..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts +++ /dev/null @@ -1,56 +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 { - AgentPoolPatchParameters, - AgentPoolsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json - */ -async function patchKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolUpdateParameters: AgentPoolPatchParameters = { - count: 3, - tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" } - }; - const options: AgentPoolsUpdateOptionalParams = { agentPoolUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts deleted file mode 100644 index cd503122977d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,80 +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 { BareMetalMachineKeySet, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. - * - * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json - */ -async function createOrUpdateBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetParameters: BareMetalMachineKeySet = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - location: "location", - osGroupName: "standardAccessGroup", - privilegeLevel: "Standard", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts deleted file mode 100644 index a77d3fbc7a38..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. - * - * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json - */ -async function deleteBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts deleted file mode 100644 index 0222668e85ef..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get bare metal machine key set of the provided cluster. - * - * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json - */ -async function getBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.get( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - getBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts deleted file mode 100644 index 5f796dbe3cae..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. - * - * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json - */ -async function listBareMetalMachineKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachineKeySets.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachineKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts deleted file mode 100644 index e5d05f5dcb2e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts +++ /dev/null @@ -1,78 +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 { - BareMetalMachineKeySetPatchParameters, - BareMetalMachineKeySetsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json - */ -async function patchBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const options: BareMetalMachineKeySetsUpdateOptionalParams = { - bareMetalMachineKeySetUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts deleted file mode 100644 index 72b512e3f0aa..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachineCordonParameters, - BareMetalMachinesCordonOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. - * - * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json - */ -async function cordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineCordonParameters: BareMetalMachineCordonParameters = { - evacuate: "True" - }; - const options: BareMetalMachinesCordonOptionalParams = { - bareMetalMachineCordonParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCordonAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - cordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts deleted file mode 100644 index cf5b87d83e1b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,66 +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 { BareMetalMachine, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json - */ -async function createOrUpdateBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineParameters: BareMetalMachine = { - bmcConnectionString: "bmcconnectionstring", - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:00", - bootMacAddress: "00:00:4e:00:58:af", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - machineDetails: "User-provided machine details.", - machineName: "r01c001", - machineSkuId: "684E-3B16-399E", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts deleted file mode 100644 index 147005ac3c2e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json - */ -async function deleteBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginDeleteAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts deleted file mode 100644 index 898d2ba8925d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided bare metal machine. - * - * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json - */ -async function getBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.get( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - getBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts deleted file mode 100644 index 7a9a6530455a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. - * - * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json - */ -async function listBareMetalMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts deleted file mode 100644 index 6d95b1f20189..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. - * - * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json - */ -async function listBareMetalMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts deleted file mode 100644 index cddf836b806c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachinePowerOffParameters, - BareMetalMachinesPowerOffOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Power off the provided bare metal machine. - * - * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json - */ -async function powerOffBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = { - skipShutdown: "True" - }; - const options: BareMetalMachinesPowerOffOptionalParams = { - bareMetalMachinePowerOffParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginPowerOffAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts deleted file mode 100644 index 17ec2c06cd2c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reimage the provided bare metal machine. - * - * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json - */ -async function reimageBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReimageAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - reimageBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts deleted file mode 100644 index 456671683c42..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts +++ /dev/null @@ -1,58 +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 { - BareMetalMachineReplaceParameters, - BareMetalMachinesReplaceOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Replace the provided bare metal machine. - * - * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json - */ -async function replaceBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineReplaceParameters: BareMetalMachineReplaceParameters = { - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:ad", - bootMacAddress: "00:00:4e:00:58:af", - machineName: "name", - serialNumber: "BM1219XXX" - }; - const options: BareMetalMachinesReplaceOptionalParams = { - bareMetalMachineReplaceParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReplaceAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - replaceBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts deleted file mode 100644 index 268c6231bda4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart the provided bare metal machine. - * - * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json - */ -async function restartBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRestartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - restartBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts deleted file mode 100644 index 26e4ef6dcd8c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts +++ /dev/null @@ -1,52 +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 { - BareMetalMachineRunCommandParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json - */ -async function runCommandOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = { - arguments: ["--argument1", "argument2"], - limitTimeSeconds: 60, - script: "cHdkCg==" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunCommandAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunCommandParameters - ); - console.log(result); -} - -async function main() { - runCommandOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts deleted file mode 100644 index ed96a9667e78..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts +++ /dev/null @@ -1,56 +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 { - BareMetalMachineRunDataExtractsParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json - */ -async function runDataExtractionOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = { - limitTimeSeconds: 60, - commands: [ - { - arguments: ["SysInfo", "TTYLog"], - command: "hardware-support-data-collection" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters - ); - console.log(result); -} - -async function main() { - runDataExtractionOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts deleted file mode 100644 index dc364daab0eb..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachineRunReadCommandsParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json - */ -async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = { - limitTimeSeconds: 60, - commands: [ - { arguments: ["pods", "-A"], command: "kubectl get" }, - { arguments: ["192.168.0.99", "-c", "3"], command: "ping" } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters - ); - console.log(result); -} - -async function main() { - runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts deleted file mode 100644 index 830553300277..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Start the provided bare metal machine. - * - * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json - */ -async function startBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginStartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - startBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts deleted file mode 100644 index cb5e1e772a42..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. - * - * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json - */ -async function uncordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUncordonAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - uncordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts deleted file mode 100644 index 988474b288a2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts +++ /dev/null @@ -1,55 +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 { - BareMetalMachinePatchParameters, - BareMetalMachinesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json - */ -async function patchBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineUpdateParameters: BareMetalMachinePatchParameters = { - machineDetails: "machinedetails", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: BareMetalMachinesUpdateOptionalParams = { - bareMetalMachineUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts deleted file mode 100644 index b1704a449e4f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,78 +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 { BmcKeySet, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. - * - * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json - */ -async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetParameters: BmcKeySet = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - privilegeLevel: "Administrator", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - bmcKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts deleted file mode 100644 index f322ca9e203f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. - * - * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json - */ -async function deleteBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bmcKeySetName - ); - console.log(result); -} - -async function main() { - deleteBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts deleted file mode 100644 index 96f12cd82c65..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. - * - * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json - */ -async function getBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.get( - resourceGroupName, - clusterName, - bmcKeySetName - ); - console.log(result); -} - -async function main() { - getBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts deleted file mode 100644 index fa5b51fd4454..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. - * - * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json - */ -async function listBaseboardManagementControllerKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bmcKeySets.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBaseboardManagementControllerKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts deleted file mode 100644 index 526c869570a3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts +++ /dev/null @@ -1,75 +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 { - BmcKeySetPatchParameters, - BmcKeySetsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json - */ -async function patchBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetUpdateParameters: BmcKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const options: BmcKeySetsUpdateOptionalParams = { bmcKeySetUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 751cfe345b6b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,65 +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 { CloudServicesNetwork, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. - * - * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json - */ -async function createOrUpdateCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkParameters: CloudServicesNetwork = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - cloudServicesNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts deleted file mode 100644 index 33e20d6ce77f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cloud services network. - * - * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json - */ -async function deleteCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginDeleteAndWait( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - deleteCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts deleted file mode 100644 index 10e3d8a5ad39..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided cloud services network. - * - * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json - */ -async function getCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.get( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - getCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts deleted file mode 100644 index b4762be0068b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. - * - * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json - */ -async function listCloudServicesNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts deleted file mode 100644 index 96508df8ece8..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. - * - * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json - */ -async function listCloudServicesNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts deleted file mode 100644 index 430b362f8c08..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts +++ /dev/null @@ -1,66 +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 { - CloudServicesNetworkPatchParameters, - CloudServicesNetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json - */ -async function patchCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: CloudServicesNetworksUpdateOptionalParams = { - cloudServicesNetworkUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts deleted file mode 100644 index d7c9fe357c13..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts +++ /dev/null @@ -1,56 +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 { ClusterManager, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. - * - * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json - */ -async function createOrUpdateClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerParameters: ClusterManager = { - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - fabricControllerId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterManagerName, - clusterManagerParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts deleted file mode 100644 index 89577c15b814..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cluster manager. - * - * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json - */ -async function deleteClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginDeleteAndWait( - resourceGroupName, - clusterManagerName - ); - console.log(result); -} - -async function main() { - deleteClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts deleted file mode 100644 index 7a1a29e11e85..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of the provided cluster manager. - * - * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json - */ -async function getClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.get( - resourceGroupName, - clusterManagerName - ); - console.log(result); -} - -async function main() { - getClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts deleted file mode 100644 index 16ccab096420..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided resource group. - * - * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json - */ -async function listClusterManagersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts deleted file mode 100644 index be2d1b6d25d4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided subscription. - * - * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json - */ -async function listClusterManagersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts deleted file mode 100644 index 216b55d721d7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - ClusterManagerPatchParameters, - ClusterManagersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json - */ -async function patchClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerUpdateParameters: ClusterManagerPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClusterManagersUpdateOptionalParams = { - clusterManagerUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.update( - resourceGroupName, - clusterManagerName, - options - ); - console.log(result); -} - -async function main() { - patchClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts deleted file mode 100644 index d20dae405592..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,149 +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 { Cluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. - * - * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json - */ -async function createOrUpdateCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterParameters: Cluster = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - clusterLocation: "Foo Street, 3rd Floor, row 9", - clusterServicePrincipal: { - applicationId: "12345678-1234-1234-1234-123456789012", - password: "{password}", - principalId: "00000008-0004-0004-0004-000000000012", - tenantId: "80000000-4000-4000-4000-120000000000" - }, - clusterType: "SingleRack", - clusterVersion: "1.0.0", - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - computeRackDefinitions: [ - { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - } - ], - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkFabricId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - clusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts deleted file mode 100644 index acbd520f548a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cluster. - * - * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json - */ -async function deleteCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeleteAndWait( - resourceGroupName, - clusterName - ); - console.log(result); -} - -async function main() { - deleteCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts deleted file mode 100644 index 105097d9f8e9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts +++ /dev/null @@ -1,78 +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 { - ClusterDeployParameters, - ClustersDeployOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json - */ -async function deployCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters: ClusterDeployParameters = {}; - const options: ClustersDeployOptionalParams = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json - */ -async function deployClusterSkippingValidation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters: ClusterDeployParameters = { - skipValidationsForMachines: ["bmmName1"] - }; - const options: ClustersDeployOptionalParams = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -async function main() { - deployCluster(); - deployClusterSkippingValidation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts deleted file mode 100644 index 901a95b06d7e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided cluster. - * - * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json - */ -async function getCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.get(resourceGroupName, clusterName); - console.log(result); -} - -async function main() { - getCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts deleted file mode 100644 index b07dc44c5fdf..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided resource group. - * - * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json - */ -async function listClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts deleted file mode 100644 index b54d64e13348..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided subscription. - * - * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json - */ -async function listClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts deleted file mode 100644 index d1af8f7c6383..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts +++ /dev/null @@ -1,122 +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 { - ClusterPatchParameters, - ClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json - */ -async function patchClusterAggregatorOrSingleRackDefinition() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "newSerialNumber", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json - */ -async function patchClusterLocation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -async function main() { - patchClusterAggregatorOrSingleRackDefinition(); - patchClusterLocation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts deleted file mode 100644 index 5a282913c830..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts +++ /dev/null @@ -1,50 +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 { - ClusterUpdateVersionParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. - * - * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json - */ -async function updateClusterVersion() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateVersionParameters: ClusterUpdateVersionParameters = { - targetClusterVersion: "2.0" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateVersionAndWait( - resourceGroupName, - clusterName, - clusterUpdateVersionParameters - ); - console.log(result); -} - -async function main() { - updateClusterVersion(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts deleted file mode 100644 index 6bedc871d012..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts +++ /dev/null @@ -1,61 +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 { Console, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. - * - * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json - */ -async function createOrUpdateVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleParameters: Console = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - consoleParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts deleted file mode 100644 index de771fea82ca..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine console. - * - * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json - */ -async function deleteVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginDeleteAndWait( - resourceGroupName, - virtualMachineName, - consoleName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts deleted file mode 100644 index b78b765d7d5e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine console. - * - * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json - */ -async function getVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.get( - resourceGroupName, - virtualMachineName, - consoleName - ); - console.log(result); -} - -async function main() { - getVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts deleted file mode 100644 index 18a5b366f4fd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of consoles for the provided virtual machine. - * - * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json - */ -async function listConsolesOfTheVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.consoles.listByVirtualMachine( - resourceGroupName, - virtualMachineName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listConsolesOfTheVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts deleted file mode 100644 index 79bc537d32ac..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts +++ /dev/null @@ -1,60 +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 { - ConsolePatchParameters, - ConsolesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json - */ -async function patchVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleUpdateParameters: ConsolePatchParameters = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ConsolesUpdateOptionalParams = { consoleUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts deleted file mode 100644 index 8bd0d5763c56..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,195 +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 { KubernetesCluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json - */ -async function createOrUpdateKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterParameters: KubernetesCluster = { - aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"] - }, - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - controlPlaneNodeConfiguration: { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - vmSkuName: "NC_G4_v1" - }, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - initialAgentPoolConfigurations: [ - { - name: "SystemPool-1", - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - labels: [{ key: "kubernetes.label", value: "true" }], - mode: "System", - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - } - ], - kubernetesVersion: "1.24.12-1", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkConfiguration: { - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - bgpServiceLoadBalancerConfiguration: { - bgpAdvertisements: [ - { - advertiseToFabric: "True", - communities: ["64512:100"], - ipAddressPools: ["pool1"], - peers: ["peer1"] - } - ], - bgpPeers: [ - { - name: "peer1", - bfdEnabled: "False", - bgpMultiHop: "False", - holdTime: "P300s", - keepAliveTime: "P300s", - myAsn: 64512, - peerAddress: "203.0.113.254", - peerAsn: 64497, - peerPort: 179 - } - ], - fabricPeeringEnabled: "True", - ipAddressPools: [ - { - name: "pool1", - addresses: ["198.51.102.0/24"], - autoAssign: "True", - onlyUseHostIps: "True" - } - ] - }, - cloudServicesNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - cniNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - dnsServiceIp: "198.51.101.2", - podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"] - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts deleted file mode 100644 index 1350c6cedc9b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster. - * - * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json - */ -async function deleteKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName - ); - console.log(result); -} - -async function main() { - deleteKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts deleted file mode 100644 index ead163c25371..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. - * - * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json - */ -async function getKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.get( - resourceGroupName, - kubernetesClusterName - ); - console.log(result); -} - -async function main() { - getKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts deleted file mode 100644 index 0141f2f6a1c1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. - * - * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json - */ -async function listKubernetesClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts deleted file mode 100644 index fadbf0774006..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. - * - * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json - */ -async function listKubernetesClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts deleted file mode 100644 index 1f5f7fda3ba2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts +++ /dev/null @@ -1,50 +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 { - KubernetesClusterRestartNodeParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. - * - * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json - */ -async function restartAKubernetesClusterNode() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = { - nodeName: "nodeName" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginRestartNodeAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterRestartNodeParameters - ); - console.log(result); -} - -async function main() { - restartAKubernetesClusterNode(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts deleted file mode 100644 index d1f741a4bd67..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts +++ /dev/null @@ -1,56 +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 { - KubernetesClusterPatchParameters, - KubernetesClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json - */ -async function patchKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterUpdateParameters: KubernetesClusterPatchParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: KubernetesClustersUpdateOptionalParams = { - kubernetesClusterUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts deleted file mode 100644 index e98e1748cb8f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,57 +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 { L2Network, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. - * - * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json - */ -async function createOrUpdateL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkParameters: L2Network = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - hybridAksPluginType: "DPDK", - interfaceName: "eth0", - l2IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l2NetworkName, - l2NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts deleted file mode 100644 index 926c5fa7977f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided layer 2 (L2) network. - * - * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json - */ -async function deleteL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginDeleteAndWait( - resourceGroupName, - l2NetworkName - ); - console.log(result); -} - -async function main() { - deleteL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts deleted file mode 100644 index b9f744d589d5..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. - * - * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json - */ -async function getL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.get(resourceGroupName, l2NetworkName); - console.log(result); -} - -async function main() { - getL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts deleted file mode 100644 index 1181459cdac7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. - * - * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json - */ -async function listL2NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts deleted file mode 100644 index aaacc45b6098..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. - * - * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json - */ -async function listL2NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts deleted file mode 100644 index 9d097b2c628b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - L2NetworkPatchParameters, - L2NetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. - * - * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json - */ -async function patchL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkUpdateParameters: L2NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: L2NetworksUpdateOptionalParams = { l2NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.update( - resourceGroupName, - l2NetworkName, - options - ); - console.log(result); -} - -async function main() { - patchL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts deleted file mode 100644 index ff2a59c5e9cd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,60 +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 { L3Network, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. - * - * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json - */ -async function createOrUpdateL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkParameters: L3Network = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - interfaceName: "eth0", - ipAllocationType: "DualStack", - ipv4ConnectedPrefix: "198.51.100.0/24", - ipv6ConnectedPrefix: "2001:db8::/64", - l3IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlan: 12 - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l3NetworkName, - l3NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts deleted file mode 100644 index 62420a21fcc3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided layer 3 (L3) network. - * - * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json - */ -async function deleteL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginDeleteAndWait( - resourceGroupName, - l3NetworkName - ); - console.log(result); -} - -async function main() { - deleteL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts deleted file mode 100644 index f9fa9d18e3d3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. - * - * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json - */ -async function getL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.get(resourceGroupName, l3NetworkName); - console.log(result); -} - -async function main() { - getL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts deleted file mode 100644 index d9f8111e52ff..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. - * - * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json - */ -async function listL3NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts deleted file mode 100644 index 3a6e4716e65c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. - * - * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json - */ -async function listL3NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts deleted file mode 100644 index c0fbd7adcb39..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - L3NetworkPatchParameters, - L3NetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. - * - * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json - */ -async function patchL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkUpdateParameters: L3NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: L3NetworksUpdateOptionalParams = { l3NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.update( - resourceGroupName, - l3NetworkName, - options - ); - console.log(result); -} - -async function main() { - patchL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts deleted file mode 100644 index e2b6e4933550..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,60 +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 { - ClusterMetricsConfiguration, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. - * - * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json - */ -async function createOrUpdateMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationParameters: ClusterMetricsConfiguration = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - metricsConfigurationParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts deleted file mode 100644 index 61d449347a3c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the metrics configuration of the provided cluster. - * - * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json - */ -async function deleteMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginDeleteAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - deleteMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts deleted file mode 100644 index 7bd3dc1518ab..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get metrics configuration of the provided cluster. - * - * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json - */ -async function getMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.get( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - getMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts deleted file mode 100644 index 0db96c289859..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. - * - * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json - */ -async function listMetricsConfigurationsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricsConfigurations.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricsConfigurationsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts deleted file mode 100644 index a95ab451a933..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts +++ /dev/null @@ -1,58 +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 { - ClusterMetricsConfigurationPatchParameters, - MetricsConfigurationsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json - */ -async function patchMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: MetricsConfigurationsUpdateOptionalParams = { - metricsConfigurationUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - options - ); - console.log(result); -} - -async function main() { - patchMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts deleted file mode 100644 index 55e5ced2ecbc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * - * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json - */ -async function listResourceProviderOperations() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listResourceProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts deleted file mode 100644 index 75c47ffb32b7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts +++ /dev/null @@ -1,38 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of the provided rack SKU. - * - * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json - */ -async function getRackSkuResource() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const rackSkuName = "rackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.rackSkus.get(rackSkuName); - console.log(result); -} - -async function main() { - getRackSkuResource(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts deleted file mode 100644 index 102bbee4b1ab..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. - * - * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json - */ -async function listRackSkUsForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.rackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRackSkUsForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts deleted file mode 100644 index bd47106fee7c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +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 { Rack, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json - */ -async function createOrUpdateRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackParameters: Rack = { - availabilityZone: "1", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - rackLocation: "Rack 28", - rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginCreateOrUpdateAndWait( - resourceGroupName, - rackName, - rackParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts deleted file mode 100644 index 175174428e91..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json - */ -async function deleteRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginDeleteAndWait( - resourceGroupName, - rackName - ); - console.log(result); -} - -async function main() { - deleteRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts deleted file mode 100644 index ce6607ee76e9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided rack. - * - * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json - */ -async function getRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.get(resourceGroupName, rackName); - console.log(result); -} - -async function main() { - getRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts deleted file mode 100644 index 2449a8037439..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts +++ /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. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided resource group. - * - * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json - */ -async function listRacksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts deleted file mode 100644 index 7c4e2654586c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided subscription. - * - * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json - */ -async function listRacksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts deleted file mode 100644 index c5ca795e2362..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - RackPatchParameters, - RacksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json - */ -async function patchRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackUpdateParameters: RackPatchParameters = { - rackLocation: "Rack 2B", - rackSerialNumber: "RACK_SERIAL_NUMBER", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: RacksUpdateOptionalParams = { rackUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginUpdateAndWait( - resourceGroupName, - rackName, - options - ); - console.log(result); -} - -async function main() { - patchRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts deleted file mode 100644 index 631149be3396..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts +++ /dev/null @@ -1,61 +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 { StorageAppliance, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json - */ -async function createOrUpdateStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceParameters: StorageAppliance = { - administratorCredentials: { password: "{password}", username: "adminUser" }, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceSkuId: "684E-3B16-399E", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginCreateOrUpdateAndWait( - resourceGroupName, - storageApplianceName, - storageApplianceParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts deleted file mode 100644 index ef264582ebbc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json - */ -async function deleteStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDeleteAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - deleteStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts deleted file mode 100644 index 0b30a7656114..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. - * - * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json - */ -async function turnOffRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - turnOffRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts deleted file mode 100644 index 7157f25e955e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts +++ /dev/null @@ -1,54 +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 { - StorageApplianceEnableRemoteVendorManagementParameters, - StorageAppliancesEnableRemoteVendorManagementOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. - * - * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json - */ -async function turnOnRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = { - supportEndpoints: ["10.0.0.0/24"] - }; - const options: StorageAppliancesEnableRemoteVendorManagementOptionalParams = { - storageApplianceEnableRemoteVendorManagementParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - turnOnRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts deleted file mode 100644 index 4dbfb7f083cc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided storage appliance. - * - * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json - */ -async function getStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.get( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - getStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts deleted file mode 100644 index c8dd5e2dd9f4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided resource group. - * - * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json - */ -async function listStorageAppliancesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts deleted file mode 100644 index e1a91b14d06e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided subscription. - * - * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json - */ -async function listStorageAppliancesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts deleted file mode 100644 index 4fef63297769..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts +++ /dev/null @@ -1,55 +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 { - StorageAppliancePatchParameters, - StorageAppliancesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * - * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json - */ -async function patchStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceUpdateParameters: StorageAppliancePatchParameters = { - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: StorageAppliancesUpdateOptionalParams = { - storageApplianceUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginUpdateAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - patchStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 6da36dfb08ee..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +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 { TrunkedNetwork, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. - * - * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json - */ -async function createOrUpdateTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkParameters: TrunkedNetwork = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - interfaceName: "eth0", - isolationDomainIds: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName" - ], - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlans: [12, 14] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - trunkedNetworkName, - trunkedNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts deleted file mode 100644 index 4baf6c2974e7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided trunked network. - * - * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json - */ -async function deleteTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginDeleteAndWait( - resourceGroupName, - trunkedNetworkName - ); - console.log(result); -} - -async function main() { - deleteTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts deleted file mode 100644 index 1ef09272355e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided trunked network. - * - * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json - */ -async function getTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.get( - resourceGroupName, - trunkedNetworkName - ); - console.log(result); -} - -async function main() { - getTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts deleted file mode 100644 index 60e72145bb4c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided resource group. - * - * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json - */ -async function listTrunkedNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts deleted file mode 100644 index a6630bf4b519..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided subscription. - * - * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json - */ -async function listTrunkedNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts deleted file mode 100644 index c3d281903f00..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - TrunkedNetworkPatchParameters, - TrunkedNetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided trunked network. - * - * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json - */ -async function patchTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkUpdateParameters: TrunkedNetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: TrunkedNetworksUpdateOptionalParams = { - trunkedNetworkUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.update( - resourceGroupName, - trunkedNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts deleted file mode 100644 index 8d6718892267..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,107 +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 { VirtualMachine, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. - * - * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json - */ -async function createOrUpdateVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineParameters: VirtualMachine = { - adminUsername: "username", - bootMethod: "UEFI", - cloudServicesNetworkAttachment: { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - ipAllocationMethod: "Dynamic" - }, - cpuCores: 2, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - memorySizeGB: 8, - networkAttachments: [ - { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - defaultGateway: "True", - ipAllocationMethod: "Dynamic", - ipv4Address: "198.51.100.1", - ipv6Address: "2001:0db8:0000:0000:0000:0000:0000:0000", - networkAttachmentName: "netAttachName01" - } - ], - networkData: "bmV0d29ya0RhdGVTYW1wbGU=", - placementHints: [ - { - hintType: "Affinity", - resourceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - schedulingExecution: "Hard", - scope: "" - } - ], - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ], - storageProfile: { - osDisk: { - createOption: "Ephemeral", - deleteOption: "Delete", - diskSizeGB: 120 - }, - volumeAttachments: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName" - ] - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - userData: "dXNlckRhdGVTYW1wbGU=", - vmDeviceModel: "T2", - vmImage: "myacr.azurecr.io/foobar:latest", - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser" - } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - virtualMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts deleted file mode 100644 index 7e629f112867..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine. - * - * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json - */ -async function deleteVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginDeleteAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts deleted file mode 100644 index d725e7bb842d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine. - * - * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json - */ -async function getVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.get( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - getVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts deleted file mode 100644 index facafcb8ce03..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided resource group. - * - * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json - */ -async function listVirtualMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts deleted file mode 100644 index 2ed3944d2b45..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided subscription. - * - * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json - */ -async function listVirtualMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts deleted file mode 100644 index c706c16583ea..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts +++ /dev/null @@ -1,54 +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 { - VirtualMachinePowerOffParameters, - VirtualMachinesPowerOffOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Power off the provided virtual machine. - * - * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json - */ -async function powerOffVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachinePowerOffParameters: VirtualMachinePowerOffParameters = { - skipShutdown: "True" - }; - const options: VirtualMachinesPowerOffOptionalParams = { - virtualMachinePowerOffParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginPowerOffAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts deleted file mode 100644 index eb5b51d4f9fe..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reimage the provided virtual machine. - * - * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json - */ -async function reimageVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginReimageAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - reimageVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts deleted file mode 100644 index 1cfdb6d2a9e0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart the provided virtual machine. - * - * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json - */ -async function restartVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginRestartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - restartVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts deleted file mode 100644 index 55bcc24d32e0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Start the provided virtual machine. - * - * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json - */ -async function startVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginStartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - startVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts deleted file mode 100644 index b4c906a0564c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts +++ /dev/null @@ -1,59 +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 { - VirtualMachinePatchParameters, - VirtualMachinesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json - */ -async function patchVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineUpdateParameters: VirtualMachinePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser" - } - }; - const options: VirtualMachinesUpdateOptionalParams = { - virtualMachineUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts deleted file mode 100644 index ef0e7890c6d3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts +++ /dev/null @@ -1,54 +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 { Volume, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new volume or update the properties of the existing one. - * - * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json - */ -async function createOrUpdateVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeParameters: Volume = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - volumeName, - volumeParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts deleted file mode 100644 index 4b04e9295623..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided volume. - * - * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function deleteVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - volumeName - ); - console.log(result); -} - -async function main() { - deleteVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts deleted file mode 100644 index 8853154ecebd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided volume. - * - * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json - */ -async function getVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - getVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts deleted file mode 100644 index 4bb197be20b2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided resource group. - * - * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json - */ -async function listVolumesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts deleted file mode 100644 index 5b8d66ceddaf..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided subscription. - * - * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json - */ -async function listVolumeForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumeForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts deleted file mode 100644 index b35b7c0bcf70..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - VolumePatchParameters, - VolumesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided volume. - * - * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json - */ -async function patchVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeUpdateParameters: VolumePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: VolumesUpdateOptionalParams = { volumeUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.update( - resourceGroupName, - volumeName, - options - ); - console.log(result); -} - -async function main() { - patchVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md deleted file mode 100644 index 5c3a62bd678e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md +++ /dev/null @@ -1,286 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json | -| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json | -| [agentPoolsGetSample.js][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json | -| [agentPoolsListByKubernetesClusterSample.js][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json | -| [agentPoolsUpdateSample.js][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json | -| [bareMetalMachineKeySetsCreateOrUpdateSample.js][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json | -| [bareMetalMachineKeySetsDeleteSample.js][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json | -| [bareMetalMachineKeySetsGetSample.js][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json | -| [bareMetalMachineKeySetsListByClusterSample.js][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json | -| [bareMetalMachineKeySetsUpdateSample.js][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json | -| [bareMetalMachinesCordonSample.js][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json | -| [bareMetalMachinesCreateOrUpdateSample.js][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json | -| [bareMetalMachinesDeleteSample.js][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json | -| [bareMetalMachinesGetSample.js][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json | -| [bareMetalMachinesListByResourceGroupSample.js][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json | -| [bareMetalMachinesListBySubscriptionSample.js][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json | -| [bareMetalMachinesPowerOffSample.js][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json | -| [bareMetalMachinesReimageSample.js][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json | -| [bareMetalMachinesReplaceSample.js][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json | -| [bareMetalMachinesRestartSample.js][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json | -| [bareMetalMachinesRunCommandSample.js][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json | -| [bareMetalMachinesRunDataExtractsSample.js][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json | -| [bareMetalMachinesRunReadCommandsSample.js][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json | -| [bareMetalMachinesStartSample.js][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json | -| [bareMetalMachinesUncordonSample.js][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json | -| [bareMetalMachinesUpdateSample.js][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json | -| [bmcKeySetsCreateOrUpdateSample.js][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json | -| [bmcKeySetsDeleteSample.js][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json | -| [bmcKeySetsGetSample.js][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json | -| [bmcKeySetsListByClusterSample.js][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json | -| [bmcKeySetsUpdateSample.js][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json | -| [cloudServicesNetworksCreateOrUpdateSample.js][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json | -| [cloudServicesNetworksDeleteSample.js][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json | -| [cloudServicesNetworksGetSample.js][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json | -| [cloudServicesNetworksListByResourceGroupSample.js][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json | -| [cloudServicesNetworksListBySubscriptionSample.js][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json | -| [cloudServicesNetworksUpdateSample.js][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json | -| [clusterManagersCreateOrUpdateSample.js][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json | -| [clusterManagersDeleteSample.js][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json | -| [clusterManagersGetSample.js][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json | -| [clusterManagersListByResourceGroupSample.js][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json | -| [clusterManagersListBySubscriptionSample.js][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json | -| [clusterManagersUpdateSample.js][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json | -| [clustersCreateOrUpdateSample.js][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json | -| [clustersDeleteSample.js][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json | -| [clustersDeploySample.js][clustersdeploysample] | Deploy the cluster to the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json | -| [clustersGetSample.js][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json | -| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json | -| [clustersListBySubscriptionSample.js][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json | -| [clustersUpdateSample.js][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | -| [clustersUpdateVersionSample.js][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json | -| [consolesCreateOrUpdateSample.js][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json | -| [consolesDeleteSample.js][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json | -| [consolesGetSample.js][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json | -| [consolesListByVirtualMachineSample.js][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json | -| [consolesUpdateSample.js][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json | -| [kubernetesClustersCreateOrUpdateSample.js][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json | -| [kubernetesClustersDeleteSample.js][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json | -| [kubernetesClustersGetSample.js][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json | -| [kubernetesClustersListByResourceGroupSample.js][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json | -| [kubernetesClustersListBySubscriptionSample.js][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json | -| [kubernetesClustersRestartNodeSample.js][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json | -| [kubernetesClustersUpdateSample.js][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json | -| [l2NetworksCreateOrUpdateSample.js][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json | -| [l2NetworksDeleteSample.js][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json | -| [l2NetworksGetSample.js][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json | -| [l2NetworksListByResourceGroupSample.js][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json | -| [l2NetworksListBySubscriptionSample.js][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json | -| [l2NetworksUpdateSample.js][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json | -| [l3NetworksCreateOrUpdateSample.js][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json | -| [l3NetworksDeleteSample.js][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json | -| [l3NetworksGetSample.js][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json | -| [l3NetworksListByResourceGroupSample.js][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json | -| [l3NetworksListBySubscriptionSample.js][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json | -| [l3NetworksUpdateSample.js][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json | -| [metricsConfigurationsCreateOrUpdateSample.js][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json | -| [metricsConfigurationsDeleteSample.js][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json | -| [metricsConfigurationsGetSample.js][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json | -| [metricsConfigurationsListByClusterSample.js][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json | -| [metricsConfigurationsUpdateSample.js][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json | -| [operationsListSample.js][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json | -| [rackSkusGetSample.js][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json | -| [rackSkusListBySubscriptionSample.js][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json | -| [racksCreateOrUpdateSample.js][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json | -| [racksDeleteSample.js][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json | -| [racksGetSample.js][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json | -| [racksListByResourceGroupSample.js][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json | -| [racksListBySubscriptionSample.js][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json | -| [racksUpdateSample.js][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json | -| [storageAppliancesCreateOrUpdateSample.js][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json | -| [storageAppliancesDeleteSample.js][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json | -| [storageAppliancesDisableRemoteVendorManagementSample.js][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json | -| [storageAppliancesEnableRemoteVendorManagementSample.js][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json | -| [storageAppliancesGetSample.js][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json | -| [storageAppliancesListByResourceGroupSample.js][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json | -| [storageAppliancesListBySubscriptionSample.js][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json | -| [storageAppliancesUpdateSample.js][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json | -| [trunkedNetworksCreateOrUpdateSample.js][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json | -| [trunkedNetworksDeleteSample.js][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json | -| [trunkedNetworksGetSample.js][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json | -| [trunkedNetworksListByResourceGroupSample.js][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json | -| [trunkedNetworksListBySubscriptionSample.js][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json | -| [trunkedNetworksUpdateSample.js][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json | -| [virtualMachinesCreateOrUpdateSample.js][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json | -| [virtualMachinesDeleteSample.js][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json | -| [virtualMachinesGetSample.js][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json | -| [virtualMachinesListByResourceGroupSample.js][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json | -| [virtualMachinesListBySubscriptionSample.js][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json | -| [virtualMachinesPowerOffSample.js][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json | -| [virtualMachinesReimageSample.js][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json | -| [virtualMachinesRestartSample.js][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json | -| [virtualMachinesStartSample.js][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json | -| [virtualMachinesUpdateSample.js][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesGetSample.js][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListByResourceGroupSample.js][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json | -| [volumesListBySubscriptionSample.js][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json | -| [volumesUpdateSample.js][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.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 agentPoolsCreateOrUpdateSample.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 NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node agentPoolsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js -[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js -[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js -[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js -[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js -[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js -[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js -[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js -[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js -[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js -[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js -[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js -[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js -[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js -[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js -[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js -[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js -[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js -[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js -[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js -[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js -[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js -[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js -[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js -[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js -[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js -[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js -[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js -[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js -[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js -[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js -[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js -[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js -[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js -[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js -[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js -[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js -[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js -[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js -[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js -[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js -[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js -[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js -[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js -[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js -[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js -[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js -[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js -[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js -[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js -[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js -[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js -[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js -[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js -[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js -[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js -[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js -[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js -[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js -[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js -[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js -[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js -[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js -[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js -[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js -[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js -[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js -[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js -[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js -[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js -[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js -[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js -[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js -[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js -[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js -[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js -[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js -[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js -[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js -[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js -[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js -[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js -[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js -[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js -[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js -[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js -[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js -[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js -[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js -[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js -[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js -[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js -[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js -[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js -[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js -[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js -[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js -[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js -[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js -[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js -[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js deleted file mode 100644 index e6a43d5af15f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js +++ /dev/null @@ -1,91 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json - */ -async function createOrUpdateKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolParameters = { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK", - }, - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV", - }, - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN", - }, - ], - }, - availabilityZones: ["1", "2", "3"], - count: 3, - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - labels: [{ key: "kubernetes.label", value: "true" }], - location: "location", - mode: "System", - tags: { key1: "myvalue1", key2: "myvalue2" }, - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - agentPoolParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js deleted file mode 100644 index f4446eee443c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. - * - * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json - */ -async function deleteKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - deleteKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js deleted file mode 100644 index 000ef23f19b1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. - * - * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json - */ -async function getKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.get( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - getKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js deleted file mode 100644 index 63527ede27e0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. - * - * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json - */ -async function listAgentPoolsOfTheKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.agentPools.listByKubernetesCluster( - resourceGroupName, - kubernetesClusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAgentPoolsOfTheKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js deleted file mode 100644 index 459ec9e36ed4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js +++ /dev/null @@ -1,48 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json - */ -async function patchKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolUpdateParameters = { - count: 3, - tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" }, - }; - const options = { agentPoolUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js deleted file mode 100644 index c5b16eef40d7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js +++ /dev/null @@ -1,73 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. - * - * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json - */ -async function createOrUpdateBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetParameters = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - location: "location", - osGroupName: "standardAccessGroup", - privilegeLevel: "Standard", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js deleted file mode 100644 index d244b151d1ac..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. - * - * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json - */ -async function deleteBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js deleted file mode 100644 index 27e0a7616fa0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get bare metal machine key set of the provided cluster. - * - * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json - */ -async function getBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.get( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - getBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js deleted file mode 100644 index bb2a71ec7b4a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. - * - * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json - */ -async function listBareMetalMachineKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachineKeySets.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachineKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js deleted file mode 100644 index 19409fa45d26..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js +++ /dev/null @@ -1,68 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json - */ -async function patchBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetUpdateParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - ], - }; - const options = { - bareMetalMachineKeySetUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js deleted file mode 100644 index 25912f779613..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. - * - * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json - */ -async function cordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineCordonParameters = { - evacuate: "True", - }; - const options = { - bareMetalMachineCordonParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCordonAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - cordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js deleted file mode 100644 index a4da994727aa..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js +++ /dev/null @@ -1,61 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json - */ -async function createOrUpdateBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineParameters = { - bmcConnectionString: "bmcconnectionstring", - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:00", - bootMacAddress: "00:00:4e:00:58:af", - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - machineDetails: "User-provided machine details.", - machineName: "r01c001", - machineSkuId: "684E-3B16-399E", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js deleted file mode 100644 index 8c152e787da9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json - */ -async function deleteBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginDeleteAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js deleted file mode 100644 index 7c3c12fe0ef3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided bare metal machine. - * - * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json - */ -async function getBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.get(resourceGroupName, bareMetalMachineName); - console.log(result); -} - -async function main() { - getBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js deleted file mode 100644 index 208611115245..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. - * - * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json - */ -async function listBareMetalMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js deleted file mode 100644 index fc09df9c294a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. - * - * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json - */ -async function listBareMetalMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js deleted file mode 100644 index 769102d088f2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Power off the provided bare metal machine. - * - * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json - */ -async function powerOffBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters = { - skipShutdown: "True", - }; - const options = { - bareMetalMachinePowerOffParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginPowerOffAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js deleted file mode 100644 index b8d184b318a3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reimage the provided bare metal machine. - * - * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json - */ -async function reimageBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReimageAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - reimageBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js deleted file mode 100644 index 2e69577185f6..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js +++ /dev/null @@ -1,50 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Replace the provided bare metal machine. - * - * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json - */ -async function replaceBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineReplaceParameters = { - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:ad", - bootMacAddress: "00:00:4e:00:58:af", - machineName: "name", - serialNumber: "BM1219XXX", - }; - const options = { - bareMetalMachineReplaceParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReplaceAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - replaceBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js deleted file mode 100644 index dec5f2fcd7a1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restart the provided bare metal machine. - * - * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json - */ -async function restartBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRestartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - restartBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js deleted file mode 100644 index b7336cb538f4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js +++ /dev/null @@ -1,45 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json - */ -async function runCommandOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunCommandParameters = { - arguments: ["--argument1", "argument2"], - limitTimeSeconds: 60, - script: "cHdkCg==", - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunCommandAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunCommandParameters - ); - console.log(result); -} - -async function main() { - runCommandOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js deleted file mode 100644 index 352baa7a77fa..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js +++ /dev/null @@ -1,49 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json - */ -async function runDataExtractionOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunDataExtractsParameters = { - limitTimeSeconds: 60, - commands: [ - { - arguments: ["SysInfo", "TTYLog"], - command: "hardware-support-data-collection", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters - ); - console.log(result); -} - -async function main() { - runDataExtractionOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js deleted file mode 100644 index c0f9f5dfef7e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js +++ /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. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json - */ -async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunReadCommandsParameters = { - limitTimeSeconds: 60, - commands: [ - { arguments: ["pods", "-A"], command: "kubectl get" }, - { arguments: ["192.168.0.99", "-c", "3"], command: "ping" }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters - ); - console.log(result); -} - -async function main() { - runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js deleted file mode 100644 index 638ef8835448..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Start the provided bare metal machine. - * - * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json - */ -async function startBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginStartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - startBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js deleted file mode 100644 index 2c7d22500add..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. - * - * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json - */ -async function uncordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUncordonAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - uncordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js deleted file mode 100644 index edb8620b0c3a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js +++ /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. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json - */ -async function patchBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineUpdateParameters = { - machineDetails: "machinedetails", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - bareMetalMachineUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js deleted file mode 100644 index f5a125e7e921..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js +++ /dev/null @@ -1,71 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. - * - * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json - */ -async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetParameters = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - privilegeLevel: "Administrator", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - bmcKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js deleted file mode 100644 index f62f455a5f9c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. - * - * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json - */ -async function deleteBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bmcKeySetName - ); - console.log(result); -} - -async function main() { - deleteBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js deleted file mode 100644 index b7479668b871..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. - * - * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json - */ -async function getBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.get(resourceGroupName, clusterName, bmcKeySetName); - console.log(result); -} - -async function main() { - getBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js deleted file mode 100644 index 7018508e2f1b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. - * - * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json - */ -async function listBaseboardManagementControllerKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bmcKeySets.listByCluster(resourceGroupName, clusterName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBaseboardManagementControllerKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js deleted file mode 100644 index 86781caf4a33..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js +++ /dev/null @@ -1,65 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json - */ -async function patchBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetUpdateParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - { - description: "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - }, - ], - }; - const options = { bmcKeySetUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js deleted file mode 100644 index ad80b129e5d6..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,60 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. - * - * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json - */ -async function createOrUpdateCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443, - }, - ], - }, - ], - enableDefaultEgressEndpoints: "False", - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - cloudServicesNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js deleted file mode 100644 index cadce0696738..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided cloud services network. - * - * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json - */ -async function deleteCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginDeleteAndWait( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - deleteCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js deleted file mode 100644 index a98b89b4b492..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided cloud services network. - * - * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json - */ -async function getCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.get( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - getCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js deleted file mode 100644 index 4ff9cd250cd3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. - * - * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json - */ -async function listCloudServicesNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js deleted file mode 100644 index 779ab164ab7d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. - * - * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json - */ -async function listCloudServicesNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js deleted file mode 100644 index 7fc577a89002..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js +++ /dev/null @@ -1,58 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json - */ -async function patchCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkUpdateParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443, - }, - ], - }, - ], - enableDefaultEgressEndpoints: "False", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - cloudServicesNetworkUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js deleted file mode 100644 index e2e1f2650cb0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. - * - * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json - */ -async function createOrUpdateClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerParameters = { - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - fabricControllerId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US", - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterManagerName, - clusterManagerParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js deleted file mode 100644 index 023799ff6e56..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided cluster manager. - * - * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json - */ -async function deleteClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginDeleteAndWait( - resourceGroupName, - clusterManagerName - ); - console.log(result); -} - -async function main() { - deleteClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js deleted file mode 100644 index 93fa9c5b458d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the properties of the provided cluster manager. - * - * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json - */ -async function getClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.get(resourceGroupName, clusterManagerName); - console.log(result); -} - -async function main() { - getClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js deleted file mode 100644 index 3d7f4a7028dc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided resource group. - * - * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json - */ -async function listClusterManagersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js deleted file mode 100644 index e8c0618c81b7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided subscription. - * - * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json - */ -async function listClusterManagersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js deleted file mode 100644 index 9a590b3658df..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json - */ -async function patchClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - clusterManagerUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.update( - resourceGroupName, - clusterManagerName, - options - ); - console.log(result); -} - -async function main() { - patchClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js deleted file mode 100644 index fabd8d5787cb..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js +++ /dev/null @@ -1,144 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. - * - * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json - */ -async function createOrUpdateCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX", - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY", - }, - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName", - }, - ], - }, - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - clusterLocation: "Foo Street, 3rd Floor, row 9", - clusterServicePrincipal: { - applicationId: "12345678-1234-1234-1234-123456789012", - password: "{password}", - principalId: "00000008-0004-0004-0004-000000000012", - tenantId: "80000000-4000-4000-4000-120000000000", - }, - clusterType: "SingleRack", - clusterVersion: "1.0.0", - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90, - }, - computeRackDefinitions: [ - { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX", - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY", - }, - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName", - }, - ], - }, - ], - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US", - }, - networkFabricId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - clusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js deleted file mode 100644 index d0cc13678deb..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided cluster. - * - * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json - */ -async function deleteCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeleteAndWait(resourceGroupName, clusterName); - console.log(result); -} - -async function main() { - deleteCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js deleted file mode 100644 index 9ef9c05cb0e7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js +++ /dev/null @@ -1,60 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json - */ -async function deployCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters = {}; - const options = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json - */ -async function deployClusterSkippingValidation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters = { - skipValidationsForMachines: ["bmmName1"], - }; - const options = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -async function main() { - deployCluster(); - deployClusterSkippingValidation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js deleted file mode 100644 index c100c75d6bd7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided cluster. - * - * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json - */ -async function getCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.get(resourceGroupName, clusterName); - console.log(result); -} - -async function main() { - getCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js deleted file mode 100644 index 7d61eb20fc69..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided resource group. - * - * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json - */ -async function listClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js deleted file mode 100644 index 8a1e13108d7f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided subscription. - * - * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json - */ -async function listClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js deleted file mode 100644 index b4a8eeec5a69..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js +++ /dev/null @@ -1,104 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json - */ -async function patchClusterAggregatorOrSingleRackDefinition() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX", - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY", - }, - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "newSerialNumber", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName", - }, - ], - }, - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90, - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json - */ -async function patchClusterLocation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters = { - clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -async function main() { - patchClusterAggregatorOrSingleRackDefinition(); - patchClusterLocation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js deleted file mode 100644 index 94d1d8d4ca87..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. - * - * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json - */ -async function updateClusterVersion() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateVersionParameters = { - targetClusterVersion: "2.0", - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateVersionAndWait( - resourceGroupName, - clusterName, - clusterUpdateVersionParameters - ); - console.log(result); -} - -async function main() { - updateClusterVersion(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js deleted file mode 100644 index 1cd6deec523d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js +++ /dev/null @@ -1,56 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. - * - * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json - */ -async function createOrUpdateVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleParameters = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - consoleParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js deleted file mode 100644 index b46a9cd9603f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine console. - * - * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json - */ -async function deleteVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginDeleteAndWait( - resourceGroupName, - virtualMachineName, - consoleName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js deleted file mode 100644 index 9c8b496c05da..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine console. - * - * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json - */ -async function getVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.get(resourceGroupName, virtualMachineName, consoleName); - console.log(result); -} - -async function main() { - getVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js deleted file mode 100644 index 78dc2f18a240..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of consoles for the provided virtual machine. - * - * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json - */ -async function listConsolesOfTheVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.consoles.listByVirtualMachine( - resourceGroupName, - virtualMachineName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listConsolesOfTheVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js deleted file mode 100644 index fe17a8dee0f3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js +++ /dev/null @@ -1,52 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json - */ -async function patchVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleUpdateParameters = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { consoleUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js deleted file mode 100644 index 240c830cbd95..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js +++ /dev/null @@ -1,190 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json - */ -async function createOrUpdateKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterParameters = { - aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], - }, - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - controlPlaneNodeConfiguration: { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - availabilityZones: ["1", "2", "3"], - count: 3, - vmSkuName: "NC_G4_v1", - }, - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - initialAgentPoolConfigurations: [ - { - name: "SystemPool-1", - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK", - }, - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV", - }, - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN", - }, - ], - }, - availabilityZones: ["1", "2", "3"], - count: 3, - labels: [{ key: "kubernetes.label", value: "true" }], - mode: "System", - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1", - }, - ], - kubernetesVersion: "1.24.12-1", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US", - }, - networkConfiguration: { - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK", - }, - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV", - }, - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN", - }, - ], - }, - bgpServiceLoadBalancerConfiguration: { - bgpAdvertisements: [ - { - advertiseToFabric: "True", - communities: ["64512:100"], - ipAddressPools: ["pool1"], - peers: ["peer1"], - }, - ], - bgpPeers: [ - { - name: "peer1", - bfdEnabled: "False", - bgpMultiHop: "False", - holdTime: "P300s", - keepAliveTime: "P300s", - myAsn: 64512, - peerAddress: "203.0.113.254", - peerAsn: 64497, - peerPort: 179, - }, - ], - fabricPeeringEnabled: "True", - ipAddressPools: [ - { - name: "pool1", - addresses: ["198.51.102.0/24"], - autoAssign: "True", - onlyUseHostIps: "True", - }, - ], - }, - cloudServicesNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - cniNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - dnsServiceIp: "198.51.101.2", - podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"], - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js deleted file mode 100644 index 1e6838307fea..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster. - * - * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json - */ -async function deleteKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName - ); - console.log(result); -} - -async function main() { - deleteKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js deleted file mode 100644 index 16de0dfa3f79..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. - * - * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json - */ -async function getKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.get(resourceGroupName, kubernetesClusterName); - console.log(result); -} - -async function main() { - getKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js deleted file mode 100644 index 4af1351068ac..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. - * - * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json - */ -async function listKubernetesClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js deleted file mode 100644 index 9c9612aa6fac..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. - * - * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json - */ -async function listKubernetesClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js deleted file mode 100644 index b70558677a51..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. - * - * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json - */ -async function restartAKubernetesClusterNode() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters = { - nodeName: "nodeName", - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginRestartNodeAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterRestartNodeParameters - ); - console.log(result); -} - -async function main() { - restartAKubernetesClusterNode(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js deleted file mode 100644 index 4806ea0a2996..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js +++ /dev/null @@ -1,48 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json - */ -async function patchKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterUpdateParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - kubernetesClusterUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js deleted file mode 100644 index 2db137796b2a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. - * - * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json - */ -async function createOrUpdateL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkParameters = { - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - hybridAksPluginType: "DPDK", - interfaceName: "eth0", - l2IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l2NetworkName, - l2NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js deleted file mode 100644 index dd2e320b6cc4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided layer 2 (L2) network. - * - * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json - */ -async function deleteL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginDeleteAndWait(resourceGroupName, l2NetworkName); - console.log(result); -} - -async function main() { - deleteL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js deleted file mode 100644 index 47d4e6113465..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. - * - * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json - */ -async function getL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.get(resourceGroupName, l2NetworkName); - console.log(result); -} - -async function main() { - getL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js deleted file mode 100644 index 48eb7714e165..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. - * - * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json - */ -async function listL2NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js deleted file mode 100644 index a5e940811ded..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. - * - * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json - */ -async function listL2NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js deleted file mode 100644 index ad6435963bf2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js +++ /dev/null @@ -1,40 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. - * - * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json - */ -async function patchL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { l2NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.update(resourceGroupName, l2NetworkName, options); - console.log(result); -} - -async function main() { - patchL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js deleted file mode 100644 index 71b9bd43c17f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,55 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. - * - * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json - */ -async function createOrUpdateL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkParameters = { - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - interfaceName: "eth0", - ipAllocationType: "DualStack", - ipv4ConnectedPrefix: "198.51.100.0/24", - ipv6ConnectedPrefix: "2001:db8::/64", - l3IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlan: 12, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l3NetworkName, - l3NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js deleted file mode 100644 index 73f233f5290a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided layer 3 (L3) network. - * - * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json - */ -async function deleteL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginDeleteAndWait(resourceGroupName, l3NetworkName); - console.log(result); -} - -async function main() { - deleteL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js deleted file mode 100644 index 6413f5064eca..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. - * - * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json - */ -async function getL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.get(resourceGroupName, l3NetworkName); - console.log(result); -} - -async function main() { - getL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js deleted file mode 100644 index b030212297d0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. - * - * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json - */ -async function listL3NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js deleted file mode 100644 index 75742c5c9a4f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. - * - * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json - */ -async function listL3NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js deleted file mode 100644 index f41bf893dc9d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js +++ /dev/null @@ -1,40 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. - * - * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json - */ -async function patchL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { l3NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.update(resourceGroupName, l3NetworkName, options); - console.log(result); -} - -async function main() { - patchL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js deleted file mode 100644 index d04856d82f8f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. - * - * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json - */ -async function createOrUpdateMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - metricsConfigurationParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js deleted file mode 100644 index 19e6580c5175..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the metrics configuration of the provided cluster. - * - * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json - */ -async function deleteMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginDeleteAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - deleteMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js deleted file mode 100644 index d408e57efdce..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get metrics configuration of the provided cluster. - * - * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json - */ -async function getMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.get( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - getMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js deleted file mode 100644 index 561f9196eef1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. - * - * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json - */ -async function listMetricsConfigurationsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricsConfigurations.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricsConfigurationsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js deleted file mode 100644 index d867a2ffcf5e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js +++ /dev/null @@ -1,50 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json - */ -async function patchMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationUpdateParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - metricsConfigurationUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - options - ); - console.log(result); -} - -async function main() { - patchMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index 9d5deb39ee5a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * - * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json - */ -async function listResourceProviderOperations() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listResourceProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json deleted file mode 100644 index 650f0a6ed2b5..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-networkcloud-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkcloud/arm-networkcloud" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", - "dependencies": { - "@azure/arm-networkcloud": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js deleted file mode 100644 index 354af031fbb1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js +++ /dev/null @@ -1,35 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the properties of the provided rack SKU. - * - * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json - */ -async function getRackSkuResource() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const rackSkuName = "rackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.rackSkus.get(rackSkuName); - console.log(result); -} - -async function main() { - getRackSkuResource(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js deleted file mode 100644 index f39d48505c00..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. - * - * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json - */ -async function listRackSkUsForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.rackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRackSkUsForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js deleted file mode 100644 index 11b7826a3645..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js +++ /dev/null @@ -1,54 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json - */ -async function createOrUpdateRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackParameters = { - availabilityZone: "1", - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - rackLocation: "Rack 28", - rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginCreateOrUpdateAndWait( - resourceGroupName, - rackName, - rackParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js deleted file mode 100644 index e6b0208ebac1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json - */ -async function deleteRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginDeleteAndWait(resourceGroupName, rackName); - console.log(result); -} - -async function main() { - deleteRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js deleted file mode 100644 index a476fbd23947..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided rack. - * - * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json - */ -async function getRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.get(resourceGroupName, rackName); - console.log(result); -} - -async function main() { - getRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js deleted file mode 100644 index 36b3000aa6f8..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided resource group. - * - * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json - */ -async function listRacksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js deleted file mode 100644 index b6554f077375..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided subscription. - * - * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json - */ -async function listRacksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js deleted file mode 100644 index e5aac1834f52..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json - */ -async function patchRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackUpdateParameters = { - rackLocation: "Rack 2B", - rackSerialNumber: "RACK_SERIAL_NUMBER", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { rackUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginUpdateAndWait(resourceGroupName, rackName, options); - console.log(result); -} - -async function main() { - patchRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js deleted file mode 100644 index f4ddede3648c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js +++ /dev/null @@ -1,56 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json - */ -async function createOrUpdateStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceParameters = { - administratorCredentials: { password: "{password}", username: "adminUser" }, - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceSkuId: "684E-3B16-399E", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginCreateOrUpdateAndWait( - resourceGroupName, - storageApplianceName, - storageApplianceParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js deleted file mode 100644 index 492f8cdc2274..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js +++ /dev/null @@ -1,41 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json - */ -async function deleteStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDeleteAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - deleteStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js deleted file mode 100644 index 7199b125dec5..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. - * - * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json - */ -async function turnOffRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - turnOffRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js deleted file mode 100644 index 949a6e2fe7d9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. - * - * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json - */ -async function turnOnRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceEnableRemoteVendorManagementParameters = { - supportEndpoints: ["10.0.0.0/24"], - }; - const options = { - storageApplianceEnableRemoteVendorManagementParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - turnOnRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js deleted file mode 100644 index 9ff91e5018d4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided storage appliance. - * - * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json - */ -async function getStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.get(resourceGroupName, storageApplianceName); - console.log(result); -} - -async function main() { - getStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js deleted file mode 100644 index 56be851903fa..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided resource group. - * - * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json - */ -async function listStorageAppliancesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js deleted file mode 100644 index 4ecd37d162df..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided subscription. - * - * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json - */ -async function listStorageAppliancesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js deleted file mode 100644 index 38fb2be58a4e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js +++ /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. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * - * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json - */ -async function patchStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceUpdateParameters = { - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - storageApplianceUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginUpdateAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - patchStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js deleted file mode 100644 index a7975574bb7c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js +++ /dev/null @@ -1,54 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. - * - * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json - */ -async function createOrUpdateTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkParameters = { - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - interfaceName: "eth0", - isolationDomainIds: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", - ], - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlans: [12, 14], - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - trunkedNetworkName, - trunkedNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js deleted file mode 100644 index caef5ceb37da..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided trunked network. - * - * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json - */ -async function deleteTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginDeleteAndWait( - resourceGroupName, - trunkedNetworkName - ); - console.log(result); -} - -async function main() { - deleteTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js deleted file mode 100644 index 0b391a995f1c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided trunked network. - * - * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json - */ -async function getTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.get(resourceGroupName, trunkedNetworkName); - console.log(result); -} - -async function main() { - getTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js deleted file mode 100644 index 7c800c8da8d4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided resource group. - * - * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json - */ -async function listTrunkedNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js deleted file mode 100644 index 72d1a7cf7e58..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided subscription. - * - * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json - */ -async function listTrunkedNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js deleted file mode 100644 index d691298694cb..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update tags associated with the provided trunked network. - * - * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json - */ -async function patchTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - trunkedNetworkUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.update( - resourceGroupName, - trunkedNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js deleted file mode 100644 index aef3743eb225..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js +++ /dev/null @@ -1,102 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. - * - * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json - */ -async function createOrUpdateVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineParameters = { - adminUsername: "username", - bootMethod: "UEFI", - cloudServicesNetworkAttachment: { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - ipAllocationMethod: "Dynamic", - }, - cpuCores: 2, - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - memorySizeGB: 8, - networkAttachments: [ - { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - defaultGateway: "True", - ipAllocationMethod: "Dynamic", - ipv4Address: "198.51.100.1", - ipv6Address: "2001:0db8:0000:0000:0000:0000:0000:0000", - networkAttachmentName: "netAttachName01", - }, - ], - networkData: "bmV0d29ya0RhdGVTYW1wbGU=", - placementHints: [ - { - hintType: "Affinity", - resourceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - schedulingExecution: "Hard", - scope: "", - }, - ], - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - storageProfile: { - osDisk: { - createOption: "Ephemeral", - deleteOption: "Delete", - diskSizeGB: 120, - }, - volumeAttachments: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName", - ], - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - userData: "dXNlckRhdGVTYW1wbGU=", - vmDeviceModel: "T2", - vmImage: "myacr.azurecr.io/foobar:latest", - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - virtualMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js deleted file mode 100644 index ffb2ba8052ad..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine. - * - * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json - */ -async function deleteVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginDeleteAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js deleted file mode 100644 index fd60a65d3bfe..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine. - * - * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json - */ -async function getVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.get(resourceGroupName, virtualMachineName); - console.log(result); -} - -async function main() { - getVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js deleted file mode 100644 index af68a935967d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided resource group. - * - * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json - */ -async function listVirtualMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js deleted file mode 100644 index 80707c4a1702..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided subscription. - * - * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json - */ -async function listVirtualMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js deleted file mode 100644 index 36ccacce6095..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js +++ /dev/null @@ -1,46 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Power off the provided virtual machine. - * - * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json - */ -async function powerOffVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachinePowerOffParameters = { - skipShutdown: "True", - }; - const options = { - virtualMachinePowerOffParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginPowerOffAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js deleted file mode 100644 index 1f5a96f25c48..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reimage the provided virtual machine. - * - * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json - */ -async function reimageVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginReimageAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - reimageVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js deleted file mode 100644 index 2aa8a438e123..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restart the provided virtual machine. - * - * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json - */ -async function restartVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginRestartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - restartVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js deleted file mode 100644 index 9810553537b9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js +++ /dev/null @@ -1,39 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Start the provided virtual machine. - * - * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json - */ -async function startVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginStartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - startVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js deleted file mode 100644 index db804be1a41b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js +++ /dev/null @@ -1,51 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json - */ -async function patchVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser", - }, - }; - const options = { - virtualMachineUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js deleted file mode 100644 index d7f94b2c9a5c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js +++ /dev/null @@ -1,49 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new volume or update the properties of the existing one. - * - * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json - */ -async function createOrUpdateVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeParameters = { - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - volumeName, - volumeParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js deleted file mode 100644 index a7a6b51c6a1e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided volume. - * - * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function deleteVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - deleteVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js deleted file mode 100644 index 9e922a4be2a6..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js +++ /dev/null @@ -1,36 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided volume. - * - * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json - */ -async function getVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - getVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js deleted file mode 100644 index 135db76930b9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided resource group. - * - * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json - */ -async function listVolumesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js deleted file mode 100644 index 7a81741b95c1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided subscription. - * - * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json - */ -async function listVolumeForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumeForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js deleted file mode 100644 index dc1033772012..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js +++ /dev/null @@ -1,40 +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 { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update tags associated with the provided volume. - * - * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json - */ -async function patchVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { volumeUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.update(resourceGroupName, volumeName, options); - console.log(result); -} - -async function main() { - patchVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md deleted file mode 100644 index 4ebde5570b54..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md +++ /dev/null @@ -1,299 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsCreateOrUpdateSample.ts][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json | -| [agentPoolsDeleteSample.ts][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json | -| [agentPoolsGetSample.ts][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json | -| [agentPoolsListByKubernetesClusterSample.ts][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json | -| [agentPoolsUpdateSample.ts][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json | -| [bareMetalMachineKeySetsCreateOrUpdateSample.ts][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json | -| [bareMetalMachineKeySetsDeleteSample.ts][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json | -| [bareMetalMachineKeySetsGetSample.ts][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json | -| [bareMetalMachineKeySetsListByClusterSample.ts][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json | -| [bareMetalMachineKeySetsUpdateSample.ts][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json | -| [bareMetalMachinesCordonSample.ts][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json | -| [bareMetalMachinesCreateOrUpdateSample.ts][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json | -| [bareMetalMachinesDeleteSample.ts][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json | -| [bareMetalMachinesGetSample.ts][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json | -| [bareMetalMachinesListByResourceGroupSample.ts][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json | -| [bareMetalMachinesListBySubscriptionSample.ts][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json | -| [bareMetalMachinesPowerOffSample.ts][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json | -| [bareMetalMachinesReimageSample.ts][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json | -| [bareMetalMachinesReplaceSample.ts][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json | -| [bareMetalMachinesRestartSample.ts][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json | -| [bareMetalMachinesRunCommandSample.ts][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json | -| [bareMetalMachinesRunDataExtractsSample.ts][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json | -| [bareMetalMachinesRunReadCommandsSample.ts][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json | -| [bareMetalMachinesStartSample.ts][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json | -| [bareMetalMachinesUncordonSample.ts][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json | -| [bareMetalMachinesUpdateSample.ts][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json | -| [bmcKeySetsCreateOrUpdateSample.ts][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json | -| [bmcKeySetsDeleteSample.ts][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json | -| [bmcKeySetsGetSample.ts][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json | -| [bmcKeySetsListByClusterSample.ts][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json | -| [bmcKeySetsUpdateSample.ts][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json | -| [cloudServicesNetworksCreateOrUpdateSample.ts][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json | -| [cloudServicesNetworksDeleteSample.ts][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json | -| [cloudServicesNetworksGetSample.ts][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json | -| [cloudServicesNetworksListByResourceGroupSample.ts][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json | -| [cloudServicesNetworksListBySubscriptionSample.ts][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json | -| [cloudServicesNetworksUpdateSample.ts][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json | -| [clusterManagersCreateOrUpdateSample.ts][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json | -| [clusterManagersDeleteSample.ts][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json | -| [clusterManagersGetSample.ts][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json | -| [clusterManagersListByResourceGroupSample.ts][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json | -| [clusterManagersListBySubscriptionSample.ts][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json | -| [clusterManagersUpdateSample.ts][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json | -| [clustersCreateOrUpdateSample.ts][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json | -| [clustersDeleteSample.ts][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json | -| [clustersDeploySample.ts][clustersdeploysample] | Deploy the cluster to the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json | -| [clustersGetSample.ts][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json | -| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json | -| [clustersListBySubscriptionSample.ts][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json | -| [clustersUpdateSample.ts][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | -| [clustersUpdateVersionSample.ts][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json | -| [consolesCreateOrUpdateSample.ts][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json | -| [consolesDeleteSample.ts][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json | -| [consolesGetSample.ts][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json | -| [consolesListByVirtualMachineSample.ts][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json | -| [consolesUpdateSample.ts][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json | -| [kubernetesClustersCreateOrUpdateSample.ts][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json | -| [kubernetesClustersDeleteSample.ts][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json | -| [kubernetesClustersGetSample.ts][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json | -| [kubernetesClustersListByResourceGroupSample.ts][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json | -| [kubernetesClustersListBySubscriptionSample.ts][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json | -| [kubernetesClustersRestartNodeSample.ts][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json | -| [kubernetesClustersUpdateSample.ts][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json | -| [l2NetworksCreateOrUpdateSample.ts][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json | -| [l2NetworksDeleteSample.ts][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json | -| [l2NetworksGetSample.ts][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json | -| [l2NetworksListByResourceGroupSample.ts][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json | -| [l2NetworksListBySubscriptionSample.ts][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json | -| [l2NetworksUpdateSample.ts][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json | -| [l3NetworksCreateOrUpdateSample.ts][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json | -| [l3NetworksDeleteSample.ts][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json | -| [l3NetworksGetSample.ts][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json | -| [l3NetworksListByResourceGroupSample.ts][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json | -| [l3NetworksListBySubscriptionSample.ts][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json | -| [l3NetworksUpdateSample.ts][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json | -| [metricsConfigurationsCreateOrUpdateSample.ts][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json | -| [metricsConfigurationsDeleteSample.ts][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json | -| [metricsConfigurationsGetSample.ts][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json | -| [metricsConfigurationsListByClusterSample.ts][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json | -| [metricsConfigurationsUpdateSample.ts][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json | -| [operationsListSample.ts][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json | -| [rackSkusGetSample.ts][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json | -| [rackSkusListBySubscriptionSample.ts][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json | -| [racksCreateOrUpdateSample.ts][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json | -| [racksDeleteSample.ts][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json | -| [racksGetSample.ts][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json | -| [racksListByResourceGroupSample.ts][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json | -| [racksListBySubscriptionSample.ts][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json | -| [racksUpdateSample.ts][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json | -| [storageAppliancesCreateOrUpdateSample.ts][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json | -| [storageAppliancesDeleteSample.ts][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json | -| [storageAppliancesDisableRemoteVendorManagementSample.ts][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json | -| [storageAppliancesEnableRemoteVendorManagementSample.ts][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json | -| [storageAppliancesGetSample.ts][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json | -| [storageAppliancesListByResourceGroupSample.ts][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json | -| [storageAppliancesListBySubscriptionSample.ts][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json | -| [storageAppliancesUpdateSample.ts][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json | -| [trunkedNetworksCreateOrUpdateSample.ts][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json | -| [trunkedNetworksDeleteSample.ts][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json | -| [trunkedNetworksGetSample.ts][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json | -| [trunkedNetworksListByResourceGroupSample.ts][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json | -| [trunkedNetworksListBySubscriptionSample.ts][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json | -| [trunkedNetworksUpdateSample.ts][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json | -| [virtualMachinesCreateOrUpdateSample.ts][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json | -| [virtualMachinesDeleteSample.ts][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json | -| [virtualMachinesGetSample.ts][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json | -| [virtualMachinesListByResourceGroupSample.ts][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json | -| [virtualMachinesListBySubscriptionSample.ts][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json | -| [virtualMachinesPowerOffSample.ts][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json | -| [virtualMachinesReimageSample.ts][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json | -| [virtualMachinesRestartSample.ts][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json | -| [virtualMachinesStartSample.ts][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json | -| [virtualMachinesUpdateSample.ts][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesGetSample.ts][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListByResourceGroupSample.ts][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json | -| [volumesListBySubscriptionSample.ts][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -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. Compile the samples: - -```bash -npm run build -``` - -3. 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. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/agentPoolsCreateOrUpdateSample.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 NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node dist/agentPoolsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts -[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts -[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts -[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts -[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts -[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts -[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts -[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts -[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts -[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts -[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts -[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts -[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts -[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts -[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts -[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts -[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts -[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts -[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts -[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts -[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts -[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts -[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts -[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts -[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts -[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts -[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts -[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts -[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts -[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts -[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts -[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts -[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts -[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts -[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts -[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts -[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts -[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts -[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts -[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts -[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts -[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts -[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts -[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts -[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts -[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts -[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts -[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts -[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts -[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts -[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts -[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts -[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts -[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts -[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts -[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts -[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts -[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts -[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts -[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts -[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts -[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts -[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts -[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts -[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts -[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts -[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts -[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts -[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts -[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts -[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts -[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts -[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts -[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts -[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts -[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts -[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts -[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts -[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts -[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts -[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts -[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts -[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts -[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts -[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts -[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts -[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts -[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts -[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts -[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts -[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts -[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts -[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts -[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts -[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts -[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts -[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts -[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts -[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts -[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts -[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json deleted file mode 100644 index 746817586aff..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-networkcloud-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkcloud/arm-networkcloud" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", - "dependencies": { - "@azure/arm-networkcloud": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts deleted file mode 100644 index a2076609325e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,96 +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 { AgentPool, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json - */ -async function createOrUpdateKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolParameters: AgentPool = { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - labels: [{ key: "kubernetes.label", value: "true" }], - location: "location", - mode: "System", - tags: { key1: "myvalue1", key2: "myvalue2" }, - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - agentPoolParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts deleted file mode 100644 index 00a8c645c664..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. - * - * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json - */ -async function deleteKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - deleteKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts deleted file mode 100644 index 001c12fe032d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. - * - * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json - */ -async function getKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.get( - resourceGroupName, - kubernetesClusterName, - agentPoolName - ); - console.log(result); -} - -async function main() { - getKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts deleted file mode 100644 index 26a902bff4c7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. - * - * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json - */ -async function listAgentPoolsOfTheKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.agentPools.listByKubernetesCluster( - resourceGroupName, - kubernetesClusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAgentPoolsOfTheKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts deleted file mode 100644 index 14a95490d128..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts +++ /dev/null @@ -1,56 +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 { - AgentPoolPatchParameters, - AgentPoolsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json - */ -async function patchKubernetesClusterAgentPool() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const agentPoolName = "agentPoolName"; - const agentPoolUpdateParameters: AgentPoolPatchParameters = { - count: 3, - tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" } - }; - const options: AgentPoolsUpdateOptionalParams = { agentPoolUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.agentPools.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - agentPoolName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesClusterAgentPool(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts deleted file mode 100644 index cd503122977d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,80 +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 { BareMetalMachineKeySet, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. - * - * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json - */ -async function createOrUpdateBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetParameters: BareMetalMachineKeySet = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - location: "location", - osGroupName: "standardAccessGroup", - privilegeLevel: "Standard", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts deleted file mode 100644 index a77d3fbc7a38..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. - * - * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json - */ -async function deleteBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts deleted file mode 100644 index 0222668e85ef..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get bare metal machine key set of the provided cluster. - * - * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json - */ -async function getBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.get( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName - ); - console.log(result); -} - -async function main() { - getBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts deleted file mode 100644 index 5f796dbe3cae..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. - * - * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json - */ -async function listBareMetalMachineKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachineKeySets.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachineKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts deleted file mode 100644 index e5d05f5dcb2e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts +++ /dev/null @@ -1,78 +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 { - BareMetalMachineKeySetPatchParameters, - BareMetalMachineKeySetsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json - */ -async function patchBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const options: BareMetalMachineKeySetsUpdateOptionalParams = { - bareMetalMachineKeySetUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts deleted file mode 100644 index 72b512e3f0aa..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachineCordonParameters, - BareMetalMachinesCordonOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. - * - * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json - */ -async function cordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineCordonParameters: BareMetalMachineCordonParameters = { - evacuate: "True" - }; - const options: BareMetalMachinesCordonOptionalParams = { - bareMetalMachineCordonParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCordonAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - cordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts deleted file mode 100644 index cf5b87d83e1b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,66 +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 { BareMetalMachine, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new bare metal machine or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json - */ -async function createOrUpdateBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineParameters: BareMetalMachine = { - bmcConnectionString: "bmcconnectionstring", - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:00", - bootMacAddress: "00:00:4e:00:58:af", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - machineDetails: "User-provided machine details.", - machineName: "r01c001", - machineSkuId: "684E-3B16-399E", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts deleted file mode 100644 index 147005ac3c2e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided bare metal machine. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json - */ -async function deleteBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginDeleteAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - deleteBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts deleted file mode 100644 index 898d2ba8925d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided bare metal machine. - * - * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json - */ -async function getBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.get( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - getBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts deleted file mode 100644 index 7a9a6530455a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. - * - * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json - */ -async function listBareMetalMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts deleted file mode 100644 index 6d95b1f20189..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. - * - * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json - */ -async function listBareMetalMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bareMetalMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBareMetalMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts deleted file mode 100644 index cddf836b806c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachinePowerOffParameters, - BareMetalMachinesPowerOffOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Power off the provided bare metal machine. - * - * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json - */ -async function powerOffBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = { - skipShutdown: "True" - }; - const options: BareMetalMachinesPowerOffOptionalParams = { - bareMetalMachinePowerOffParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginPowerOffAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts deleted file mode 100644 index 17ec2c06cd2c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reimage the provided bare metal machine. - * - * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json - */ -async function reimageBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReimageAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - reimageBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts deleted file mode 100644 index 456671683c42..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts +++ /dev/null @@ -1,58 +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 { - BareMetalMachineReplaceParameters, - BareMetalMachinesReplaceOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Replace the provided bare metal machine. - * - * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json - */ -async function replaceBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineReplaceParameters: BareMetalMachineReplaceParameters = { - bmcCredentials: { password: "{password}", username: "bmcuser" }, - bmcMacAddress: "00:00:4f:00:57:ad", - bootMacAddress: "00:00:4e:00:58:af", - machineName: "name", - serialNumber: "BM1219XXX" - }; - const options: BareMetalMachinesReplaceOptionalParams = { - bareMetalMachineReplaceParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginReplaceAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - replaceBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts deleted file mode 100644 index 268c6231bda4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart the provided bare metal machine. - * - * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json - */ -async function restartBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRestartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - restartBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts deleted file mode 100644 index 26e4ef6dcd8c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts +++ /dev/null @@ -1,52 +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 { - BareMetalMachineRunCommandParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json - */ -async function runCommandOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = { - arguments: ["--argument1", "argument2"], - limitTimeSeconds: 60, - script: "cHdkCg==" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunCommandAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunCommandParameters - ); - console.log(result); -} - -async function main() { - runCommandOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts deleted file mode 100644 index ed96a9667e78..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts +++ /dev/null @@ -1,56 +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 { - BareMetalMachineRunDataExtractsParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json - */ -async function runDataExtractionOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = { - limitTimeSeconds: 60, - commands: [ - { - arguments: ["SysInfo", "TTYLog"], - command: "hardware-support-data-collection" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters - ); - console.log(result); -} - -async function main() { - runDataExtractionOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts deleted file mode 100644 index dc364daab0eb..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts +++ /dev/null @@ -1,54 +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 { - BareMetalMachineRunReadCommandsParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * - * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json - */ -async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = { - limitTimeSeconds: 60, - commands: [ - { arguments: ["pods", "-A"], command: "kubectl get" }, - { arguments: ["192.168.0.99", "-c", "3"], command: "ping" } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( - resourceGroupName, - bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters - ); - console.log(result); -} - -async function main() { - runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts deleted file mode 100644 index 830553300277..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Start the provided bare metal machine. - * - * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json - */ -async function startBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginStartAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - startBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts deleted file mode 100644 index cb5e1e772a42..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. - * - * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json - */ -async function uncordonBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUncordonAndWait( - resourceGroupName, - bareMetalMachineName - ); - console.log(result); -} - -async function main() { - uncordonBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts deleted file mode 100644 index 988474b288a2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts +++ /dev/null @@ -1,55 +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 { - BareMetalMachinePatchParameters, - BareMetalMachinesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json - */ -async function patchBareMetalMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineUpdateParameters: BareMetalMachinePatchParameters = { - machineDetails: "machinedetails", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: BareMetalMachinesUpdateOptionalParams = { - bareMetalMachineUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachines.beginUpdateAndWait( - resourceGroupName, - bareMetalMachineName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts deleted file mode 100644 index b1704a449e4f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts +++ /dev/null @@ -1,78 +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 { BmcKeySet, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. - * - * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json - */ -async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetParameters: BmcKeySet = { - azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", - expiration: new Date("2022-12-31T23:59:59.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - privilegeLevel: "Administrator", - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - bmcKeySetParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts deleted file mode 100644 index f322ca9e203f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. - * - * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json - */ -async function deleteBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginDeleteAndWait( - resourceGroupName, - clusterName, - bmcKeySetName - ); - console.log(result); -} - -async function main() { - deleteBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts deleted file mode 100644 index 96f12cd82c65..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. - * - * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json - */ -async function getBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.get( - resourceGroupName, - clusterName, - bmcKeySetName - ); - console.log(result); -} - -async function main() { - getBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts deleted file mode 100644 index fa5b51fd4454..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. - * - * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json - */ -async function listBaseboardManagementControllerKeySetsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bmcKeySets.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listBaseboardManagementControllerKeySetsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts deleted file mode 100644 index 526c869570a3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts +++ /dev/null @@ -1,75 +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 { - BmcKeySetPatchParameters, - BmcKeySetsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json - */ -async function patchBaseboardManagementControllerKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bmcKeySetName = "bmcKeySetName"; - const bmcKeySetUpdateParameters: BmcKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const options: BmcKeySetsUpdateOptionalParams = { bmcKeySetUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bmcKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bmcKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBaseboardManagementControllerKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 751cfe345b6b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,65 +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 { CloudServicesNetwork, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. - * - * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json - */ -async function createOrUpdateCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkParameters: CloudServicesNetwork = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - cloudServicesNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts deleted file mode 100644 index 33e20d6ce77f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cloud services network. - * - * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json - */ -async function deleteCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginDeleteAndWait( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - deleteCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts deleted file mode 100644 index 10e3d8a5ad39..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided cloud services network. - * - * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json - */ -async function getCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.get( - resourceGroupName, - cloudServicesNetworkName - ); - console.log(result); -} - -async function main() { - getCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts deleted file mode 100644 index b4762be0068b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. - * - * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json - */ -async function listCloudServicesNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts deleted file mode 100644 index 96508df8ece8..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. - * - * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json - */ -async function listCloudServicesNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudServicesNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listCloudServicesNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts deleted file mode 100644 index 430b362f8c08..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts +++ /dev/null @@ -1,66 +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 { - CloudServicesNetworkPatchParameters, - CloudServicesNetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json - */ -async function patchCloudServicesNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: CloudServicesNetworksUpdateOptionalParams = { - cloudServicesNetworkUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.cloudServicesNetworks.beginUpdateAndWait( - resourceGroupName, - cloudServicesNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchCloudServicesNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts deleted file mode 100644 index d7c9fe357c13..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts +++ /dev/null @@ -1,56 +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 { ClusterManager, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. - * - * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json - */ -async function createOrUpdateClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerParameters: ClusterManager = { - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - fabricControllerId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterManagerName, - clusterManagerParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts deleted file mode 100644 index 89577c15b814..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cluster manager. - * - * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json - */ -async function deleteClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginDeleteAndWait( - resourceGroupName, - clusterManagerName - ); - console.log(result); -} - -async function main() { - deleteClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts deleted file mode 100644 index 7a1a29e11e85..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of the provided cluster manager. - * - * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json - */ -async function getClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.get( - resourceGroupName, - clusterManagerName - ); - console.log(result); -} - -async function main() { - getClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts deleted file mode 100644 index 16ccab096420..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided resource group. - * - * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json - */ -async function listClusterManagersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts deleted file mode 100644 index be2d1b6d25d4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of cluster managers in the provided subscription. - * - * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json - */ -async function listClusterManagersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusterManagers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClusterManagersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts deleted file mode 100644 index 216b55d721d7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - ClusterManagerPatchParameters, - ClusterManagersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json - */ -async function patchClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerUpdateParameters: ClusterManagerPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClusterManagersUpdateOptionalParams = { - clusterManagerUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.update( - resourceGroupName, - clusterManagerName, - options - ); - console.log(result); -} - -async function main() { - patchClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts deleted file mode 100644 index d20dae405592..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,149 +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 { Cluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. - * - * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json - */ -async function createOrUpdateCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterParameters: Cluster = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - clusterLocation: "Foo Street, 3rd Floor, row 9", - clusterServicePrincipal: { - applicationId: "12345678-1234-1234-1234-123456789012", - password: "{password}", - principalId: "00000008-0004-0004-0004-000000000012", - tenantId: "80000000-4000-4000-4000-120000000000" - }, - clusterType: "SingleRack", - clusterVersion: "1.0.0", - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - computeRackDefinitions: [ - { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - } - ], - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkFabricId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - clusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts deleted file mode 100644 index acbd520f548a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided cluster. - * - * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json - */ -async function deleteCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeleteAndWait( - resourceGroupName, - clusterName - ); - console.log(result); -} - -async function main() { - deleteCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts deleted file mode 100644 index 105097d9f8e9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts +++ /dev/null @@ -1,78 +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 { - ClusterDeployParameters, - ClustersDeployOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json - */ -async function deployCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters: ClusterDeployParameters = {}; - const options: ClustersDeployOptionalParams = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -/** - * This sample demonstrates how to Deploy the cluster to the provided rack. - * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json - */ -async function deployClusterSkippingValidation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterDeployParameters: ClusterDeployParameters = { - skipValidationsForMachines: ["bmmName1"] - }; - const options: ClustersDeployOptionalParams = { clusterDeployParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginDeployAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -async function main() { - deployCluster(); - deployClusterSkippingValidation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts deleted file mode 100644 index 901a95b06d7e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided cluster. - * - * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json - */ -async function getCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.get(resourceGroupName, clusterName); - console.log(result); -} - -async function main() { - getCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts deleted file mode 100644 index b07dc44c5fdf..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided resource group. - * - * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json - */ -async function listClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts deleted file mode 100644 index b54d64e13348..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of clusters in the provided subscription. - * - * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json - */ -async function listClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.clusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts deleted file mode 100644 index d1af8f7c6383..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts +++ /dev/null @@ -1,122 +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 { - ClusterPatchParameters, - ClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json - */ -async function patchClusterAggregatorOrSingleRackDefinition() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "newSerialNumber", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json - */ -async function patchClusterLocation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -async function main() { - patchClusterAggregatorOrSingleRackDefinition(); - patchClusterLocation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts deleted file mode 100644 index 5a282913c830..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts +++ /dev/null @@ -1,50 +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 { - ClusterUpdateVersionParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. - * - * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json - */ -async function updateClusterVersion() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateVersionParameters: ClusterUpdateVersionParameters = { - targetClusterVersion: "2.0" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateVersionAndWait( - resourceGroupName, - clusterName, - clusterUpdateVersionParameters - ); - console.log(result); -} - -async function main() { - updateClusterVersion(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts deleted file mode 100644 index 6bedc871d012..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts +++ /dev/null @@ -1,61 +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 { Console, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. - * - * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json - */ -async function createOrUpdateVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleParameters: Console = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - consoleParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts deleted file mode 100644 index de771fea82ca..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine console. - * - * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json - */ -async function deleteVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginDeleteAndWait( - resourceGroupName, - virtualMachineName, - consoleName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts deleted file mode 100644 index b78b765d7d5e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine console. - * - * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json - */ -async function getVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.get( - resourceGroupName, - virtualMachineName, - consoleName - ); - console.log(result); -} - -async function main() { - getVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts deleted file mode 100644 index 18a5b366f4fd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of consoles for the provided virtual machine. - * - * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json - */ -async function listConsolesOfTheVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.consoles.listByVirtualMachine( - resourceGroupName, - virtualMachineName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listConsolesOfTheVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts deleted file mode 100644 index 79bc537d32ac..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts +++ /dev/null @@ -1,60 +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 { - ConsolePatchParameters, - ConsolesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json - */ -async function patchVirtualMachineConsole() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const consoleName = "default"; - const consoleUpdateParameters: ConsolePatchParameters = { - enabled: "True", - expiration: new Date("2022-06-01T01:27:03.008Z"), - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ConsolesUpdateOptionalParams = { consoleUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.consoles.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - consoleName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachineConsole(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts deleted file mode 100644 index 8bd0d5763c56..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,195 +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 { KubernetesCluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json - */ -async function createOrUpdateKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterParameters: KubernetesCluster = { - aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"] - }, - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - controlPlaneNodeConfiguration: { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - vmSkuName: "NC_G4_v1" - }, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - initialAgentPoolConfigurations: [ - { - name: "SystemPool-1", - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - labels: [{ key: "kubernetes.label", value: "true" }], - mode: "System", - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - } - ], - kubernetesVersion: "1.24.12-1", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkConfiguration: { - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - bgpServiceLoadBalancerConfiguration: { - bgpAdvertisements: [ - { - advertiseToFabric: "True", - communities: ["64512:100"], - ipAddressPools: ["pool1"], - peers: ["peer1"] - } - ], - bgpPeers: [ - { - name: "peer1", - bfdEnabled: "False", - bgpMultiHop: "False", - holdTime: "P300s", - keepAliveTime: "P300s", - myAsn: 64512, - peerAddress: "203.0.113.254", - peerAsn: 64497, - peerPort: 179 - } - ], - fabricPeeringEnabled: "True", - ipAddressPools: [ - { - name: "pool1", - addresses: ["198.51.102.0/24"], - autoAssign: "True", - onlyUseHostIps: "True" - } - ] - }, - cloudServicesNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - cniNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - dnsServiceIp: "198.51.101.2", - podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"] - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts deleted file mode 100644 index 1350c6cedc9b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided Kubernetes cluster. - * - * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json - */ -async function deleteKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginDeleteAndWait( - resourceGroupName, - kubernetesClusterName - ); - console.log(result); -} - -async function main() { - deleteKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts deleted file mode 100644 index ead163c25371..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. - * - * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json - */ -async function getKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.get( - resourceGroupName, - kubernetesClusterName - ); - console.log(result); -} - -async function main() { - getKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts deleted file mode 100644 index 0141f2f6a1c1..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. - * - * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json - */ -async function listKubernetesClustersForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts deleted file mode 100644 index fadbf0774006..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. - * - * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json - */ -async function listKubernetesClustersForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.kubernetesClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listKubernetesClustersForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts deleted file mode 100644 index 1f5f7fda3ba2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts +++ /dev/null @@ -1,50 +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 { - KubernetesClusterRestartNodeParameters, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. - * - * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json - */ -async function restartAKubernetesClusterNode() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = { - nodeName: "nodeName" - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginRestartNodeAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterRestartNodeParameters - ); - console.log(result); -} - -async function main() { - restartAKubernetesClusterNode(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts deleted file mode 100644 index d1f741a4bd67..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts +++ /dev/null @@ -1,56 +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 { - KubernetesClusterPatchParameters, - KubernetesClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json - */ -async function patchKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterUpdateParameters: KubernetesClusterPatchParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: KubernetesClustersUpdateOptionalParams = { - kubernetesClusterUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts deleted file mode 100644 index e98e1748cb8f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,57 +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 { L2Network, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. - * - * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json - */ -async function createOrUpdateL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkParameters: L2Network = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - hybridAksPluginType: "DPDK", - interfaceName: "eth0", - l2IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l2NetworkName, - l2NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts deleted file mode 100644 index 926c5fa7977f..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided layer 2 (L2) network. - * - * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json - */ -async function deleteL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.beginDeleteAndWait( - resourceGroupName, - l2NetworkName - ); - console.log(result); -} - -async function main() { - deleteL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts deleted file mode 100644 index b9f744d589d5..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. - * - * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json - */ -async function getL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.get(resourceGroupName, l2NetworkName); - console.log(result); -} - -async function main() { - getL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts deleted file mode 100644 index 1181459cdac7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. - * - * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json - */ -async function listL2NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts deleted file mode 100644 index aaacc45b6098..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. - * - * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json - */ -async function listL2NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL2NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts deleted file mode 100644 index 9d097b2c628b..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - L2NetworkPatchParameters, - L2NetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. - * - * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json - */ -async function patchL2Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l2NetworkName = "l2NetworkName"; - const l2NetworkUpdateParameters: L2NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: L2NetworksUpdateOptionalParams = { l2NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l2Networks.update( - resourceGroupName, - l2NetworkName, - options - ); - console.log(result); -} - -async function main() { - patchL2Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts deleted file mode 100644 index ff2a59c5e9cd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,60 +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 { L3Network, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. - * - * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json - */ -async function createOrUpdateL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkParameters: L3Network = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - interfaceName: "eth0", - ipAllocationType: "DualStack", - ipv4ConnectedPrefix: "198.51.100.0/24", - ipv6ConnectedPrefix: "2001:db8::/64", - l3IsolationDomainId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlan: 12 - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginCreateOrUpdateAndWait( - resourceGroupName, - l3NetworkName, - l3NetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts deleted file mode 100644 index 62420a21fcc3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided layer 3 (L3) network. - * - * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json - */ -async function deleteL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.beginDeleteAndWait( - resourceGroupName, - l3NetworkName - ); - console.log(result); -} - -async function main() { - deleteL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts deleted file mode 100644 index f9fa9d18e3d3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. - * - * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json - */ -async function getL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.get(resourceGroupName, l3NetworkName); - console.log(result); -} - -async function main() { - getL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts deleted file mode 100644 index d9f8111e52ff..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. - * - * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json - */ -async function listL3NetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts deleted file mode 100644 index 3a6e4716e65c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. - * - * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json - */ -async function listL3NetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3Networks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listL3NetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts deleted file mode 100644 index c0fbd7adcb39..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - L3NetworkPatchParameters, - L3NetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. - * - * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json - */ -async function patchL3Network() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const l3NetworkName = "l3NetworkName"; - const l3NetworkUpdateParameters: L3NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: L3NetworksUpdateOptionalParams = { l3NetworkUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.l3Networks.update( - resourceGroupName, - l3NetworkName, - options - ); - console.log(result); -} - -async function main() { - patchL3Network(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts deleted file mode 100644 index e2b6e4933550..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,60 +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 { - ClusterMetricsConfiguration, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. - * - * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json - */ -async function createOrUpdateMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationParameters: ClusterMetricsConfiguration = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - metricsConfigurationParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts deleted file mode 100644 index 61d449347a3c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the metrics configuration of the provided cluster. - * - * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json - */ -async function deleteMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginDeleteAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - deleteMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts deleted file mode 100644 index 7bd3dc1518ab..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get metrics configuration of the provided cluster. - * - * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json - */ -async function getMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.get( - resourceGroupName, - clusterName, - metricsConfigurationName - ); - console.log(result); -} - -async function main() { - getMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts deleted file mode 100644 index 0db96c289859..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts +++ /dev/null @@ -1,46 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. - * - * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json - */ -async function listMetricsConfigurationsOfTheCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricsConfigurations.listByCluster( - resourceGroupName, - clusterName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricsConfigurationsOfTheCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts deleted file mode 100644 index a95ab451a933..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts +++ /dev/null @@ -1,58 +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 { - ClusterMetricsConfigurationPatchParameters, - MetricsConfigurationsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json - */ -async function patchMetricsConfigurationOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const metricsConfigurationName = "default"; - const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: MetricsConfigurationsUpdateOptionalParams = { - metricsConfigurationUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.metricsConfigurations.beginUpdateAndWait( - resourceGroupName, - clusterName, - metricsConfigurationName, - options - ); - console.log(result); -} - -async function main() { - patchMetricsConfigurationOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 55e5ced2ecbc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * - * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json - */ -async function listResourceProviderOperations() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listResourceProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts deleted file mode 100644 index 75c47ffb32b7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts +++ /dev/null @@ -1,38 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of the provided rack SKU. - * - * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json - */ -async function getRackSkuResource() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const rackSkuName = "rackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.rackSkus.get(rackSkuName); - console.log(result); -} - -async function main() { - getRackSkuResource(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts deleted file mode 100644 index 102bbee4b1ab..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. - * - * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json - */ -async function listRackSkUsForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.rackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRackSkUsForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts deleted file mode 100644 index bd47106fee7c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +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 { Rack, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new rack or update properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json - */ -async function createOrUpdateRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackParameters: Rack = { - availabilityZone: "1", - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - rackLocation: "Rack 28", - rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginCreateOrUpdateAndWait( - resourceGroupName, - rackName, - rackParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts deleted file mode 100644 index 175174428e91..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided rack. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json - */ -async function deleteRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginDeleteAndWait( - resourceGroupName, - rackName - ); - console.log(result); -} - -async function main() { - deleteRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts deleted file mode 100644 index ce6607ee76e9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided rack. - * - * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json - */ -async function getRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.get(resourceGroupName, rackName); - console.log(result); -} - -async function main() { - getRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts deleted file mode 100644 index 2449a8037439..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts +++ /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. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided resource group. - * - * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json - */ -async function listRacksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts deleted file mode 100644 index 7c4e2654586c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of racks in the provided subscription. - * - * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json - */ -async function listRacksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.racks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listRacksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts deleted file mode 100644 index c5ca795e2362..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - RackPatchParameters, - RacksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json - */ -async function patchRack() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const rackName = "rackName"; - const rackUpdateParameters: RackPatchParameters = { - rackLocation: "Rack 2B", - rackSerialNumber: "RACK_SERIAL_NUMBER", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: RacksUpdateOptionalParams = { rackUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.racks.beginUpdateAndWait( - resourceGroupName, - rackName, - options - ); - console.log(result); -} - -async function main() { - patchRack(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts deleted file mode 100644 index 631149be3396..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts +++ /dev/null @@ -1,61 +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 { StorageAppliance, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Create a new storage appliance or update the properties of the existing one. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json - */ -async function createOrUpdateStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceParameters: StorageAppliance = { - administratorCredentials: { password: "{password}", username: "adminUser" }, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - rackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceSkuId: "684E-3B16-399E", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginCreateOrUpdateAndWait( - resourceGroupName, - storageApplianceName, - storageApplianceParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts deleted file mode 100644 index ef264582ebbc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts +++ /dev/null @@ -1,45 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * - * @summary Delete the provided storage appliance. -All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json - */ -async function deleteStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDeleteAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - deleteStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts deleted file mode 100644 index 0b30a7656114..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. - * - * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json - */ -async function turnOffRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - turnOffRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts deleted file mode 100644 index 7157f25e955e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts +++ /dev/null @@ -1,54 +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 { - StorageApplianceEnableRemoteVendorManagementParameters, - StorageAppliancesEnableRemoteVendorManagementOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. - * - * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json - */ -async function turnOnRemoteVendorManagementForStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = { - supportEndpoints: ["10.0.0.0/24"] - }; - const options: StorageAppliancesEnableRemoteVendorManagementOptionalParams = { - storageApplianceEnableRemoteVendorManagementParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - turnOnRemoteVendorManagementForStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts deleted file mode 100644 index 4dbfb7f083cc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided storage appliance. - * - * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json - */ -async function getStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.get( - resourceGroupName, - storageApplianceName - ); - console.log(result); -} - -async function main() { - getStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts deleted file mode 100644 index c8dd5e2dd9f4..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided resource group. - * - * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json - */ -async function listStorageAppliancesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts deleted file mode 100644 index e1a91b14d06e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of storage appliances in the provided subscription. - * - * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json - */ -async function listStorageAppliancesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storageAppliances.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listStorageAppliancesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts deleted file mode 100644 index 4fef63297769..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts +++ /dev/null @@ -1,55 +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 { - StorageAppliancePatchParameters, - StorageAppliancesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * - * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json - */ -async function patchStorageAppliance() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const storageApplianceName = "storageApplianceName"; - const storageApplianceUpdateParameters: StorageAppliancePatchParameters = { - serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: StorageAppliancesUpdateOptionalParams = { - storageApplianceUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginUpdateAndWait( - resourceGroupName, - storageApplianceName, - options - ); - console.log(result); -} - -async function main() { - patchStorageAppliance(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts deleted file mode 100644 index 6da36dfb08ee..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +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 { TrunkedNetwork, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. - * - * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json - */ -async function createOrUpdateTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkParameters: TrunkedNetwork = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - interfaceName: "eth0", - isolationDomainIds: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName" - ], - location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" }, - vlans: [12, 14] - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( - resourceGroupName, - trunkedNetworkName, - trunkedNetworkParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts deleted file mode 100644 index 4baf6c2974e7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided trunked network. - * - * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json - */ -async function deleteTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.beginDeleteAndWait( - resourceGroupName, - trunkedNetworkName - ); - console.log(result); -} - -async function main() { - deleteTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts deleted file mode 100644 index 1ef09272355e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided trunked network. - * - * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json - */ -async function getTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.get( - resourceGroupName, - trunkedNetworkName - ); - console.log(result); -} - -async function main() { - getTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts deleted file mode 100644 index 60e72145bb4c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided resource group. - * - * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json - */ -async function listTrunkedNetworksForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts deleted file mode 100644 index a6630bf4b519..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of trunked networks in the provided subscription. - * - * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json - */ -async function listTrunkedNetworksForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.trunkedNetworks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTrunkedNetworksForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts deleted file mode 100644 index c3d281903f00..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts +++ /dev/null @@ -1,54 +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 { - TrunkedNetworkPatchParameters, - TrunkedNetworksUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided trunked network. - * - * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json - */ -async function patchTrunkedNetwork() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const trunkedNetworkName = "trunkedNetworkName"; - const trunkedNetworkUpdateParameters: TrunkedNetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: TrunkedNetworksUpdateOptionalParams = { - trunkedNetworkUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.trunkedNetworks.update( - resourceGroupName, - trunkedNetworkName, - options - ); - console.log(result); -} - -async function main() { - patchTrunkedNetwork(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts deleted file mode 100644 index 8d6718892267..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,107 +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 { VirtualMachine, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. - * - * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json - */ -async function createOrUpdateVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineParameters: VirtualMachine = { - adminUsername: "username", - bootMethod: "UEFI", - cloudServicesNetworkAttachment: { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - ipAllocationMethod: "Dynamic" - }, - cpuCores: 2, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - memorySizeGB: 8, - networkAttachments: [ - { - attachedNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - defaultGateway: "True", - ipAllocationMethod: "Dynamic", - ipv4Address: "198.51.100.1", - ipv6Address: "2001:0db8:0000:0000:0000:0000:0000:0000", - networkAttachmentName: "netAttachName01" - } - ], - networkData: "bmV0d29ya0RhdGVTYW1wbGU=", - placementHints: [ - { - hintType: "Affinity", - resourceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", - schedulingExecution: "Hard", - scope: "" - } - ], - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ], - storageProfile: { - osDisk: { - createOption: "Ephemeral", - deleteOption: "Delete", - diskSizeGB: 120 - }, - volumeAttachments: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName" - ] - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - userData: "dXNlckRhdGVTYW1wbGU=", - vmDeviceModel: "T2", - vmImage: "myacr.azurecr.io/foobar:latest", - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser" - } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginCreateOrUpdateAndWait( - resourceGroupName, - virtualMachineName, - virtualMachineParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts deleted file mode 100644 index 7e629f112867..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided virtual machine. - * - * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json - */ -async function deleteVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginDeleteAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - deleteVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts deleted file mode 100644 index d725e7bb842d..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided virtual machine. - * - * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json - */ -async function getVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.get( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - getVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts deleted file mode 100644 index facafcb8ce03..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided resource group. - * - * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json - */ -async function listVirtualMachinesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts deleted file mode 100644 index 2ed3944d2b45..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of virtual machines in the provided subscription. - * - * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json - */ -async function listVirtualMachinesForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualMachines.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualMachinesForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts deleted file mode 100644 index c706c16583ea..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts +++ /dev/null @@ -1,54 +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 { - VirtualMachinePowerOffParameters, - VirtualMachinesPowerOffOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Power off the provided virtual machine. - * - * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json - */ -async function powerOffVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachinePowerOffParameters: VirtualMachinePowerOffParameters = { - skipShutdown: "True" - }; - const options: VirtualMachinesPowerOffOptionalParams = { - virtualMachinePowerOffParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginPowerOffAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - powerOffVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts deleted file mode 100644 index eb5b51d4f9fe..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reimage the provided virtual machine. - * - * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json - */ -async function reimageVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginReimageAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - reimageVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts deleted file mode 100644 index 1cfdb6d2a9e0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restart the provided virtual machine. - * - * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json - */ -async function restartVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginRestartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - restartVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts deleted file mode 100644 index 55bcc24d32e0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Start the provided virtual machine. - * - * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json - */ -async function startVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginStartAndWait( - resourceGroupName, - virtualMachineName - ); - console.log(result); -} - -async function main() { - startVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts deleted file mode 100644 index b4c906a0564c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts +++ /dev/null @@ -1,59 +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 { - VirtualMachinePatchParameters, - VirtualMachinesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json - */ -async function patchVirtualMachine() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const virtualMachineName = "virtualMachineName"; - const virtualMachineUpdateParameters: VirtualMachinePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - vmImageRepositoryCredentials: { - password: "{password}", - registryUrl: "myacr.azurecr.io", - username: "myuser" - } - }; - const options: VirtualMachinesUpdateOptionalParams = { - virtualMachineUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.virtualMachines.beginUpdateAndWait( - resourceGroupName, - virtualMachineName, - options - ); - console.log(result); -} - -async function main() { - patchVirtualMachine(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts deleted file mode 100644 index ef0e7890c6d3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts +++ /dev/null @@ -1,54 +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 { Volume, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new volume or update the properties of the existing one. - * - * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json - */ -async function createOrUpdateVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeParameters: Volume = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - volumeName, - volumeParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts deleted file mode 100644 index 4b04e9295623..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided volume. - * - * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function deleteVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - volumeName - ); - console.log(result); -} - -async function main() { - deleteVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts deleted file mode 100644 index 8853154ecebd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided volume. - * - * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json - */ -async function getVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - getVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts deleted file mode 100644 index 4bb197be20b2..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided resource group. - * - * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json - */ -async function listVolumesForResourceGroup() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumesForResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts deleted file mode 100644 index 5b8d66ceddaf..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +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 { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of volumes in the provided subscription. - * - * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json - */ -async function listVolumeForSubscription() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVolumeForSubscription(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts deleted file mode 100644 index b35b7c0bcf70..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts +++ /dev/null @@ -1,52 +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 { - VolumePatchParameters, - VolumesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided volume. - * - * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json - */ -async function patchVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeUpdateParameters: VolumePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: VolumesUpdateOptionalParams = { volumeUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.update( - resourceGroupName, - volumeName, - options - ); - console.log(result); -} - -async function main() { - patchVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts b/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts +++ b/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/networkcloud/arm-networkcloud/src/models/index.ts b/sdk/networkcloud/arm-networkcloud/src/models/index.ts index 92e8f4a40567..8a3bed5124e2 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/index.ts @@ -245,6 +245,83 @@ export interface HardwareValidationStatus { readonly result?: BareMetalMachineHardwareValidationResult; } +/** RuntimeProtectionStatus represents the runtime protection status of the bare metal machine. */ +export interface RuntimeProtectionStatus { + /** + * The timestamp when the malware definitions were last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly definitionsLastUpdated?: Date; + /** + * The version of the malware definitions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly definitionsVersion?: string; + /** + * The timestamp of the most recently completed scan, or empty if there has never been a scan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanCompletedTime?: Date; + /** + * The timestamp of the most recently scheduled scan, or empty if no scan has been scheduled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanScheduledTime?: Date; + /** + * The timestamp of the most recently started scan, or empty if there has never been a scan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanStartedTime?: Date; +} + +/** SecretRotationStatus represents the status of a secret rotation. */ +export interface SecretRotationStatus { + /** + * The maximum number of days the secret may be used before it must be changed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirePeriodDays?: number; + /** + * The date and time when the secret was last changed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRotationTime?: Date; + /** + * The number of days a secret exists before rotations will be attempted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rotationPeriodDays?: number; + /** + * The reference to the secret in a key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretArchiveReference?: SecretArchiveReference; + /** + * The type name used to identify the purpose of the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretType?: string; +} + +/** SecretArchiveReference represents the reference to a secret in a key vault. */ +export interface SecretArchiveReference { + /** + * The resource ID of the key vault containing the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyVaultId?: string; + /** + * The name of the secret in the key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretName?: string; + /** + * The version of the secret in the key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretVersion?: string; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -317,6 +394,40 @@ export interface ClusterManagerList { value?: ClusterManager[]; } +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity | null; + }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + /** ClusterAvailableVersion represents the cluster version that the cluster manager can be asked to create and manage. */ export interface ClusterAvailableVersion { /** @@ -439,21 +550,21 @@ export interface ClusterAvailableUpgradeVersion { /** ClusterCapacity represents various details regarding compute capacity. */ export interface ClusterCapacity { - /** The remaining appliance-based storage in GB available for workload use. */ + /** The remaining appliance-based storage in GB available for workload use. Measured in gibibytes. */ availableApplianceStorageGB?: number; /** The remaining number of cores that are available in this cluster for workload use. */ availableCoreCount?: number; - /** The remaining machine or host-based storage in GB available for workload use. */ + /** The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes. */ availableHostStorageGB?: number; - /** The remaining memory in GB that are available in this cluster for workload use. */ + /** The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes. */ availableMemoryGB?: number; - /** The total appliance-based storage in GB supported by this cluster for workload use. */ + /** The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ totalApplianceStorageGB?: number; /** The total number of cores that are supported by this cluster for workload use. */ totalCoreCount?: number; - /** The total machine or host-based storage in GB supported by this cluster for workload use. */ + /** The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ totalHostStorageGB?: number; - /** The total memory supported by this cluster for workload use. */ + /** The total memory supported by this cluster for workload use. Measured in gibibytes. */ totalMemoryGB?: number; } @@ -469,6 +580,22 @@ export interface ServicePrincipalInformation { tenantId: string; } +/** CommandOutputSettings represents the settings for commands run within the cluster such as bare metal machine run read-only commands. */ +export interface CommandOutputSettings { + /** The selection of the managed identity to use with this storage account container. The identity type must be either system assigned or user assigned. */ + associatedIdentity?: IdentitySelector; + /** The URL of the storage account container that is to be used by the specified identities. */ + containerUrl?: string; +} + +/** IdentitySelector represents the selection of a managed identity for use. */ +export interface IdentitySelector { + /** The type of managed identity that is being selected. */ + identityType?: ManagedServiceIdentitySelectorType; + /** The user assigned managed identity resource ID to use. Mutually exclusive with a system assigned identity type. */ + userAssignedIdentityResourceId?: string; +} + /** ValidationThreshold indicates allowed machine and node hardware and deployment failures. */ export interface ValidationThreshold { /** Selection of how the type evaluation is applied to the cluster calculation. */ @@ -479,6 +606,37 @@ export interface ValidationThreshold { value: number; } +/** RuntimeProtectionConfiguration represents the runtime protection configuration for the cluster. */ +export interface RuntimeProtectionConfiguration { + /** The mode of operation for runtime protection. */ + enforcementLevel?: RuntimeProtectionEnforcementLevel; +} + +/** ClusterSecretArchive configures the key vault to archive the secrets of the cluster for later retrieval. */ +export interface ClusterSecretArchive { + /** The resource ID of the key vault to archive the secrets of the cluster. */ + keyVaultId: string; + /** The indicator if the specified key vault should be used to archive the secrets of the cluster. */ + useKeyVault?: ClusterSecretArchiveEnabled; +} + +/** ClusterUpdateStrategy represents the strategy for updating the cluster. */ +export interface ClusterUpdateStrategy { + /** + * The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack. + * Limited by the maximum number of machines in the increment. Defaults to the whole increment size. + */ + maxUnavailable?: number; + /** The mode of operation for runtime protection. */ + strategyType: ClusterUpdateStrategyType; + /** Selection of how the threshold should be evaluated. */ + thresholdType: ValidationThresholdType; + /** The numeric threshold value. */ + thresholdValue: number; + /** The time to wait between the increments of update defined by the strategy. */ + waitTimeMinutes?: number; +} + /** KubernetesClusterList represents a list of Kubernetes clusters. */ export interface KubernetesClusterList { /** The link used to get the next page of operations. */ @@ -637,15 +795,19 @@ export interface KubernetesLabel { /** AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. */ export interface AgentPoolUpgradeSettings { - /** The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. */ + /** The maximum time in seconds that is allowed for a node drain to complete before proceeding with the upgrade of the agent pool. If not specified during creation, a value of 1800 seconds is used. */ + drainTimeout?: number; + /** The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified during creation, a value of 1 is used. One of MaxSurge and MaxUnavailable must be greater than 0. */ maxSurge?: string; + /** The maximum number or percentage of nodes that can be unavailable during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified during creation, a value of 0 is used. One of MaxSurge and MaxUnavailable must be greater than 0. */ + maxUnavailable?: string; } /** NetworkConfiguration specifies the Kubernetes cluster network related configuration. */ export interface NetworkConfiguration { /** The configuration of networks being attached to the cluster for use by the workloads that run on this Kubernetes cluster. */ attachedNetworkConfiguration?: AttachedNetworkConfiguration; - /** The configuration of the BGP service load balancer for this Kubernetes cluster. */ + /** The configuration of the BGP service load balancer for this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. */ bgpServiceLoadBalancerConfiguration?: BgpServiceLoadBalancerConfiguration; /** The resource ID of the associated Cloud Services network. */ cloudServicesNetworkId: string; @@ -653,6 +815,8 @@ export interface NetworkConfiguration { cniNetworkId: string; /** The IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in service CIDR. */ dnsServiceIp?: string; + /** The configuration of the Layer 2 service load balancer for this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. */ + l2ServiceLoadBalancerConfiguration?: L2ServiceLoadBalancerConfiguration; /** The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ podCidrs?: string[]; /** The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ @@ -667,7 +831,7 @@ export interface BgpServiceLoadBalancerConfiguration { bgpPeers?: ServiceLoadBalancerBgpPeer[]; /** The indicator to specify if the load balancer peers with the network fabric. */ fabricPeeringEnabled?: FabricPeeringEnabled; - /** The list of pools of IP addresses that can be allocated to Load Balancer services. */ + /** The list of pools of IP addresses that can be allocated to load balancer services. */ ipAddressPools?: IpAddressPool[]; } @@ -689,9 +853,9 @@ export interface ServiceLoadBalancerBgpPeer { bfdEnabled?: BfdEnabled; /** The indicator to enable multi-hop peering support. */ bgpMultiHop?: BgpMultiHop; - /** The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. */ + /** Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. */ holdTime?: string; - /** The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. */ + /** Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. */ keepAliveTime?: string; /** The autonomous system number used for the local end of the BGP session. */ myAsn?: number; @@ -709,7 +873,7 @@ export interface ServiceLoadBalancerBgpPeer { /** IpAddressPool represents a pool of IP addresses that can be allocated to a service. */ export interface IpAddressPool { - /** The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range of IP addresses. */ + /** The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range of IP addresses. For a BGP service load balancer configuration, only CIDR format is supported and excludes /32 (IPv4) and /128 (IPv6) prefixes. */ addresses: string[]; /** The indicator to determine if automatic allocation from the pool should occur. */ autoAssign?: BfdEnabled; @@ -719,6 +883,12 @@ export interface IpAddressPool { onlyUseHostIps?: BfdEnabled; } +/** L2ServiceLoadBalancerConfiguration represents the configuration of a layer 2 service load balancer. */ +export interface L2ServiceLoadBalancerConfiguration { + /** The list of pools of IP addresses that can be allocated to load balancer services. */ + ipAddressPools?: IpAddressPool[]; +} + /** KubernetesClusterNode represents the details of a node in a Kubernetes cluster. */ export interface KubernetesClusterNode { /** @@ -752,7 +922,7 @@ export interface KubernetesClusterNode { */ readonly detailedStatusMessage?: string; /** - * The size of the disk configured for this node. + * The size of the disk configured for this node. Allocations are measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly diskSizeGB?: number; @@ -772,7 +942,7 @@ export interface KubernetesClusterNode { */ readonly labels?: KubernetesLabel[]; /** - * The amount of memory configured for this node, derived from the vm SKU specified. + * The amount of memory configured for this node, derived from the vm SKU specified. Allocations are measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly memorySizeGB?: number; @@ -929,7 +1099,7 @@ export interface MachineSkuSlot { */ readonly hardwareVersion?: string; /** - * The maximum amount of memory in GB. + * The maximum amount of memory. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly memoryCapacityGB?: number; @@ -958,7 +1128,7 @@ export interface MachineSkuSlot { /** Disk represents the properties of the disk. */ export interface MachineDisk { /** - * The maximum amount of storage in GB. + * The maximum amount of storage. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityGB?: number; @@ -1002,7 +1172,7 @@ export interface NetworkInterface { */ readonly portCount?: number; /** - * The maximum amount of data in GB that the line card transmits through a port at any given second. + * The maximum amount of data in gigabits that the line card transmits through a port at any given second. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly portSpeed?: number; @@ -1021,7 +1191,7 @@ export interface StorageApplianceSkuSlot { */ readonly rackSlot?: number; /** - * The maximum capacity of the storage appliance. + * The maximum capacity of the storage appliance. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityGB?: number; @@ -1090,7 +1260,7 @@ export interface OsDisk { createOption?: OsDiskCreateOption; /** The strategy for deleting the OS disk. */ deleteOption?: OsDiskDeleteOption; - /** The size of the disk in gigabytes. Required if the createOption is Ephemeral. */ + /** The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes. */ diskSizeGB: number; } @@ -1112,6 +1282,72 @@ export interface VolumeList { value?: Volume[]; } +/** The current status of an async operation. */ +export interface OperationStatusResult { + /** + * The end time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** + * If present, details of the operation error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ErrorDetail; + /** + * Fully qualified ID for the async operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Name of the async operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The operations list. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operations?: OperationStatusResult[]; + /** + * Percent of the operation that is complete. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * Fully qualified ID of the resource against which the original async operation was started. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceId?: string; + /** + * The start time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** Operation status. */ + status: string; + /** + * For actions that run commands or scripts, the exit code of the script execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly exitCode?: string; + /** + * For actions that run commands or scripts, the leading bytes of the output of the script execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outputHead?: string; + /** + * For actions that run commands or scripts, a reference to the location of the result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultRef?: string; + /** + * For actions that run commands or scripts, the URL where the full output of the script output can be retrieved. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultUrl?: string; +} + /** BareMetalMachinePatchParameters represents the body of the request to patch bare metal machine properties. */ export interface BareMetalMachinePatchParameters { /** The Azure resource tags that will replace the existing ones. */ @@ -1129,31 +1365,6 @@ export interface BareMetalMachineCordonParameters { evacuate?: BareMetalMachineEvacuate; } -/** The current status of an async operation. */ -export interface OperationStatusResult { - /** Fully qualified ID for the async operation. */ - id?: string; - /** - * Fully qualified ID of the resource against which the original async operation was started. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; - /** Name of the async operation. */ - name?: string; - /** Operation status. */ - status: string; - /** Percent of the operation that is complete. */ - percentComplete?: number; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The operations list. */ - operations?: OperationStatusResult[]; - /** If present, details of the operation error. */ - error?: ErrorDetail; -} - /** BareMetalMachinePowerOffParameters represents the body of the request to power off bare metal machine. */ export interface BareMetalMachinePowerOffParameters { /** The indicator of whether to skip the graceful OS shutdown and power off the bare metal machine immediately. */ @@ -1229,12 +1440,16 @@ export interface CloudServicesNetworkPatchParameters { /** ClusterManagerPatchParameters represents the body of the request to patch the cluster properties. */ export interface ClusterManagerPatchParameters { + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; } /** ClusterPatchParameters represents the body of the request to patch the cluster properties. */ export interface ClusterPatchParameters { + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; /** The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. */ @@ -1243,6 +1458,8 @@ export interface ClusterPatchParameters { clusterLocation?: string; /** The service principal to be used by the cluster during Arc Appliance installation. */ clusterServicePrincipal?: ServicePrincipalInformation; + /** The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. */ + commandOutputSettings?: CommandOutputSettings; /** The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. */ computeDeploymentThreshold?: ValidationThreshold; /** @@ -1250,6 +1467,12 @@ export interface ClusterPatchParameters { * cluster, or an empty list in a single-rack cluster. */ computeRackDefinitions?: RackDefinition[]; + /** The settings for cluster runtime protection. */ + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + /** The configuration for use of a key vault to store secrets for later retrieval by the operator. */ + secretArchive?: ClusterSecretArchive; + /** The strategy for updating the cluster. */ + updateStrategy?: ClusterUpdateStrategy; } /** BareMetalMachineKeySetList represents a list of bare metal machine key sets. */ @@ -1268,6 +1491,8 @@ export interface KeySetUser { description?: string; /** The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in. */ sshPublicKey: SshPublicKey; + /** The user principal name (email format) used to validate this user's group membership. */ + userPrincipalName?: string; } /** KeySetUserStatus represents the status of the key set user. */ @@ -1319,6 +1544,12 @@ export interface BmcKeySetPatchParameters { userList?: KeySetUser[]; } +/** ClusterContinueUpdateVersionParameters represents the body of the request to continue the update of a cluster version. */ +export interface ClusterContinueUpdateVersionParameters { + /** The mode by which the cluster will target the next grouping of servers to continue the update. */ + machineGroupTargetingMode?: ClusterContinueUpdateVersionMachineGroupTargetingMode; +} + /** ClusterDeployParameters represents the body of the request to deploy cluster. */ export interface ClusterDeployParameters { /** The names of bare metal machines in the cluster that should be skipped during environment validation. */ @@ -1343,6 +1574,12 @@ export interface ClusterMetricsConfigurationPatchParameters { enabledMetrics?: string[]; } +/** ClusterScanRuntimeParameters defines the parameters for the cluster scan runtime operation. */ +export interface ClusterScanRuntimeParameters { + /** The choice of if the scan operation should run the scan. */ + scanActivity?: ClusterScanRuntimeParametersScanActivity; +} + /** ClusterUpdateVersionParameters represents the body of the request to update cluster version. */ export interface ClusterUpdateVersionParameters { /** The version to be applied to the cluster during update. */ @@ -1353,14 +1590,24 @@ export interface ClusterUpdateVersionParameters { export interface KubernetesClusterPatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; + /** The configuration of the default administrator credentials. */ + administratorConfiguration?: AdministratorConfigurationPatch; /** The defining characteristics of the control plane that can be patched for this Kubernetes cluster. */ controlPlaneNodeConfiguration?: ControlPlaneNodePatchConfiguration; - /** The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used will be resolved into this field after creation or update. */ + /** The Kubernetes version for this cluster. */ kubernetesVersion?: string; } +/** AdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. */ +export interface AdministratorConfigurationPatch { + /** SshPublicKey represents the public key used to authenticate with a resource through SSH. */ + sshPublicKeys?: SshPublicKey[]; +} + /** ControlPlaneNodePatchConfiguration represents the properties of the control plane that can be patched for this Kubernetes cluster. */ export interface ControlPlaneNodePatchConfiguration { + /** The configuration of administrator credentials for the control plane nodes. */ + administratorConfiguration?: AdministratorConfigurationPatch; /** The number of virtual machines that use this configuration. */ count?: number; } @@ -1377,12 +1624,44 @@ export interface AgentPoolList { export interface AgentPoolPatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; + /** The configuration of administrator credentials for the control plane nodes. */ + administratorConfiguration?: NodePoolAdministratorConfigurationPatch; /** The number of virtual machines that use this configuration. */ count?: number; /** The configuration of the agent pool. */ upgradeSettings?: AgentPoolUpgradeSettings; } +/** NodePoolAdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. */ +export interface NodePoolAdministratorConfigurationPatch { + /** SshPublicKey represents the public key used to authenticate with a resource through SSH. */ + sshPublicKeys?: SshPublicKey[]; +} + +/** KubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources. */ +export interface KubernetesClusterFeatureList { + /** The link used to get the next page of operations. */ + nextLink?: string; + /** The list of Kubernetes cluster features. */ + value?: KubernetesClusterFeature[]; +} + +/** StringKeyValuePair represents a single entry in a mapping of keys to values. */ +export interface StringKeyValuePair { + /** The key to the mapped value. */ + key: string; + /** The value of the mapping key. */ + value: string; +} + +/** KubernetesClusterFeaturePatchParameters represents the body of the request to patch the Kubernetes cluster feature. */ +export interface KubernetesClusterFeaturePatchParameters { + /** The Azure resource tags that will replace the existing ones. */ + tags?: { [propertyName: string]: string }; + /** The configured options for the feature. */ + options?: StringKeyValuePair[]; +} + /** KubernetesClusterRestartNodeParameters represents the body of the request to restart the node of a Kubernetes cluster. */ export interface KubernetesClusterRestartNodeParameters { /** The name of the node to restart. */ @@ -1451,7 +1730,7 @@ export interface ConsoleList { export interface ConsolePatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; - /** The credentials used to login to the image repository that has access to the specified image. */ + /** The indicator of whether the console access is enabled. */ enabled?: ConsoleEnabled; /** The date and time after which the key will be disallowed access. */ expiration?: Date; @@ -1615,10 +1894,17 @@ export interface BareMetalMachine extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kubernetesVersion?: string; + /** The cluster version that has been applied to this machine during deployment or a version update. */ + machineClusterVersion?: string; /** The custom details provided by the customer. */ machineDetails: string; /** The OS-level hostname assigned to this machine. */ machineName: string; + /** + * The list of roles that are assigned to the cluster node running on this machine. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly machineRoles?: string[]; /** The unique internal identifier of the bare metal machine SKU. */ machineSkuId: string; /** @@ -1655,6 +1941,16 @@ export interface BareMetalMachine extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly readyState?: BareMetalMachineReadyState; + /** + * The runtime protection status of the bare metal machine. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runtimeProtectionStatus?: RuntimeProtectionStatus; + /** + * The list of statuses that represent secret rotation activity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretRotationStatus?: SecretRotationStatus[]; /** The serial number of the bare metal machine. */ serialNumber: string; /** @@ -1731,6 +2027,8 @@ export interface CloudServicesNetwork extends TrackedResource { /** ClusterManager represents a control-plane to manage one or more on-premises clusters. */ export interface ClusterManager extends TrackedResource { + /** The identity of the cluster manager. */ + identity?: ManagedServiceIdentity; /** The resource ID of the Log Analytics workspace that is used for the logs collection. */ analyticsWorkspaceId?: string; /** Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The Azure availability zones within the region that will be used to support the cluster manager resource. */ @@ -1772,6 +2070,8 @@ export interface ClusterManager extends TrackedResource { export interface Cluster extends TrackedResource { /** The extended location of the cluster manager associated with the cluster. */ extendedLocation: ExtendedLocation; + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. */ aggregatorOrSingleRackDefinition: RackDefinition; /** The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. */ @@ -1814,6 +2114,8 @@ export interface Cluster extends TrackedResource { clusterType: ClusterType; /** The current runtime version of the cluster. */ clusterVersion: string; + /** The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. */ + commandOutputSettings?: CommandOutputSettings; /** The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. */ computeDeploymentThreshold?: ValidationThreshold; /** @@ -1850,11 +2152,17 @@ export interface Cluster extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ClusterProvisioningState; + /** The settings for cluster runtime protection. */ + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + /** The configuration for use of a key vault to store secrets for later retrieval by the operator. */ + secretArchive?: ClusterSecretArchive; /** * The support end date of the runtime version of the cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportExpiryDate?: string; + /** The strategy for updating the cluster. */ + updateStrategy?: ClusterUpdateStrategy; /** * The list of workload resource IDs that are hosted within this cluster. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1914,7 +2222,7 @@ export interface KubernetesCluster extends TrackedResource { readonly featureStatuses?: FeatureStatus[]; /** The agent pools that are created with this Kubernetes cluster for running critical system services and workloads. This data in this field is only used during creation, and the field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent pools is done using the agentPools sub-resource. */ initialAgentPoolConfigurations: InitialAgentPoolConfiguration[]; - /** The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used will be resolved into this field after creation or update. */ + /** The Kubernetes version for this cluster. */ kubernetesVersion: string; /** The configuration of the managed resource group associated with the resource. */ managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; @@ -2112,6 +2420,16 @@ export interface StorageAppliance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managementIpv4Address?: string; + /** + * The manufacturer of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly manufacturer?: string; + /** + * The model of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly model?: string; /** * The provisioning state of the storage appliance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2131,10 +2449,20 @@ export interface StorageAppliance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly remoteVendorManagementStatus?: RemoteVendorManagementStatus; + /** + * The list of statuses that represent secret rotation activity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretRotationStatus?: SecretRotationStatus[]; /** The serial number for the storage appliance. */ serialNumber: string; /** The SKU for the storage appliance. */ storageApplianceSkuId: string; + /** + * The version of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } /** TrunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to create a trunked network. */ @@ -2198,7 +2526,7 @@ export interface VirtualMachine extends TrackedResource { */ readonly availabilityZone?: string; /** - * The resource ID of the bare metal machine the virtual machine has landed to. + * The resource ID of the bare metal machine that hosts the virtual machine. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly bareMetalMachineId?: string; @@ -2225,7 +2553,7 @@ export interface VirtualMachine extends TrackedResource { readonly detailedStatusMessage?: string; /** Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. */ isolateEmulatorThread?: VirtualMachineIsolateEmulatorThread; - /** The memory size of the virtual machine in GB. */ + /** The memory size of the virtual machine. Allocations are measured in gibibytes. */ memorySizeGB: number; /** The list of network attachments to the virtual machine. */ networkAttachments?: NetworkAttachment[]; @@ -2455,6 +2783,42 @@ export interface AgentPool extends TrackedResource { vmSkuName: string; } +/** KubernetesClusterFeature represents the feature of a Kubernetes cluster. */ +export interface KubernetesClusterFeature extends TrackedResource { + /** + * The lifecycle indicator of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilityLifecycle?: KubernetesClusterFeatureAvailabilityLifecycle; + /** + * The detailed status of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly detailedStatus?: KubernetesClusterFeatureDetailedStatus; + /** + * The descriptive message for the detailed status of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly detailedStatusMessage?: string; + /** The configured options for the feature. */ + options?: StringKeyValuePair[]; + /** + * The provisioning state of the Kubernetes cluster feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: KubernetesClusterFeatureProvisioningState; + /** + * The indicator of if the feature is required or optional. Optional features may be deleted by the user, while required features are managed with the kubernetes cluster lifecycle. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly required?: KubernetesClusterFeatureRequired; + /** + * The version of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; +} + /** Console represents the console of an on-premises Network Cloud virtual machine. */ export interface Console extends TrackedResource { /** The extended location of the cluster manager associated with the cluster this virtual machine is created on. */ @@ -2508,6 +2872,8 @@ export interface BareMetalMachinesDeleteHeaders { export interface BareMetalMachinesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for BareMetalMachines_cordon operation. */ @@ -2586,6 +2952,8 @@ export interface CloudServicesNetworksDeleteHeaders { export interface CloudServicesNetworksUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for ClusterManagers_createOrUpdate operation. */ @@ -2616,6 +2984,14 @@ export interface ClustersDeleteHeaders { export interface ClustersUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for Clusters_continueUpdateVersion operation. */ +export interface ClustersContinueUpdateVersionHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for Clusters_deploy operation. */ @@ -2624,6 +3000,12 @@ export interface ClustersDeployHeaders { location?: string; } +/** Defines headers for Clusters_scanRuntime operation. */ +export interface ClustersScanRuntimeHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + /** Defines headers for Clusters_updateVersion operation. */ export interface ClustersUpdateVersionHeaders { /** The URL to retrieve the status of the asynchronous operation. */ @@ -2646,6 +3028,8 @@ export interface KubernetesClustersDeleteHeaders { export interface KubernetesClustersUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for KubernetesClusters_restartNode operation. */ @@ -2694,6 +3078,8 @@ export interface RacksDeleteHeaders { export interface RacksUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for StorageAppliances_createOrUpdate operation. */ @@ -2712,6 +3098,8 @@ export interface StorageAppliancesDeleteHeaders { export interface StorageAppliancesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for StorageAppliances_disableRemoteVendorManagement operation. */ @@ -2754,6 +3142,8 @@ export interface VirtualMachinesDeleteHeaders { export interface VirtualMachinesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for VirtualMachines_powerOff operation. */ @@ -2808,6 +3198,8 @@ export interface BareMetalMachineKeySetsDeleteHeaders { export interface BareMetalMachineKeySetsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for BmcKeySets_createOrUpdate operation. */ @@ -2826,6 +3218,8 @@ export interface BmcKeySetsDeleteHeaders { export interface BmcKeySetsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for MetricsConfigurations_createOrUpdate operation. */ @@ -2844,6 +3238,8 @@ export interface MetricsConfigurationsDeleteHeaders { export interface MetricsConfigurationsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for AgentPools_createOrUpdate operation. */ @@ -2862,6 +3258,28 @@ export interface AgentPoolsDeleteHeaders { export interface AgentPoolsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for KubernetesClusterFeatures_createOrUpdate operation. */ +export interface KubernetesClusterFeaturesCreateOrUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for KubernetesClusterFeatures_delete operation. */ +export interface KubernetesClusterFeaturesDeleteHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for KubernetesClusterFeatures_update operation. */ +export interface KubernetesClusterFeaturesUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for Consoles_createOrUpdate operation. */ @@ -2880,6 +3298,8 @@ export interface ConsolesDeleteHeaders { export interface ConsolesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Known values of {@link Origin} that the service accepts. */ @@ -2889,7 +3309,7 @@ export enum KnownOrigin { /** System */ System = "system", /** UserSystem */ - UserSystem = "user,system" + UserSystem = "user,system", } /** @@ -2906,7 +3326,7 @@ export type Origin = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -2923,7 +3343,7 @@ export enum KnownBareMetalMachineCordonStatus { /** Cordoned */ Cordoned = "Cordoned", /** Uncordoned */ - Uncordoned = "Uncordoned" + Uncordoned = "Uncordoned", } /** @@ -2949,7 +3369,7 @@ export enum KnownBareMetalMachineDetailedStatus { /** Provisioned */ Provisioned = "Provisioned", /** Deprovisioning */ - Deprovisioning = "Deprovisioning" + Deprovisioning = "Deprovisioning", } /** @@ -2971,7 +3391,7 @@ export enum KnownBareMetalMachineHardwareValidationResult { /** Pass */ Pass = "Pass", /** Fail */ - Fail = "Fail" + Fail = "Fail", } /** @@ -2989,7 +3409,7 @@ export enum KnownBareMetalMachinePowerState { /** On */ On = "On", /** Off */ - Off = "Off" + Off = "Off", } /** @@ -3013,7 +3433,7 @@ export enum KnownBareMetalMachineProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3034,7 +3454,7 @@ export enum KnownBareMetalMachineReadyState { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3056,7 +3476,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -3078,7 +3498,7 @@ export enum KnownCloudServicesNetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3097,7 +3517,7 @@ export enum KnownCloudServicesNetworkEnableDefaultEgressEndpoints { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3121,7 +3541,7 @@ export enum KnownCloudServicesNetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3137,6 +3557,30 @@ export enum KnownCloudServicesNetworkProvisioningState { */ export type CloudServicesNetworkProvisioningState = string; +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type ManagedServiceIdentityType = string; + /** Known values of {@link ClusterManagerDetailedStatus} that the service accepts. */ export enum KnownClusterManagerDetailedStatus { /** Error */ @@ -3150,7 +3594,7 @@ export enum KnownClusterManagerDetailedStatus { /** Updating */ Updating = "Updating", /** UpdateFailed */ - UpdateFailed = "UpdateFailed" + UpdateFailed = "UpdateFailed", } /** @@ -3180,7 +3624,7 @@ export enum KnownClusterManagerProvisioningState { /** Accepted */ Accepted = "Accepted", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3202,7 +3646,7 @@ export enum KnownControlImpact { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3220,7 +3664,7 @@ export enum KnownWorkloadImpact { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3237,10 +3681,12 @@ export type WorkloadImpact = string; export enum KnownClusterConnectionStatus { /** Connected */ Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", /** Timeout */ Timeout = "Timeout", /** Undefined */ - Undefined = "Undefined" + Undefined = "Undefined", } /** @@ -3249,6 +3695,7 @@ export enum KnownClusterConnectionStatus { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Connected** \ + * **Disconnected** \ * **Timeout** \ * **Undefined** */ @@ -3259,7 +3706,7 @@ export enum KnownClusterManagerConnectionStatus { /** Connected */ Connected = "Connected", /** Unreachable */ - Unreachable = "Unreachable" + Unreachable = "Unreachable", } /** @@ -3277,7 +3724,7 @@ export enum KnownClusterType { /** SingleRack */ SingleRack = "SingleRack", /** MultiRack */ - MultiRack = "MultiRack" + MultiRack = "MultiRack", } /** @@ -3290,12 +3737,30 @@ export enum KnownClusterType { */ export type ClusterType = string; +/** Known values of {@link ManagedServiceIdentitySelectorType} that the service accepts. */ +export enum KnownManagedServiceIdentitySelectorType { + /** SystemAssignedIdentity */ + SystemAssignedIdentity = "SystemAssignedIdentity", + /** UserAssignedIdentity */ + UserAssignedIdentity = "UserAssignedIdentity", +} + +/** + * Defines values for ManagedServiceIdentitySelectorType. \ + * {@link KnownManagedServiceIdentitySelectorType} can be used interchangeably with ManagedServiceIdentitySelectorType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssignedIdentity** \ + * **UserAssignedIdentity** + */ +export type ManagedServiceIdentitySelectorType = string; + /** Known values of {@link ValidationThresholdGrouping} that the service accepts. */ export enum KnownValidationThresholdGrouping { /** PerCluster */ PerCluster = "PerCluster", /** PerRack */ - PerRack = "PerRack" + PerRack = "PerRack", } /** @@ -3313,7 +3778,7 @@ export enum KnownValidationThresholdType { /** CountSuccess */ CountSuccess = "CountSuccess", /** PercentSuccess */ - PercentSuccess = "PercentSuccess" + PercentSuccess = "PercentSuccess", } /** @@ -3336,6 +3801,8 @@ export enum KnownClusterDetailedStatus { Running = "Running", /** Updating */ Updating = "Updating", + /** UpdatePaused */ + UpdatePaused = "UpdatePaused", /** Degraded */ Degraded = "Degraded", /** Deleting */ @@ -3343,7 +3810,7 @@ export enum KnownClusterDetailedStatus { /** Disconnected */ Disconnected = "Disconnected", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -3355,6 +3822,7 @@ export enum KnownClusterDetailedStatus { * **Deploying** \ * **Running** \ * **Updating** \ + * **UpdatePaused** \ * **Degraded** \ * **Deleting** \ * **Disconnected** \ @@ -3375,7 +3843,7 @@ export enum KnownClusterProvisioningState { /** Validating */ Validating = "Validating", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3392,12 +3860,75 @@ export enum KnownClusterProvisioningState { */ export type ClusterProvisioningState = string; +/** Known values of {@link RuntimeProtectionEnforcementLevel} that the service accepts. */ +export enum KnownRuntimeProtectionEnforcementLevel { + /** Audit */ + Audit = "Audit", + /** Disabled */ + Disabled = "Disabled", + /** OnDemand */ + OnDemand = "OnDemand", + /** Passive */ + Passive = "Passive", + /** RealTime */ + RealTime = "RealTime", +} + +/** + * Defines values for RuntimeProtectionEnforcementLevel. \ + * {@link KnownRuntimeProtectionEnforcementLevel} can be used interchangeably with RuntimeProtectionEnforcementLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Audit** \ + * **Disabled** \ + * **OnDemand** \ + * **Passive** \ + * **RealTime** + */ +export type RuntimeProtectionEnforcementLevel = string; + +/** Known values of {@link ClusterSecretArchiveEnabled} that the service accepts. */ +export enum KnownClusterSecretArchiveEnabled { + /** True */ + True = "True", + /** False */ + False = "False", +} + +/** + * Defines values for ClusterSecretArchiveEnabled. \ + * {@link KnownClusterSecretArchiveEnabled} can be used interchangeably with ClusterSecretArchiveEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True** \ + * **False** + */ +export type ClusterSecretArchiveEnabled = string; + +/** Known values of {@link ClusterUpdateStrategyType} that the service accepts. */ +export enum KnownClusterUpdateStrategyType { + /** Rack */ + Rack = "Rack", + /** PauseAfterRack */ + PauseAfterRack = "PauseAfterRack", +} + +/** + * Defines values for ClusterUpdateStrategyType. \ + * {@link KnownClusterUpdateStrategyType} can be used interchangeably with ClusterUpdateStrategyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Rack** \ + * **PauseAfterRack** + */ +export type ClusterUpdateStrategyType = string; + /** Known values of {@link AvailabilityLifecycle} that the service accepts. */ export enum KnownAvailabilityLifecycle { /** Preview */ Preview = "Preview", /** GenerallyAvailable */ - GenerallyAvailable = "GenerallyAvailable" + GenerallyAvailable = "GenerallyAvailable", } /** @@ -3417,7 +3948,7 @@ export enum KnownKubernetesClusterDetailedStatus { /** Error */ Error = "Error", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3438,7 +3969,7 @@ export enum KnownFeatureDetailedStatus { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3457,7 +3988,7 @@ export enum KnownHugepagesSize { /** TwoM */ TwoM = "2M", /** OneG */ - OneG = "1G" + OneG = "1G", } /** @@ -3481,7 +4012,7 @@ export enum KnownKubernetesPluginType { /** Macvlan */ Macvlan = "MACVLAN", /** Ipvlan */ - Ipvlan = "IPVLAN" + Ipvlan = "IPVLAN", } /** @@ -3502,7 +4033,7 @@ export enum KnownL3NetworkConfigurationIpamEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3522,7 +4053,7 @@ export enum KnownAgentPoolMode { /** User */ User = "User", /** NotApplicable */ - NotApplicable = "NotApplicable" + NotApplicable = "NotApplicable", } /** @@ -3541,7 +4072,7 @@ export enum KnownAdvertiseToFabric { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3559,7 +4090,7 @@ export enum KnownBfdEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3577,7 +4108,7 @@ export enum KnownBgpMultiHop { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3595,7 +4126,7 @@ export enum KnownFabricPeeringEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3625,7 +4156,7 @@ export enum KnownKubernetesClusterNodeDetailedStatus { /** Terminating */ Terminating = "Terminating", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3649,7 +4180,7 @@ export enum KnownDefaultGateway { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3669,7 +4200,7 @@ export enum KnownVirtualMachineIPAllocationMethod { /** Static */ Static = "Static", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -3690,7 +4221,7 @@ export enum KnownKubernetesNodePowerState { /** Off */ Off = "Off", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3709,7 +4240,7 @@ export enum KnownKubernetesNodeRole { /** ControlPlane */ ControlPlane = "ControlPlane", /** Worker */ - Worker = "Worker" + Worker = "Worker", } /** @@ -3739,7 +4270,7 @@ export enum KnownKubernetesClusterProvisioningState { /** Updating */ Updating = "Updating", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3765,7 +4296,7 @@ export enum KnownL2NetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3786,7 +4317,7 @@ export enum KnownHybridAksPluginType { /** Sriov */ Sriov = "SRIOV", /** OSDevice */ - OSDevice = "OSDevice" + OSDevice = "OSDevice", } /** @@ -3811,7 +4342,7 @@ export enum KnownL2NetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3834,7 +4365,7 @@ export enum KnownL3NetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3853,7 +4384,7 @@ export enum KnownHybridAksIpamEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3873,7 +4404,7 @@ export enum KnownIpAllocationType { /** IPV6 */ IPV6 = "IPV6", /** DualStack */ - DualStack = "DualStack" + DualStack = "DualStack", } /** @@ -3898,7 +4429,7 @@ export enum KnownL3NetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3917,7 +4448,7 @@ export type L3NetworkProvisioningState = string; /** Known values of {@link BootstrapProtocol} that the service accepts. */ export enum KnownBootstrapProtocol { /** PXE */ - PXE = "PXE" + PXE = "PXE", } /** @@ -3938,7 +4469,7 @@ export enum KnownMachineSkuDiskConnectionType { /** Raid */ Raid = "RAID", /** SAS */ - SAS = "SAS" + SAS = "SAS", } /** @@ -3958,7 +4489,7 @@ export enum KnownDiskType { /** HDD */ HDD = "HDD", /** SSD */ - SSD = "SSD" + SSD = "SSD", } /** @@ -3974,7 +4505,7 @@ export type DiskType = string; /** Known values of {@link DeviceConnectionType} that the service accepts. */ export enum KnownDeviceConnectionType { /** PCI */ - PCI = "PCI" + PCI = "PCI", } /** @@ -3988,8 +4519,12 @@ export type DeviceConnectionType = string; /** Known values of {@link RackSkuProvisioningState} that the service accepts. */ export enum KnownRackSkuProvisioningState { + /** Canceled */ + Canceled = "Canceled", + /** Failed */ + Failed = "Failed", /** Succeeded */ - Succeeded = "Succeeded" + Succeeded = "Succeeded", } /** @@ -3997,6 +4532,8 @@ export enum KnownRackSkuProvisioningState { * {@link KnownRackSkuProvisioningState} can be used interchangeably with RackSkuProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Canceled** \ + * **Failed** \ * **Succeeded** */ export type RackSkuProvisioningState = string; @@ -4008,7 +4545,7 @@ export enum KnownRackSkuType { /** Compute */ Compute = "Compute", /** Single */ - Single = "Single" + Single = "Single", } /** @@ -4029,7 +4566,7 @@ export enum KnownRackDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4054,7 +4591,7 @@ export enum KnownRackProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4077,7 +4614,7 @@ export enum KnownStorageApplianceDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4102,7 +4639,7 @@ export enum KnownStorageApplianceProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4123,7 +4660,7 @@ export enum KnownRemoteVendorManagementFeature { /** Supported */ Supported = "Supported", /** Unsupported */ - Unsupported = "Unsupported" + Unsupported = "Unsupported", } /** @@ -4143,7 +4680,7 @@ export enum KnownRemoteVendorManagementStatus { /** Disabled */ Disabled = "Disabled", /** Unsupported */ - Unsupported = "Unsupported" + Unsupported = "Unsupported", } /** @@ -4164,7 +4701,7 @@ export enum KnownTrunkedNetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4189,7 +4726,7 @@ export enum KnownTrunkedNetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4210,7 +4747,7 @@ export enum KnownVirtualMachineBootMethod { /** Uefi */ Uefi = "UEFI", /** Bios */ - Bios = "BIOS" + Bios = "BIOS", } /** @@ -4240,7 +4777,7 @@ export enum KnownVirtualMachineDetailedStatus { /** Terminating */ Terminating = "Terminating", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -4264,7 +4801,7 @@ export enum KnownVirtualMachineIsolateEmulatorThread { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4282,7 +4819,7 @@ export enum KnownVirtualMachinePlacementHintType { /** Affinity */ Affinity = "Affinity", /** AntiAffinity */ - AntiAffinity = "AntiAffinity" + AntiAffinity = "AntiAffinity", } /** @@ -4300,7 +4837,7 @@ export enum KnownVirtualMachineSchedulingExecution { /** Hard */ Hard = "Hard", /** Soft */ - Soft = "Soft" + Soft = "Soft", } /** @@ -4318,7 +4855,7 @@ export enum KnownVirtualMachinePlacementHintPodAffinityScope { /** Rack */ Rack = "Rack", /** Machine */ - Machine = "Machine" + Machine = "Machine", } /** @@ -4338,7 +4875,7 @@ export enum KnownVirtualMachinePowerState { /** Off */ Off = "Off", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -4363,7 +4900,7 @@ export enum KnownVirtualMachineProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4382,7 +4919,7 @@ export type VirtualMachineProvisioningState = string; /** Known values of {@link OsDiskCreateOption} that the service accepts. */ export enum KnownOsDiskCreateOption { /** Ephemeral */ - Ephemeral = "Ephemeral" + Ephemeral = "Ephemeral", } /** @@ -4397,7 +4934,7 @@ export type OsDiskCreateOption = string; /** Known values of {@link OsDiskDeleteOption} that the service accepts. */ export enum KnownOsDiskDeleteOption { /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -4414,7 +4951,7 @@ export enum KnownVirtualMachineVirtioInterfaceType { /** Modern */ Modern = "Modern", /** Transitional */ - Transitional = "Transitional" + Transitional = "Transitional", } /** @@ -4432,7 +4969,7 @@ export enum KnownVirtualMachineDeviceModelType { /** T1 */ T1 = "T1", /** T2 */ - T2 = "T2" + T2 = "T2", } /** @@ -4452,7 +4989,7 @@ export enum KnownVolumeDetailedStatus { /** Active */ Active = "Active", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4477,7 +5014,7 @@ export enum KnownVolumeProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4498,7 +5035,7 @@ export enum KnownBareMetalMachineEvacuate { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4516,7 +5053,7 @@ export enum KnownBareMetalMachineSkipShutdown { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4538,7 +5075,7 @@ export enum KnownBareMetalMachineKeySetDetailedStatus { /** AllInvalid */ AllInvalid = "AllInvalid", /** Validating */ - Validating = "Validating" + Validating = "Validating", } /** @@ -4558,7 +5095,7 @@ export enum KnownBareMetalMachineKeySetPrivilegeLevel { /** Standard */ Standard = "Standard", /** Superuser */ - Superuser = "Superuser" + Superuser = "Superuser", } /** @@ -4582,7 +5119,7 @@ export enum KnownBareMetalMachineKeySetProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4603,7 +5140,7 @@ export enum KnownBareMetalMachineKeySetUserSetupStatus { /** Active */ Active = "Active", /** Invalid */ - Invalid = "Invalid" + Invalid = "Invalid", } /** @@ -4625,7 +5162,7 @@ export enum KnownBmcKeySetDetailedStatus { /** AllInvalid */ AllInvalid = "AllInvalid", /** Validating */ - Validating = "Validating" + Validating = "Validating", } /** @@ -4645,7 +5182,7 @@ export enum KnownBmcKeySetPrivilegeLevel { /** ReadOnly */ ReadOnly = "ReadOnly", /** Administrator */ - Administrator = "Administrator" + Administrator = "Administrator", } /** @@ -4669,7 +5206,7 @@ export enum KnownBmcKeySetProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4685,6 +5222,21 @@ export enum KnownBmcKeySetProvisioningState { */ export type BmcKeySetProvisioningState = string; +/** Known values of {@link ClusterContinueUpdateVersionMachineGroupTargetingMode} that the service accepts. */ +export enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode { + /** AlphaByRack */ + AlphaByRack = "AlphaByRack", +} + +/** + * Defines values for ClusterContinueUpdateVersionMachineGroupTargetingMode. \ + * {@link KnownClusterContinueUpdateVersionMachineGroupTargetingMode} can be used interchangeably with ClusterContinueUpdateVersionMachineGroupTargetingMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AlphaByRack** + */ +export type ClusterContinueUpdateVersionMachineGroupTargetingMode = string; + /** Known values of {@link ClusterMetricsConfigurationDetailedStatus} that the service accepts. */ export enum KnownClusterMetricsConfigurationDetailedStatus { /** Processing */ @@ -4692,7 +5244,7 @@ export enum KnownClusterMetricsConfigurationDetailedStatus { /** Applied */ Applied = "Applied", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -4717,7 +5269,7 @@ export enum KnownClusterMetricsConfigurationProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4733,6 +5285,24 @@ export enum KnownClusterMetricsConfigurationProvisioningState { */ export type ClusterMetricsConfigurationProvisioningState = string; +/** Known values of {@link ClusterScanRuntimeParametersScanActivity} that the service accepts. */ +export enum KnownClusterScanRuntimeParametersScanActivity { + /** Scan */ + Scan = "Scan", + /** Skip */ + Skip = "Skip", +} + +/** + * Defines values for ClusterScanRuntimeParametersScanActivity. \ + * {@link KnownClusterScanRuntimeParametersScanActivity} can be used interchangeably with ClusterScanRuntimeParametersScanActivity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Scan** \ + * **Skip** + */ +export type ClusterScanRuntimeParametersScanActivity = string; + /** Known values of {@link AgentPoolDetailedStatus} that the service accepts. */ export enum KnownAgentPoolDetailedStatus { /** Available */ @@ -4740,7 +5310,7 @@ export enum KnownAgentPoolDetailedStatus { /** Error */ Error = "Error", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4769,7 +5339,7 @@ export enum KnownAgentPoolProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -4787,12 +5357,99 @@ export enum KnownAgentPoolProvisioningState { */ export type AgentPoolProvisioningState = string; +/** Known values of {@link KubernetesClusterFeatureAvailabilityLifecycle} that the service accepts. */ +export enum KnownKubernetesClusterFeatureAvailabilityLifecycle { + /** Preview */ + Preview = "Preview", + /** GenerallyAvailable */ + GenerallyAvailable = "GenerallyAvailable", +} + +/** + * Defines values for KubernetesClusterFeatureAvailabilityLifecycle. \ + * {@link KnownKubernetesClusterFeatureAvailabilityLifecycle} can be used interchangeably with KubernetesClusterFeatureAvailabilityLifecycle, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview** \ + * **GenerallyAvailable** + */ +export type KubernetesClusterFeatureAvailabilityLifecycle = string; + +/** Known values of {@link KubernetesClusterFeatureDetailedStatus} that the service accepts. */ +export enum KnownKubernetesClusterFeatureDetailedStatus { + /** Error */ + Error = "Error", + /** Provisioning */ + Provisioning = "Provisioning", + /** Installed */ + Installed = "Installed", +} + +/** + * Defines values for KubernetesClusterFeatureDetailedStatus. \ + * {@link KnownKubernetesClusterFeatureDetailedStatus} can be used interchangeably with KubernetesClusterFeatureDetailedStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Error** \ + * **Provisioning** \ + * **Installed** + */ +export type KubernetesClusterFeatureDetailedStatus = string; + +/** Known values of {@link KubernetesClusterFeatureProvisioningState} that the service accepts. */ +export enum KnownKubernetesClusterFeatureProvisioningState { + /** Accepted */ + Accepted = "Accepted", + /** Canceled */ + Canceled = "Canceled", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Updating */ + Updating = "Updating", +} + +/** + * Defines values for KubernetesClusterFeatureProvisioningState. \ + * {@link KnownKubernetesClusterFeatureProvisioningState} can be used interchangeably with KubernetesClusterFeatureProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accepted** \ + * **Canceled** \ + * **Deleting** \ + * **Failed** \ + * **Succeeded** \ + * **Updating** + */ +export type KubernetesClusterFeatureProvisioningState = string; + +/** Known values of {@link KubernetesClusterFeatureRequired} that the service accepts. */ +export enum KnownKubernetesClusterFeatureRequired { + /** True */ + True = "True", + /** False */ + False = "False", +} + +/** + * Defines values for KubernetesClusterFeatureRequired. \ + * {@link KnownKubernetesClusterFeatureRequired} can be used interchangeably with KubernetesClusterFeatureRequired, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True** \ + * **False** + */ +export type KubernetesClusterFeatureRequired = string; + /** Known values of {@link ConsoleDetailedStatus} that the service accepts. */ export enum KnownConsoleDetailedStatus { /** Ready */ Ready = "Ready", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -4810,7 +5467,7 @@ export enum KnownConsoleEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4834,7 +5491,7 @@ export enum KnownConsoleProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4855,7 +5512,7 @@ export enum KnownSkipShutdown { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4924,6 +5581,9 @@ export interface BareMetalMachinesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BareMetalMachinesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BareMetalMachinesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5069,28 +5729,32 @@ export interface BareMetalMachinesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type BareMetalMachinesListBySubscriptionNextResponse = BareMetalMachineList; +export type BareMetalMachinesListBySubscriptionNextResponse = + BareMetalMachineList; /** Optional parameters. */ export interface BareMetalMachinesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type BareMetalMachinesListByResourceGroupNextResponse = BareMetalMachineList; +export type BareMetalMachinesListByResourceGroupNextResponse = + BareMetalMachineList; /** Optional parameters. */ export interface CloudServicesNetworksListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type CloudServicesNetworksListBySubscriptionResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListBySubscriptionResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type CloudServicesNetworksListByResourceGroupResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListByResourceGroupResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksGetOptionalParams @@ -5120,6 +5784,9 @@ export interface CloudServicesNetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type CloudServicesNetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface CloudServicesNetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5139,14 +5806,16 @@ export interface CloudServicesNetworksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CloudServicesNetworksListBySubscriptionNextResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListBySubscriptionNextResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CloudServicesNetworksListByResourceGroupNextResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListByResourceGroupNextResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface ClusterManagersListBySubscriptionOptionalParams @@ -5190,6 +5859,9 @@ export interface ClusterManagersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ClusterManagersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClusterManagersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5256,6 +5928,9 @@ export interface ClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ClustersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5270,6 +5945,18 @@ export interface ClustersUpdateOptionalParams /** Contains response data for the update operation. */ export type ClustersUpdateResponse = Cluster; +/** Optional parameters. */ +export interface ClustersContinueUpdateVersionOptionalParams + 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 continueUpdateVersion operation. */ +export type ClustersContinueUpdateVersionResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersDeployOptionalParams extends coreClient.OperationOptions { @@ -5284,6 +5971,20 @@ export interface ClustersDeployOptionalParams /** Contains response data for the deploy operation. */ export type ClustersDeployResponse = OperationStatusResult; +/** Optional parameters. */ +export interface ClustersScanRuntimeOptionalParams + extends coreClient.OperationOptions { + /** The request body. */ + clusterScanRuntimeParameters?: ClusterScanRuntimeParameters; + /** 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 scanRuntime operation. */ +export type ClustersScanRuntimeResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersUpdateVersionOptionalParams extends coreClient.OperationOptions { @@ -5315,14 +6016,16 @@ export interface KubernetesClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type KubernetesClustersListBySubscriptionResponse = KubernetesClusterList; +export type KubernetesClustersListBySubscriptionResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type KubernetesClustersListByResourceGroupResponse = KubernetesClusterList; +export type KubernetesClustersListByResourceGroupResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersGetOptionalParams @@ -5352,6 +6055,9 @@ export interface KubernetesClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type KubernetesClustersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface KubernetesClustersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5383,14 +6089,16 @@ export interface KubernetesClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type KubernetesClustersListBySubscriptionNextResponse = KubernetesClusterList; +export type KubernetesClustersListBySubscriptionNextResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type KubernetesClustersListByResourceGroupNextResponse = KubernetesClusterList; +export type KubernetesClustersListByResourceGroupNextResponse = + KubernetesClusterList; /** Optional parameters. */ export interface L2NetworksListBySubscriptionOptionalParams @@ -5434,6 +6142,9 @@ export interface L2NetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type L2NetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface L2NetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5500,6 +6211,9 @@ export interface L3NetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type L3NetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface L3NetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5585,6 +6299,9 @@ export interface RacksDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type RacksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface RacksUpdateOptionalParams extends coreClient.OperationOptions { /** The request body. */ @@ -5654,6 +6371,9 @@ export interface StorageAppliancesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type StorageAppliancesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface StorageAppliancesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5678,7 +6398,8 @@ export interface StorageAppliancesDisableRemoteVendorManagementOptionalParams } /** Contains response data for the disableRemoteVendorManagement operation. */ -export type StorageAppliancesDisableRemoteVendorManagementResponse = OperationStatusResult; +export type StorageAppliancesDisableRemoteVendorManagementResponse = + OperationStatusResult; /** Optional parameters. */ export interface StorageAppliancesEnableRemoteVendorManagementOptionalParams @@ -5692,21 +6413,24 @@ export interface StorageAppliancesEnableRemoteVendorManagementOptionalParams } /** Contains response data for the enableRemoteVendorManagement operation. */ -export type StorageAppliancesEnableRemoteVendorManagementResponse = OperationStatusResult; +export type StorageAppliancesEnableRemoteVendorManagementResponse = + OperationStatusResult; /** Optional parameters. */ export interface StorageAppliancesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type StorageAppliancesListBySubscriptionNextResponse = StorageApplianceList; +export type StorageAppliancesListBySubscriptionNextResponse = + StorageApplianceList; /** Optional parameters. */ export interface StorageAppliancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type StorageAppliancesListByResourceGroupNextResponse = StorageApplianceList; +export type StorageAppliancesListByResourceGroupNextResponse = + StorageApplianceList; /** Optional parameters. */ export interface TrunkedNetworksListBySubscriptionOptionalParams @@ -5750,6 +6474,9 @@ export interface TrunkedNetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type TrunkedNetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface TrunkedNetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5816,6 +6543,9 @@ export interface VirtualMachinesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type VirtualMachinesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5935,6 +6665,9 @@ export interface VolumesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type VolumesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface VolumesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5964,7 +6697,8 @@ export interface BareMetalMachineKeySetsListByClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCluster operation. */ -export type BareMetalMachineKeySetsListByClusterResponse = BareMetalMachineKeySetList; +export type BareMetalMachineKeySetsListByClusterResponse = + BareMetalMachineKeySetList; /** Optional parameters. */ export interface BareMetalMachineKeySetsGetOptionalParams @@ -5983,7 +6717,8 @@ export interface BareMetalMachineKeySetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BareMetalMachineKeySetsCreateOrUpdateResponse = BareMetalMachineKeySet; +export type BareMetalMachineKeySetsCreateOrUpdateResponse = + BareMetalMachineKeySet; /** Optional parameters. */ export interface BareMetalMachineKeySetsDeleteOptionalParams @@ -5994,6 +6729,9 @@ export interface BareMetalMachineKeySetsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BareMetalMachineKeySetsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BareMetalMachineKeySetsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6013,7 +6751,8 @@ export interface BareMetalMachineKeySetsListByClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByClusterNext operation. */ -export type BareMetalMachineKeySetsListByClusterNextResponse = BareMetalMachineKeySetList; +export type BareMetalMachineKeySetsListByClusterNextResponse = + BareMetalMachineKeySetList; /** Optional parameters. */ export interface BmcKeySetsListByClusterOptionalParams @@ -6050,6 +6789,9 @@ export interface BmcKeySetsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BmcKeySetsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BmcKeySetsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6076,7 +6818,8 @@ export interface MetricsConfigurationsListByClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCluster operation. */ -export type MetricsConfigurationsListByClusterResponse = ClusterMetricsConfigurationList; +export type MetricsConfigurationsListByClusterResponse = + ClusterMetricsConfigurationList; /** Optional parameters. */ export interface MetricsConfigurationsGetOptionalParams @@ -6095,7 +6838,8 @@ export interface MetricsConfigurationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type MetricsConfigurationsCreateOrUpdateResponse = ClusterMetricsConfiguration; +export type MetricsConfigurationsCreateOrUpdateResponse = + ClusterMetricsConfiguration; /** Optional parameters. */ export interface MetricsConfigurationsDeleteOptionalParams @@ -6106,6 +6850,9 @@ export interface MetricsConfigurationsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type MetricsConfigurationsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface MetricsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6125,7 +6872,8 @@ export interface MetricsConfigurationsListByClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByClusterNext operation. */ -export type MetricsConfigurationsListByClusterNextResponse = ClusterMetricsConfigurationList; +export type MetricsConfigurationsListByClusterNextResponse = + ClusterMetricsConfigurationList; /** Optional parameters. */ export interface AgentPoolsListByKubernetesClusterOptionalParams @@ -6162,6 +6910,9 @@ export interface AgentPoolsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type AgentPoolsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface AgentPoolsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6183,6 +6934,68 @@ export interface AgentPoolsListByKubernetesClusterNextOptionalParams /** Contains response data for the listByKubernetesClusterNext operation. */ export type AgentPoolsListByKubernetesClusterNextResponse = AgentPoolList; +/** Optional parameters. */ +export interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByKubernetesCluster operation. */ +export type KubernetesClusterFeaturesListByKubernetesClusterResponse = + KubernetesClusterFeatureList; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type KubernetesClusterFeaturesGetResponse = KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type KubernetesClusterFeaturesCreateOrUpdateResponse = + KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesDeleteOptionalParams + 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 delete operation. */ +export type KubernetesClusterFeaturesDeleteResponse = OperationStatusResult; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesUpdateOptionalParams + extends coreClient.OperationOptions { + /** The request body. */ + kubernetesClusterFeatureUpdateParameters?: KubernetesClusterFeaturePatchParameters; + /** 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 KubernetesClusterFeaturesUpdateResponse = KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByKubernetesClusterNext operation. */ +export type KubernetesClusterFeaturesListByKubernetesClusterNextResponse = + KubernetesClusterFeatureList; + /** Optional parameters. */ export interface ConsolesListByVirtualMachineOptionalParams extends coreClient.OperationOptions {} @@ -6218,6 +7031,9 @@ export interface ConsolesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ConsolesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ConsolesUpdateOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts b/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts index a6fd126490db..05c9f9cb8c3d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts @@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -46,39 +46,39 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -90,32 +90,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -127,11 +127,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -143,22 +143,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -168,10 +168,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -181,13 +181,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -199,19 +199,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const BareMetalMachineList: coreClient.CompositeMapper = { @@ -222,8 +222,8 @@ export const BareMetalMachineList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -232,13 +232,13 @@ export const BareMetalMachineList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachine" - } - } - } - } - } - } + className: "BareMetalMachine", + }, + }, + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -250,18 +250,18 @@ export const ExtendedLocation: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdministrativeCredentials: coreClient.CompositeMapper = { @@ -271,26 +271,26 @@ export const AdministrativeCredentials: coreClient.CompositeMapper = { modelProperties: { password: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, username: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const HardwareInventory: coreClient.CompositeMapper = { @@ -302,8 +302,8 @@ export const HardwareInventory: coreClient.CompositeMapper = { serializedName: "additionalHostInformation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, interfaces: { serializedName: "interfaces", @@ -313,10 +313,10 @@ export const HardwareInventory: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HardwareInventoryNetworkInterface" - } - } - } + className: "HardwareInventoryNetworkInterface", + }, + }, + }, }, nics: { serializedName: "nics", @@ -326,13 +326,13 @@ export const HardwareInventory: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Nic" - } - } - } - } - } - } + className: "Nic", + }, + }, + }, + }, + }, + }, }; export const HardwareInventoryNetworkInterface: coreClient.CompositeMapper = { @@ -344,32 +344,32 @@ export const HardwareInventoryNetworkInterface: coreClient.CompositeMapper = { serializedName: "linkStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkInterfaceId: { serializedName: "networkInterfaceId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Nic: coreClient.CompositeMapper = { @@ -381,25 +381,25 @@ export const Nic: coreClient.CompositeMapper = { serializedName: "lldpNeighbor", type: { name: "Composite", - className: "LldpNeighbor" - } + className: "LldpNeighbor", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LldpNeighbor: coreClient.CompositeMapper = { @@ -411,32 +411,32 @@ export const LldpNeighbor: coreClient.CompositeMapper = { serializedName: "portDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, portName: { serializedName: "portName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemDescription: { serializedName: "systemDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemName: { serializedName: "systemName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const HardwareValidationStatus: coreClient.CompositeMapper = { @@ -448,18 +448,136 @@ export const HardwareValidationStatus: coreClient.CompositeMapper = { serializedName: "lastValidationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, result: { serializedName: "result", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const RuntimeProtectionStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeProtectionStatus", + modelProperties: { + definitionsLastUpdated: { + serializedName: "definitionsLastUpdated", + readOnly: true, + type: { + name: "DateTime", + }, + }, + definitionsVersion: { + serializedName: "definitionsVersion", + readOnly: true, + type: { + name: "String", + }, + }, + scanCompletedTime: { + serializedName: "scanCompletedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + scanScheduledTime: { + serializedName: "scanScheduledTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + scanStartedTime: { + serializedName: "scanStartedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const SecretRotationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretRotationStatus", + modelProperties: { + expirePeriodDays: { + serializedName: "expirePeriodDays", + readOnly: true, + type: { + name: "Number", + }, + }, + lastRotationTime: { + serializedName: "lastRotationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + rotationPeriodDays: { + serializedName: "rotationPeriodDays", + readOnly: true, + type: { + name: "Number", + }, + }, + secretArchiveReference: { + serializedName: "secretArchiveReference", + type: { + name: "Composite", + className: "SecretArchiveReference", + }, + }, + secretType: { + serializedName: "secretType", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecretArchiveReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretArchiveReference", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + readOnly: true, + type: { + name: "String", + }, + }, + secretName: { + serializedName: "secretName", + readOnly: true, + type: { + name: "String", + }, + }, + secretVersion: { + serializedName: "secretVersion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -471,32 +589,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -507,41 +625,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudServicesNetworkList: coreClient.CompositeMapper = { @@ -552,8 +670,8 @@ export const CloudServicesNetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -562,13 +680,13 @@ export const CloudServicesNetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServicesNetwork" - } - } - } - } - } - } + className: "CloudServicesNetwork", + }, + }, + }, + }, + }, + }, }; export const EgressEndpoint: coreClient.CompositeMapper = { @@ -580,12 +698,12 @@ export const EgressEndpoint: coreClient.CompositeMapper = { serializedName: "category", required: true, type: { - name: "String" - } + name: "String", + }, }, endpoints: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "endpoints", required: true, @@ -594,13 +712,13 @@ export const EgressEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -612,21 +730,21 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", required: true, type: { - name: "String" - } + name: "String", + }, }, port: { constraints: { InclusiveMaximum: 65535, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "port", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ClusterManagerList: coreClient.CompositeMapper = { @@ -637,8 +755,8 @@ export const ClusterManagerList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -647,13 +765,75 @@ export const ClusterManagerList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterManager" - } - } - } - } - } - } + className: "ClusterManager", + }, + }, + }, + }, + }, + }, +}; + +export const ManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + }, + }, }; export const ClusterAvailableVersion: coreClient.CompositeMapper = { @@ -665,18 +845,18 @@ export const ClusterAvailableVersion: coreClient.CompositeMapper = { serializedName: "supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetClusterVersion: { serializedName: "targetClusterVersion", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { @@ -687,20 +867,20 @@ export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - MaxLength: 75 + MaxLength: 75, }, serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterList: coreClient.CompositeMapper = { @@ -711,8 +891,8 @@ export const ClusterList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -721,13 +901,13 @@ export const ClusterList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Cluster" - } - } - } - } - } - } + className: "Cluster", + }, + }, + }, + }, + }, + }, }; export const RackDefinition: coreClient.CompositeMapper = { @@ -737,12 +917,12 @@ export const RackDefinition: coreClient.CompositeMapper = { modelProperties: { availabilityZone: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$") + Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$"), }, serializedName: "availabilityZone", type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineConfigurationData: { serializedName: "bareMetalMachineConfigurationData", @@ -751,44 +931,44 @@ export const RackDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachineConfigurationData" - } - } - } + className: "BareMetalMachineConfigurationData", + }, + }, + }, }, networkRackId: { serializedName: "networkRackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "rackLocation", type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "rackSerialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSkuId: { serializedName: "rackSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceConfigurationData: { serializedName: "storageApplianceConfigurationData", @@ -797,13 +977,13 @@ export const RackDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageApplianceConfigurationData" - } - } - } - } - } - } + className: "StorageApplianceConfigurationData", + }, + }, + }, + }, + }, + }, }; export const BareMetalMachineConfigurationData: coreClient.CompositeMapper = { @@ -815,77 +995,77 @@ export const BareMetalMachineConfigurationData: coreClient.CompositeMapper = { serializedName: "bmcConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bmcCredentials: { serializedName: "bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bmcMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bootMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, machineDetails: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "machineDetails", type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "machineName", type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serialNumber: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "serialNumber", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageApplianceConfigurationData: coreClient.CompositeMapper = { @@ -897,38 +1077,38 @@ export const StorageApplianceConfigurationData: coreClient.CompositeMapper = { serializedName: "adminCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serialNumber: { serializedName: "serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "storageApplianceName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterAvailableUpgradeVersion: coreClient.CompositeMapper = { @@ -940,46 +1120,46 @@ export const ClusterAvailableUpgradeVersion: coreClient.CompositeMapper = { serializedName: "controlImpact", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expectedDuration: { serializedName: "expectedDuration", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, impactDescription: { serializedName: "impactDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, supportExpiryDate: { serializedName: "supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetClusterVersion: { serializedName: "targetClusterVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, workloadImpact: { serializedName: "workloadImpact", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterCapacity: coreClient.CompositeMapper = { @@ -990,53 +1170,53 @@ export const ClusterCapacity: coreClient.CompositeMapper = { availableApplianceStorageGB: { serializedName: "availableApplianceStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, availableCoreCount: { serializedName: "availableCoreCount", type: { - name: "Number" - } + name: "Number", + }, }, availableHostStorageGB: { serializedName: "availableHostStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, availableMemoryGB: { serializedName: "availableMemoryGB", type: { - name: "Number" - } + name: "Number", + }, }, totalApplianceStorageGB: { serializedName: "totalApplianceStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, totalCoreCount: { serializedName: "totalCoreCount", type: { - name: "Number" - } + name: "Number", + }, }, totalHostStorageGB: { serializedName: "totalHostStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, totalMemoryGB: { serializedName: "totalMemoryGB", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServicePrincipalInformation: coreClient.CompositeMapper = { @@ -1048,65 +1228,200 @@ export const ServicePrincipalInformation: coreClient.CompositeMapper = { serializedName: "applicationId", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", required: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ValidationThreshold: coreClient.CompositeMapper = { +export const CommandOutputSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidationThreshold", + className: "CommandOutputSettings", modelProperties: { - grouping: { - serializedName: "grouping", - required: true, + associatedIdentity: { + serializedName: "associatedIdentity", type: { - name: "String" - } + name: "Composite", + className: "IdentitySelector", + }, }, - type: { - serializedName: "type", - required: true, + containerUrl: { + serializedName: "containerUrl", type: { - name: "String" - } - }, - value: { - constraints: { - InclusiveMinimum: 0 + name: "String", }, - serializedName: "value", - required: true, + }, + }, + }, +}; + +export const IdentitySelector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentitySelector", + modelProperties: { + identityType: { + serializedName: "identityType", + type: { + name: "String", + }, + }, + userAssignedIdentityResourceId: { + serializedName: "userAssignedIdentityResourceId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ValidationThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidationThreshold", + modelProperties: { + grouping: { + serializedName: "grouping", + required: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + value: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "value", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const RuntimeProtectionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + modelProperties: { + enforcementLevel: { + defaultValue: "Disabled", + serializedName: "enforcementLevel", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterSecretArchive: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterSecretArchive", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + required: true, + type: { + name: "String", + }, + }, + useKeyVault: { + defaultValue: "False", + serializedName: "useKeyVault", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterUpdateStrategy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + modelProperties: { + maxUnavailable: { + constraints: { + InclusiveMinimum: 1, + }, + serializedName: "maxUnavailable", + type: { + name: "Number", + }, + }, + strategyType: { + serializedName: "strategyType", + required: true, + type: { + name: "String", + }, + }, + thresholdType: { + serializedName: "thresholdType", + required: true, + type: { + name: "String", + }, + }, + thresholdValue: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "thresholdValue", + required: true, + type: { + name: "Number", + }, + }, + waitTimeMinutes: { + defaultValue: 15, + constraints: { + InclusiveMaximum: 60, + InclusiveMinimum: 0, + }, + serializedName: "waitTimeMinutes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const KubernetesClusterList: coreClient.CompositeMapper = { @@ -1117,8 +1432,8 @@ export const KubernetesClusterList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -1127,13 +1442,13 @@ export const KubernetesClusterList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesCluster" - } - } - } - } - } - } + className: "KubernetesCluster", + }, + }, + }, + }, + }, + }, }; export const AadConfiguration: coreClient.CompositeMapper = { @@ -1143,7 +1458,7 @@ export const AadConfiguration: coreClient.CompositeMapper = { modelProperties: { adminGroupObjectIds: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "adminGroupObjectIds", required: true, @@ -1151,13 +1466,13 @@ export const AadConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const AdministratorConfiguration: coreClient.CompositeMapper = { @@ -1168,8 +1483,8 @@ export const AdministratorConfiguration: coreClient.CompositeMapper = { adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, sshPublicKeys: { serializedName: "sshPublicKeys", @@ -1178,13 +1493,13 @@ export const AdministratorConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1194,16 +1509,16 @@ export const SshPublicKey: coreClient.CompositeMapper = { modelProperties: { keyData: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "keyData", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailableUpgrade: coreClient.CompositeMapper = { @@ -1215,18 +1530,18 @@ export const AvailableUpgrade: coreClient.CompositeMapper = { serializedName: "availabilityLifecycle", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { @@ -1238,8 +1553,8 @@ export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -1247,30 +1562,30 @@ export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureStatus: coreClient.CompositeMapper = { @@ -1282,32 +1597,32 @@ export const FeatureStatus: coreClient.CompositeMapper = { serializedName: "detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { @@ -1319,22 +1634,22 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -1342,17 +1657,17 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, labels: { serializedName: "labels", @@ -1361,27 +1676,27 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -1390,27 +1705,27 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentOptions: coreClient.CompositeMapper = { @@ -1422,18 +1737,18 @@ export const AgentOptions: coreClient.CompositeMapper = { serializedName: "hugepagesCount", required: true, type: { - name: "Number" - } + name: "Number", + }, }, hugepagesSize: { defaultValue: "2M", serializedName: "hugepagesSize", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { @@ -1448,10 +1763,10 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L2NetworkAttachmentConfiguration" - } - } - } + className: "L2NetworkAttachmentConfiguration", + }, + }, + }, }, l3Networks: { serializedName: "l3Networks", @@ -1460,10 +1775,10 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L3NetworkAttachmentConfiguration" - } - } - } + className: "L3NetworkAttachmentConfiguration", + }, + }, + }, }, trunkedNetworks: { serializedName: "trunkedNetworks", @@ -1472,13 +1787,13 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrunkedNetworkAttachmentConfiguration" - } - } - } - } - } - } + className: "TrunkedNetworkAttachmentConfiguration", + }, + }, + }, + }, + }, + }, }; export const L2NetworkAttachmentConfiguration: coreClient.CompositeMapper = { @@ -1490,17 +1805,17 @@ export const L2NetworkAttachmentConfiguration: coreClient.CompositeMapper = { serializedName: "networkId", required: true, type: { - name: "String" - } + name: "String", + }, }, pluginType: { serializedName: "pluginType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworkAttachmentConfiguration: coreClient.CompositeMapper = { @@ -1512,47 +1827,48 @@ export const L3NetworkAttachmentConfiguration: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "ipamEnabled", type: { - name: "String" - } + name: "String", + }, }, networkId: { serializedName: "networkId", required: true, type: { - name: "String" - } + name: "String", + }, }, pluginType: { serializedName: "pluginType", type: { - name: "String" - } - } - } - } -}; - -export const TrunkedNetworkAttachmentConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrunkedNetworkAttachmentConfiguration", - modelProperties: { - networkId: { - serializedName: "networkId", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - pluginType: { - serializedName: "pluginType", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const TrunkedNetworkAttachmentConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TrunkedNetworkAttachmentConfiguration", + modelProperties: { + networkId: { + serializedName: "networkId", + required: true, + type: { + name: "String", + }, + }, + pluginType: { + serializedName: "pluginType", + type: { + name: "String", + }, + }, + }, + }, + }; export const KubernetesLabel: coreClient.CompositeMapper = { type: { @@ -1563,18 +1879,18 @@ export const KubernetesLabel: coreClient.CompositeMapper = { serializedName: "key", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { @@ -1582,15 +1898,30 @@ export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { name: "Composite", className: "AgentPoolUpgradeSettings", modelProperties: { + drainTimeout: { + constraints: { + InclusiveMaximum: 86400, + InclusiveMinimum: 60, + }, + serializedName: "drainTimeout", + type: { + name: "Number", + }, + }, maxSurge: { - defaultValue: "1", serializedName: "maxSurge", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + maxUnavailable: { + serializedName: "maxUnavailable", + type: { + name: "String", + }, + }, + }, + }, }; export const NetworkConfiguration: coreClient.CompositeMapper = { @@ -1602,35 +1933,42 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, bgpServiceLoadBalancerConfiguration: { serializedName: "bgpServiceLoadBalancerConfiguration", type: { name: "Composite", - className: "BgpServiceLoadBalancerConfiguration" - } + className: "BgpServiceLoadBalancerConfiguration", + }, }, cloudServicesNetworkId: { serializedName: "cloudServicesNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, cniNetworkId: { serializedName: "cniNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, dnsServiceIp: { serializedName: "dnsServiceIp", type: { - name: "String" - } + name: "String", + }, + }, + l2ServiceLoadBalancerConfiguration: { + serializedName: "l2ServiceLoadBalancerConfiguration", + type: { + name: "Composite", + className: "L2ServiceLoadBalancerConfiguration", + }, }, podCidrs: { serializedName: "podCidrs", @@ -1638,10 +1976,10 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, serviceCidrs: { serializedName: "serviceCidrs", @@ -1649,13 +1987,13 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { @@ -1670,10 +2008,10 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BgpAdvertisement" - } - } - } + className: "BgpAdvertisement", + }, + }, + }, }, bgpPeers: { serializedName: "bgpPeers", @@ -1682,17 +2020,17 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceLoadBalancerBgpPeer" - } - } - } + className: "ServiceLoadBalancerBgpPeer", + }, + }, + }, }, fabricPeeringEnabled: { defaultValue: "True", serializedName: "fabricPeeringEnabled", type: { - name: "String" - } + name: "String", + }, }, ipAddressPools: { serializedName: "ipAddressPools", @@ -1701,13 +2039,13 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IpAddressPool" - } - } - } - } - } - } + className: "IpAddressPool", + }, + }, + }, + }, + }, + }, }; export const BgpAdvertisement: coreClient.CompositeMapper = { @@ -1719,8 +2057,8 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { defaultValue: "True", serializedName: "advertiseToFabric", type: { - name: "String" - } + name: "String", + }, }, communities: { serializedName: "communities", @@ -1728,10 +2066,10 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ipAddressPools: { serializedName: "ipAddressPools", @@ -1740,10 +2078,10 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, peers: { serializedName: "peers", @@ -1751,13 +2089,13 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ServiceLoadBalancerBgpPeer: coreClient.CompositeMapper = { @@ -1768,85 +2106,85 @@ export const ServiceLoadBalancerBgpPeer: coreClient.CompositeMapper = { bfdEnabled: { serializedName: "bfdEnabled", type: { - name: "String" - } + name: "String", + }, }, bgpMultiHop: { defaultValue: "False", serializedName: "bgpMultiHop", type: { - name: "String" - } + name: "String", + }, }, holdTime: { serializedName: "holdTime", type: { - name: "String" - } + name: "String", + }, }, keepAliveTime: { serializedName: "keepAliveTime", type: { - name: "String" - } + name: "String", + }, }, myAsn: { constraints: { InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "myAsn", type: { - name: "Number" - } + name: "Number", + }, }, name: { constraints: { - Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$") + Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]{0,80}$"), - MaxLength: 80 + MaxLength: 80, }, serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, peerAddress: { serializedName: "peerAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, peerAsn: { constraints: { InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "peerAsn", required: true, type: { - name: "Number" - } + name: "Number", + }, }, peerPort: { defaultValue: 179, serializedName: "peerPort", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const IpAddressPool: coreClient.CompositeMapper = { @@ -1861,35 +2199,56 @@ export const IpAddressPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, autoAssign: { serializedName: "autoAssign", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$") + Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, onlyUseHostIps: { serializedName: "onlyUseHostIps", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const L2ServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L2ServiceLoadBalancerConfiguration", + modelProperties: { + ipAddressPools: { + serializedName: "ipAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpAddressPool", + }, + }, + }, + }, + }, + }, }; export const KubernetesClusterNode: coreClient.CompositeMapper = { @@ -1901,64 +2260,64 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { serializedName: "agentPoolId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availabilityZone: { serializedName: "availabilityZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineId: { serializedName: "bareMetalMachineId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { serializedName: "cpuCores", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, image: { serializedName: "image", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, labels: { serializedName: "labels", @@ -1968,31 +2327,31 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, memorySizeGB: { serializedName: "memorySizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, mode: { serializedName: "mode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkAttachments: { serializedName: "networkAttachments", @@ -2002,24 +2361,24 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkAttachment" - } - } - } + className: "NetworkAttachment", + }, + }, + }, }, powerState: { serializedName: "powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "role", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -2029,20 +2388,20 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, vmSkuName: { serializedName: "vmSkuName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkAttachment: coreClient.CompositeMapper = { @@ -2054,52 +2413,52 @@ export const NetworkAttachment: coreClient.CompositeMapper = { serializedName: "attachedNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultGateway: { serializedName: "defaultGateway", type: { - name: "String" - } + name: "String", + }, }, ipAllocationMethod: { serializedName: "ipAllocationMethod", required: true, type: { - name: "String" - } + name: "String", + }, }, ipv4Address: { serializedName: "ipv4Address", type: { - name: "String" - } + name: "String", + }, }, ipv6Address: { serializedName: "ipv6Address", type: { - name: "String" - } + name: "String", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkAttachmentName: { constraints: { - MaxLength: 15 + MaxLength: 15, }, serializedName: "networkAttachmentName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2NetworkList: coreClient.CompositeMapper = { @@ -2110,8 +2469,8 @@ export const L2NetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2120,13 +2479,13 @@ export const L2NetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L2Network" - } - } - } - } - } - } + className: "L2Network", + }, + }, + }, + }, + }, + }, }; export const L3NetworkList: coreClient.CompositeMapper = { @@ -2137,8 +2496,8 @@ export const L3NetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2147,13 +2506,13 @@ export const L3NetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L3Network" - } - } - } - } - } - } + className: "L3Network", + }, + }, + }, + }, + }, + }, }; export const RackSkuList: coreClient.CompositeMapper = { @@ -2164,8 +2523,8 @@ export const RackSkuList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2174,13 +2533,13 @@ export const RackSkuList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackSku" - } - } - } - } - } - } + className: "RackSku", + }, + }, + }, + }, + }, + }, }; export const MachineSkuSlot: coreClient.CompositeMapper = { @@ -2192,29 +2551,29 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { serializedName: "rackSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, bootstrapProtocol: { serializedName: "properties.bootstrapProtocol", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { serializedName: "properties.cpuCores", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, cpuSockets: { serializedName: "properties.cpuSockets", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, disks: { serializedName: "properties.disks", @@ -2224,38 +2583,38 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineDisk" - } - } - } + className: "MachineDisk", + }, + }, + }, }, generation: { serializedName: "properties.generation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareVersion: { serializedName: "properties.hardwareVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memoryCapacityGB: { serializedName: "properties.memoryCapacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, model: { serializedName: "properties.model", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkInterfaces: { serializedName: "properties.networkInterfaces", @@ -2265,27 +2624,27 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkInterface" - } - } - } + className: "NetworkInterface", + }, + }, + }, }, totalThreads: { serializedName: "properties.totalThreads", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vendor: { serializedName: "properties.vendor", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MachineDisk: coreClient.CompositeMapper = { @@ -2297,25 +2656,25 @@ export const MachineDisk: coreClient.CompositeMapper = { serializedName: "capacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, connection: { serializedName: "connection", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkInterface: coreClient.CompositeMapper = { @@ -2327,53 +2686,53 @@ export const NetworkInterface: coreClient.CompositeMapper = { serializedName: "address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deviceConnectionType: { serializedName: "deviceConnectionType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, model: { serializedName: "model", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, physicalSlot: { serializedName: "physicalSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, portCount: { serializedName: "portCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, portSpeed: { serializedName: "portSpeed", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vendor: { serializedName: "vendor", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageApplianceSkuSlot: coreClient.CompositeMapper = { @@ -2385,25 +2744,25 @@ export const StorageApplianceSkuSlot: coreClient.CompositeMapper = { serializedName: "rackSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, capacityGB: { serializedName: "properties.capacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, model: { serializedName: "properties.model", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RackList: coreClient.CompositeMapper = { @@ -2414,8 +2773,8 @@ export const RackList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2424,13 +2783,13 @@ export const RackList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Rack" - } - } - } - } - } - } + className: "Rack", + }, + }, + }, + }, + }, + }, }; export const StorageApplianceList: coreClient.CompositeMapper = { @@ -2441,8 +2800,8 @@ export const StorageApplianceList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2451,13 +2810,13 @@ export const StorageApplianceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageAppliance" - } - } - } - } - } - } + className: "StorageAppliance", + }, + }, + }, + }, + }, + }, }; export const TrunkedNetworkList: coreClient.CompositeMapper = { @@ -2468,8 +2827,8 @@ export const TrunkedNetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2478,13 +2837,13 @@ export const TrunkedNetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrunkedNetwork" - } - } - } - } - } - } + className: "TrunkedNetwork", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineList: coreClient.CompositeMapper = { @@ -2495,8 +2854,8 @@ export const VirtualMachineList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2505,13 +2864,13 @@ export const VirtualMachineList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachine" - } - } - } - } - } - } + className: "VirtualMachine", + }, + }, + }, + }, + }, + }, }; export const VirtualMachinePlacementHint: coreClient.CompositeMapper = { @@ -2523,35 +2882,32 @@ export const VirtualMachinePlacementHint: coreClient.CompositeMapper = { serializedName: "hintType", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { - constraints: { - MinLength: 1 - }, serializedName: "resourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, schedulingExecution: { serializedName: "schedulingExecution", required: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "scope", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageProfile: coreClient.CompositeMapper = { @@ -2563,8 +2919,8 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "OsDisk" - } + className: "OsDisk", + }, }, volumeAttachments: { serializedName: "volumeAttachments", @@ -2572,13 +2928,13 @@ export const StorageProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const OsDisk: coreClient.CompositeMapper = { @@ -2590,25 +2946,25 @@ export const OsDisk: coreClient.CompositeMapper = { defaultValue: "Ephemeral", serializedName: "createOption", type: { - name: "String" - } + name: "String", + }, }, deleteOption: { defaultValue: "Delete", serializedName: "deleteOption", type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ImageRepositoryCredentials: coreClient.CompositeMapper = { @@ -2618,33 +2974,33 @@ export const ImageRepositoryCredentials: coreClient.CompositeMapper = { modelProperties: { password: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, registryUrl: { serializedName: "registryUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, username: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeList: coreClient.CompositeMapper = { @@ -2655,8 +3011,8 @@ export const VolumeList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2665,54 +3021,13 @@ export const VolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } - } - } - } -}; - -export const BareMetalMachinePatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinePatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - machineDetails: { - constraints: { - MaxLength: 256 + className: "Volume", + }, + }, }, - serializedName: "properties.machineDetails", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineCordonParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineCordonParameters", - modelProperties: { - evacuate: { - defaultValue: "False", - serializedName: "evacuate", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; export const OperationStatusResult: coreClient.CompositeMapper = { @@ -2720,75 +3035,150 @@ export const OperationStatusResult: coreClient.CompositeMapper = { name: "Composite", className: "OperationStatusResult", modelProperties: { - id: { - serializedName: "id", + endTime: { + serializedName: "endTime", + readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - resourceId: { - serializedName: "resourceId", + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + id: { + serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "status", - required: true, + operations: { + serializedName: "operations", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult", + }, + }, + }, }, percentComplete: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "percentComplete", + readOnly: true, + type: { + name: "Number", + }, + }, + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { - name: "Number" - } + name: "String", + }, }, startTime: { serializedName: "startTime", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - endTime: { - serializedName: "endTime", + status: { + serializedName: "status", + required: true, type: { - name: "DateTime" - } + name: "String", + }, }, - operations: { - serializedName: "operations", + exitCode: { + serializedName: "properties.exitCode", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationStatusResult" - } - } - } + name: "String", + }, }, - error: { - serializedName: "error", + outputHead: { + serializedName: "properties.outputHead", + readOnly: true, type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } + name: "String", + }, + }, + resultRef: { + serializedName: "properties.resultRef", + readOnly: true, + type: { + name: "String", + }, + }, + resultUrl: { + serializedName: "properties.resultUrl", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinePatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BareMetalMachinePatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + machineDetails: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.machineDetails", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachineCordonParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BareMetalMachineCordonParameters", + modelProperties: { + evacuate: { + defaultValue: "False", + serializedName: "evacuate", + type: { + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinePowerOffParameters: coreClient.CompositeMapper = { @@ -2800,11 +3190,11 @@ export const BareMetalMachinePowerOffParameters: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "skipShutdown", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachineReplaceParameters: coreClient.CompositeMapper = { @@ -2816,275 +3206,300 @@ export const BareMetalMachineReplaceParameters: coreClient.CompositeMapper = { serializedName: "bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bmcMacAddress", type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bootMacAddress", type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "machineName", type: { - name: "String" - } + name: "String", + }, }, serialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "serialNumber", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineRunCommandParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineRunCommandParameters", - modelProperties: { - arguments: { - serializedName: "arguments", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + }, + }, +}; + +export const BareMetalMachineRunCommandParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunCommandParameters", + modelProperties: { + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + script: { + serializedName: "script", + required: true, + type: { + name: "String", + }, }, - serializedName: "limitTimeSeconds", - required: true, - type: { - name: "Number" - } }, - script: { - serializedName: "script", - required: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const BareMetalMachineRunDataExtractsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunDataExtractsParameters", + modelProperties: { + commands: { + constraints: { + MinItems: 1, + }, + serializedName: "commands", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const BareMetalMachineCommandSpecification: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + modelProperties: { + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + command: { + serializedName: "command", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineRunReadCommandsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunReadCommandsParameters", + modelProperties: { + commands: { + constraints: { + MinItems: 1, + }, + serializedName: "commands", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + }, + }, + }; -export const BareMetalMachineRunDataExtractsParameters: coreClient.CompositeMapper = { +export const CloudServicesNetworkPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineRunDataExtractsParameters", + className: "CloudServicesNetworkPatchParameters", modelProperties: { - commands: { - constraints: { - MinItems: 1 + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, - serializedName: "commands", - required: true, + }, + additionalEgressEndpoints: { + serializedName: "properties.additionalEgressEndpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BareMetalMachineCommandSpecification" - } - } - } - }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + className: "EgressEndpoint", + }, + }, }, - serializedName: "limitTimeSeconds", - required: true, + }, + enableDefaultEgressEndpoints: { + serializedName: "properties.enableDefaultEgressEndpoints", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BareMetalMachineCommandSpecification: coreClient.CompositeMapper = { +export const ClusterManagerPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineCommandSpecification", + className: "ClusterManagerPatchParameters", modelProperties: { - arguments: { - serializedName: "arguments", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ManagedServiceIdentity", + }, }, - command: { - serializedName: "command", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" - } - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const BareMetalMachineRunReadCommandsParameters: coreClient.CompositeMapper = { +export const ClusterPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineRunReadCommandsParameters", + className: "ClusterPatchParameters", modelProperties: { - commands: { - constraints: { - MinItems: 1 - }, - serializedName: "commands", - required: true, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BareMetalMachineCommandSpecification" - } - } - } - }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + name: "Composite", + className: "ManagedServiceIdentity", }, - serializedName: "limitTimeSeconds", - required: true, - type: { - name: "Number" - } - } - } - } -}; - -export const CloudServicesNetworkPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServicesNetworkPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } }, - additionalEgressEndpoints: { - serializedName: "properties.additionalEgressEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EgressEndpoint" - } - } - } - }, - enableDefaultEgressEndpoints: { - serializedName: "properties.enableDefaultEgressEndpoints", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterManagerPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterManagerPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ClusterPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterPatchParameters", - modelProperties: { tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, aggregatorOrSingleRackDefinition: { serializedName: "properties.aggregatorOrSingleRackDefinition", type: { name: "Composite", - className: "RackDefinition" - } + className: "RackDefinition", + }, }, clusterLocation: { serializedName: "properties.clusterLocation", type: { - name: "String" - } + name: "String", + }, }, clusterServicePrincipal: { serializedName: "properties.clusterServicePrincipal", type: { name: "Composite", - className: "ServicePrincipalInformation" - } + className: "ServicePrincipalInformation", + }, + }, + commandOutputSettings: { + serializedName: "properties.commandOutputSettings", + type: { + name: "Composite", + className: "CommandOutputSettings", + }, }, computeDeploymentThreshold: { serializedName: "properties.computeDeploymentThreshold", type: { name: "Composite", - className: "ValidationThreshold" - } + className: "ValidationThreshold", + }, }, computeRackDefinitions: { serializedName: "properties.computeRackDefinitions", @@ -3093,13 +3508,34 @@ export const ClusterPatchParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackDefinition" - } - } - } - } - } - } + className: "RackDefinition", + }, + }, + }, + }, + runtimeProtectionConfiguration: { + serializedName: "properties.runtimeProtectionConfiguration", + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + }, + }, + secretArchive: { + serializedName: "properties.secretArchive", + type: { + name: "Composite", + className: "ClusterSecretArchive", + }, + }, + updateStrategy: { + serializedName: "properties.updateStrategy", + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + }, + }, + }, + }, }; export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { @@ -3110,8 +3546,8 @@ export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3120,13 +3556,13 @@ export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachineKeySet" - } - } - } - } - } - } + className: "BareMetalMachineKeySet", + }, + }, + }, + }, + }, + }, }; export const KeySetUser: coreClient.CompositeMapper = { @@ -3138,27 +3574,33 @@ export const KeySetUser: coreClient.CompositeMapper = { serializedName: "azureUserName", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, sshPublicKey: { serializedName: "sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } + className: "SshPublicKey", + }, + }, + userPrincipalName: { + serializedName: "userPrincipalName", + type: { + name: "String", + }, + }, + }, + }, }; export const KeySetUserStatus: coreClient.CompositeMapper = { @@ -3170,74 +3612,75 @@ export const KeySetUserStatus: coreClient.CompositeMapper = { serializedName: "azureUserName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusMessage: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "statusMessage", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - expiration: { - serializedName: "properties.expiration", - type: { - name: "DateTime" - } + name: "String", + }, }, - jumpHostsAllowed: { - serializedName: "properties.jumpHostsAllowed", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const BareMetalMachineKeySetPatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + expiration: { + serializedName: "properties.expiration", + type: { + name: "DateTime", + }, + }, + jumpHostsAllowed: { + serializedName: "properties.jumpHostsAllowed", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + userList: { + serializedName: "properties.userList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeySetUser", + }, + }, + }, + }, }, - userList: { - serializedName: "properties.userList", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KeySetUser" - } - } - } - } - } - } -}; + }, + }; export const BmcKeySetList: coreClient.CompositeMapper = { type: { @@ -3247,8 +3690,8 @@ export const BmcKeySetList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3257,13 +3700,13 @@ export const BmcKeySetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BmcKeySet" - } - } - } - } - } - } + className: "BmcKeySet", + }, + }, + }, + }, + }, + }, }; export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { @@ -3275,14 +3718,14 @@ export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, userList: { serializedName: "properties.userList", @@ -3291,14 +3734,31 @@ export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } - } - } - } -}; + className: "KeySetUser", + }, + }, + }, + }, + }, + }, +}; + +export const ClusterContinueUpdateVersionParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterContinueUpdateVersionParameters", + modelProperties: { + machineGroupTargetingMode: { + defaultValue: "AlphaByRack", + serializedName: "machineGroupTargetingMode", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClusterDeployParameters: coreClient.CompositeMapper = { type: { @@ -3311,13 +3771,13 @@ export const ClusterDeployParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { @@ -3328,8 +3788,8 @@ export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3338,50 +3798,67 @@ export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterMetricsConfiguration" - } - } - } - } - } - } -}; + className: "ClusterMetricsConfiguration", + }, + }, + }, + }, + }, + }, +}; + +export const ClusterMetricsConfigurationPatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterMetricsConfigurationPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + collectionInterval: { + constraints: { + InclusiveMaximum: 1440, + InclusiveMinimum: 1, + }, + serializedName: "properties.collectionInterval", + type: { + name: "Number", + }, + }, + enabledMetrics: { + serializedName: "properties.enabledMetrics", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; -export const ClusterMetricsConfigurationPatchParameters: coreClient.CompositeMapper = { +export const ClusterScanRuntimeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterMetricsConfigurationPatchParameters", + className: "ClusterScanRuntimeParameters", modelProperties: { - tags: { - serializedName: "tags", + scanActivity: { + defaultValue: "Scan", + serializedName: "scanActivity", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - collectionInterval: { - constraints: { - InclusiveMaximum: 1440, - InclusiveMinimum: 1 + name: "String", }, - serializedName: "properties.collectionInterval", - type: { - name: "Number" - } }, - enabledMetrics: { - serializedName: "properties.enabledMetrics", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; export const ClusterUpdateVersionParameters: coreClient.CompositeMapper = { @@ -3393,11 +3870,11 @@ export const ClusterUpdateVersionParameters: coreClient.CompositeMapper = { serializedName: "targetClusterVersion", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KubernetesClusterPatchParameters: coreClient.CompositeMapper = { @@ -3409,24 +3886,52 @@ export const KubernetesClusterPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + administratorConfiguration: { + serializedName: "properties.administratorConfiguration", + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + }, }, controlPlaneNodeConfiguration: { serializedName: "properties.controlPlaneNodeConfiguration", type: { name: "Composite", - className: "ControlPlaneNodePatchConfiguration" - } + className: "ControlPlaneNodePatchConfiguration", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const AdministratorConfigurationPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + modelProperties: { + sshPublicKeys: { + serializedName: "sshPublicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const ControlPlaneNodePatchConfiguration: coreClient.CompositeMapper = { @@ -3434,17 +3939,24 @@ export const ControlPlaneNodePatchConfiguration: coreClient.CompositeMapper = { name: "Composite", className: "ControlPlaneNodePatchConfiguration", modelProperties: { + administratorConfiguration: { + serializedName: "administratorConfiguration", + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + }, + }, count: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AgentPoolList: coreClient.CompositeMapper = { @@ -3455,8 +3967,8 @@ export const AgentPoolList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3465,13 +3977,13 @@ export const AgentPoolList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" - } - } - } - } - } - } + className: "AgentPool", + }, + }, + }, + }, + }, + }, }; export const AgentPoolPatchParameters: coreClient.CompositeMapper = { @@ -3483,41 +3995,150 @@ export const AgentPoolPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + administratorConfiguration: { + serializedName: "properties.administratorConfiguration", + type: { + name: "Composite", + className: "NodePoolAdministratorConfigurationPatch", + }, }, count: { serializedName: "properties.count", type: { - name: "Number" - } + name: "Number", + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } - } - } - } + className: "AgentPoolUpgradeSettings", + }, + }, + }, + }, +}; + +export const NodePoolAdministratorConfigurationPatch: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NodePoolAdministratorConfigurationPatch", + modelProperties: { + sshPublicKeys: { + serializedName: "sshPublicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, + }; + +export const KubernetesClusterFeatureList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesClusterFeatureList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KubernetesClusterFeature", + }, + }, + }, + }, + }, + }, }; -export const KubernetesClusterRestartNodeParameters: coreClient.CompositeMapper = { +export const StringKeyValuePair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesClusterRestartNodeParameters", + className: "StringKeyValuePair", modelProperties: { - nodeName: { - serializedName: "nodeName", + key: { + serializedName: "key", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeaturePatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturePatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StringKeyValuePair", + }, + }, + }, + }, + }, + }, + }; + +export const KubernetesClusterRestartNodeParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterRestartNodeParameters", + modelProperties: { + nodeName: { + serializedName: "nodeName", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const L2NetworkPatchParameters: coreClient.CompositeMapper = { type: { @@ -3528,11 +4149,11 @@ export const L2NetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const L3NetworkPatchParameters: coreClient.CompositeMapper = { @@ -3544,11 +4165,11 @@ export const L3NetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const RackPatchParameters: coreClient.CompositeMapper = { @@ -3560,30 +4181,30 @@ export const RackPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.rackLocation", type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.rackSerialNumber", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliancePatchParameters: coreClient.CompositeMapper = { @@ -3595,38 +4216,39 @@ export const StorageAppliancePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, serialNumber: { serializedName: "properties.serialNumber", type: { - name: "String" - } - } - } - } -}; - -export const StorageApplianceEnableRemoteVendorManagementParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageApplianceEnableRemoteVendorManagementParameters", - modelProperties: { - supportEndpoints: { - serializedName: "supportEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageApplianceEnableRemoteVendorManagementParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageApplianceEnableRemoteVendorManagementParameters", + modelProperties: { + supportEndpoints: { + serializedName: "supportEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const TrunkedNetworkPatchParameters: coreClient.CompositeMapper = { type: { @@ -3637,11 +4259,11 @@ export const TrunkedNetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachinePatchParameters: coreClient.CompositeMapper = { @@ -3653,18 +4275,18 @@ export const VirtualMachinePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, vmImageRepositoryCredentials: { serializedName: "properties.vmImageRepositoryCredentials", type: { name: "Composite", - className: "ImageRepositoryCredentials" - } - } - } - } + className: "ImageRepositoryCredentials", + }, + }, + }, + }, }; export const ConsoleList: coreClient.CompositeMapper = { @@ -3675,8 +4297,8 @@ export const ConsoleList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3685,13 +4307,13 @@ export const ConsoleList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Console" - } - } - } - } - } - } + className: "Console", + }, + }, + }, + }, + }, + }, }; export const ConsolePatchParameters: coreClient.CompositeMapper = { @@ -3703,30 +4325,30 @@ export const ConsolePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, sshPublicKey: { serializedName: "properties.sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, }; export const VirtualMachinePowerOffParameters: coreClient.CompositeMapper = { @@ -3738,11 +4360,11 @@ export const VirtualMachinePowerOffParameters: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "skipShutdown", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatchParameters: coreClient.CompositeMapper = { @@ -3754,11 +4376,11 @@ export const VolumePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AgentPoolConfiguration: coreClient.CompositeMapper = { @@ -3770,22 +4392,22 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -3793,17 +4415,17 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, labels: { serializedName: "labels", @@ -3812,17 +4434,17 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -3831,27 +4453,27 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagsParameter: coreClient.CompositeMapper = { @@ -3863,11 +4485,11 @@ export const TagsParameter: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -3880,18 +4502,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RackSku: coreClient.CompositeMapper = { @@ -3908,10 +4530,10 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineSkuSlot" - } - } - } + className: "MachineSkuSlot", + }, + }, + }, }, controllerMachines: { serializedName: "properties.controllerMachines", @@ -3921,38 +4543,38 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineSkuSlot" - } - } - } + className: "MachineSkuSlot", + }, + }, + }, }, description: { serializedName: "properties.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maxClusterSlots: { serializedName: "properties.maxClusterSlots", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackType: { serializedName: "properties.rackType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageAppliances: { serializedName: "properties.storageAppliances", @@ -3962,10 +4584,10 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageApplianceSkuSlot" - } - } - } + className: "StorageApplianceSkuSlot", + }, + }, + }, }, supportedRackSkuIds: { serializedName: "properties.supportedRackSkuIds", @@ -3974,13 +4596,13 @@ export const RackSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BareMetalMachine: coreClient.CompositeMapper = { @@ -3993,8 +4615,8 @@ export const BareMetalMachine: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4003,86 +4625,86 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, bmcConnectionString: { serializedName: "properties.bmcConnectionString", required: true, type: { - name: "String" - } + name: "String", + }, }, bmcCredentials: { serializedName: "properties.bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "properties.bmcMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "properties.bootMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cordonStatus: { serializedName: "properties.cordonStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareInventory: { serializedName: "properties.hardwareInventory", type: { name: "Composite", - className: "HardwareInventory" - } + className: "HardwareInventory", + }, }, hardwareValidationStatus: { serializedName: "properties.hardwareValidationStatus", type: { name: "Composite", - className: "HardwareValidationStatus" - } + className: "HardwareValidationStatus", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4091,129 +4713,167 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kubernetesNodeName: { serializedName: "properties.kubernetesNodeName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + machineClusterVersion: { + serializedName: "properties.machineClusterVersion", + type: { + name: "String", + }, }, machineDetails: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.machineDetails", required: true, type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "properties.machineName", required: true, type: { - name: "String" - } + name: "String", + }, + }, + machineRoles: { + serializedName: "properties.machineRoles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, machineSkuId: { serializedName: "properties.machineSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, oamIpv4Address: { serializedName: "properties.oamIpv4Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, oamIpv6Address: { serializedName: "properties.oamIpv6Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osImage: { serializedName: "properties.osImage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, powerState: { serializedName: "properties.powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackId: { serializedName: "properties.rackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, readyState: { serializedName: "properties.readyState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + runtimeProtectionStatus: { + serializedName: "properties.runtimeProtectionStatus", + type: { + name: "Composite", + className: "RuntimeProtectionStatus", + }, + }, + secretRotationStatus: { + serializedName: "properties.secretRotationStatus", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecretRotationStatus", + }, + }, + }, }, serialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceTag: { serializedName: "properties.serviceTag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4222,13 +4882,13 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServicesNetwork: coreClient.CompositeMapper = { @@ -4241,8 +4901,8 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, additionalEgressEndpoints: { serializedName: "properties.additionalEgressEndpoints", @@ -4251,10 +4911,10 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EgressEndpoint" - } - } - } + className: "EgressEndpoint", + }, + }, + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4263,37 +4923,37 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableDefaultEgressEndpoints: { serializedName: "properties.enableDefaultEgressEndpoints", type: { - name: "String" - } + name: "String", + }, }, enabledEgressEndpoints: { serializedName: "properties.enabledEgressEndpoints", @@ -4303,10 +4963,10 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EgressEndpoint" - } - } - } + className: "EgressEndpoint", + }, + }, + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4315,24 +4975,24 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, interfaceName: { serializedName: "properties.interfaceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4341,13 +5001,13 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClusterManager: coreClient.CompositeMapper = { @@ -4356,11 +5016,18 @@ export const ClusterManager: coreClient.CompositeMapper = { className: "ClusterManager", modelProperties: { ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, + }, analyticsWorkspaceId: { serializedName: "properties.analyticsWorkspaceId", type: { - name: "String" - } + name: "String", + }, }, availabilityZones: { serializedName: "properties.availabilityZones", @@ -4368,10 +5035,10 @@ export const ClusterManager: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterVersions: { serializedName: "properties.clusterVersions", @@ -4381,61 +5048,61 @@ export const ClusterManager: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterAvailableVersion" - } - } - } + className: "ClusterAvailableVersion", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fabricControllerId: { serializedName: "properties.fabricControllerId", required: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, managerExtendedLocation: { serializedName: "properties.managerExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Cluster: coreClient.CompositeMapper = { @@ -4448,21 +5115,28 @@ export const Cluster: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, }, aggregatorOrSingleRackDefinition: { serializedName: "properties.aggregatorOrSingleRackDefinition", type: { name: "Composite", - className: "RackDefinition" - } + className: "RackDefinition", + }, }, analyticsWorkspaceId: { serializedName: "properties.analyticsWorkspaceId", type: { - name: "String" - } + name: "String", + }, }, availableUpgradeVersions: { serializedName: "properties.availableUpgradeVersions", @@ -4472,82 +5146,89 @@ export const Cluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterAvailableUpgradeVersion" - } - } - } + className: "ClusterAvailableUpgradeVersion", + }, + }, + }, }, clusterCapacity: { serializedName: "properties.clusterCapacity", type: { name: "Composite", - className: "ClusterCapacity" - } + className: "ClusterCapacity", + }, }, clusterConnectionStatus: { serializedName: "properties.clusterConnectionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterExtendedLocation: { serializedName: "properties.clusterExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, clusterLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.clusterLocation", type: { - name: "String" - } + name: "String", + }, }, clusterManagerConnectionStatus: { serializedName: "properties.clusterManagerConnectionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterManagerId: { serializedName: "properties.clusterManagerId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterServicePrincipal: { serializedName: "properties.clusterServicePrincipal", type: { name: "Composite", - className: "ServicePrincipalInformation" - } + className: "ServicePrincipalInformation", + }, }, clusterType: { serializedName: "properties.clusterType", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterVersion: { serializedName: "properties.clusterVersion", required: true, type: { - name: "String" - } + name: "String", + }, + }, + commandOutputSettings: { + serializedName: "properties.commandOutputSettings", + type: { + name: "Composite", + className: "CommandOutputSettings", + }, }, computeDeploymentThreshold: { serializedName: "properties.computeDeploymentThreshold", type: { name: "Composite", - className: "ValidationThreshold" - } + className: "ValidationThreshold", + }, }, computeRackDefinitions: { serializedName: "properties.computeRackDefinitions", @@ -4556,66 +5237,87 @@ export const Cluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackDefinition" - } - } - } + className: "RackDefinition", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksExtendedLocation: { serializedName: "properties.hybridAksExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, manualActionCount: { serializedName: "properties.manualActionCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, networkFabricId: { serializedName: "properties.networkFabricId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + runtimeProtectionConfiguration: { + serializedName: "properties.runtimeProtectionConfiguration", + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + }, + }, + secretArchive: { + serializedName: "properties.secretArchive", + type: { + name: "Composite", + className: "ClusterSecretArchive", + }, }, supportExpiryDate: { serializedName: "properties.supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + updateStrategy: { + serializedName: "properties.updateStrategy", + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + }, }, workloadResourceIds: { serializedName: "properties.workloadResourceIds", @@ -4624,13 +5326,13 @@ export const Cluster: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KubernetesCluster: coreClient.CompositeMapper = { @@ -4643,22 +5345,22 @@ export const KubernetesCluster: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, aadConfiguration: { serializedName: "properties.aadConfiguration", type: { name: "Composite", - className: "AadConfiguration" - } + className: "AadConfiguration", + }, }, administratorConfiguration: { serializedName: "properties.administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, attachedNetworkIds: { serializedName: "properties.attachedNetworkIds", @@ -4667,10 +5369,10 @@ export const KubernetesCluster: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, availableUpgrades: { serializedName: "properties.availableUpgrades", @@ -4680,52 +5382,52 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailableUpgrade" - } - } - } + className: "AvailableUpgrade", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, connectedClusterId: { serializedName: "properties.connectedClusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, controlPlaneKubernetesVersion: { serializedName: "properties.controlPlaneKubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, controlPlaneNodeConfiguration: { serializedName: "properties.controlPlaneNodeConfiguration", type: { name: "Composite", - className: "ControlPlaneNodeConfiguration" - } + className: "ControlPlaneNodeConfiguration", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, featureStatuses: { serializedName: "properties.featureStatuses", @@ -4735,14 +5437,14 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FeatureStatus" - } - } - } + className: "FeatureStatus", + }, + }, + }, }, initialAgentPoolConfigurations: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.initialAgentPoolConfigurations", required: true, @@ -4751,31 +5453,31 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InitialAgentPoolConfiguration" - } - } - } + className: "InitialAgentPoolConfiguration", + }, + }, + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, networkConfiguration: { serializedName: "properties.networkConfiguration", type: { name: "Composite", - className: "NetworkConfiguration" - } + className: "NetworkConfiguration", + }, }, nodes: { serializedName: "properties.nodes", @@ -4785,20 +5487,20 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesClusterNode" - } - } - } + className: "KubernetesClusterNode", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2Network: coreClient.CompositeMapper = { @@ -4811,8 +5513,8 @@ export const L2Network: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4821,31 +5523,31 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4854,40 +5556,40 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, l2IsolationDomainId: { serializedName: "properties.l2IsolationDomainId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4896,13 +5598,13 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const L3Network: coreClient.CompositeMapper = { @@ -4915,8 +5617,8 @@ export const L3Network: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4925,31 +5627,31 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4958,66 +5660,66 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksIpamEnabled: { defaultValue: "True", serializedName: "properties.hybridAksIpamEnabled", type: { - name: "String" - } + name: "String", + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, ipAllocationType: { defaultValue: "DualStack", serializedName: "properties.ipAllocationType", type: { - name: "String" - } + name: "String", + }, }, ipv4ConnectedPrefix: { serializedName: "properties.ipv4ConnectedPrefix", type: { - name: "String" - } + name: "String", + }, }, ipv6ConnectedPrefix: { serializedName: "properties.ipv6ConnectedPrefix", type: { - name: "String" - } + name: "String", + }, }, l3IsolationDomainId: { serializedName: "properties.l3IsolationDomainId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -5026,20 +5728,20 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, vlan: { serializedName: "properties.vlan", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Rack: coreClient.CompositeMapper = { @@ -5052,77 +5754,77 @@ export const Rack: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, availabilityZone: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$") + Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$"), }, serializedName: "properties.availabilityZone", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.rackLocation", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.rackSerialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSkuId: { serializedName: "properties.rackSkuId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliance: coreClient.CompositeMapper = { @@ -5135,113 +5837,147 @@ export const StorageAppliance: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, administratorCredentials: { serializedName: "properties.administratorCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, capacity: { serializedName: "properties.capacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, capacityUsed: { serializedName: "properties.capacityUsed", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managementIpv4Address: { serializedName: "properties.managementIpv4Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + manufacturer: { + serializedName: "properties.manufacturer", + readOnly: true, + type: { + name: "String", + }, + }, + model: { + serializedName: "properties.model", + readOnly: true, + type: { + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackId: { serializedName: "properties.rackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, remoteVendorManagementFeature: { serializedName: "properties.remoteVendorManagementFeature", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, remoteVendorManagementStatus: { serializedName: "properties.remoteVendorManagementStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + secretRotationStatus: { + serializedName: "properties.secretRotationStatus", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecretRotationStatus", + }, + }, + }, }, serialNumber: { serializedName: "properties.serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceSkuId: { serializedName: "properties.storageApplianceSkuId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const TrunkedNetwork: coreClient.CompositeMapper = { @@ -5254,8 +5990,8 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -5264,31 +6000,31 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -5297,30 +6033,30 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, isolationDomainIds: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.isolationDomainIds", required: true, @@ -5328,17 +6064,17 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -5347,14 +6083,14 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, vlans: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.vlans", required: true, @@ -5362,13 +6098,13 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Number" - } - } - } - } - } - } + name: "Number", + }, + }, + }, + }, + }, + }, }; export const VirtualMachine: coreClient.CompositeMapper = { @@ -5381,96 +6117,96 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, adminUsername: { constraints: { Pattern: new RegExp("^[a-z_][a-z0-9_]{0,31}$"), MaxLength: 32, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.adminUsername", required: true, type: { - name: "String" - } + name: "String", + }, }, availabilityZone: { serializedName: "properties.availabilityZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineId: { serializedName: "properties.bareMetalMachineId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bootMethod: { defaultValue: "UEFI", serializedName: "properties.bootMethod", type: { - name: "String" - } + name: "String", + }, }, cloudServicesNetworkAttachment: { serializedName: "properties.cloudServicesNetworkAttachment", type: { name: "Composite", - className: "NetworkAttachment" - } + className: "NetworkAttachment", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "properties.cpuCores", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isolateEmulatorThread: { defaultValue: "True", serializedName: "properties.isolateEmulatorThread", type: { - name: "String" - } + name: "String", + }, }, memorySizeGB: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.memorySizeGB", required: true, type: { - name: "Number" - } + name: "Number", + }, }, networkAttachments: { serializedName: "properties.networkAttachments", @@ -5479,16 +6215,16 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkAttachment" - } - } - } + className: "NetworkAttachment", + }, + }, + }, }, networkData: { serializedName: "properties.networkData", type: { - name: "String" - } + name: "String", + }, }, placementHints: { serializedName: "properties.placementHints", @@ -5497,24 +6233,24 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachinePlacementHint" - } - } - } + className: "VirtualMachinePlacementHint", + }, + }, + }, }, powerState: { serializedName: "properties.powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sshPublicKeys: { serializedName: "properties.sshPublicKeys", @@ -5523,51 +6259,51 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } + className: "SshPublicKey", + }, + }, + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, virtioInterface: { defaultValue: "Modern", serializedName: "properties.virtioInterface", type: { - name: "String" - } + name: "String", + }, }, vmDeviceModel: { defaultValue: "T2", serializedName: "properties.vmDeviceModel", type: { - name: "String" - } + name: "String", + }, }, vmImage: { serializedName: "properties.vmImage", required: true, type: { - name: "String" - } + name: "String", + }, }, vmImageRepositoryCredentials: { serializedName: "properties.vmImageRepositoryCredentials", type: { name: "Composite", - className: "ImageRepositoryCredentials" - } + className: "ImageRepositoryCredentials", + }, }, volumes: { serializedName: "properties.volumes", @@ -5576,13 +6312,13 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Volume: coreClient.CompositeMapper = { @@ -5595,8 +6331,8 @@ export const Volume: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, attachedTo: { serializedName: "properties.attachedTo", @@ -5605,51 +6341,51 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialNumber: { serializedName: "properties.serialNumber", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sizeMiB: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.sizeMiB", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BareMetalMachineKeySet: coreClient.CompositeMapper = { @@ -5662,36 +6398,36 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, azureGroupId: { serializedName: "properties.azureGroupId", required: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, jumpHostsAllowed: { serializedName: "properties.jumpHostsAllowed", @@ -5700,41 +6436,41 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lastValidation: { serializedName: "properties.lastValidation", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osGroupName: { constraints: { Pattern: new RegExp("^([A-Za-z]([A-Za-z0-9]*))$"), - MaxLength: 32 + MaxLength: 32, }, serializedName: "properties.osGroupName", type: { - name: "String" - } + name: "String", + }, }, privilegeLevel: { serializedName: "properties.privilegeLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userList: { serializedName: "properties.userList", @@ -5744,10 +6480,10 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } + className: "KeySetUser", + }, + }, + }, }, userListStatus: { serializedName: "properties.userListStatus", @@ -5757,13 +6493,13 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUserStatus" - } - } - } - } - } - } + className: "KeySetUserStatus", + }, + }, + }, + }, + }, + }, }; export const BmcKeySet: coreClient.CompositeMapper = { @@ -5776,57 +6512,57 @@ export const BmcKeySet: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, azureGroupId: { serializedName: "properties.azureGroupId", required: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastValidation: { serializedName: "properties.lastValidation", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, privilegeLevel: { serializedName: "properties.privilegeLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userList: { serializedName: "properties.userList", @@ -5836,10 +6572,10 @@ export const BmcKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } + className: "KeySetUser", + }, + }, + }, }, userListStatus: { serializedName: "properties.userListStatus", @@ -5849,13 +6585,13 @@ export const BmcKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUserStatus" - } - } - } - } - } - } + className: "KeySetUserStatus", + }, + }, + }, + }, + }, + }, }; export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { @@ -5868,33 +6604,33 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, collectionInterval: { constraints: { InclusiveMaximum: 1440, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.collectionInterval", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, disabledMetrics: { serializedName: "properties.disabledMetrics", @@ -5903,10 +6639,10 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, enabledMetrics: { serializedName: "properties.enabledMetrics", @@ -5914,20 +6650,20 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPool: coreClient.CompositeMapper = { @@ -5940,29 +6676,29 @@ export const AgentPool: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, administratorConfiguration: { serializedName: "properties.administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "properties.agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "properties.attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "properties.availabilityZones", @@ -5970,38 +6706,38 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "properties.count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, labels: { serializedName: "properties.labels", @@ -6010,24 +6746,24 @@ export const AgentPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "properties.mode", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "properties.taints", @@ -6036,27 +6772,91 @@ export const AgentPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "properties.vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesClusterFeature", + modelProperties: { + ...TrackedResource.type.modelProperties, + availabilityLifecycle: { + serializedName: "properties.availabilityLifecycle", + readOnly: true, + type: { + name: "String", + }, + }, + detailedStatus: { + serializedName: "properties.detailedStatus", + readOnly: true, + type: { + name: "String", + }, + }, + detailedStatusMessage: { + serializedName: "properties.detailedStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StringKeyValuePair", + }, + }, + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "properties.required", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const Console: coreClient.CompositeMapper = { @@ -6069,82 +6869,83 @@ export const Console: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "properties.enabled", required: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, privateLinkServiceId: { serializedName: "properties.privateLinkServiceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sshPublicKey: { serializedName: "properties.sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } + className: "SshPublicKey", + }, }, virtualMachineAccessId: { serializedName: "properties.virtualMachineAccessId", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const BareMetalMachinesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6154,11 +6955,11 @@ export const BareMetalMachinesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesUpdateHeaders: coreClient.CompositeMapper = { @@ -6169,11 +6970,17 @@ export const BareMetalMachinesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesCordonHeaders: coreClient.CompositeMapper = { @@ -6184,11 +6991,11 @@ export const BareMetalMachinesCordonHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesPowerOffHeaders: coreClient.CompositeMapper = { @@ -6199,11 +7006,11 @@ export const BareMetalMachinesPowerOffHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesReimageHeaders: coreClient.CompositeMapper = { @@ -6214,11 +7021,11 @@ export const BareMetalMachinesReimageHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesReplaceHeaders: coreClient.CompositeMapper = { @@ -6229,11 +7036,11 @@ export const BareMetalMachinesReplaceHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesRestartHeaders: coreClient.CompositeMapper = { @@ -6244,11 +7051,11 @@ export const BareMetalMachinesRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesRunCommandHeaders: coreClient.CompositeMapper = { @@ -6259,42 +7066,44 @@ export const BareMetalMachinesRunCommandHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesRunDataExtractsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesRunDataExtractsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesRunReadCommandsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesRunReadCommandsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinesRunDataExtractsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesRunDataExtractsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachinesRunReadCommandsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesRunReadCommandsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const BareMetalMachinesStartHeaders: coreClient.CompositeMapper = { type: { @@ -6304,11 +7113,11 @@ export const BareMetalMachinesStartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesUncordonHeaders: coreClient.CompositeMapper = { @@ -6319,27 +7128,28 @@ export const BareMetalMachinesUncordonHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const CloudServicesNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServicesNetworksCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const CloudServicesNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudServicesNetworksCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const CloudServicesNetworksDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6349,11 +7159,11 @@ export const CloudServicesNetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServicesNetworksUpdateHeaders: coreClient.CompositeMapper = { @@ -6364,27 +7174,34 @@ export const CloudServicesNetworksUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const ClusterManagersCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterManagersCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ClusterManagersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterManagersCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClusterManagersDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6394,11 +7211,11 @@ export const ClusterManagersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6409,11 +7226,11 @@ export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersDeleteHeaders: coreClient.CompositeMapper = { @@ -6424,11 +7241,11 @@ export const ClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersUpdateHeaders: coreClient.CompositeMapper = { @@ -6439,12 +7256,34 @@ export const ClustersUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClustersContinueUpdateVersionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClustersContinueUpdateVersionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClustersDeployHeaders: coreClient.CompositeMapper = { type: { @@ -6454,42 +7293,58 @@ export const ClustersDeployHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ClustersUpdateVersionHeaders: coreClient.CompositeMapper = { +export const ClustersScanRuntimeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersUpdateVersionHeaders", + className: "ClustersScanRuntimeHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const KubernetesClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ClustersUpdateVersionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesClustersCreateOrUpdateHeaders", + className: "ClustersUpdateVersionHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClustersCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const KubernetesClustersDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6499,11 +7354,11 @@ export const KubernetesClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KubernetesClustersUpdateHeaders: coreClient.CompositeMapper = { @@ -6514,27 +7369,34 @@ export const KubernetesClustersUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const KubernetesClustersRestartNodeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KubernetesClustersRestartNodeHeaders", - modelProperties: { + name: "String", + }, + }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClustersRestartNodeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClustersRestartNodeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const L2NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -6544,11 +7406,11 @@ export const L2NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2NetworksDeleteHeaders: coreClient.CompositeMapper = { @@ -6559,11 +7421,11 @@ export const L2NetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6574,11 +7436,11 @@ export const L3NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworksDeleteHeaders: coreClient.CompositeMapper = { @@ -6589,11 +7451,11 @@ export const L3NetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6604,11 +7466,11 @@ export const RacksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksDeleteHeaders: coreClient.CompositeMapper = { @@ -6619,11 +7481,11 @@ export const RacksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksUpdateHeaders: coreClient.CompositeMapper = { @@ -6634,27 +7496,34 @@ export const RacksUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageAppliancesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const StorageAppliancesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6664,11 +7533,11 @@ export const StorageAppliancesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliancesUpdateHeaders: coreClient.CompositeMapper = { @@ -6679,57 +7548,66 @@ export const StorageAppliancesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesDisableRemoteVendorManagementHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesDisableRemoteVendorManagementHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesEnableRemoteVendorManagementHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesEnableRemoteVendorManagementHeaders", - modelProperties: { + name: "String", + }, + }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const TrunkedNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrunkedNetworksCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageAppliancesDisableRemoteVendorManagementHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesDisableRemoteVendorManagementHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const StorageAppliancesEnableRemoteVendorManagementHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesEnableRemoteVendorManagementHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const TrunkedNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TrunkedNetworksCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const TrunkedNetworksDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6739,27 +7617,28 @@ export const TrunkedNetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachinesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6769,11 +7648,11 @@ export const VirtualMachinesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesUpdateHeaders: coreClient.CompositeMapper = { @@ -6784,11 +7663,17 @@ export const VirtualMachinesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesPowerOffHeaders: coreClient.CompositeMapper = { @@ -6799,11 +7684,11 @@ export const VirtualMachinesPowerOffHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesReimageHeaders: coreClient.CompositeMapper = { @@ -6814,11 +7699,11 @@ export const VirtualMachinesReimageHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesRestartHeaders: coreClient.CompositeMapper = { @@ -6829,11 +7714,11 @@ export const VirtualMachinesRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesStartHeaders: coreClient.CompositeMapper = { @@ -6844,11 +7729,11 @@ export const VirtualMachinesStartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6859,11 +7744,11 @@ export const VolumesCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesDeleteHeaders: coreClient.CompositeMapper = { @@ -6874,57 +7759,66 @@ export const VolumesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachineKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineKeySetsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineKeySetsUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const BmcKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -6934,11 +7828,11 @@ export const BmcKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BmcKeySetsDeleteHeaders: coreClient.CompositeMapper = { @@ -6949,11 +7843,11 @@ export const BmcKeySetsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BmcKeySetsUpdateHeaders: coreClient.CompositeMapper = { @@ -6964,27 +7858,34 @@ export const BmcKeySetsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const MetricsConfigurationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricsConfigurationsCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const MetricsConfigurationsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MetricsConfigurationsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const MetricsConfigurationsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6994,11 +7895,11 @@ export const MetricsConfigurationsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricsConfigurationsUpdateHeaders: coreClient.CompositeMapper = { @@ -7009,11 +7910,17 @@ export const MetricsConfigurationsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const AgentPoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -7024,11 +7931,11 @@ export const AgentPoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { @@ -7039,11 +7946,11 @@ export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolsUpdateHeaders: coreClient.CompositeMapper = { @@ -7054,12 +7961,72 @@ export const AgentPoolsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeaturesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const KubernetesClusterFeaturesDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const KubernetesClusterFeaturesUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ConsolesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -7069,11 +8036,11 @@ export const ConsolesCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConsolesDeleteHeaders: coreClient.CompositeMapper = { @@ -7084,11 +8051,11 @@ export const ConsolesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConsolesUpdateHeaders: coreClient.CompositeMapper = { @@ -7099,9 +8066,15 @@ export const ConsolesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts b/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts index 8ed6d775a5b1..1e90589f4c8b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BareMetalMachine as BareMetalMachineMapper, @@ -26,7 +26,9 @@ import { ClusterManagerPatchParameters as ClusterManagerPatchParametersMapper, Cluster as ClusterMapper, ClusterPatchParameters as ClusterPatchParametersMapper, + ClusterContinueUpdateVersionParameters as ClusterContinueUpdateVersionParametersMapper, ClusterDeployParameters as ClusterDeployParametersMapper, + ClusterScanRuntimeParameters as ClusterScanRuntimeParametersMapper, ClusterUpdateVersionParameters as ClusterUpdateVersionParametersMapper, KubernetesCluster as KubernetesClusterMapper, KubernetesClusterPatchParameters as KubernetesClusterPatchParametersMapper, @@ -55,8 +57,10 @@ import { ClusterMetricsConfigurationPatchParameters as ClusterMetricsConfigurationPatchParametersMapper, AgentPool as AgentPoolMapper, AgentPoolPatchParameters as AgentPoolPatchParametersMapper, + KubernetesClusterFeature as KubernetesClusterFeatureMapper, + KubernetesClusterFeaturePatchParameters as KubernetesClusterFeaturePatchParametersMapper, Console as ConsoleMapper, - ConsolePatchParameters as ConsolePatchParametersMapper + ConsolePatchParameters as ConsolePatchParametersMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -66,9 +70,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -77,22 +81,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2024-07-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -101,10 +105,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -113,9 +117,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -123,28 +127,28 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineName: OperationURLParameter = { parameterPath: "bareMetalMachineName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "bareMetalMachineName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -154,470 +158,508 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineParameters: OperationParameter = { parameterPath: "bareMetalMachineParameters", - mapper: BareMetalMachineMapper + mapper: BareMetalMachineMapper, }; export const bareMetalMachineUpdateParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineUpdateParameters"], - mapper: BareMetalMachinePatchParametersMapper + mapper: BareMetalMachinePatchParametersMapper, }; export const bareMetalMachineCordonParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineCordonParameters"], - mapper: BareMetalMachineCordonParametersMapper + mapper: BareMetalMachineCordonParametersMapper, }; export const bareMetalMachinePowerOffParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachinePowerOffParameters"], - mapper: BareMetalMachinePowerOffParametersMapper + mapper: BareMetalMachinePowerOffParametersMapper, }; export const bareMetalMachineReplaceParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineReplaceParameters"], - mapper: BareMetalMachineReplaceParametersMapper + mapper: BareMetalMachineReplaceParametersMapper, }; export const bareMetalMachineRunCommandParameters: OperationParameter = { parameterPath: "bareMetalMachineRunCommandParameters", - mapper: BareMetalMachineRunCommandParametersMapper + mapper: BareMetalMachineRunCommandParametersMapper, }; export const bareMetalMachineRunDataExtractsParameters: OperationParameter = { parameterPath: "bareMetalMachineRunDataExtractsParameters", - mapper: BareMetalMachineRunDataExtractsParametersMapper + mapper: BareMetalMachineRunDataExtractsParametersMapper, }; export const bareMetalMachineRunReadCommandsParameters: OperationParameter = { parameterPath: "bareMetalMachineRunReadCommandsParameters", - mapper: BareMetalMachineRunReadCommandsParametersMapper + mapper: BareMetalMachineRunReadCommandsParametersMapper, }; export const cloudServicesNetworkName: OperationURLParameter = { parameterPath: "cloudServicesNetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "cloudServicesNetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServicesNetworkParameters: OperationParameter = { parameterPath: "cloudServicesNetworkParameters", - mapper: CloudServicesNetworkMapper + mapper: CloudServicesNetworkMapper, }; export const cloudServicesNetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "cloudServicesNetworkUpdateParameters"], - mapper: CloudServicesNetworkPatchParametersMapper + mapper: CloudServicesNetworkPatchParametersMapper, }; export const clusterManagerName: OperationURLParameter = { parameterPath: "clusterManagerName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "clusterManagerName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterManagerParameters: OperationParameter = { parameterPath: "clusterManagerParameters", - mapper: ClusterManagerMapper + mapper: ClusterManagerMapper, }; export const clusterManagerUpdateParameters: OperationParameter = { parameterPath: ["options", "clusterManagerUpdateParameters"], - mapper: ClusterManagerPatchParametersMapper + mapper: ClusterManagerPatchParametersMapper, }; export const clusterName: OperationURLParameter = { parameterPath: "clusterName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "clusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterParameters: OperationParameter = { parameterPath: "clusterParameters", - mapper: ClusterMapper + mapper: ClusterMapper, }; export const clusterUpdateParameters: OperationParameter = { parameterPath: ["options", "clusterUpdateParameters"], - mapper: ClusterPatchParametersMapper + mapper: ClusterPatchParametersMapper, +}; + +export const clusterContinueUpdateVersionParameters: OperationParameter = { + parameterPath: "clusterContinueUpdateVersionParameters", + mapper: ClusterContinueUpdateVersionParametersMapper, }; export const clusterDeployParameters: OperationParameter = { parameterPath: ["options", "clusterDeployParameters"], - mapper: ClusterDeployParametersMapper + mapper: ClusterDeployParametersMapper, +}; + +export const clusterScanRuntimeParameters: OperationParameter = { + parameterPath: ["options", "clusterScanRuntimeParameters"], + mapper: ClusterScanRuntimeParametersMapper, }; export const clusterUpdateVersionParameters: OperationParameter = { parameterPath: "clusterUpdateVersionParameters", - mapper: ClusterUpdateVersionParametersMapper + mapper: ClusterUpdateVersionParametersMapper, }; export const kubernetesClusterName: OperationURLParameter = { parameterPath: "kubernetesClusterName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "kubernetesClusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const kubernetesClusterParameters: OperationParameter = { parameterPath: "kubernetesClusterParameters", - mapper: KubernetesClusterMapper + mapper: KubernetesClusterMapper, }; export const kubernetesClusterUpdateParameters: OperationParameter = { parameterPath: ["options", "kubernetesClusterUpdateParameters"], - mapper: KubernetesClusterPatchParametersMapper + mapper: KubernetesClusterPatchParametersMapper, }; export const kubernetesClusterRestartNodeParameters: OperationParameter = { parameterPath: "kubernetesClusterRestartNodeParameters", - mapper: KubernetesClusterRestartNodeParametersMapper + mapper: KubernetesClusterRestartNodeParametersMapper, }; export const l2NetworkName: OperationURLParameter = { parameterPath: "l2NetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "l2NetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const l2NetworkParameters: OperationParameter = { parameterPath: "l2NetworkParameters", - mapper: L2NetworkMapper + mapper: L2NetworkMapper, }; export const l2NetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "l2NetworkUpdateParameters"], - mapper: L2NetworkPatchParametersMapper + mapper: L2NetworkPatchParametersMapper, }; export const l3NetworkName: OperationURLParameter = { parameterPath: "l3NetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "l3NetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const l3NetworkParameters: OperationParameter = { parameterPath: "l3NetworkParameters", - mapper: L3NetworkMapper + mapper: L3NetworkMapper, }; export const l3NetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "l3NetworkUpdateParameters"], - mapper: L3NetworkPatchParametersMapper + mapper: L3NetworkPatchParametersMapper, }; export const rackSkuName: OperationURLParameter = { parameterPath: "rackSkuName", mapper: { + constraints: { + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,126}[a-zA-Z0-9])$"), + }, serializedName: "rackSkuName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const rackName: OperationURLParameter = { parameterPath: "rackName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "rackName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const rackParameters: OperationParameter = { parameterPath: "rackParameters", - mapper: RackMapper + mapper: RackMapper, }; export const rackUpdateParameters: OperationParameter = { parameterPath: ["options", "rackUpdateParameters"], - mapper: RackPatchParametersMapper + mapper: RackPatchParametersMapper, }; export const storageApplianceName: OperationURLParameter = { parameterPath: "storageApplianceName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "storageApplianceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const storageApplianceParameters: OperationParameter = { parameterPath: "storageApplianceParameters", - mapper: StorageApplianceMapper + mapper: StorageApplianceMapper, }; export const storageApplianceUpdateParameters: OperationParameter = { parameterPath: ["options", "storageApplianceUpdateParameters"], - mapper: StorageAppliancePatchParametersMapper + mapper: StorageAppliancePatchParametersMapper, }; -export const storageApplianceEnableRemoteVendorManagementParameters: OperationParameter = { - parameterPath: [ - "options", - "storageApplianceEnableRemoteVendorManagementParameters" - ], - mapper: StorageApplianceEnableRemoteVendorManagementParametersMapper -}; +export const storageApplianceEnableRemoteVendorManagementParameters: OperationParameter = + { + parameterPath: [ + "options", + "storageApplianceEnableRemoteVendorManagementParameters", + ], + mapper: StorageApplianceEnableRemoteVendorManagementParametersMapper, + }; export const trunkedNetworkName: OperationURLParameter = { parameterPath: "trunkedNetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "trunkedNetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const trunkedNetworkParameters: OperationParameter = { parameterPath: "trunkedNetworkParameters", - mapper: TrunkedNetworkMapper + mapper: TrunkedNetworkMapper, }; export const trunkedNetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "trunkedNetworkUpdateParameters"], - mapper: TrunkedNetworkPatchParametersMapper + mapper: TrunkedNetworkPatchParametersMapper, }; export const virtualMachineName: OperationURLParameter = { parameterPath: "virtualMachineName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "virtualMachineName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const virtualMachineParameters: OperationParameter = { parameterPath: "virtualMachineParameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; export const virtualMachineUpdateParameters: OperationParameter = { parameterPath: ["options", "virtualMachineUpdateParameters"], - mapper: VirtualMachinePatchParametersMapper + mapper: VirtualMachinePatchParametersMapper, }; export const virtualMachinePowerOffParameters: OperationParameter = { parameterPath: ["options", "virtualMachinePowerOffParameters"], - mapper: VirtualMachinePowerOffParametersMapper + mapper: VirtualMachinePowerOffParametersMapper, }; export const volumeName: OperationURLParameter = { parameterPath: "volumeName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$"), }, serializedName: "volumeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const volumeParameters: OperationParameter = { parameterPath: "volumeParameters", - mapper: VolumeMapper + mapper: VolumeMapper, }; export const volumeUpdateParameters: OperationParameter = { parameterPath: ["options", "volumeUpdateParameters"], - mapper: VolumePatchParametersMapper + mapper: VolumePatchParametersMapper, }; export const bareMetalMachineKeySetName: OperationURLParameter = { parameterPath: "bareMetalMachineKeySetName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "bareMetalMachineKeySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineKeySetParameters: OperationParameter = { parameterPath: "bareMetalMachineKeySetParameters", - mapper: BareMetalMachineKeySetMapper + mapper: BareMetalMachineKeySetMapper, }; export const bareMetalMachineKeySetUpdateParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineKeySetUpdateParameters"], - mapper: BareMetalMachineKeySetPatchParametersMapper + mapper: BareMetalMachineKeySetPatchParametersMapper, }; export const bmcKeySetName: OperationURLParameter = { parameterPath: "bmcKeySetName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "bmcKeySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bmcKeySetParameters: OperationParameter = { parameterPath: "bmcKeySetParameters", - mapper: BmcKeySetMapper + mapper: BmcKeySetMapper, }; export const bmcKeySetUpdateParameters: OperationParameter = { parameterPath: ["options", "bmcKeySetUpdateParameters"], - mapper: BmcKeySetPatchParametersMapper + mapper: BmcKeySetPatchParametersMapper, }; export const metricsConfigurationName: OperationURLParameter = { parameterPath: "metricsConfigurationName", mapper: { constraints: { - Pattern: new RegExp("^default$") + Pattern: new RegExp("^default$"), }, serializedName: "metricsConfigurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const metricsConfigurationParameters: OperationParameter = { parameterPath: "metricsConfigurationParameters", - mapper: ClusterMetricsConfigurationMapper + mapper: ClusterMetricsConfigurationMapper, }; export const metricsConfigurationUpdateParameters: OperationParameter = { parameterPath: ["options", "metricsConfigurationUpdateParameters"], - mapper: ClusterMetricsConfigurationPatchParametersMapper + mapper: ClusterMetricsConfigurationPatchParametersMapper, }; export const agentPoolName: OperationURLParameter = { parameterPath: "agentPoolName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "agentPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const agentPoolParameters: OperationParameter = { parameterPath: "agentPoolParameters", - mapper: AgentPoolMapper + mapper: AgentPoolMapper, }; export const agentPoolUpdateParameters: OperationParameter = { parameterPath: ["options", "agentPoolUpdateParameters"], - mapper: AgentPoolPatchParametersMapper + mapper: AgentPoolPatchParametersMapper, +}; + +export const featureName: OperationURLParameter = { + parameterPath: "featureName", + mapper: { + constraints: { + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$"), + }, + serializedName: "featureName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const kubernetesClusterFeatureParameters: OperationParameter = { + parameterPath: "kubernetesClusterFeatureParameters", + mapper: KubernetesClusterFeatureMapper, +}; + +export const kubernetesClusterFeatureUpdateParameters: OperationParameter = { + parameterPath: ["options", "kubernetesClusterFeatureUpdateParameters"], + mapper: KubernetesClusterFeaturePatchParametersMapper, }; export const consoleName: OperationURLParameter = { parameterPath: "consoleName", mapper: { constraints: { - Pattern: new RegExp("^default$") + Pattern: new RegExp("^default$"), }, serializedName: "consoleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const consoleParameters: OperationParameter = { parameterPath: "consoleParameters", - mapper: ConsoleMapper + mapper: ConsoleMapper, }; export const consoleUpdateParameters: OperationParameter = { parameterPath: ["options", "consoleUpdateParameters"], - mapper: ConsolePatchParametersMapper + mapper: ConsolePatchParametersMapper, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts b/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts index 0e6c3b9d201f..a719291814c1 100644 --- a/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts +++ b/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -33,7 +33,8 @@ import { BmcKeySetsImpl, MetricsConfigurationsImpl, AgentPoolsImpl, - ConsolesImpl + KubernetesClusterFeaturesImpl, + ConsolesImpl, } from "./operations"; import { Operations, @@ -54,7 +55,8 @@ import { BmcKeySets, MetricsConfigurations, AgentPools, - Consoles + KubernetesClusterFeatures, + Consoles, } from "./operationsInterfaces"; import { NetworkCloudOptionalParams } from "./models"; @@ -72,7 +74,7 @@ export class NetworkCloud extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NetworkCloudOptionalParams + options?: NetworkCloudOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -87,10 +89,10 @@ export class NetworkCloud extends coreClient.ServiceClient { } const defaults: NetworkCloudOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-networkcloud/1.0.0`; + const packageDetails = `azsdk-js-arm-networkcloud/1.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -100,20 +102,21 @@ export class NetworkCloud extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -123,7 +126,7 @@ export class NetworkCloud extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -133,9 +136,9 @@ export class NetworkCloud extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -143,7 +146,7 @@ export class NetworkCloud extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-07-01"; + this.apiVersion = options.apiVersion || "2024-07-01"; this.operations = new OperationsImpl(this); this.bareMetalMachines = new BareMetalMachinesImpl(this); this.cloudServicesNetworks = new CloudServicesNetworksImpl(this); @@ -162,6 +165,7 @@ export class NetworkCloud extends coreClient.ServiceClient { this.bmcKeySets = new BmcKeySetsImpl(this); this.metricsConfigurations = new MetricsConfigurationsImpl(this); this.agentPools = new AgentPoolsImpl(this); + this.kubernetesClusterFeatures = new KubernetesClusterFeaturesImpl(this); this.consoles = new ConsolesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -175,7 +179,7 @@ export class NetworkCloud extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -189,7 +193,7 @@ export class NetworkCloud extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -212,5 +216,6 @@ export class NetworkCloud extends coreClient.ServiceClient { bmcKeySets: BmcKeySets; metricsConfigurations: MetricsConfigurations; agentPools: AgentPools; + kubernetesClusterFeatures: KubernetesClusterFeatures; consoles: Consoles; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts b/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts index 70bad3445e33..14501bc786b3 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, + AgentPoolsDeleteResponse, AgentPoolsUpdateOptionalParams, AgentPoolsUpdateResponse, - AgentPoolsListByKubernetesClusterNextResponse + AgentPoolsListByKubernetesClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class AgentPoolsImpl implements AgentPools { public listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByKubernetesClusterPagingAll( resourceGroupName, kubernetesClusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, options?: AgentPoolsListByKubernetesClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AgentPoolsListByKubernetesClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class AgentPoolsImpl implements AgentPools { result = await this._listByKubernetesCluster( resourceGroupName, kubernetesClusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class AgentPoolsImpl implements AgentPools { private async *listByKubernetesClusterPagingAll( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByKubernetesClusterPagingPage( resourceGroupName, kubernetesClusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class AgentPoolsImpl implements AgentPools { private _listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, options }, - listByKubernetesClusterOperationSpec + listByKubernetesClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, agentPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName, agentPoolName, agentPoolParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AgentPoolsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class AgentPoolsImpl implements AgentPools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise, void>> { + options?: AgentPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AgentPoolsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + AgentPoolsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise { + options?: AgentPoolsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AgentPoolsUpdateResponse, @@ -441,7 +447,7 @@ export class AgentPoolsImpl implements AgentPools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +488,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, nextLink: string, - options?: AgentPoolsListByKubernetesClusterNextOptionalParams + options?: AgentPoolsListByKubernetesClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, nextLink, options }, - listByKubernetesClusterNextOperationSpec + listByKubernetesClusterNextOperationSpec, ); } } @@ -494,38 +500,36 @@ export class AgentPoolsImpl implements AgentPools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByKubernetesClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolList + bodyMapper: Mappers.AgentPoolList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,31 +537,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 201: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 202: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.agentPoolParameters, queryParameters: [Parameters.apiVersion], @@ -566,24 +569,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -591,31 +601,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 201: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 202: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.agentPoolUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -624,30 +633,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolList + bodyMapper: Mappers.AgentPoolList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts index 6d8bf07e9085..59a4831330c6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { BareMetalMachineKeySetsCreateOrUpdateOptionalParams, BareMetalMachineKeySetsCreateOrUpdateResponse, BareMetalMachineKeySetsDeleteOptionalParams, + BareMetalMachineKeySetsDeleteResponse, BareMetalMachineKeySetsUpdateOptionalParams, BareMetalMachineKeySetsUpdateResponse, - BareMetalMachineKeySetsListByClusterNextResponse + BareMetalMachineKeySetsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { public listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, options?: BareMetalMachineKeySetsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachineKeySetsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsGetOptionalParams + options?: BareMetalMachineKeySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, bareMetalMachineKeySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachineKeySetsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise, void>> { + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachineKeySetsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BareMetalMachineKeySetsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise { + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachineKeySetsUpdateResponse, @@ -441,7 +447,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -481,11 +487,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, nextLink: string, - options?: BareMetalMachineKeySetsListByClusterNextOptionalParams + options?: BareMetalMachineKeySetsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -493,38 +499,36 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySetList + bodyMapper: Mappers.BareMetalMachineKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -532,31 +536,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 201: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 202: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 204: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineKeySetParameters, queryParameters: [Parameters.apiVersion], @@ -565,24 +568,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -590,31 +600,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 201: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 202: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 204: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineKeySetUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -623,30 +632,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySetList + bodyMapper: Mappers.BareMetalMachineKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts index de3e2bca1b70..1c89773977ac 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { BareMetalMachinesCreateOrUpdateOptionalParams, BareMetalMachinesCreateOrUpdateResponse, BareMetalMachinesDeleteOptionalParams, + BareMetalMachinesDeleteResponse, BareMetalMachinesUpdateOptionalParams, BareMetalMachinesUpdateResponse, BareMetalMachinesCordonOptionalParams, @@ -58,7 +59,7 @@ import { BareMetalMachinesUncordonOptionalParams, BareMetalMachinesUncordonResponse, BareMetalMachinesListBySubscriptionNextResponse, - BareMetalMachinesListByResourceGroupNextResponse + BareMetalMachinesListByResourceGroupNextResponse, } from "../models"; /// @@ -79,7 +80,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { * @param options The options parameters. */ public listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -94,13 +95,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: BareMetalMachinesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachinesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -121,7 +122,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { } private async *listBySubscriptionPagingAll( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -135,7 +136,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ public listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -152,16 +153,16 @@ export class BareMetalMachinesImpl implements BareMetalMachines { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BareMetalMachinesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachinesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -176,7 +177,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -187,11 +188,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -202,11 +203,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { * @param options The options parameters. */ private _listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -217,11 +218,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ private _listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -234,11 +235,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { get( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesGetOptionalParams + options?: BareMetalMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, bareMetalMachineName, options }, - getOperationSpec + getOperationSpec, ); } @@ -255,7 +256,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -264,21 +265,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -287,8 +287,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -296,8 +296,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -307,9 +307,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesCreateOrUpdateResponse, @@ -317,7 +317,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -336,13 +336,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, - options + options, ); return poller.pollUntilDone(); } @@ -358,25 +358,29 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginDelete( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise, void>> { + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachinesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -385,8 +389,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -394,20 +398,23 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BareMetalMachinesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -424,12 +431,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginDeleteAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise { + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -444,7 +451,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUpdate( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -453,21 +460,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -476,8 +482,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -485,15 +491,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesUpdateResponse, @@ -501,7 +507,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -517,12 +523,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUpdateAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -536,7 +542,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginCordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -545,21 +551,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -568,8 +573,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -577,15 +582,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: cordonOperationSpec + spec: cordonOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesCordonResponse, @@ -593,7 +598,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -608,12 +613,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginCordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise { const poller = await this.beginCordon( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -627,7 +632,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginPowerOff( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -636,21 +641,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -659,8 +663,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -668,15 +672,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesPowerOffResponse, @@ -684,7 +688,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -699,12 +703,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginPowerOffAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -718,7 +722,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReimage( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -727,21 +731,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -750,8 +753,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -759,15 +762,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesReimageResponse, @@ -775,7 +778,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -790,12 +793,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReimageAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -809,7 +812,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReplace( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -818,21 +821,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -841,8 +843,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -850,15 +852,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: replaceOperationSpec + spec: replaceOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesReplaceResponse, @@ -866,7 +868,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -881,12 +883,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReplaceAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise { const poller = await this.beginReplace( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -900,7 +902,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginRestart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -909,21 +911,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -932,8 +933,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -941,15 +942,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRestartResponse, @@ -957,7 +958,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -972,12 +973,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginRestartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -995,7 +996,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1004,21 +1005,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1027,8 +1027,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1036,8 +1036,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1047,9 +1047,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunCommandResponse, @@ -1057,7 +1057,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1076,13 +1076,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1100,7 +1100,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1109,21 +1109,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1132,8 +1131,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1141,8 +1140,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1152,9 +1151,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, - options + options, }, - spec: runDataExtractsOperationSpec + spec: runDataExtractsOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunDataExtractsResponse, @@ -1162,7 +1161,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1181,13 +1180,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise { const poller = await this.beginRunDataExtracts( resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1205,7 +1204,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1214,21 +1213,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1237,8 +1235,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1246,8 +1244,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1257,9 +1255,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, - options + options, }, - spec: runReadCommandsOperationSpec + spec: runReadCommandsOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunReadCommandsResponse, @@ -1267,7 +1265,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1286,13 +1284,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise { const poller = await this.beginRunReadCommands( resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1306,7 +1304,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginStart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1315,21 +1313,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1338,8 +1335,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1347,15 +1344,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesStartResponse, @@ -1363,7 +1360,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1378,12 +1375,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginStartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -1397,7 +1394,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUncordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1406,21 +1403,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1429,8 +1425,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1438,15 +1434,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: uncordonOperationSpec + spec: uncordonOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesUncordonResponse, @@ -1454,7 +1450,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1469,12 +1465,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUncordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise { const poller = await this.beginUncordon( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -1486,11 +1482,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ private _listBySubscriptionNext( nextLink: string, - options?: BareMetalMachinesListBySubscriptionNextOptionalParams + options?: BareMetalMachinesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1503,11 +1499,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BareMetalMachinesListByResourceGroupNextOptionalParams + options?: BareMetalMachinesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -1515,85 +1511,81 @@ export class BareMetalMachinesImpl implements BareMetalMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/bareMetalMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/bareMetalMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 201: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 202: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 204: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineParameters, queryParameters: [Parameters.apiVersion], @@ -1601,55 +1593,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 201: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 202: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 204: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -1657,32 +1655,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const cordonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/cordon", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/cordon", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineCordonParameters, queryParameters: [Parameters.apiVersion], @@ -1690,32 +1687,31 @@ const cordonOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/powerOff", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachinePowerOffParameters, queryParameters: [Parameters.apiVersion], @@ -1723,63 +1719,61 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/reimage", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const replaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/replace", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/replace", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineReplaceParameters, queryParameters: [Parameters.apiVersion], @@ -1787,63 +1781,61 @@ const replaceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/restart", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunCommandParameters, queryParameters: [Parameters.apiVersion], @@ -1851,32 +1843,31 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runDataExtractsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtracts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtracts", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunDataExtractsParameters, queryParameters: [Parameters.apiVersion], @@ -1884,32 +1875,31 @@ const runDataExtractsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runReadCommandsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunReadCommandsParameters, queryParameters: [Parameters.apiVersion], @@ -1917,110 +1907,108 @@ const runReadCommandsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const uncordonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts index ceba7831b8d3..91002037980f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { BmcKeySetsCreateOrUpdateOptionalParams, BmcKeySetsCreateOrUpdateResponse, BmcKeySetsDeleteOptionalParams, + BmcKeySetsDeleteResponse, BmcKeySetsUpdateOptionalParams, BmcKeySetsUpdateResponse, - BmcKeySetsListByClusterNextResponse + BmcKeySetsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class BmcKeySetsImpl implements BmcKeySets { public listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, options?: BmcKeySetsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BmcKeySetsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class BmcKeySetsImpl implements BmcKeySets { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class BmcKeySetsImpl implements BmcKeySets { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class BmcKeySetsImpl implements BmcKeySets { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsGetOptionalParams + options?: BmcKeySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, bmcKeySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -181,7 +182,7 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,21 +191,20 @@ export class BmcKeySetsImpl implements BmcKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -213,8 +213,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -222,8 +222,8 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -234,9 +234,9 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName, bmcKeySetName, bmcKeySetParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BmcKeySetsCreateOrUpdateResponse, @@ -244,7 +244,7 @@ export class BmcKeySetsImpl implements BmcKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -264,14 +264,14 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, - options + options, ); return poller.pollUntilDone(); } @@ -287,25 +287,29 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise, void>> { + options?: BmcKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BmcKeySetsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +318,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,20 +327,23 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, bmcKeySetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BmcKeySetsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -353,13 +360,13 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise { + options?: BmcKeySetsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, bmcKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -376,7 +383,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -385,21 +392,20 @@ export class BmcKeySetsImpl implements BmcKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +414,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,15 +423,15 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, bmcKeySetName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BmcKeySetsUpdateResponse, @@ -433,7 +439,7 @@ export class BmcKeySetsImpl implements BmcKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -451,13 +457,13 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, bmcKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -473,11 +479,11 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, nextLink: string, - options?: BmcKeySetsListByClusterNextOptionalParams + options?: BmcKeySetsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -485,38 +491,36 @@ export class BmcKeySetsImpl implements BmcKeySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySetList + bodyMapper: Mappers.BmcKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -524,31 +528,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 201: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 202: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 204: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bmcKeySetParameters, queryParameters: [Parameters.apiVersion], @@ -557,24 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -582,31 +592,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 201: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 202: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 204: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bmcKeySetUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -615,30 +624,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySetList + bodyMapper: Mappers.BmcKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts index b2cc0981f850..0b447b724223 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { CloudServicesNetworksCreateOrUpdateOptionalParams, CloudServicesNetworksCreateOrUpdateResponse, CloudServicesNetworksDeleteOptionalParams, + CloudServicesNetworksDeleteResponse, CloudServicesNetworksUpdateOptionalParams, CloudServicesNetworksUpdateResponse, CloudServicesNetworksListBySubscriptionNextResponse, - CloudServicesNetworksListByResourceGroupNextResponse + CloudServicesNetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { * @param options The options parameters. */ public listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CloudServicesNetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesNetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { } private async *listBySubscriptionPagingAll( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ public listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CloudServicesNetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesNetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { * @param options The options parameters. */ private _listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ private _listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { get( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksGetOptionalParams + options?: CloudServicesNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServicesNetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudServicesNetworksCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginDelete( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise, void>> { + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudServicesNetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServicesNetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + CloudServicesNetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginDeleteAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise { + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudServicesNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -413,7 +420,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginUpdate( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -422,21 +429,20 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -445,8 +451,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -454,15 +460,15 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServicesNetworkName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudServicesNetworksUpdateResponse, @@ -470,7 +476,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -486,12 +492,12 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginUpdateAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudServicesNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -503,11 +509,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ private _listBySubscriptionNext( nextLink: string, - options?: CloudServicesNetworksListBySubscriptionNextOptionalParams + options?: CloudServicesNetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -520,11 +526,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CloudServicesNetworksListByResourceGroupNextOptionalParams + options?: CloudServicesNetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -532,85 +538,81 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 201: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 202: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 204: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.cloudServicesNetworkParameters, queryParameters: [Parameters.apiVersion], @@ -618,55 +620,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 201: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 202: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 204: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.cloudServicesNetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -674,48 +682,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts b/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts index b2b726ae4572..f1ecfa32658a 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { ClusterManagersCreateOrUpdateOptionalParams, ClusterManagersCreateOrUpdateResponse, ClusterManagersDeleteOptionalParams, + ClusterManagersDeleteResponse, ClusterManagersUpdateOptionalParams, ClusterManagersUpdateResponse, ClusterManagersListBySubscriptionNextResponse, - ClusterManagersListByResourceGroupNextResponse + ClusterManagersListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class ClusterManagersImpl implements ClusterManagers { * @param options The options parameters. */ public listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class ClusterManagersImpl implements ClusterManagers { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ClusterManagersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClusterManagersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class ClusterManagersImpl implements ClusterManagers { } private async *listBySubscriptionPagingAll( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class ClusterManagersImpl implements ClusterManagers { */ public listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class ClusterManagersImpl implements ClusterManagers { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ClusterManagersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClusterManagersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class ClusterManagersImpl implements ClusterManagers { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class ClusterManagersImpl implements ClusterManagers { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class ClusterManagersImpl implements ClusterManagers { * @param options The options parameters. */ private _listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class ClusterManagersImpl implements ClusterManagers { */ private _listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class ClusterManagersImpl implements ClusterManagers { get( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersGetOptionalParams + options?: ClusterManagersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterManagerName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class ClusterManagersImpl implements ClusterManagers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class ClusterManagersImpl implements ClusterManagers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class ClusterManagersImpl implements ClusterManagers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName, clusterManagerName, clusterManagerParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ClusterManagersCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class ClusterManagersImpl implements ClusterManagers { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterManagerName, clusterManagerParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class ClusterManagersImpl implements ClusterManagers { async beginDelete( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise, void>> { + options?: ClusterManagersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClusterManagersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class ClusterManagersImpl implements ClusterManagers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class ClusterManagersImpl implements ClusterManagers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterManagerName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ClusterManagersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class ClusterManagersImpl implements ClusterManagers { async beginDeleteAndWait( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise { + options?: ClusterManagersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterManagerName, - options + options, ); return poller.pollUntilDone(); } @@ -413,11 +420,11 @@ export class ClusterManagersImpl implements ClusterManagers { update( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersUpdateOptionalParams + options?: ClusterManagersUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterManagerName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -428,11 +435,11 @@ export class ClusterManagersImpl implements ClusterManagers { */ private _listBySubscriptionNext( nextLink: string, - options?: ClusterManagersListBySubscriptionNextOptionalParams + options?: ClusterManagersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -445,11 +452,11 @@ export class ClusterManagersImpl implements ClusterManagers { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ClusterManagersListByResourceGroupNextOptionalParams + options?: ClusterManagersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -457,85 +464,81 @@ export class ClusterManagersImpl implements ClusterManagers { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusterManagers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusterManagers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 201: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 202: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 204: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterManagerParameters, queryParameters: [Parameters.apiVersion], @@ -543,46 +546,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterManagerUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -590,48 +599,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts b/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts index a18be5689324..efc03f5dab12 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,15 +32,21 @@ import { ClustersCreateOrUpdateOptionalParams, ClustersCreateOrUpdateResponse, ClustersDeleteOptionalParams, + ClustersDeleteResponse, ClustersUpdateOptionalParams, ClustersUpdateResponse, + ClusterContinueUpdateVersionParameters, + ClustersContinueUpdateVersionOptionalParams, + ClustersContinueUpdateVersionResponse, ClustersDeployOptionalParams, ClustersDeployResponse, + ClustersScanRuntimeOptionalParams, + ClustersScanRuntimeResponse, ClusterUpdateVersionParameters, ClustersUpdateVersionOptionalParams, ClustersUpdateVersionResponse, ClustersListBySubscriptionNextResponse, - ClustersListByResourceGroupNextResponse + ClustersListByResourceGroupNextResponse, } from "../models"; /// @@ -61,7 +67,7 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ public listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -76,13 +82,13 @@ export class ClustersImpl implements Clusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +109,7 @@ export class ClustersImpl implements Clusters { } private async *listBySubscriptionPagingAll( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -117,7 +123,7 @@ export class ClustersImpl implements Clusters { */ public listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -134,16 +140,16 @@ export class ClustersImpl implements Clusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -158,7 +164,7 @@ export class ClustersImpl implements Clusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -169,11 +175,11 @@ export class ClustersImpl implements Clusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -184,11 +190,11 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ private _listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -199,11 +205,11 @@ export class ClustersImpl implements Clusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -216,11 +222,11 @@ export class ClustersImpl implements Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -235,7 +241,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -244,21 +250,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -267,8 +272,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -276,15 +281,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, clusterParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ClustersCreateOrUpdateResponse, @@ -292,7 +297,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +314,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, clusterParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +334,29 @@ export class ClustersImpl implements Clusters { async beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise, void>> { + options?: ClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +365,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +374,23 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +405,12 @@ export class ClustersImpl implements Clusters { async beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise { + options?: ClustersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, - options + options, ); return poller.pollUntilDone(); } @@ -413,7 +425,7 @@ export class ClustersImpl implements Clusters { async beginUpdate( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -422,21 +434,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -445,8 +456,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -454,15 +465,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ClustersUpdateResponse, @@ -470,7 +481,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -486,18 +497,120 @@ export class ClustersImpl implements Clusters { async beginUpdateAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, - options + options, + ); + return poller.pollUntilDone(); + } + + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + async beginContinueUpdateVersion( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersContinueUpdateVersionResponse + > + > { + 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: { + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + options, + }, + spec: continueUpdateVersionOperationSpec, + }); + const poller = await createHttpPoller< + ClustersContinueUpdateVersionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + async beginContinueUpdateVersionAndWait( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise { + const poller = await this.beginContinueUpdateVersion( + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + options, ); return poller.pollUntilDone(); } /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -505,7 +618,7 @@ export class ClustersImpl implements Clusters { async beginDeploy( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -514,21 +627,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -537,8 +649,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -546,15 +658,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: deployOperationSpec + spec: deployOperationSpec, }); const poller = await createHttpPoller< ClustersDeployResponse, @@ -562,14 +674,14 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -577,12 +689,104 @@ export class ClustersImpl implements Clusters { async beginDeployAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise { const poller = await this.beginDeploy( resourceGroupName, clusterName, - options + options, + ); + return poller.pollUntilDone(); + } + + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + async beginScanRuntime( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersScanRuntimeResponse + > + > { + 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: { resourceGroupName, clusterName, options }, + spec: scanRuntimeOperationSpec, + }); + const poller = await createHttpPoller< + ClustersScanRuntimeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + async beginScanRuntimeAndWait( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise { + const poller = await this.beginScanRuntime( + resourceGroupName, + clusterName, + options, ); return poller.pollUntilDone(); } @@ -598,7 +802,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -607,21 +811,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -630,8 +833,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -639,8 +842,8 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -650,9 +853,9 @@ export class ClustersImpl implements Clusters { resourceGroupName, clusterName, clusterUpdateVersionParameters, - options + options, }, - spec: updateVersionOperationSpec + spec: updateVersionOperationSpec, }); const poller = await createHttpPoller< ClustersUpdateVersionResponse, @@ -660,7 +863,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -677,13 +880,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise { const poller = await this.beginUpdateVersion( resourceGroupName, clusterName, clusterUpdateVersionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -695,11 +898,11 @@ export class ClustersImpl implements Clusters { */ private _listBySubscriptionNext( nextLink: string, - options?: ClustersListBySubscriptionNextOptionalParams + options?: ClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -712,11 +915,11 @@ export class ClustersImpl implements Clusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ClustersListByResourceGroupNextOptionalParams + options?: ClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -724,85 +927,81 @@ export class ClustersImpl implements Clusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterParameters, queryParameters: [Parameters.apiVersion], @@ -810,55 +1009,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -866,32 +1071,63 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, +}; +const continueUpdateVersionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.clusterContinueUpdateVersionParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const deployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterDeployParameters, queryParameters: [Parameters.apiVersion], @@ -899,32 +1135,63 @@ const deployOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const scanRuntimeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.clusterScanRuntimeParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterUpdateVersionParameters, queryParameters: [Parameters.apiVersion], @@ -932,48 +1199,48 @@ const updateVersionOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts b/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts index 4847e9ee1b88..f1ff8c32f76b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { ConsolesCreateOrUpdateOptionalParams, ConsolesCreateOrUpdateResponse, ConsolesDeleteOptionalParams, + ConsolesDeleteResponse, ConsolesUpdateOptionalParams, ConsolesUpdateResponse, - ConsolesListByVirtualMachineNextResponse + ConsolesListByVirtualMachineNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class ConsolesImpl implements Consoles { public listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinePagingAll( resourceGroupName, virtualMachineName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class ConsolesImpl implements Consoles { resourceGroupName, virtualMachineName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, options?: ConsolesListByVirtualMachineOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConsolesListByVirtualMachineResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class ConsolesImpl implements Consoles { result = await this._listByVirtualMachine( resourceGroupName, virtualMachineName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName, virtualMachineName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class ConsolesImpl implements Consoles { private async *listByVirtualMachinePagingAll( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinePagingPage( resourceGroupName, virtualMachineName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class ConsolesImpl implements Consoles { private _listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, options }, - listByVirtualMachineOperationSpec + listByVirtualMachineOperationSpec, ); } @@ -159,11 +160,11 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesGetOptionalParams + options?: ConsolesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, consoleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -181,7 +182,7 @@ export class ConsolesImpl implements Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,21 +191,20 @@ export class ConsolesImpl implements Consoles { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -213,8 +213,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -222,8 +222,8 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -234,9 +234,9 @@ export class ConsolesImpl implements Consoles { virtualMachineName, consoleName, consoleParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ConsolesCreateOrUpdateResponse, @@ -244,7 +244,7 @@ export class ConsolesImpl implements Consoles { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -264,14 +264,14 @@ export class ConsolesImpl implements Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, virtualMachineName, consoleName, consoleParameters, - options + options, ); return poller.pollUntilDone(); } @@ -287,25 +287,29 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise, void>> { + options?: ConsolesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ConsolesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +318,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,20 +327,23 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, consoleName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ConsolesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -353,13 +360,13 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise { + options?: ConsolesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, virtualMachineName, consoleName, - options + options, ); return poller.pollUntilDone(); } @@ -376,7 +383,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -385,21 +392,20 @@ export class ConsolesImpl implements Consoles { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +414,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,15 +423,15 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, consoleName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ConsolesUpdateResponse, @@ -433,7 +439,7 @@ export class ConsolesImpl implements Consoles { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -451,13 +457,13 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, virtualMachineName, consoleName, - options + options, ); return poller.pollUntilDone(); } @@ -473,11 +479,11 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, nextLink: string, - options?: ConsolesListByVirtualMachineNextOptionalParams + options?: ConsolesListByVirtualMachineNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, nextLink, options }, - listByVirtualMachineNextOperationSpec + listByVirtualMachineNextOperationSpec, ); } } @@ -485,38 +491,36 @@ export class ConsolesImpl implements Consoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsoleList + bodyMapper: Mappers.ConsoleList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -524,31 +528,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 201: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 202: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 204: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.consoleParameters, queryParameters: [Parameters.apiVersion], @@ -557,24 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -582,31 +592,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 201: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 202: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 204: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.consoleUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -615,30 +624,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsoleList + bodyMapper: Mappers.ConsoleList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/index.ts b/sdk/networkcloud/arm-networkcloud/src/operations/index.ts index 1f2559ff80a7..6b259f0f5d4d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/index.ts @@ -24,4 +24,5 @@ export * from "./bareMetalMachineKeySets"; export * from "./bmcKeySets"; export * from "./metricsConfigurations"; export * from "./agentPools"; +export * from "./kubernetesClusterFeatures"; export * from "./consoles"; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts new file mode 100644 index 000000000000..11ddc39a4ccb --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts @@ -0,0 +1,654 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { KubernetesClusterFeatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkCloud } from "../networkCloud"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + KubernetesClusterFeature, + KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams, + KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + KubernetesClusterFeaturesListByKubernetesClusterResponse, + KubernetesClusterFeaturesGetOptionalParams, + KubernetesClusterFeaturesGetResponse, + KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + KubernetesClusterFeaturesCreateOrUpdateResponse, + KubernetesClusterFeaturesDeleteOptionalParams, + KubernetesClusterFeaturesDeleteResponse, + KubernetesClusterFeaturesUpdateOptionalParams, + KubernetesClusterFeaturesUpdateResponse, + KubernetesClusterFeaturesListByKubernetesClusterNextResponse, +} from "../models"; + +/// +/** Class containing KubernetesClusterFeatures operations. */ +export class KubernetesClusterFeaturesImpl + implements KubernetesClusterFeatures +{ + private readonly client: NetworkCloud; + + /** + * Initialize a new instance of the class KubernetesClusterFeatures class. + * @param client Reference to the service client + */ + constructor(client: NetworkCloud) { + this.client = client; + } + + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + public listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByKubernetesClusterPagingAll( + resourceGroupName, + kubernetesClusterName, + 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.listByKubernetesClusterPagingPage( + resourceGroupName, + kubernetesClusterName, + options, + settings, + ); + }, + }; + } + + private async *listByKubernetesClusterPagingPage( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: KubernetesClusterFeaturesListByKubernetesClusterResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByKubernetesCluster( + resourceGroupName, + kubernetesClusterName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByKubernetesClusterNext( + resourceGroupName, + kubernetesClusterName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByKubernetesClusterPagingAll( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByKubernetesClusterPagingPage( + resourceGroupName, + kubernetesClusterName, + options, + )) { + yield* page; + } + } + + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + private _listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, options }, + listByKubernetesClusterOperationSpec, + ); + } + + /** + * Get properties of the provided the Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, featureName, options }, + getOperationSpec, + ); + } + + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesCreateOrUpdateResponse + > + > { + 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: { + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesDeleteResponse + > + > { + 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: { resourceGroupName, kubernetesClusterName, featureName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesUpdateResponse + > + > { + 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: { resourceGroupName, kubernetesClusterName, featureName, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByKubernetesClusterNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster + * method. + * @param options The options parameters. + */ + private _listByKubernetesClusterNext( + resourceGroupName: string, + kubernetesClusterName: string, + nextLink: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, nextLink, options }, + listByKubernetesClusterNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByKubernetesClusterOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeatureList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 201: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 202: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 204: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.kubernetesClusterFeatureParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 201: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 202: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 204: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.kubernetesClusterFeatureUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeatureList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts index b4fa191d9ee2..c5a6c491ee52 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { KubernetesClustersCreateOrUpdateOptionalParams, KubernetesClustersCreateOrUpdateResponse, KubernetesClustersDeleteOptionalParams, + KubernetesClustersDeleteResponse, KubernetesClustersUpdateOptionalParams, KubernetesClustersUpdateResponse, KubernetesClusterRestartNodeParameters, KubernetesClustersRestartNodeOptionalParams, KubernetesClustersRestartNodeResponse, KubernetesClustersListBySubscriptionNextResponse, - KubernetesClustersListByResourceGroupNextResponse + KubernetesClustersListByResourceGroupNextResponse, } from "../models"; /// @@ -59,7 +60,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { * @param options The options parameters. */ public listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -74,13 +75,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: KubernetesClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KubernetesClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { } private async *listBySubscriptionPagingAll( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -115,7 +116,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ public listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -132,16 +133,16 @@ export class KubernetesClustersImpl implements KubernetesClusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: KubernetesClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KubernetesClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -156,7 +157,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -167,11 +168,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -182,11 +183,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { * @param options The options parameters. */ private _listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -197,11 +198,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -214,11 +215,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { get( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersGetOptionalParams + options?: KubernetesClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -233,7 +234,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -242,21 +243,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -265,8 +265,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -274,8 +274,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -285,9 +285,9 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersCreateOrUpdateResponse, @@ -295,7 +295,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -312,13 +312,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, - options + options, ); return poller.pollUntilDone(); } @@ -332,25 +332,29 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginDelete( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise, void>> { + options?: KubernetesClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -359,8 +363,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -368,20 +372,23 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, kubernetesClusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + KubernetesClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -396,12 +403,12 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginDeleteAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise { + options?: KubernetesClustersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, kubernetesClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -416,7 +423,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginUpdate( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -425,21 +432,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -448,8 +454,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -457,15 +463,15 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, kubernetesClusterName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersUpdateResponse, @@ -473,7 +479,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -489,12 +495,12 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginUpdateAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, kubernetesClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -510,7 +516,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -519,21 +525,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -542,8 +547,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -551,8 +556,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -562,9 +567,9 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, - options + options, }, - spec: restartNodeOperationSpec + spec: restartNodeOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersRestartNodeResponse, @@ -572,7 +577,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -589,13 +594,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise { const poller = await this.beginRestartNode( resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, - options + options, ); return poller.pollUntilDone(); } @@ -607,11 +612,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ private _listBySubscriptionNext( nextLink: string, - options?: KubernetesClustersListBySubscriptionNextOptionalParams + options?: KubernetesClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -624,11 +629,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: KubernetesClustersListByResourceGroupNextOptionalParams + options?: KubernetesClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -636,85 +641,81 @@ export class KubernetesClustersImpl implements KubernetesClusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/kubernetesClusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/kubernetesClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 201: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 202: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 204: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterParameters, queryParameters: [Parameters.apiVersion], @@ -722,55 +723,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 201: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 202: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 204: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -778,32 +785,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartNodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/restartNode", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/restartNode", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterRestartNodeParameters, queryParameters: [Parameters.apiVersion], @@ -811,48 +817,48 @@ const restartNodeOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts index 52fb040eea08..b158b36632d1 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { L2NetworksCreateOrUpdateOptionalParams, L2NetworksCreateOrUpdateResponse, L2NetworksDeleteOptionalParams, + L2NetworksDeleteResponse, L2NetworksUpdateOptionalParams, L2NetworksUpdateResponse, L2NetworksListBySubscriptionNextResponse, - L2NetworksListByResourceGroupNextResponse + L2NetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class L2NetworksImpl implements L2Networks { * @param options The options parameters. */ public listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class L2NetworksImpl implements L2Networks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: L2NetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L2NetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class L2NetworksImpl implements L2Networks { } private async *listBySubscriptionPagingAll( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class L2NetworksImpl implements L2Networks { */ public listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class L2NetworksImpl implements L2Networks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: L2NetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L2NetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class L2NetworksImpl implements L2Networks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class L2NetworksImpl implements L2Networks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class L2NetworksImpl implements L2Networks { * @param options The options parameters. */ private _listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class L2NetworksImpl implements L2Networks { */ private _listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class L2NetworksImpl implements L2Networks { get( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksGetOptionalParams + options?: L2NetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l2NetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class L2NetworksImpl implements L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class L2NetworksImpl implements L2Networks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class L2NetworksImpl implements L2Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class L2NetworksImpl implements L2Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l2NetworkName, l2NetworkParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< L2NetworksCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class L2NetworksImpl implements L2Networks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class L2NetworksImpl implements L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, l2NetworkName, l2NetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class L2NetworksImpl implements L2Networks { async beginDelete( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise, void>> { + options?: L2NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L2NetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class L2NetworksImpl implements L2Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class L2NetworksImpl implements L2Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l2NetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + L2NetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class L2NetworksImpl implements L2Networks { async beginDeleteAndWait( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise { + options?: L2NetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, l2NetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class L2NetworksImpl implements L2Networks { update( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksUpdateOptionalParams + options?: L2NetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l2NetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class L2NetworksImpl implements L2Networks { */ private _listBySubscriptionNext( nextLink: string, - options?: L2NetworksListBySubscriptionNextOptionalParams + options?: L2NetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class L2NetworksImpl implements L2Networks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: L2NetworksListByResourceGroupNextOptionalParams + options?: L2NetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class L2NetworksImpl implements L2Networks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 201: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 202: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 204: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l2NetworkParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l2NetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts index d097cb07a0e8..bd123f75514f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { L3NetworksCreateOrUpdateOptionalParams, L3NetworksCreateOrUpdateResponse, L3NetworksDeleteOptionalParams, + L3NetworksDeleteResponse, L3NetworksUpdateOptionalParams, L3NetworksUpdateResponse, L3NetworksListBySubscriptionNextResponse, - L3NetworksListByResourceGroupNextResponse + L3NetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class L3NetworksImpl implements L3Networks { * @param options The options parameters. */ public listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class L3NetworksImpl implements L3Networks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: L3NetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L3NetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class L3NetworksImpl implements L3Networks { } private async *listBySubscriptionPagingAll( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class L3NetworksImpl implements L3Networks { */ public listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class L3NetworksImpl implements L3Networks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: L3NetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L3NetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class L3NetworksImpl implements L3Networks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class L3NetworksImpl implements L3Networks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class L3NetworksImpl implements L3Networks { * @param options The options parameters. */ private _listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class L3NetworksImpl implements L3Networks { */ private _listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class L3NetworksImpl implements L3Networks { get( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksGetOptionalParams + options?: L3NetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3NetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class L3NetworksImpl implements L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class L3NetworksImpl implements L3Networks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class L3NetworksImpl implements L3Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class L3NetworksImpl implements L3Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l3NetworkName, l3NetworkParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< L3NetworksCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class L3NetworksImpl implements L3Networks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class L3NetworksImpl implements L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, l3NetworkName, l3NetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class L3NetworksImpl implements L3Networks { async beginDelete( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise, void>> { + options?: L3NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L3NetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class L3NetworksImpl implements L3Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class L3NetworksImpl implements L3Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l3NetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + L3NetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class L3NetworksImpl implements L3Networks { async beginDeleteAndWait( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise { + options?: L3NetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, l3NetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class L3NetworksImpl implements L3Networks { update( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksUpdateOptionalParams + options?: L3NetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3NetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class L3NetworksImpl implements L3Networks { */ private _listBySubscriptionNext( nextLink: string, - options?: L3NetworksListBySubscriptionNextOptionalParams + options?: L3NetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class L3NetworksImpl implements L3Networks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: L3NetworksListByResourceGroupNextOptionalParams + options?: L3NetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class L3NetworksImpl implements L3Networks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l3Networks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l3Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 201: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 202: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 204: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l3NetworkParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l3NetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts b/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts index b02ba9766770..7a6d657b2497 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { MetricsConfigurationsCreateOrUpdateOptionalParams, MetricsConfigurationsCreateOrUpdateResponse, MetricsConfigurationsDeleteOptionalParams, + MetricsConfigurationsDeleteResponse, MetricsConfigurationsUpdateOptionalParams, MetricsConfigurationsUpdateResponse, - MetricsConfigurationsListByClusterNextResponse + MetricsConfigurationsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { public listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, options?: MetricsConfigurationsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MetricsConfigurationsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsGetOptionalParams + options?: MetricsConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, metricsConfigurationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName, metricsConfigurationName, metricsConfigurationParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< MetricsConfigurationsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise, void>> { + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MetricsConfigurationsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, metricsConfigurationName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + MetricsConfigurationsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise { + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, metricsConfigurationName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< MetricsConfigurationsUpdateResponse, @@ -441,7 +447,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); return poller.pollUntilDone(); } @@ -481,11 +487,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, nextLink: string, - options?: MetricsConfigurationsListByClusterNextOptionalParams + options?: MetricsConfigurationsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -493,38 +499,36 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfigurationList + bodyMapper: Mappers.ClusterMetricsConfigurationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -532,31 +536,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 201: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 202: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 204: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.metricsConfigurationParameters, queryParameters: [Parameters.apiVersion], @@ -565,24 +568,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -590,31 +600,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 201: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 202: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 204: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.metricsConfigurationUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -623,30 +632,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfigurationList + bodyMapper: Mappers.ClusterMetricsConfigurationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts b/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts index e03dbe2bc7c8..8505b5b7dbc7 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -55,13 +55,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -82,7 +82,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -95,7 +95,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,11 +107,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -123,29 +123,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts b/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts index b8d5e500ad79..776ca14ad045 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts @@ -20,7 +20,7 @@ import { RackSkusListBySubscriptionResponse, RackSkusGetOptionalParams, RackSkusGetResponse, - RackSkusListBySubscriptionNextResponse + RackSkusListBySubscriptionNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class RackSkusImpl implements RackSkus { * @param options The options parameters. */ public listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -56,13 +56,13 @@ export class RackSkusImpl implements RackSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: RackSkusListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RackSkusListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class RackSkusImpl implements RackSkus { } private async *listBySubscriptionPagingAll( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -95,11 +95,11 @@ export class RackSkusImpl implements RackSkus { * @param options The options parameters. */ private _listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -110,11 +110,11 @@ export class RackSkusImpl implements RackSkus { */ get( rackSkuName: string, - options?: RackSkusGetOptionalParams + options?: RackSkusGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { rackSkuName, options }, - getOperationSpec + getOperationSpec, ); } @@ -125,11 +125,11 @@ export class RackSkusImpl implements RackSkus { */ private _listBySubscriptionNext( nextLink: string, - options?: RackSkusListBySubscriptionNextOptionalParams + options?: RackSkusListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -137,59 +137,57 @@ export class RackSkusImpl implements RackSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSkuList + bodyMapper: Mappers.RackSkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus/{rackSkuName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus/{rackSkuName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSku + bodyMapper: Mappers.RackSku, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.rackSkuName + Parameters.rackSkuName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSkuList + bodyMapper: Mappers.RackSkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts index 516ca3bbd129..33ea11139bbd 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { RacksCreateOrUpdateOptionalParams, RacksCreateOrUpdateResponse, RacksDeleteOptionalParams, + RacksDeleteResponse, RacksUpdateOptionalParams, RacksUpdateResponse, RacksListBySubscriptionNextResponse, - RacksListByResourceGroupNextResponse + RacksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class RacksImpl implements Racks { * @param options The options parameters. */ public listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class RacksImpl implements Racks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: RacksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RacksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class RacksImpl implements Racks { } private async *listBySubscriptionPagingAll( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class RacksImpl implements Racks { */ public listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class RacksImpl implements Racks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: RacksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RacksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class RacksImpl implements Racks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class RacksImpl implements Racks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class RacksImpl implements Racks { * @param options The options parameters. */ private _listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class RacksImpl implements Racks { */ private _listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class RacksImpl implements Racks { get( resourceGroupName: string, rackName: string, - options?: RacksGetOptionalParams + options?: RacksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, rackName, options }, - getOperationSpec + getOperationSpec, ); } @@ -232,7 +233,7 @@ export class RacksImpl implements Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -241,21 +242,20 @@ export class RacksImpl implements Racks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -264,8 +264,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -273,15 +273,15 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, rackParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< RacksCreateOrUpdateResponse, @@ -289,7 +289,7 @@ export class RacksImpl implements Racks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -308,13 +308,13 @@ export class RacksImpl implements Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, rackName, rackParameters, - options + options, ); return poller.pollUntilDone(); } @@ -330,25 +330,26 @@ export class RacksImpl implements Racks { async beginDelete( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise, void>> { + options?: RacksDeleteOptionalParams, + ): Promise< + SimplePollerLike, RacksDeleteResponse> + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -357,8 +358,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -366,20 +367,23 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + RacksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -396,8 +400,8 @@ export class RacksImpl implements Racks { async beginDeleteAndWait( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise { + options?: RacksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete(resourceGroupName, rackName, options); return poller.pollUntilDone(); } @@ -412,27 +416,26 @@ export class RacksImpl implements Racks { async beginUpdate( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise< SimplePollerLike, RacksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -441,8 +444,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -450,15 +453,15 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< RacksUpdateResponse, @@ -466,7 +469,7 @@ export class RacksImpl implements Racks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -482,7 +485,7 @@ export class RacksImpl implements Racks { async beginUpdateAndWait( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate(resourceGroupName, rackName, options); return poller.pollUntilDone(); @@ -495,11 +498,11 @@ export class RacksImpl implements Racks { */ private _listBySubscriptionNext( nextLink: string, - options?: RacksListBySubscriptionNextOptionalParams + options?: RacksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -512,11 +515,11 @@ export class RacksImpl implements Racks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: RacksListByResourceGroupNextOptionalParams + options?: RacksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -524,85 +527,81 @@ export class RacksImpl implements Racks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/racks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/racks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 201: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 202: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 204: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.rackParameters, queryParameters: [Parameters.apiVersion], @@ -610,55 +609,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 201: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 202: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 204: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.rackUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -666,48 +671,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts b/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts index 508c635c843d..cc58484943e6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { StorageAppliancesCreateOrUpdateOptionalParams, StorageAppliancesCreateOrUpdateResponse, StorageAppliancesDeleteOptionalParams, + StorageAppliancesDeleteResponse, StorageAppliancesUpdateOptionalParams, StorageAppliancesUpdateResponse, StorageAppliancesDisableRemoteVendorManagementOptionalParams, @@ -39,7 +40,7 @@ import { StorageAppliancesEnableRemoteVendorManagementOptionalParams, StorageAppliancesEnableRemoteVendorManagementResponse, StorageAppliancesListBySubscriptionNextResponse, - StorageAppliancesListByResourceGroupNextResponse + StorageAppliancesListByResourceGroupNextResponse, } from "../models"; /// @@ -60,7 +61,7 @@ export class StorageAppliancesImpl implements StorageAppliances { * @param options The options parameters. */ public listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +76,13 @@ export class StorageAppliancesImpl implements StorageAppliances { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: StorageAppliancesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: StorageAppliancesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +103,7 @@ export class StorageAppliancesImpl implements StorageAppliances { } private async *listBySubscriptionPagingAll( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +117,7 @@ export class StorageAppliancesImpl implements StorageAppliances { */ public listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -133,16 +134,16 @@ export class StorageAppliancesImpl implements StorageAppliances { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: StorageAppliancesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: StorageAppliancesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -157,7 +158,7 @@ export class StorageAppliancesImpl implements StorageAppliances { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,11 +169,11 @@ export class StorageAppliancesImpl implements StorageAppliances { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +184,11 @@ export class StorageAppliancesImpl implements StorageAppliances { * @param options The options parameters. */ private _listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -198,11 +199,11 @@ export class StorageAppliancesImpl implements StorageAppliances { */ private _listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -215,11 +216,11 @@ export class StorageAppliancesImpl implements StorageAppliances { get( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesGetOptionalParams + options?: StorageAppliancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, storageApplianceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -236,7 +237,7 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -245,21 +246,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -268,8 +268,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -277,8 +277,8 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -288,9 +288,9 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName, storageApplianceName, storageApplianceParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesCreateOrUpdateResponse, @@ -298,7 +298,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -317,13 +317,13 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, storageApplianceName, storageApplianceParameters, - options + options, ); return poller.pollUntilDone(); } @@ -339,25 +339,29 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDelete( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise, void>> { + options?: StorageAppliancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageAppliancesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -366,8 +370,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -375,20 +379,23 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + StorageAppliancesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -405,12 +412,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDeleteAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise { + options?: StorageAppliancesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -425,7 +432,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginUpdate( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -434,21 +441,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -457,8 +463,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -466,15 +472,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesUpdateResponse, @@ -482,7 +488,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -498,12 +504,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginUpdateAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -517,7 +523,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDisableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -526,21 +532,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -549,8 +554,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -558,15 +563,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: disableRemoteVendorManagementOperationSpec + spec: disableRemoteVendorManagementOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesDisableRemoteVendorManagementResponse, @@ -574,7 +579,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -589,12 +594,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDisableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise { const poller = await this.beginDisableRemoteVendorManagement( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -608,7 +613,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginEnableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -617,21 +622,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -640,8 +644,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -649,15 +653,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: enableRemoteVendorManagementOperationSpec + spec: enableRemoteVendorManagementOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesEnableRemoteVendorManagementResponse, @@ -665,7 +669,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -680,12 +684,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginEnableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise { const poller = await this.beginEnableRemoteVendorManagement( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -697,11 +701,11 @@ export class StorageAppliancesImpl implements StorageAppliances { */ private _listBySubscriptionNext( nextLink: string, - options?: StorageAppliancesListBySubscriptionNextOptionalParams + options?: StorageAppliancesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -714,11 +718,11 @@ export class StorageAppliancesImpl implements StorageAppliances { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: StorageAppliancesListByResourceGroupNextOptionalParams + options?: StorageAppliancesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -726,85 +730,81 @@ export class StorageAppliancesImpl implements StorageAppliances { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/storageAppliances", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/storageAppliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 201: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 202: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 204: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceParameters, queryParameters: [Parameters.apiVersion], @@ -812,55 +812,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 201: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 202: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 204: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -868,63 +874,61 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const disableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/disableRemoteVendorManagement", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/disableRemoteVendorManagement", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/enableRemoteVendorManagement", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/enableRemoteVendorManagement", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceEnableRemoteVendorManagementParameters, @@ -933,48 +937,48 @@ const enableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts index 9988469393bb..d81c65050407 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { TrunkedNetworksCreateOrUpdateOptionalParams, TrunkedNetworksCreateOrUpdateResponse, TrunkedNetworksDeleteOptionalParams, + TrunkedNetworksDeleteResponse, TrunkedNetworksUpdateOptionalParams, TrunkedNetworksUpdateResponse, TrunkedNetworksListBySubscriptionNextResponse, - TrunkedNetworksListByResourceGroupNextResponse + TrunkedNetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { * @param options The options parameters. */ public listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: TrunkedNetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrunkedNetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { } private async *listBySubscriptionPagingAll( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ public listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: TrunkedNetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrunkedNetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { * @param options The options parameters. */ private _listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ private _listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { get( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksGetOptionalParams + options?: TrunkedNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, trunkedNetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< TrunkedNetworksCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { async beginDelete( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise, void>> { + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TrunkedNetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, trunkedNetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + TrunkedNetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { async beginDeleteAndWait( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise { + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, trunkedNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -412,11 +419,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { update( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksUpdateOptionalParams + options?: TrunkedNetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, trunkedNetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -427,11 +434,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ private _listBySubscriptionNext( nextLink: string, - options?: TrunkedNetworksListBySubscriptionNextOptionalParams + options?: TrunkedNetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -444,11 +451,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: TrunkedNetworksListByResourceGroupNextOptionalParams + options?: TrunkedNetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -456,85 +463,81 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/trunkedNetworks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/trunkedNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 201: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 202: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 204: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.trunkedNetworkParameters, queryParameters: [Parameters.apiVersion], @@ -542,46 +545,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.trunkedNetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -589,48 +598,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts index d0b64ba0aa07..f61f651c90a7 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { VirtualMachinesCreateOrUpdateOptionalParams, VirtualMachinesCreateOrUpdateResponse, VirtualMachinesDeleteOptionalParams, + VirtualMachinesDeleteResponse, VirtualMachinesUpdateOptionalParams, VirtualMachinesUpdateResponse, VirtualMachinesPowerOffOptionalParams, @@ -43,7 +44,7 @@ import { VirtualMachinesStartOptionalParams, VirtualMachinesStartResponse, VirtualMachinesListBySubscriptionNextResponse, - VirtualMachinesListByResourceGroupNextResponse + VirtualMachinesListByResourceGroupNextResponse, } from "../models"; /// @@ -64,7 +65,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ public listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -79,13 +80,13 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: VirtualMachinesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +107,7 @@ export class VirtualMachinesImpl implements VirtualMachines { } private async *listBySubscriptionPagingAll( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -120,7 +121,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -137,16 +138,16 @@ export class VirtualMachinesImpl implements VirtualMachines { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: VirtualMachinesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -161,7 +162,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -172,11 +173,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -187,11 +188,11 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ private _listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -202,11 +203,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -219,11 +220,11 @@ export class VirtualMachinesImpl implements VirtualMachines { get( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +239,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -247,21 +248,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -270,8 +270,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -279,8 +279,8 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -290,9 +290,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, virtualMachineName, virtualMachineParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCreateOrUpdateResponse, @@ -300,7 +300,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -317,13 +317,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, virtualMachineName, virtualMachineParameters, - options + options, ); return poller.pollUntilDone(); } @@ -337,25 +337,29 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDelete( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>> { + options?: VirtualMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -364,8 +368,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -373,20 +377,23 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + VirtualMachinesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -401,12 +408,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeleteAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise { + options?: VirtualMachinesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -421,7 +428,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginUpdate( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -430,21 +437,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -453,8 +459,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -462,15 +468,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesUpdateResponse, @@ -478,7 +484,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -494,12 +500,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginUpdateAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -513,7 +519,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOff( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -522,21 +528,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -545,8 +550,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -554,15 +559,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesPowerOffResponse, @@ -570,7 +575,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -585,12 +590,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOffAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -604,7 +609,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimage( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -613,21 +618,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -636,8 +640,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -645,15 +649,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesReimageResponse, @@ -661,7 +665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -676,12 +680,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimageAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -695,7 +699,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -704,21 +708,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -727,8 +730,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -736,15 +739,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesRestartResponse, @@ -752,7 +755,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -767,12 +770,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -786,7 +789,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -795,21 +798,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -818,8 +820,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -827,15 +829,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesStartResponse, @@ -843,7 +845,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -858,12 +860,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -875,11 +877,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listBySubscriptionNext( nextLink: string, - options?: VirtualMachinesListBySubscriptionNextOptionalParams + options?: VirtualMachinesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -892,11 +894,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachinesListByResourceGroupNextOptionalParams + options?: VirtualMachinesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -904,85 +906,81 @@ export class VirtualMachinesImpl implements VirtualMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachineParameters, queryParameters: [Parameters.apiVersion], @@ -990,55 +988,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachineUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -1046,32 +1050,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachinePowerOffParameters, queryParameters: [Parameters.apiVersion], @@ -1079,141 +1082,138 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/reimage", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/restart", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/start", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts b/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts index 0e47ce7f7848..ef4be8ff4f0b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { VolumesCreateOrUpdateOptionalParams, VolumesCreateOrUpdateResponse, VolumesDeleteOptionalParams, + VolumesDeleteResponse, VolumesUpdateOptionalParams, VolumesUpdateResponse, VolumesListBySubscriptionNextResponse, - VolumesListByResourceGroupNextResponse + VolumesListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class VolumesImpl implements Volumes { * @param options The options parameters. */ public listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class VolumesImpl implements Volumes { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: VolumesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class VolumesImpl implements Volumes { } private async *listBySubscriptionPagingAll( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class VolumesImpl implements Volumes { */ public listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class VolumesImpl implements Volumes { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: VolumesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class VolumesImpl implements Volumes { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class VolumesImpl implements Volumes { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class VolumesImpl implements Volumes { * @param options The options parameters. */ private _listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class VolumesImpl implements Volumes { */ private _listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class VolumesImpl implements Volumes { get( resourceGroupName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, volumeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, volumeName, volumeParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VolumesCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, volumeName, volumeParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class VolumesImpl implements Volumes { async beginDelete( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise, void>> { + options?: VolumesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, volumeName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + VolumesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class VolumesImpl implements Volumes { async beginDeleteAndWait( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise { + options?: VolumesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class VolumesImpl implements Volumes { update( resourceGroupName: string, volumeName: string, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, volumeName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class VolumesImpl implements Volumes { */ private _listBySubscriptionNext( nextLink: string, - options?: VolumesListBySubscriptionNextOptionalParams + options?: VolumesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class VolumesImpl implements Volumes { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: VolumesListByResourceGroupNextOptionalParams + options?: VolumesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class VolumesImpl implements Volumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/volumes", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.volumeParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.volumeUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts index 469357bcffa9..8439577a83c6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts @@ -16,8 +16,9 @@ import { AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, + AgentPoolsDeleteResponse, AgentPoolsUpdateOptionalParams, - AgentPoolsUpdateResponse + AgentPoolsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface AgentPools { listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided Kubernetes cluster agent pool. @@ -45,7 +46,7 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise; /** * Create a new Kubernetes cluster agent pool or update the properties of the existing one. @@ -60,7 +61,7 @@ export interface AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided Kubernetes cluster agent pool. @@ -93,8 +94,13 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise, void>>; + options?: AgentPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AgentPoolsDeleteResponse + > + >; /** * Delete the provided Kubernetes cluster agent pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise; + options?: AgentPoolsDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts index 99003c5620b3..5e70543f4dc8 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts @@ -16,8 +16,9 @@ import { BareMetalMachineKeySetsCreateOrUpdateOptionalParams, BareMetalMachineKeySetsCreateOrUpdateResponse, BareMetalMachineKeySetsDeleteOptionalParams, + BareMetalMachineKeySetsDeleteResponse, BareMetalMachineKeySetsUpdateOptionalParams, - BareMetalMachineKeySetsUpdateResponse + BareMetalMachineKeySetsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface BareMetalMachineKeySets { listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get bare metal machine key set of the provided cluster. @@ -45,7 +46,7 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsGetOptionalParams + options?: BareMetalMachineKeySetsGetOptionalParams, ): Promise; /** * Create a new bare metal machine key set or update the existing one for the provided cluster. @@ -60,7 +61,7 @@ export interface BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the bare metal machine key set of the provided cluster. @@ -93,8 +94,13 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise, void>>; + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachineKeySetsDeleteResponse + > + >; /** * Delete the bare metal machine key set of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise; + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise; /** * Patch properties of bare metal machine key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts index 22e437e09efc..cda173fb6a56 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts @@ -17,6 +17,7 @@ import { BareMetalMachinesCreateOrUpdateOptionalParams, BareMetalMachinesCreateOrUpdateResponse, BareMetalMachinesDeleteOptionalParams, + BareMetalMachinesDeleteResponse, BareMetalMachinesUpdateOptionalParams, BareMetalMachinesUpdateResponse, BareMetalMachinesCordonOptionalParams, @@ -41,7 +42,7 @@ import { BareMetalMachinesStartOptionalParams, BareMetalMachinesStartResponse, BareMetalMachinesUncordonOptionalParams, - BareMetalMachinesUncordonResponse + BareMetalMachinesUncordonResponse, } from "../models"; /// @@ -52,7 +53,7 @@ export interface BareMetalMachines { * @param options The options parameters. */ listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of bare metal machines in the provided resource group. @@ -61,7 +62,7 @@ export interface BareMetalMachines { */ listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided bare metal machine. @@ -72,7 +73,7 @@ export interface BareMetalMachines { get( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesGetOptionalParams + options?: BareMetalMachinesGetOptionalParams, ): Promise; /** * Create a new bare metal machine or update the properties of the existing one. @@ -87,7 +88,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -107,7 +108,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided bare metal machine. @@ -120,8 +121,13 @@ export interface BareMetalMachines { beginDelete( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise, void>>; + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachinesDeleteResponse + > + >; /** * Delete the provided bare metal machine. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -133,8 +139,8 @@ export interface BareMetalMachines { beginDeleteAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise; + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided bare metal machine, or update tags associated with the bare metal * machine. Properties and tag updates can be done independently. @@ -145,7 +151,7 @@ export interface BareMetalMachines { beginUpdate( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +168,7 @@ export interface BareMetalMachines { beginUpdateAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise; /** * Cordon the provided bare metal machine's Kubernetes node. @@ -173,7 +179,7 @@ export interface BareMetalMachines { beginCordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,7 +195,7 @@ export interface BareMetalMachines { beginCordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise; /** * Power off the provided bare metal machine. @@ -200,7 +206,7 @@ export interface BareMetalMachines { beginPowerOff( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,7 +222,7 @@ export interface BareMetalMachines { beginPowerOffAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise; /** * Reimage the provided bare metal machine. @@ -227,7 +233,7 @@ export interface BareMetalMachines { beginReimage( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -243,7 +249,7 @@ export interface BareMetalMachines { beginReimageAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise; /** * Replace the provided bare metal machine. @@ -254,7 +260,7 @@ export interface BareMetalMachines { beginReplace( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,7 +276,7 @@ export interface BareMetalMachines { beginReplaceAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise; /** * Restart the provided bare metal machine. @@ -281,7 +287,7 @@ export interface BareMetalMachines { beginRestart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -297,7 +303,7 @@ export interface BareMetalMachines { beginRestartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise; /** * Run the command or the script on the provided bare metal machine. The URL to storage account with @@ -312,7 +318,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -332,7 +338,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise; /** * Run one or more data extractions on the provided bare metal machine. The URL to storage account with @@ -347,7 +353,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -367,7 +373,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise; /** * Run one or more read-only commands on the provided bare metal machine. The URL to storage account @@ -382,7 +388,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -402,7 +408,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise; /** * Start the provided bare metal machine. @@ -413,7 +419,7 @@ export interface BareMetalMachines { beginStart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -429,7 +435,7 @@ export interface BareMetalMachines { beginStartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise; /** * Uncordon the provided bare metal machine's Kubernetes node. @@ -440,7 +446,7 @@ export interface BareMetalMachines { beginUncordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -456,6 +462,6 @@ export interface BareMetalMachines { beginUncordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts index 24efd9347d29..612ebe2d3742 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts @@ -16,8 +16,9 @@ import { BmcKeySetsCreateOrUpdateOptionalParams, BmcKeySetsCreateOrUpdateResponse, BmcKeySetsDeleteOptionalParams, + BmcKeySetsDeleteResponse, BmcKeySetsUpdateOptionalParams, - BmcKeySetsUpdateResponse + BmcKeySetsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface BmcKeySets { listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get baseboard management controller key set of the provided cluster. @@ -45,7 +46,7 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsGetOptionalParams + options?: BmcKeySetsGetOptionalParams, ): Promise; /** * Create a new baseboard management controller key set or update the existing one for the provided @@ -61,7 +62,7 @@ export interface BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +83,7 @@ export interface BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the baseboard management controller key set of the provided cluster. @@ -95,8 +96,13 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise, void>>; + options?: BmcKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BmcKeySetsDeleteResponse + > + >; /** * Delete the baseboard management controller key set of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -108,8 +114,8 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise; + options?: BmcKeySetsDeleteOptionalParams, + ): Promise; /** * Patch properties of baseboard management controller key set for the provided cluster, or update the * tags associated with it. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,6 +147,6 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts index 1a0d1367c252..bf6313765956 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts @@ -17,8 +17,9 @@ import { CloudServicesNetworksCreateOrUpdateOptionalParams, CloudServicesNetworksCreateOrUpdateResponse, CloudServicesNetworksDeleteOptionalParams, + CloudServicesNetworksDeleteResponse, CloudServicesNetworksUpdateOptionalParams, - CloudServicesNetworksUpdateResponse + CloudServicesNetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface CloudServicesNetworks { * @param options The options parameters. */ listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of cloud services networks in the provided resource group. @@ -38,7 +39,7 @@ export interface CloudServicesNetworks { */ listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided cloud services network. @@ -49,7 +50,7 @@ export interface CloudServicesNetworks { get( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksGetOptionalParams + options?: CloudServicesNetworksGetOptionalParams, ): Promise; /** * Create a new cloud services network or update the properties of the existing cloud services network. @@ -62,7 +63,7 @@ export interface CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cloud services network. @@ -91,8 +92,13 @@ export interface CloudServicesNetworks { beginDelete( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise, void>>; + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudServicesNetworksDeleteResponse + > + >; /** * Delete the provided cloud services network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface CloudServicesNetworks { beginDeleteAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise; + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise; /** * Update properties of the provided cloud services network, or update the tags associated with it. * Properties and tag updates can be done independently. @@ -114,7 +120,7 @@ export interface CloudServicesNetworks { beginUpdate( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,6 +137,6 @@ export interface CloudServicesNetworks { beginUpdateAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts index 2f28cd2b5848..4ad05e825003 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts @@ -17,8 +17,9 @@ import { ClusterManagersCreateOrUpdateOptionalParams, ClusterManagersCreateOrUpdateResponse, ClusterManagersDeleteOptionalParams, + ClusterManagersDeleteResponse, ClusterManagersUpdateOptionalParams, - ClusterManagersUpdateResponse + ClusterManagersUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface ClusterManagers { * @param options The options parameters. */ listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of cluster managers in the provided resource group. @@ -38,7 +39,7 @@ export interface ClusterManagers { */ listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get the properties of the provided cluster manager. @@ -49,7 +50,7 @@ export interface ClusterManagers { get( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersGetOptionalParams + options?: ClusterManagersGetOptionalParams, ): Promise; /** * Create a new cluster manager or update properties of the cluster manager if it exists. @@ -62,7 +63,7 @@ export interface ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cluster manager. @@ -91,8 +92,13 @@ export interface ClusterManagers { beginDelete( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise, void>>; + options?: ClusterManagersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClusterManagersDeleteResponse + > + >; /** * Delete the provided cluster manager. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface ClusterManagers { beginDeleteAndWait( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise; + options?: ClusterManagersDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided cluster manager, or update the tags assigned to the cluster * manager. Properties and tag updates can be done independently. @@ -114,6 +120,6 @@ export interface ClusterManagers { update( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersUpdateOptionalParams + options?: ClusterManagersUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts index 40222010c20d..26257e5406ef 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts @@ -17,13 +17,19 @@ import { ClustersCreateOrUpdateOptionalParams, ClustersCreateOrUpdateResponse, ClustersDeleteOptionalParams, + ClustersDeleteResponse, ClustersUpdateOptionalParams, ClustersUpdateResponse, + ClusterContinueUpdateVersionParameters, + ClustersContinueUpdateVersionOptionalParams, + ClustersContinueUpdateVersionResponse, ClustersDeployOptionalParams, ClustersDeployResponse, + ClustersScanRuntimeOptionalParams, + ClustersScanRuntimeResponse, ClusterUpdateVersionParameters, ClustersUpdateVersionOptionalParams, - ClustersUpdateVersionResponse + ClustersUpdateVersionResponse, } from "../models"; /// @@ -34,7 +40,7 @@ export interface Clusters { * @param options The options parameters. */ listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of clusters in the provided resource group. @@ -43,7 +49,7 @@ export interface Clusters { */ listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided cluster. @@ -54,7 +60,7 @@ export interface Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise; /** * Create a new cluster or update the properties of the cluster if it exists. @@ -67,7 +73,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -85,7 +91,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cluster. @@ -96,8 +102,13 @@ export interface Clusters { beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise, void>>; + options?: ClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersDeleteResponse + > + >; /** * Delete the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -107,8 +118,8 @@ export interface Clusters { beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise; + options?: ClustersDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided cluster, or update the tags associated with the cluster. * Properties and tag updates can be done independently. @@ -119,7 +130,7 @@ export interface Clusters { beginUpdate( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -136,10 +147,43 @@ export interface Clusters { beginUpdateAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise; /** - * Deploy the cluster to the provided rack. + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + beginContinueUpdateVersion( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersContinueUpdateVersionResponse + > + >; + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + beginContinueUpdateVersionAndWait( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise; + /** + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -147,7 +191,7 @@ export interface Clusters { beginDeploy( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -155,7 +199,7 @@ export interface Clusters { > >; /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -163,8 +207,37 @@ export interface Clusters { beginDeployAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise; + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + beginScanRuntime( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersScanRuntimeResponse + > + >; + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + beginScanRuntimeAndWait( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise; /** * Update the version of the provided cluster to one of the available supported versions. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,7 +249,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -194,6 +267,6 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts index f61c81b9feaf..83083e8a895f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts @@ -16,8 +16,9 @@ import { ConsolesCreateOrUpdateOptionalParams, ConsolesCreateOrUpdateResponse, ConsolesDeleteOptionalParams, + ConsolesDeleteResponse, ConsolesUpdateOptionalParams, - ConsolesUpdateResponse + ConsolesUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface Consoles { listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided virtual machine console. @@ -45,7 +46,7 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesGetOptionalParams + options?: ConsolesGetOptionalParams, ): Promise; /** * Create a new virtual machine console or update the properties of the existing virtual machine @@ -61,7 +62,7 @@ export interface Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +83,7 @@ export interface Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided virtual machine console. @@ -95,8 +96,13 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise, void>>; + options?: ConsolesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ConsolesDeleteResponse + > + >; /** * Delete the provided virtual machine console. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -108,8 +114,8 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise; + options?: ConsolesDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided virtual machine console, or update the tags associated with the * virtual machine console. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,6 +147,6 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts index 1f2559ff80a7..6b259f0f5d4d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts @@ -24,4 +24,5 @@ export * from "./bareMetalMachineKeySets"; export * from "./bmcKeySets"; export * from "./metricsConfigurations"; export * from "./agentPools"; +export * from "./kubernetesClusterFeatures"; export * from "./consoles"; diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts new file mode 100644 index 000000000000..51fe50610b02 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + KubernetesClusterFeature, + KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + KubernetesClusterFeaturesGetOptionalParams, + KubernetesClusterFeaturesGetResponse, + KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + KubernetesClusterFeaturesCreateOrUpdateResponse, + KubernetesClusterFeaturesDeleteOptionalParams, + KubernetesClusterFeaturesDeleteResponse, + KubernetesClusterFeaturesUpdateOptionalParams, + KubernetesClusterFeaturesUpdateResponse, +} from "../models"; + +/// +/** Interface representing a KubernetesClusterFeatures. */ +export interface KubernetesClusterFeatures { + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get properties of the provided the Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesGetOptionalParams, + ): Promise; + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesCreateOrUpdateResponse + > + >; + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesDeleteResponse + > + >; + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise; + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesUpdateResponse + > + >; + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts index d83790759d9a..e5d96a1c2c31 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts @@ -17,11 +17,12 @@ import { KubernetesClustersCreateOrUpdateOptionalParams, KubernetesClustersCreateOrUpdateResponse, KubernetesClustersDeleteOptionalParams, + KubernetesClustersDeleteResponse, KubernetesClustersUpdateOptionalParams, KubernetesClustersUpdateResponse, KubernetesClusterRestartNodeParameters, KubernetesClustersRestartNodeOptionalParams, - KubernetesClustersRestartNodeResponse + KubernetesClustersRestartNodeResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface KubernetesClusters { * @param options The options parameters. */ listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of Kubernetes clusters in the provided resource group. @@ -41,7 +42,7 @@ export interface KubernetesClusters { */ listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided the Kubernetes cluster. @@ -52,7 +53,7 @@ export interface KubernetesClusters { get( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersGetOptionalParams + options?: KubernetesClustersGetOptionalParams, ): Promise; /** * Create a new Kubernetes cluster or update the properties of the existing one. @@ -65,7 +66,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +84,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided Kubernetes cluster. @@ -94,8 +95,13 @@ export interface KubernetesClusters { beginDelete( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise, void>>; + options?: KubernetesClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClustersDeleteResponse + > + >; /** * Delete the provided Kubernetes cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -105,8 +111,8 @@ export interface KubernetesClusters { beginDeleteAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise; + options?: KubernetesClustersDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the * Kubernetes cluster. Properties and tag updates can be done independently. @@ -117,7 +123,7 @@ export interface KubernetesClusters { beginUpdate( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -134,7 +140,7 @@ export interface KubernetesClusters { beginUpdateAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise; /** * Restart a targeted node of a Kubernetes cluster. @@ -147,7 +153,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,6 +171,6 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts index 8ee0bd6ab229..dd52a7563c8f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts @@ -17,8 +17,9 @@ import { L2NetworksCreateOrUpdateOptionalParams, L2NetworksCreateOrUpdateResponse, L2NetworksDeleteOptionalParams, + L2NetworksDeleteResponse, L2NetworksUpdateOptionalParams, - L2NetworksUpdateResponse + L2NetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface L2Networks { * @param options The options parameters. */ listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of layer 2 (L2) networks in the provided resource group. @@ -38,7 +39,7 @@ export interface L2Networks { */ listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided layer 2 (L2) network. @@ -49,7 +50,7 @@ export interface L2Networks { get( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksGetOptionalParams + options?: L2NetworksGetOptionalParams, ): Promise; /** * Create a new layer 2 (L2) network or update the properties of the existing network. @@ -62,7 +63,7 @@ export interface L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided layer 2 (L2) network. @@ -91,8 +92,13 @@ export interface L2Networks { beginDelete( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise, void>>; + options?: L2NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L2NetworksDeleteResponse + > + >; /** * Delete the provided layer 2 (L2) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface L2Networks { beginDeleteAndWait( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise; + options?: L2NetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided layer 2 (L2) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface L2Networks { update( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksUpdateOptionalParams + options?: L2NetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts index 31b29a0508f3..ead4aa4792d6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts @@ -17,8 +17,9 @@ import { L3NetworksCreateOrUpdateOptionalParams, L3NetworksCreateOrUpdateResponse, L3NetworksDeleteOptionalParams, + L3NetworksDeleteResponse, L3NetworksUpdateOptionalParams, - L3NetworksUpdateResponse + L3NetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface L3Networks { * @param options The options parameters. */ listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of layer 3 (L3) networks in the provided resource group. @@ -38,7 +39,7 @@ export interface L3Networks { */ listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided layer 3 (L3) network. @@ -49,7 +50,7 @@ export interface L3Networks { get( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksGetOptionalParams + options?: L3NetworksGetOptionalParams, ): Promise; /** * Create a new layer 3 (L3) network or update the properties of the existing network. @@ -62,7 +63,7 @@ export interface L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided layer 3 (L3) network. @@ -91,8 +92,13 @@ export interface L3Networks { beginDelete( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise, void>>; + options?: L3NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L3NetworksDeleteResponse + > + >; /** * Delete the provided layer 3 (L3) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface L3Networks { beginDeleteAndWait( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise; + options?: L3NetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided layer 3 (L3) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface L3Networks { update( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksUpdateOptionalParams + options?: L3NetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts index 06778b614bc5..f33e14ca520a 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts @@ -16,8 +16,9 @@ import { MetricsConfigurationsCreateOrUpdateOptionalParams, MetricsConfigurationsCreateOrUpdateResponse, MetricsConfigurationsDeleteOptionalParams, + MetricsConfigurationsDeleteResponse, MetricsConfigurationsUpdateOptionalParams, - MetricsConfigurationsUpdateResponse + MetricsConfigurationsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface MetricsConfigurations { listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get metrics configuration of the provided cluster. @@ -45,7 +46,7 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsGetOptionalParams + options?: MetricsConfigurationsGetOptionalParams, ): Promise; /** * Create new or update the existing metrics configuration of the provided cluster. @@ -60,7 +61,7 @@ export interface MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the metrics configuration of the provided cluster. @@ -93,8 +94,13 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise, void>>; + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MetricsConfigurationsDeleteResponse + > + >; /** * Delete the metrics configuration of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise; + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise; /** * Patch properties of metrics configuration for the provided cluster, or update the tags associated * with it. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts index 6ed0b0f5f5d0..9cfa7655f055 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts @@ -18,6 +18,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts index 2db34945ea54..0f4f88efc584 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts @@ -11,7 +11,7 @@ import { RackSku, RackSkusListBySubscriptionOptionalParams, RackSkusGetOptionalParams, - RackSkusGetResponse + RackSkusGetResponse, } from "../models"; /// @@ -22,7 +22,7 @@ export interface RackSkus { * @param options The options parameters. */ listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get the properties of the provided rack SKU. @@ -31,6 +31,6 @@ export interface RackSkus { */ get( rackSkuName: string, - options?: RackSkusGetOptionalParams + options?: RackSkusGetOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts index a6fae86014e0..4f81531cb990 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts @@ -17,8 +17,9 @@ import { RacksCreateOrUpdateOptionalParams, RacksCreateOrUpdateResponse, RacksDeleteOptionalParams, + RacksDeleteResponse, RacksUpdateOptionalParams, - RacksUpdateResponse + RacksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface Racks { * @param options The options parameters. */ listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of racks in the provided resource group. @@ -38,7 +39,7 @@ export interface Racks { */ listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided rack. @@ -49,7 +50,7 @@ export interface Racks { get( resourceGroupName: string, rackName: string, - options?: RacksGetOptionalParams + options?: RacksGetOptionalParams, ): Promise; /** * Create a new rack or update properties of the existing one. @@ -64,7 +65,7 @@ export interface Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +85,7 @@ export interface Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided rack. @@ -97,8 +98,10 @@ export interface Racks { beginDelete( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise, void>>; + options?: RacksDeleteOptionalParams, + ): Promise< + SimplePollerLike, RacksDeleteResponse> + >; /** * Delete the provided rack. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -110,8 +113,8 @@ export interface Racks { beginDeleteAndWait( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise; + options?: RacksDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided rack, or update the tags associated with the rack. Properties and * tag updates can be done independently. @@ -122,7 +125,7 @@ export interface Racks { beginUpdate( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise< SimplePollerLike, RacksUpdateResponse> >; @@ -136,6 +139,6 @@ export interface Racks { beginUpdateAndWait( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts index 4d6c5e15810b..67b6da423632 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts @@ -17,12 +17,13 @@ import { StorageAppliancesCreateOrUpdateOptionalParams, StorageAppliancesCreateOrUpdateResponse, StorageAppliancesDeleteOptionalParams, + StorageAppliancesDeleteResponse, StorageAppliancesUpdateOptionalParams, StorageAppliancesUpdateResponse, StorageAppliancesDisableRemoteVendorManagementOptionalParams, StorageAppliancesDisableRemoteVendorManagementResponse, StorageAppliancesEnableRemoteVendorManagementOptionalParams, - StorageAppliancesEnableRemoteVendorManagementResponse + StorageAppliancesEnableRemoteVendorManagementResponse, } from "../models"; /// @@ -33,7 +34,7 @@ export interface StorageAppliances { * @param options The options parameters. */ listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of storage appliances in the provided resource group. @@ -42,7 +43,7 @@ export interface StorageAppliances { */ listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided storage appliance. @@ -53,7 +54,7 @@ export interface StorageAppliances { get( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesGetOptionalParams + options?: StorageAppliancesGetOptionalParams, ): Promise; /** * Create a new storage appliance or update the properties of the existing one. @@ -68,7 +69,7 @@ export interface StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -88,7 +89,7 @@ export interface StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided storage appliance. @@ -101,8 +102,13 @@ export interface StorageAppliances { beginDelete( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise, void>>; + options?: StorageAppliancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageAppliancesDeleteResponse + > + >; /** * Delete the provided storage appliance. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -114,8 +120,8 @@ export interface StorageAppliances { beginDeleteAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise; + options?: StorageAppliancesDeleteOptionalParams, + ): Promise; /** * Update properties of the provided storage appliance, or update tags associated with the storage * appliance Properties and tag updates can be done independently. @@ -126,7 +132,7 @@ export interface StorageAppliances { beginUpdate( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -143,7 +149,7 @@ export interface StorageAppliances { beginUpdateAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise; /** * Disable remote vendor management of the provided storage appliance. @@ -154,7 +160,7 @@ export interface StorageAppliances { beginDisableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -170,7 +176,7 @@ export interface StorageAppliances { beginDisableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise; /** * Enable remote vendor management of the provided storage appliance. @@ -181,7 +187,7 @@ export interface StorageAppliances { beginEnableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,6 +203,6 @@ export interface StorageAppliances { beginEnableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts index 9c1e1567eaba..68ae98c39a04 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts @@ -17,8 +17,9 @@ import { TrunkedNetworksCreateOrUpdateOptionalParams, TrunkedNetworksCreateOrUpdateResponse, TrunkedNetworksDeleteOptionalParams, + TrunkedNetworksDeleteResponse, TrunkedNetworksUpdateOptionalParams, - TrunkedNetworksUpdateResponse + TrunkedNetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface TrunkedNetworks { * @param options The options parameters. */ listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of trunked networks in the provided resource group. @@ -38,7 +39,7 @@ export interface TrunkedNetworks { */ listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided trunked network. @@ -49,7 +50,7 @@ export interface TrunkedNetworks { get( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksGetOptionalParams + options?: TrunkedNetworksGetOptionalParams, ): Promise; /** * Create a new trunked network or update the properties of the existing trunked network. @@ -62,7 +63,7 @@ export interface TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided trunked network. @@ -91,8 +92,13 @@ export interface TrunkedNetworks { beginDelete( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise, void>>; + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TrunkedNetworksDeleteResponse + > + >; /** * Delete the provided trunked network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface TrunkedNetworks { beginDeleteAndWait( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise; + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided trunked network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface TrunkedNetworks { update( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksUpdateOptionalParams + options?: TrunkedNetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts index 345ff25a5869..e94182644a78 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts @@ -17,6 +17,7 @@ import { VirtualMachinesCreateOrUpdateOptionalParams, VirtualMachinesCreateOrUpdateResponse, VirtualMachinesDeleteOptionalParams, + VirtualMachinesDeleteResponse, VirtualMachinesUpdateOptionalParams, VirtualMachinesUpdateResponse, VirtualMachinesPowerOffOptionalParams, @@ -26,7 +27,7 @@ import { VirtualMachinesRestartOptionalParams, VirtualMachinesRestartResponse, VirtualMachinesStartOptionalParams, - VirtualMachinesStartResponse + VirtualMachinesStartResponse, } from "../models"; /// @@ -37,7 +38,7 @@ export interface VirtualMachines { * @param options The options parameters. */ listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of virtual machines in the provided resource group. @@ -46,7 +47,7 @@ export interface VirtualMachines { */ listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided virtual machine. @@ -57,7 +58,7 @@ export interface VirtualMachines { get( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise; /** * Create a new virtual machine or update the properties of the existing virtual machine. @@ -70,7 +71,7 @@ export interface VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -88,7 +89,7 @@ export interface VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided virtual machine. @@ -99,8 +100,13 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>>; + options?: VirtualMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesDeleteResponse + > + >; /** * Delete the provided virtual machine. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -110,8 +116,8 @@ export interface VirtualMachines { beginDeleteAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise; + options?: VirtualMachinesDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided virtual machine, or update the tags associated with the virtual * machine. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface VirtualMachines { beginUpdate( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,7 +145,7 @@ export interface VirtualMachines { beginUpdateAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * Power off the provided virtual machine. @@ -150,7 +156,7 @@ export interface VirtualMachines { beginPowerOff( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -166,7 +172,7 @@ export interface VirtualMachines { beginPowerOffAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise; /** * Reimage the provided virtual machine. @@ -177,7 +183,7 @@ export interface VirtualMachines { beginReimage( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -193,7 +199,7 @@ export interface VirtualMachines { beginReimageAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise; /** * Restart the provided virtual machine. @@ -204,7 +210,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -220,7 +226,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * Start the provided virtual machine. @@ -231,7 +237,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -247,6 +253,6 @@ export interface VirtualMachines { beginStartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts index bd1bb999d76d..272c41c75933 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts @@ -17,8 +17,9 @@ import { VolumesCreateOrUpdateOptionalParams, VolumesCreateOrUpdateResponse, VolumesDeleteOptionalParams, + VolumesDeleteResponse, VolumesUpdateOptionalParams, - VolumesUpdateResponse + VolumesUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface Volumes { * @param options The options parameters. */ listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of volumes in the provided resource group. @@ -38,7 +39,7 @@ export interface Volumes { */ listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided volume. @@ -49,7 +50,7 @@ export interface Volumes { get( resourceGroupName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise; /** * Create a new volume or update the properties of the existing one. @@ -62,7 +63,7 @@ export interface Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided volume. @@ -91,8 +92,13 @@ export interface Volumes { beginDelete( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise, void>>; + options?: VolumesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesDeleteResponse + > + >; /** * Delete the provided volume. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface Volumes { beginDeleteAndWait( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise; + options?: VolumesDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided volume. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface Volumes { update( resourceGroupName: string, volumeName: string, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts b/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts +++ b/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/networkcloud/arm-networkcloud/test/networkcloud_operations_test.spec.ts b/sdk/networkcloud/arm-networkcloud/test/networkcloud_operations_test.spec.ts deleted file mode 100644 index 9cddefbdd5d9..000000000000 --- a/sdk/networkcloud/arm-networkcloud/test/networkcloud_operations_test.spec.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { NetworkCloud } from "../src/networkCloud"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("NetworkCloud test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: NetworkCloud; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new NetworkCloud(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/networkcloud/arm-networkcloud/test/sampleTest.ts b/sdk/networkcloud/arm-networkcloud/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/networkcloud/arm-networkcloud/tsconfig.json b/sdk/networkcloud/arm-networkcloud/tsconfig.json index a7e7562065d5..3e6ae96443f3 100644 --- a/sdk/networkcloud/arm-networkcloud/tsconfig.json +++ b/sdk/networkcloud/arm-networkcloud/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-networkcloud": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"