From 94d2be0c9570becbb2e274bc80c59eef02e217e7 Mon Sep 17 00:00:00 2001 From: Ana Arias Rosales <147624519+anaarias-msft@users.noreply.github.com> Date: Thu, 24 Oct 2024 04:31:09 -0400 Subject: [PATCH] AVS 2023-09-01 SDK generation (#46324) --- .vscode/cspell.json | 3 +- .../Azure.ResourceManager.Avs/CHANGELOG.md | 10 +- ...zure.ResourceManager.Avs.netstandard2.0.cs | 366 ++- .../Samples/Sample_AvsCloudLinkCollection.cs | 10 +- .../Samples/Sample_AvsCloudLinkResource.cs | 6 +- .../Sample_AvsPrivateCloudAddonCollection.cs | 38 +- .../Sample_AvsPrivateCloudAddonResource.cs | 22 +- ...Sample_AvsPrivateCloudClusterCollection.cs | 10 +- .../Sample_AvsPrivateCloudClusterResource.cs | 18 +- ...ateCloudClusterVirtualMachineCollection.cs | 24 +- ...ivateCloudClusterVirtualMachineResource.cs | 12 +- .../Sample_AvsPrivateCloudCollection.cs | 20 +- ...mple_AvsPrivateCloudDatastoreCollection.cs | 10 +- ...Sample_AvsPrivateCloudDatastoreResource.cs | 6 +- .../Samples/Sample_AvsPrivateCloudResource.cs | 40 +- ...ple_ExpressRouteAuthorizationCollection.cs | 10 +- ...ample_ExpressRouteAuthorizationResource.cs | 6 +- .../Sample_GlobalReachConnectionCollection.cs | 10 +- .../Sample_GlobalReachConnectionResource.cs | 6 +- .../Sample_HcxEnterpriseSiteCollection.cs | 10 +- .../Sample_HcxEnterpriseSiteResource.cs | 6 +- .../Samples/Sample_IscsiPathResource.cs | 111 + .../Sample_PlacementPolicyCollection.cs | 10 +- .../Samples/Sample_PlacementPolicyResource.cs | 6 +- .../Samples/Sample_ScriptCmdletCollection.cs | 8 +- .../Samples/Sample_ScriptCmdletResource.cs | 2 +- .../Sample_ScriptExecutionCollection.cs | 10 +- .../Samples/Sample_ScriptExecutionResource.cs | 8 +- .../Samples/Sample_ScriptPackageCollection.cs | 8 +- .../Samples/Sample_ScriptPackageResource.cs | 2 +- .../Sample_SubscriptionResourceExtensions.cs | 30 +- .../Sample_WorkloadNetworkCollection.cs | 164 -- .../Sample_WorkloadNetworkDhcpCollection.cs | 60 +- .../Sample_WorkloadNetworkDhcpResource.cs | 6 +- ...ple_WorkloadNetworkDnsServiceCollection.cs | 60 +- ...ample_WorkloadNetworkDnsServiceResource.cs | 6 +- ...Sample_WorkloadNetworkDnsZoneCollection.cs | 60 +- .../Sample_WorkloadNetworkDnsZoneResource.cs | 6 +- ...Sample_WorkloadNetworkGatewayCollection.cs | 48 +- .../Sample_WorkloadNetworkGatewayResource.cs | 2 +- ...adNetworkPortMirroringProfileCollection.cs | 60 +- ...loadNetworkPortMirroringProfileResource.cs | 6 +- ...ample_WorkloadNetworkPublicIPCollection.cs | 60 +- .../Sample_WorkloadNetworkPublicIPResource.cs | 6 +- .../Samples/Sample_WorkloadNetworkResource.cs | 6 +- ...Sample_WorkloadNetworkSegmentCollection.cs | 60 +- .../Sample_WorkloadNetworkSegmentResource.cs | 6 +- ...WorkloadNetworkVirtualMachineCollection.cs | 48 +- ...e_WorkloadNetworkVirtualMachineResource.cs | 2 +- ...Sample_WorkloadNetworkVmGroupCollection.cs | 60 +- .../Sample_WorkloadNetworkVmGroupResource.cs | 6 +- .../src/Azure.ResourceManager.Avs.csproj | 2 +- .../src/Customized/ArmAvsModelFactory.cs | 232 +- .../Customized/AvsPrivateCloudClusterData.cs | 29 + .../src/Customized/AvsPrivateCloudData.cs | 29 + .../src/Customized/AvsPrivateCloudResource.cs | 746 +++++ .../Customized/Models/AvsManagementCluster.cs | 30 + .../CommonClusterProperties.Serialization.cs | 4 +- .../Models/CommonClusterProperties.cs | 13 +- .../Models/WorkloadNetworkName.cs | 4 +- .../WorkloadNetworksRestOperations.cs | 123 + .../WorkloadNetworkCollection.cs | 21 +- .../src/Customized/WorkloadNetworkResource.cs | 30 + .../src/Generated/ArmAvsModelFactory.cs | 1135 +++++--- .../src/Generated/AvsCloudLinkCollection.cs | 56 +- .../AvsCloudLinkData.Serialization.cs | 16 + .../src/Generated/AvsCloudLinkData.cs | 6 +- .../src/Generated/AvsCloudLinkResource.cs | 32 +- .../AvsPrivateCloudAddonCollection.cs | 56 +- .../src/Generated/AvsPrivateCloudAddonData.cs | 4 +- .../Generated/AvsPrivateCloudAddonResource.cs | 32 +- .../AvsPrivateCloudClusterCollection.cs | 56 +- ...vsPrivateCloudClusterData.Serialization.cs | 12 + .../Generated/AvsPrivateCloudClusterData.cs | 21 +- .../AvsPrivateCloudClusterResource.cs | 136 +- ...ateCloudClusterVirtualMachineCollection.cs | 36 +- ...ClusterVirtualMachineData.Serialization.cs | 16 + ...vsPrivateCloudClusterVirtualMachineData.cs | 6 +- ...ivateCloudClusterVirtualMachineResource.cs | 16 +- .../Generated/AvsPrivateCloudCollection.cs | 40 +- .../AvsPrivateCloudData.Serialization.cs | 32 + .../src/Generated/AvsPrivateCloudData.cs | 75 +- .../AvsPrivateCloudDatastoreCollection.cs | 56 +- ...PrivateCloudDatastoreData.Serialization.cs | 16 + .../Generated/AvsPrivateCloudDatastoreData.cs | 13 +- .../AvsPrivateCloudDatastoreResource.cs | 32 +- .../src/Generated/AvsPrivateCloudResource.cs | 1126 ++------ .../ExpressRouteAuthorizationCollection.cs | 56 +- .../ExpressRouteAuthorizationData.cs | 4 +- .../ExpressRouteAuthorizationResource.cs | 32 +- .../src/Generated/Extensions/AvsExtensions.cs | 359 +-- .../Extensions/MockableAvsArmClient.cs | 240 +- .../MockableAvsResourceGroupResource.cs | 8 +- .../MockableAvsSubscriptionResource.cs | 76 +- .../GlobalReachConnectionCollection.cs | 56 +- .../Generated/GlobalReachConnectionData.cs | 40 +- .../GlobalReachConnectionResource.cs | 32 +- .../Generated/HcxEnterpriseSiteCollection.cs | 52 +- .../HcxEnterpriseSiteData.Serialization.cs | 16 + .../src/Generated/HcxEnterpriseSiteData.cs | 6 +- .../Generated/HcxEnterpriseSiteResource.cs | 28 +- .../Generated/IscsiPathData.Serialization.cs | 182 ++ .../src/Generated/IscsiPathData.cs | 79 + .../IscsiPathResource.Serialization.cs | 26 + .../src/Generated/IscsiPathResource.cs | 346 +++ .../IscsiPathOperationSource.cs | 38 + .../Generated/Models/AddonArcProperties.cs | 2 +- .../Generated/Models/AddonHcxProperties.cs | 2 +- .../Models/AddonList.Serialization.cs | 31 +- .../src/Generated/Models/AddonList.cs | 28 +- .../Models/AddonProvisioningState.cs | 20 +- .../Generated/Models/AddonSrmProperties.cs | 2 +- .../src/Generated/Models/AddonType.cs | 2 +- .../src/Generated/Models/AddonVrProperties.cs | 2 +- .../Generated/Models/AvailabilityStrategy.cs | 6 +- .../Models/AvsCloudLinkProvisioningState.cs | 54 + .../Generated/Models/AvsCloudLinkStatus.cs | 12 +- .../src/Generated/Models/AvsDnsZoneType.cs | 51 + .../Models/AvsEncryptionKeyStatus.cs | 6 +- .../Generated/Models/AvsEncryptionState.cs | 6 +- .../Models/AvsEncryptionVersionType.cs | 6 +- .../AvsManagementCluster.Serialization.cs | 27 +- .../Generated/Models/AvsManagementCluster.cs | 14 +- .../Models/AvsPlacementPolicyAffinityType.cs | 6 +- .../Models/AvsPrivateCloudAddonProperties.cs | 4 +- ...sPrivateCloudClusterPatch.Serialization.cs | 17 +- .../Models/AvsPrivateCloudClusterPatch.cs | 6 +- ...AvsPrivateCloudClusterProvisioningState.cs | 18 +- ...sPrivateCloudDatastoreProvisioningState.cs | 22 +- .../AvsPrivateCloudEndpoints.Serialization.cs | 42 +- .../Models/AvsPrivateCloudEndpoints.cs | 26 +- .../AvsPrivateCloudPatch.Serialization.cs | 32 + .../Generated/Models/AvsPrivateCloudPatch.cs | 28 +- .../AvsPrivateCloudProvisioningState.cs | 22 +- .../Generated/Models/AvsSku.Serialization.cs | 60 +- .../src/Generated/Models/AvsSku.cs | 24 +- .../Models/AvsSkuTier.Serialization.cs | 32 + .../src/Generated/Models/AvsSkuTier.cs | 22 + .../Models/AvsSubscriptionQuotaEnabled.cs | 6 +- .../Models/AvsSubscriptionTrialStatus.cs | 8 +- .../AvsVirtualMachineProvisioningState.cs | 54 + .../Models/AzureHybridBenefitType.cs | 6 +- .../Models/CloudLinkList.Serialization.cs | 31 +- .../src/Generated/Models/CloudLinkList.cs | 28 +- .../Models/ClusterList.Serialization.cs | 31 +- .../src/Generated/Models/ClusterList.cs | 28 +- .../Models/DatastoreList.Serialization.cs | 31 +- .../src/Generated/Models/DatastoreList.cs | 28 +- .../src/Generated/Models/DatastoreStatus.cs | 16 +- .../src/Generated/Models/DiskPoolVolume.cs | 10 +- .../Generated/Models/DnsServiceLogLevel.cs | 12 +- .../src/Generated/Models/DnsServiceStatus.cs | 6 +- .../Models/ElasticSanVolume.Serialization.cs | 126 + .../src/Generated/Models/ElasticSanVolume.cs | 76 + ...essRouteAuthorizationList.Serialization.cs | 31 +- .../Models/ExpressRouteAuthorizationList.cs | 28 +- ...ressRouteAuthorizationProvisioningState.cs | 14 +- ...GlobalReachConnectionList.Serialization.cs | 31 +- .../Models/GlobalReachConnectionList.cs | 28 +- .../GlobalReachConnectionProvisioningState.cs | 14 +- .../Models/GlobalReachConnectionStatus.cs | 8 +- .../HcxEnterpriseSiteList.Serialization.cs | 31 +- .../Generated/Models/HcxEnterpriseSiteList.cs | 28 +- .../HcxEnterpriseSiteProvisioningState.cs | 54 + .../Models/HcxEnterpriseSiteStatus.cs | 10 +- .../Models/InternetConnectivityState.cs | 6 +- .../IscsiPathListResult.Serialization.cs | 151 ++ .../Generated/Models/IscsiPathListResult.cs | 80 + .../Models/IscsiPathProvisioningState.cs | 66 + .../src/Generated/Models/LunMountMode.cs | 9 +- .../Models/NsxPublicIPQuotaRaisedEnum.cs | 6 +- ...ExecutionParameterDetails.Serialization.cs | 12 +- .../PSCredentialExecutionParameterDetails.cs | 4 +- .../Models/ParameterOptionalityStatus.cs | 6 +- .../Models/ParameterVisibilityStatus.cs | 6 +- .../PlacementPoliciesList.Serialization.cs | 31 +- .../Generated/Models/PlacementPoliciesList.cs | 28 +- .../Models/PlacementPolicyProperties.cs | 4 +- .../PlacementPolicyProvisioningState.cs | 18 +- .../Generated/Models/PlacementPolicyState.cs | 6 +- .../Generated/Models/PlacementPolicyType.cs | 2 +- .../Models/PortMirroringProfileDirection.cs | 8 +- .../Models/PortMirroringProfileStatus.cs | 6 +- .../Models/PrivateCloudList.Serialization.cs | 31 +- .../src/Generated/Models/PrivateCloudList.cs | 28 +- .../Generated/Models/ScriptCmdletAudience.cs | 51 + .../Models/ScriptCmdletProvisioningState.cs | 54 + .../Models/ScriptCmdletsList.Serialization.cs | 31 +- .../src/Generated/Models/ScriptCmdletsList.cs | 28 +- ...ExecutionParameterDetails.Serialization.cs | 4 +- .../Models/ScriptExecutionParameterDetails.cs | 10 +- .../Models/ScriptExecutionParameterType.cs | 2 +- .../ScriptExecutionProvisioningState.cs | 30 +- .../ScriptExecutionsList.Serialization.cs | 31 +- .../Generated/Models/ScriptExecutionsList.cs | 28 +- .../Models/ScriptOutputStreamType.cs | 10 +- .../Models/ScriptPackageProvisioningState.cs | 54 + .../ScriptPackagesList.Serialization.cs | 31 +- .../Generated/Models/ScriptPackagesList.cs | 28 +- .../src/Generated/Models/ScriptParameter.cs | 20 +- .../Generated/Models/ScriptParameterType.cs | 14 +- ...ExecutionParameterDetails.Serialization.cs | 12 +- ...ptSecureStringExecutionParameterDetails.cs | 4 +- ...ExecutionParameterDetails.Serialization.cs | 12 +- .../ScriptStringExecutionParameterDetails.cs | 4 +- .../Models/SingleSignOnIdentitySource.cs | 20 +- .../Generated/Models/SslCertificateStatus.cs | 6 +- .../Models/UnknownAddonProperties.cs | 2 +- .../UnknownPlacementPolicyProperties.cs | 2 +- ...nScriptExecutionParameter.Serialization.cs | 12 +- .../Models/UnknownScriptExecutionParameter.cs | 4 +- .../VirtualMachineRestrictMovementState.cs | 6 +- .../VirtualMachinesList.Serialization.cs | 31 +- .../Generated/Models/VirtualMachinesList.cs | 28 +- .../VmHostPlacementPolicyAffinityStrength.cs | 6 +- .../Models/VmHostPlacementPolicyProperties.cs | 2 +- .../Models/VmPlacementPolicyProperties.cs | 2 +- .../Models/WorkloadNetworkDhcpEntity.cs | 3 +- .../WorkloadNetworkDhcpList.Serialization.cs | 31 +- .../Models/WorkloadNetworkDhcpList.cs | 28 +- .../WorkloadNetworkDhcpProvisioningState.cs | 18 +- ...kloadNetworkDnsServiceProvisioningState.cs | 18 +- ...oadNetworkDnsServicesList.Serialization.cs | 31 +- .../Models/WorkloadNetworkDnsServicesList.cs | 28 +- ...WorkloadNetworkDnsZoneProvisioningState.cs | 18 +- ...rkloadNetworkDnsZonesList.Serialization.cs | 31 +- .../Models/WorkloadNetworkDnsZonesList.cs | 28 +- ...orkloadNetworkGatewayList.Serialization.cs | 31 +- .../Models/WorkloadNetworkGatewayList.cs | 28 +- .../WorkloadNetworkList.Serialization.cs | 31 +- .../Generated/Models/WorkloadNetworkList.cs | 28 +- ...dNetworkPortMirroringList.Serialization.cs | 31 +- .../WorkloadNetworkPortMirroringList.cs | 28 +- ...rkPortMirroringProfileProvisioningState.cs | 18 +- .../WorkloadNetworkProvisioningState.cs | 63 + ...orkloadNetworkPublicIPProvisioningState.cs | 18 +- ...kloadNetworkPublicIPsList.Serialization.cs | 31 +- .../Models/WorkloadNetworkPublicIPsList.cs | 28 +- ...WorkloadNetworkSegmentProvisioningState.cs | 18 +- .../Models/WorkloadNetworkSegmentStatus.cs | 4 +- ...rkloadNetworkSegmentsList.Serialization.cs | 31 +- .../Models/WorkloadNetworkSegmentsList.cs | 28 +- ...etworkVirtualMachinesList.Serialization.cs | 31 +- .../WorkloadNetworkVirtualMachinesList.cs | 28 +- ...WorkloadNetworkVmGroupProvisioningState.cs | 18 +- .../Models/WorkloadNetworkVmGroupStatus.cs | 6 +- ...rkloadNetworkVmGroupsList.Serialization.cs | 31 +- .../Models/WorkloadNetworkVmGroupsList.cs | 28 +- .../Generated/Models/WorkloadNetworkVmType.cs | 8 +- .../Generated/PlacementPolicyCollection.cs | 56 +- .../src/Generated/PlacementPolicyData.cs | 4 +- .../src/Generated/PlacementPolicyResource.cs | 28 +- .../RestOperations/AddonsRestOperations.cs | 62 +- .../AuthorizationsRestOperations.cs | 62 +- .../CloudLinksRestOperations.cs | 62 +- .../RestOperations/ClustersRestOperations.cs | 82 +- .../DatastoresRestOperations.cs | 78 +- .../GlobalReachConnectionsRestOperations.cs | 62 +- .../HcxEnterpriseSitesRestOperations.cs | 62 +- .../IscsiPathsRestOperations.cs | 497 ++++ .../RestOperations/LocationsRestOperations.cs | 92 +- .../PlacementPoliciesRestOperations.cs | 98 +- .../PrivateCloudsRestOperations.cs | 266 +- .../ScriptCmdletsRestOperations.cs | 42 +- .../ScriptExecutionsRestOperations.cs | 70 +- .../ScriptPackagesRestOperations.cs | 30 +- .../VirtualMachinesRestOperations.cs | 58 +- .../WorkloadNetworksRestOperations.cs | 2416 ++++++++--------- .../src/Generated/ScriptCmdletCollection.cs | 36 +- .../ScriptCmdletData.Serialization.cs | 32 + .../src/Generated/ScriptCmdletData.cs | 10 +- .../src/Generated/ScriptCmdletResource.cs | 8 +- .../Generated/ScriptExecutionCollection.cs | 56 +- .../src/Generated/ScriptExecutionData.cs | 16 +- .../src/Generated/ScriptExecutionResource.cs | 36 +- .../src/Generated/ScriptPackageCollection.cs | 36 +- .../ScriptPackageData.Serialization.cs | 17 + .../src/Generated/ScriptPackageData.cs | 7 +- .../src/Generated/ScriptPackageResource.cs | 20 +- .../WorkloadNetworkData.Serialization.cs | 39 +- .../src/Generated/WorkloadNetworkData.cs | 8 +- .../WorkloadNetworkDhcpCollection.cs | 88 +- .../src/Generated/WorkloadNetworkDhcpData.cs | 4 +- .../Generated/WorkloadNetworkDhcpResource.cs | 30 +- .../WorkloadNetworkDnsServiceCollection.cs | 88 +- .../WorkloadNetworkDnsServiceResource.cs | 30 +- .../WorkloadNetworkDnsZoneCollection.cs | 88 +- .../WorkloadNetworkDnsZoneResource.cs | 30 +- .../WorkloadNetworkGatewayCollection.cs | 64 +- ...orkloadNetworkGatewayData.Serialization.cs | 17 + .../Generated/WorkloadNetworkGatewayData.cs | 7 +- .../WorkloadNetworkGatewayResource.cs | 10 +- ...adNetworkPortMirroringProfileCollection.cs | 88 +- ...loadNetworkPortMirroringProfileResource.cs | 30 +- .../WorkloadNetworkPublicIPCollection.cs | 88 +- .../WorkloadNetworkPublicIPResource.cs | 34 +- .../src/Generated/WorkloadNetworkResource.cs | 643 ++++- .../WorkloadNetworkSegmentCollection.cs | 88 +- .../WorkloadNetworkSegmentResource.cs | 30 +- ...WorkloadNetworkVirtualMachineCollection.cs | 64 +- ...NetworkVirtualMachineData.Serialization.cs | 16 + .../WorkloadNetworkVirtualMachineData.cs | 6 +- .../WorkloadNetworkVirtualMachineResource.cs | 10 +- .../WorkloadNetworkVmGroupCollection.cs | 88 +- .../WorkloadNetworkVmGroupResource.cs | 30 +- .../Azure.ResourceManager.Avs/src/autorest.md | 7 +- 306 files changed, 10779 insertions(+), 6175 deletions(-) create mode 100644 sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_IscsiPathResource.cs delete mode 100644 sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkCollection.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs rename sdk/avs/Azure.ResourceManager.Avs/src/{Generated => Customized}/Models/CommonClusterProperties.Serialization.cs (99%) rename sdk/avs/Azure.ResourceManager.Avs/src/{Generated => Customized}/Models/CommonClusterProperties.cs (91%) rename sdk/avs/Azure.ResourceManager.Avs/src/{Generated => Customized}/Models/WorkloadNetworkName.cs (97%) create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs rename sdk/avs/Azure.ResourceManager.Avs/src/{Generated => Customized}/WorkloadNetworkCollection.cs (96%) create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.Serialization.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.Serialization.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/IscsiPathOperationSource.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsDnsZoneType.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.Serialization.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsVirtualMachineProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.Serialization.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.Serialization.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletAudience.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkProvisioningState.cs create mode 100644 sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/IscsiPathsRestOperations.cs diff --git a/.vscode/cspell.json b/.vscode/cspell.json index d4dbf858e8fbc..6844f24d65d12 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -240,7 +240,8 @@ "nsxt", "vcenter", "vcsa", - "vmotion" + "vmotion", + "Iscsi" ] }, { diff --git a/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md b/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md index 797fcfe8a9f18..f2d4282ba2a9e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md +++ b/sdk/avs/Azure.ResourceManager.Avs/CHANGELOG.md @@ -1,17 +1,13 @@ # Release History -## 1.4.0-beta.1 (Unreleased) +## 1.4.0 (2024-10-28) ### Features Added +- Upgraded api-version tag from 'package-2023-03-01' to 'package-2023-09-01'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/e19b5771846718774c0452800b9a42c251319f48/specification/vmware/resource-manager/readme.md. + - WorkloadNetworkResource is now a singleton resource - Exposed `JsonModelWriteCore` for model serialization procedure. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.3.0 (2024-01-22) ### Features Added diff --git a/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs b/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs index b00dddea9d59c..8330593f6faa3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/api/Azure.ResourceManager.Avs.netstandard2.0.cs @@ -21,6 +21,7 @@ public partial class AvsCloudLinkData : Azure.ResourceManager.Models.ResourceDat { public AvsCloudLinkData() { } public Azure.Core.ResourceIdentifier LinkedCloud { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus? Status { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.AvsCloudLinkData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -72,6 +73,7 @@ public static partial class AvsExtensions public static Azure.ResourceManager.Avs.ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Avs.GlobalReachConnectionResource GetGlobalReachConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Avs.HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Avs.IscsiPathResource GetIscsiPathResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Avs.PlacementPolicyResource GetPlacementPolicyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Avs.ScriptCmdletResource GetScriptCmdletResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Avs.ScriptExecutionResource GetScriptExecutionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -158,7 +160,10 @@ public AvsPrivateCloudClusterData(Azure.ResourceManager.Avs.Models.AvsSku sku) { public int? ClusterSize { get { throw null; } set { } } public System.Collections.Generic.IList Hosts { get { throw null; } } public Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Avs.Models.AvsSku Sku { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string SkuName { get { throw null; } set { } } + public string VsanDatastoreName { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.AvsPrivateCloudClusterData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -217,6 +222,7 @@ public AvsPrivateCloudClusterVirtualMachineData() { } public string DisplayName { get { throw null; } } public string FolderPath { get { throw null; } } public string MoRefId { get { throw null; } } + public Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState? RestrictMovement { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.AvsPrivateCloudClusterVirtualMachineData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -264,6 +270,7 @@ public partial class AvsPrivateCloudData : Azure.ResourceManager.Models.TrackedR public AvsPrivateCloudData(Azure.Core.AzureLocation location, Azure.ResourceManager.Avs.Models.AvsSku sku) { } public Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties Availability { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.ExpressRouteCircuit Circuit { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsDnsZoneType? DnsZoneType { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.CustomerManagedEncryption Encryption { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints Endpoints { get { throw null; } } public System.Collections.Generic.IList ExtendedNetworkBlocks { get { throw null; } } @@ -280,9 +287,12 @@ public AvsPrivateCloudData(Azure.Core.AzureLocation location, Azure.ResourceMana public string ProvisioningNetwork { get { throw null; } } public Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.ExpressRouteCircuit SecondaryCircuit { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsSku Sku { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public string SkuName { get { throw null; } set { } } public string VCenterCertificateThumbprint { get { throw null; } } public string VCenterPassword { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VirtualNetworkId { get { throw null; } set { } } public string VMotionNetwork { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.AvsPrivateCloudData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -312,6 +322,7 @@ public partial class AvsPrivateCloudDatastoreData : Azure.ResourceManager.Models { public AvsPrivateCloudDatastoreData() { } public Azure.ResourceManager.Avs.Models.DiskPoolVolume DiskPoolVolume { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ElasticSanVolumeTargetId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier NetAppVolumeId { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.DatastoreStatus? Status { get { throw null; } } @@ -374,41 +385,76 @@ protected AvsPrivateCloudResource() { } public virtual Azure.Response GetHcxEnterpriseSite(string hcxEnterpriseSiteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetHcxEnterpriseSiteAsync(string hcxEnterpriseSiteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Avs.HcxEnterpriseSiteCollection GetHcxEnterpriseSites() { throw null; } + public virtual Azure.ResourceManager.Avs.IscsiPathResource GetIscsiPath() { throw null; } public virtual Azure.Response GetScriptExecution(string scriptExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetScriptExecutionAsync(string scriptExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Avs.ScriptExecutionCollection GetScriptExecutions() { throw null; } public virtual Azure.Response GetScriptPackage(string scriptPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetScriptPackageAsync(string scriptPackageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Avs.ScriptPackageCollection GetScriptPackages() { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkResource GetWorkloadNetwork() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release.", false)] public virtual Azure.Response GetWorkloadNetwork(Azure.ResourceManager.Avs.Models.WorkloadNetworkName workloadNetworkName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release.", false)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkAsync(Azure.ResourceManager.Avs.Models.WorkloadNetworkName workloadNetworkName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkDhcp(string dhcpId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDhcpAsync(string dhcpId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkDnsService(string dnsServiceId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkDnsZone(string dnsZoneId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkGateway(string gatewayId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkGatewayAsync(string gatewayId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkPublicIP(string publicIPId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release.", false)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkCollection GetWorkloadNetworks() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkSegment(string segmentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkSegmentAsync(string segmentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response GetWorkloadNetworkVmGroup(string vmGroupId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.ResourceManager.Avs.WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups() { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -549,6 +595,7 @@ public partial class HcxEnterpriseSiteData : Azure.ResourceManager.Models.Resour { public HcxEnterpriseSiteData() { } public string ActivationKey { get { throw null; } } + public Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus? Status { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.HcxEnterpriseSiteData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -576,6 +623,37 @@ protected HcxEnterpriseSiteResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Avs.HcxEnterpriseSiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Avs.HcxEnterpriseSiteData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class IscsiPathData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IscsiPathData() { } + public string NetworkBlock { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState? ProvisioningState { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Avs.IscsiPathData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Avs.IscsiPathData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IscsiPathResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected IscsiPathResource() { } + public virtual Azure.ResourceManager.Avs.IscsiPathData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.Avs.IscsiPathData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Avs.IscsiPathData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Avs.IscsiPathData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Avs.IscsiPathData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class PlacementPolicyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected PlacementPolicyCollection() { } @@ -641,8 +719,10 @@ protected ScriptCmdletCollection() { } public partial class ScriptCmdletData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ScriptCmdletData() { } + public Azure.ResourceManager.Avs.Models.ScriptCmdletAudience? Audience { get { throw null; } } public string Description { get { throw null; } } public System.Collections.Generic.IReadOnlyList Parameters { get { throw null; } } + public Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState? ProvisioningState { get { throw null; } } public System.TimeSpan? Timeout { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.ScriptCmdletData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -749,6 +829,7 @@ public partial class ScriptPackageData : Azure.ResourceManager.Models.ResourceDa public ScriptPackageData() { } public string Company { get { throw null; } } public string Description { get { throw null; } } + public Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState? ProvisioningState { get { throw null; } } public System.Uri Uri { get { throw null; } } public string Version { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -776,6 +857,8 @@ protected ScriptPackageResource() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This class is obsolete and will be removed in a future release.", false)] public partial class WorkloadNetworkCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected WorkloadNetworkCollection() { } @@ -794,6 +877,7 @@ protected WorkloadNetworkCollection() { } public partial class WorkloadNetworkData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public WorkloadNetworkData() { } + public Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? ProvisioningState { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.WorkloadNetworkData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -975,6 +1059,7 @@ public partial class WorkloadNetworkGatewayData : Azure.ResourceManager.Models.R public WorkloadNetworkGatewayData() { } public string DisplayName { get { throw null; } set { } } public string Path { get { throw null; } } + public Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? ProvisioningState { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.WorkloadNetworkGatewayData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1106,9 +1191,38 @@ public partial class WorkloadNetworkResource : Azure.ResourceManager.ArmResource protected WorkloadNetworkResource() { } public virtual Azure.ResourceManager.Avs.WorkloadNetworkData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName, Azure.ResourceManager.Avs.Models.WorkloadNetworkName workloadNetworkName) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetWorkloadNetworkDhcp(string dhcpId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDhcpAsync(string dhcpId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps() { throw null; } + public virtual Azure.Response GetWorkloadNetworkDnsService(string dnsServiceId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices() { throw null; } + public virtual Azure.Response GetWorkloadNetworkDnsZone(string dnsZoneId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones() { throw null; } + public virtual Azure.Response GetWorkloadNetworkGateway(string gatewayId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkGatewayAsync(string gatewayId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways() { throw null; } + public virtual Azure.Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles() { throw null; } + public virtual Azure.Response GetWorkloadNetworkPublicIP(string publicIPId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs() { throw null; } + public virtual Azure.Response GetWorkloadNetworkSegment(string segmentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkSegmentAsync(string segmentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments() { throw null; } + public virtual Azure.Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines() { throw null; } + public virtual Azure.Response GetWorkloadNetworkVmGroup(string vmGroupId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Avs.WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups() { throw null; } Azure.ResourceManager.Avs.WorkloadNetworkData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.WorkloadNetworkData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1187,6 +1301,7 @@ public partial class WorkloadNetworkVirtualMachineData : Azure.ResourceManager.M { public WorkloadNetworkVirtualMachineData() { } public string DisplayName { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType? VmType { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1276,6 +1391,7 @@ protected MockableAvsArmClient() { } public virtual Azure.ResourceManager.Avs.ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Avs.GlobalReachConnectionResource GetGlobalReachConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Avs.HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Avs.IscsiPathResource GetIscsiPathResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Avs.PlacementPolicyResource GetPlacementPolicyResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Avs.ScriptCmdletResource GetScriptCmdletResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Avs.ScriptExecutionResource GetScriptExecutionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1403,18 +1519,33 @@ public static partial class ArmAvsModelFactory public static Azure.ResourceManager.Avs.Models.AddonSrmProperties AddonSrmProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), string licenseKey = null) { throw null; } public static Azure.ResourceManager.Avs.Models.AddonVrProperties AddonVrProperties(Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?), int vrsCount = 0) { throw null; } public static Azure.ResourceManager.Avs.Models.AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null) { throw null; } - public static Azure.ResourceManager.Avs.AvsCloudLinkData AvsCloudLinkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus? status = default(Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus?), Azure.Core.ResourceIdentifier linkedCloud = null) { throw null; } + public static Azure.ResourceManager.Avs.AvsCloudLinkData AvsCloudLinkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState?), Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus? status = default(Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus?), Azure.Core.ResourceIdentifier linkedCloud = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.AvsCloudLinkData AvsCloudLinkData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Avs.Models.AvsCloudLinkStatus? status, Azure.Core.ResourceIdentifier linkedCloud) { throw null; } public static Azure.ResourceManager.Avs.Models.AvsClusterZone AvsClusterZone(System.Collections.Generic.IEnumerable hosts = null, string zone = null) { throw null; } public static Azure.ResourceManager.Avs.Models.AvsEncryptionKeyVaultProperties AvsEncryptionKeyVaultProperties(string keyName = null, string keyVersion = null, string autoDetectedKeyVersion = null, System.Uri keyVaultUri = null, Azure.ResourceManager.Avs.Models.AvsEncryptionKeyStatus? keyState = default(Azure.ResourceManager.Avs.Models.AvsEncryptionKeyStatus?), Azure.ResourceManager.Avs.Models.AvsEncryptionVersionType? versionType = default(Azure.ResourceManager.Avs.Models.AvsEncryptionVersionType?)) { throw null; } - public static Azure.ResourceManager.Avs.Models.AvsManagementCluster AvsManagementCluster(int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.Models.AvsManagementCluster AvsManagementCluster(int? clusterSize, Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, System.Collections.Generic.IEnumerable hosts) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsManagementCluster AvsManagementCluster(int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null, string vsanDatastoreName = null) { throw null; } public static Azure.ResourceManager.Avs.AvsPrivateCloudAddonData AvsPrivateCloudAddonData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudAddonProperties properties = null) { throw null; } public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = null, Azure.ResourceManager.Avs.Models.AddonProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AddonProvisioningState?)) { throw null; } - public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterData AvsPrivateCloudClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string skuName = null, int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } - public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, string moRefId = null, string folderPath = null, Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState? restrictMovement = default(Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState?)) { throw null; } - public static Azure.ResourceManager.Avs.AvsPrivateCloudData AvsPrivateCloudData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string skuName = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Avs.Models.AvsManagementCluster managementCluster = null, Azure.ResourceManager.Avs.Models.InternetConnectivityState? internet = default(Azure.ResourceManager.Avs.Models.InternetConnectivityState?), System.Collections.Generic.IEnumerable identitySources = null, Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties availability = null, Azure.ResourceManager.Avs.Models.CustomerManagedEncryption encryption = null, System.Collections.Generic.IEnumerable extendedNetworkBlocks = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState?), Azure.ResourceManager.Avs.Models.ExpressRouteCircuit circuit = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, System.Collections.Generic.IEnumerable externalCloudLinks = null, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit secondaryCircuit = null, Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default(Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum?)) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterData AvsPrivateCloudClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsSku sku = null, int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null, string vsanDatastoreName = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterData AvsPrivateCloudClusterData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string sku, int? clusterSize, Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, System.Collections.Generic.IEnumerable hosts) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState?), string displayName = null, string moRefId = null, string folderPath = null, Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState? restrictMovement = default(Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string displayName, string moRefId, string folderPath, Azure.ResourceManager.Avs.Models.VirtualMachineRestrictMovementState? restrictMovement) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudData AvsPrivateCloudData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Avs.Models.AvsSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Avs.Models.AvsManagementCluster managementCluster = null, Azure.ResourceManager.Avs.Models.InternetConnectivityState? internet = default(Azure.ResourceManager.Avs.Models.InternetConnectivityState?), System.Collections.Generic.IEnumerable identitySources = null, Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties availability = null, Azure.ResourceManager.Avs.Models.CustomerManagedEncryption encryption = null, System.Collections.Generic.IEnumerable extendedNetworkBlocks = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState?), Azure.ResourceManager.Avs.Models.ExpressRouteCircuit circuit = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, System.Collections.Generic.IEnumerable externalCloudLinks = null, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit secondaryCircuit = null, Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default(Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum?), Azure.Core.ResourceIdentifier virtualNetworkId = null, Azure.ResourceManager.Avs.Models.AvsDnsZoneType? dnsZoneType = default(Azure.ResourceManager.Avs.Models.AvsDnsZoneType?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.AvsPrivateCloudData AvsPrivateCloudData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string sku, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Avs.Models.AvsManagementCluster managementCluster, Azure.ResourceManager.Avs.Models.InternetConnectivityState? internet, System.Collections.Generic.IEnumerable identitySources, Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties availability, Azure.ResourceManager.Avs.Models.CustomerManagedEncryption encryption, System.Collections.Generic.IEnumerable extendedNetworkBlocks, Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? provisioningState, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit circuit, Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints endpoints, string networkBlock, string managementNetwork, string provisioningNetwork, string vMotionNetwork, string vCenterPassword, string nsxtPassword, string vCenterCertificateThumbprint, string nsxtCertificateThumbprint, System.Collections.Generic.IEnumerable externalCloudLinks, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit secondaryCircuit, Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Avs.AvsPrivateCloudData AvsPrivateCloudData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string skuName = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Avs.Models.AvsManagementCluster managementCluster = null, Azure.ResourceManager.Avs.Models.InternetConnectivityState? internet = default(Azure.ResourceManager.Avs.Models.InternetConnectivityState?), System.Collections.Generic.IEnumerable identitySources = null, Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties availability = null, Azure.ResourceManager.Avs.Models.CustomerManagedEncryption encryption = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudProvisioningState?), Azure.ResourceManager.Avs.Models.ExpressRouteCircuit circuit = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, System.Collections.Generic.IEnumerable externalCloudLinks = null, Azure.ResourceManager.Avs.Models.ExpressRouteCircuit secondaryCircuit = null, Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default(Azure.ResourceManager.Avs.Models.NsxPublicIPQuotaRaisedEnum?)) { throw null; } - public static Azure.ResourceManager.Avs.AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState?), Azure.Core.ResourceIdentifier netAppVolumeId = null, Azure.ResourceManager.Avs.Models.DiskPoolVolume diskPoolVolume = null, Azure.ResourceManager.Avs.Models.DatastoreStatus? status = default(Azure.ResourceManager.Avs.Models.DatastoreStatus?)) { throw null; } - public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null) { throw null; } + public static Azure.ResourceManager.Avs.AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState?), Azure.Core.ResourceIdentifier netAppVolumeId = null, Azure.ResourceManager.Avs.Models.DiskPoolVolume diskPoolVolume = null, Azure.Core.ResourceIdentifier elasticSanVolumeTargetId = null, Azure.ResourceManager.Avs.Models.DatastoreStatus? status = default(Azure.ResourceManager.Avs.Models.DatastoreStatus?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Avs.Models.AvsPrivateCloudDatastoreProvisioningState? provisioningState, Azure.Core.ResourceIdentifier netAppVolumeId, Azure.ResourceManager.Avs.Models.DiskPoolVolume diskPoolVolume, Azure.ResourceManager.Avs.Models.DatastoreStatus? status) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager, string vcsa, string hcxCloudManager) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null, string nsxtManagerIP = null, string vcenterIP = null, string hcxCloudManagerIP = null) { throw null; } public static Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailabilityResult(System.Collections.Generic.IReadOnlyDictionary hostsRemaining = null, Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaEnabled? quotaEnabled = default(Azure.ResourceManager.Avs.Models.AvsSubscriptionQuotaEnabled?)) { throw null; } public static Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialStatus? status = default(Azure.ResourceManager.Avs.Models.AvsSubscriptionTrialStatus?), int? availableHosts = default(int?)) { throw null; } public static Azure.ResourceManager.Avs.Models.CommonClusterProperties CommonClusterProperties(int? clusterSize = default(int?), Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterProvisioningState?), int? clusterId = default(int?), System.Collections.Generic.IEnumerable hosts = null) { throw null; } @@ -1422,28 +1553,41 @@ public static partial class ArmAvsModelFactory public static Azure.ResourceManager.Avs.ExpressRouteAuthorizationData ExpressRouteAuthorizationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.ExpressRouteAuthorizationProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ExpressRouteAuthorizationProvisioningState?), Azure.Core.ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, Azure.Core.ResourceIdentifier expressRouteId = null) { throw null; } public static Azure.ResourceManager.Avs.Models.ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, Azure.Core.ResourceIdentifier expressRouteId = null, Azure.Core.ResourceIdentifier expressRoutePrivatePeeringId = null) { throw null; } public static Azure.ResourceManager.Avs.GlobalReachConnectionData GlobalReachConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.GlobalReachConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.GlobalReachConnectionProvisioningState?), string addressPrefix = null, string authorizationKey = null, Azure.ResourceManager.Avs.Models.GlobalReachConnectionStatus? circuitConnectionStatus = default(Azure.ResourceManager.Avs.Models.GlobalReachConnectionStatus?), Azure.Core.ResourceIdentifier peerExpressRouteCircuit = null, Azure.Core.ResourceIdentifier expressRouteId = null) { throw null; } - public static Azure.ResourceManager.Avs.HcxEnterpriseSiteData HcxEnterpriseSiteData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string activationKey = null, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus? status = default(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus?)) { throw null; } + public static Azure.ResourceManager.Avs.HcxEnterpriseSiteData HcxEnterpriseSiteData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState?), string activationKey = null, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus? status = default(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.HcxEnterpriseSiteData HcxEnterpriseSiteData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string activationKey, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteStatus? status) { throw null; } + public static Azure.ResourceManager.Avs.IscsiPathData IscsiPathData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState?), string networkBlock = null) { throw null; } public static Azure.ResourceManager.Avs.PlacementPolicyData PlacementPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProperties properties = null) { throw null; } public static Azure.ResourceManager.Avs.Models.PlacementPolicyProperties PlacementPolicyProperties(string policyType = null, Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?)) { throw null; } - public static Azure.ResourceManager.Avs.ScriptCmdletData ScriptCmdletData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, System.TimeSpan? timeout = default(System.TimeSpan?), System.Collections.Generic.IEnumerable parameters = null) { throw null; } + public static Azure.ResourceManager.Avs.ScriptCmdletData ScriptCmdletData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState?), string description = null, System.TimeSpan? timeout = default(System.TimeSpan?), Azure.ResourceManager.Avs.Models.ScriptCmdletAudience? audience = default(Azure.ResourceManager.Avs.Models.ScriptCmdletAudience?), System.Collections.Generic.IEnumerable parameters = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.ScriptCmdletData ScriptCmdletData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, System.TimeSpan? timeout, System.Collections.Generic.IEnumerable parameters) { throw null; } public static Azure.ResourceManager.Avs.ScriptExecutionData ScriptExecutionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier scriptCmdletId = null, System.Collections.Generic.IEnumerable parameters = null, System.Collections.Generic.IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, System.DateTimeOffset? submittedOn = default(System.DateTimeOffset?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? finishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ScriptExecutionProvisioningState?), System.Collections.Generic.IEnumerable output = null, System.BinaryData namedOutputs = null, System.Collections.Generic.IEnumerable information = null, System.Collections.Generic.IEnumerable warnings = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } - public static Azure.ResourceManager.Avs.ScriptPackageData ScriptPackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string version = null, string company = null, System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.Avs.ScriptPackageData ScriptPackageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState?), string description = null, string version = null, string company = null, System.Uri uri = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.ScriptPackageData ScriptPackageData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string version, string company, System.Uri uri) { throw null; } public static Azure.ResourceManager.Avs.Models.ScriptParameter ScriptParameter(Azure.ResourceManager.Avs.Models.ScriptParameterType? parameterType = default(Azure.ResourceManager.Avs.Models.ScriptParameterType?), string name = null, string description = null, Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus? visibility = default(Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus?), Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus? optional = default(Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus?)) { throw null; } public static Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?), System.Collections.Generic.IEnumerable vmMembers = null, System.Collections.Generic.IEnumerable hostMembers = null, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default(Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType), Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength? affinityStrength = default(Azure.ResourceManager.Avs.Models.VmHostPlacementPolicyAffinityStrength?), Azure.ResourceManager.Avs.Models.AzureHybridBenefitType? azureHybridBenefitType = default(Azure.ResourceManager.Avs.Models.AzureHybridBenefitType?)) { throw null; } public static Azure.ResourceManager.Avs.Models.VmPlacementPolicyProperties VmPlacementPolicyProperties(Azure.ResourceManager.Avs.Models.PlacementPolicyState? state = default(Azure.ResourceManager.Avs.Models.PlacementPolicyState?), string displayName = null, Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.PlacementPolicyProvisioningState?), System.Collections.Generic.IEnumerable vmMembers = null, Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType affinityType = default(Azure.ResourceManager.Avs.Models.AvsPlacementPolicyAffinityType)) { throw null; } - public static Azure.ResourceManager.Avs.WorkloadNetworkData WorkloadNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.WorkloadNetworkData WorkloadNetworkData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkData WorkloadNetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkDhcpData WorkloadNetworkDhcpData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpEntity properties = null) { throw null; } public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = null, string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?)) { throw null; } public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpRelay WorkloadNetworkDhcpRelay(string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?), System.Collections.Generic.IEnumerable serverAddresses = null) { throw null; } public static Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, System.Collections.Generic.IEnumerable segments = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDhcpProvisioningState?), long? revision = default(long?), string serverAddress = null, long? leaseTime = default(long?)) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkDnsServiceData WorkloadNetworkDnsServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Net.IPAddress dnsServiceIP = null, string defaultDnsZone = null, System.Collections.Generic.IEnumerable fqdnZones = null, Azure.ResourceManager.Avs.Models.DnsServiceLogLevel? logLevel = default(Azure.ResourceManager.Avs.Models.DnsServiceLogLevel?), Azure.ResourceManager.Avs.Models.DnsServiceStatus? status = default(Azure.ResourceManager.Avs.Models.DnsServiceStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsServiceProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsServiceProvisioningState?), long? revision = default(long?)) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkDnsZoneData WorkloadNetworkDnsZoneData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable domain = null, System.Collections.Generic.IEnumerable dnsServerIPs = null, System.Net.IPAddress sourceIP = null, long? dnsServices = default(long?), Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState?), long? revision = default(long?)) { throw null; } - public static Azure.ResourceManager.Avs.WorkloadNetworkGatewayData WorkloadNetworkGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, string path = null) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkGatewayData WorkloadNetworkGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState?), string displayName = null, string path = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.WorkloadNetworkGatewayData WorkloadNetworkGatewayData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string displayName, string path) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, Azure.ResourceManager.Avs.Models.PortMirroringProfileDirection? direction = default(Azure.ResourceManager.Avs.Models.PortMirroringProfileDirection?), string source = null, string destination = null, Azure.ResourceManager.Avs.Models.PortMirroringProfileStatus? status = default(Azure.ResourceManager.Avs.Models.PortMirroringProfileStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkPortMirroringProfileProvisioningState?), long? revision = default(long?)) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = default(long?), string publicIPBlock = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkPublicIPProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkPublicIPProvisioningState?)) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkSegmentData WorkloadNetworkSegmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, string connectedGateway = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentSubnet subnet = null, System.Collections.Generic.IEnumerable portVif = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentStatus? status = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentProvisioningState?), long? revision = default(long?)) { throw null; } public static Azure.ResourceManager.Avs.Models.WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null) { throw null; } - public static Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType? vmType = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType?)) { throw null; } + public static Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState?), string displayName = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType? vmType = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Avs.WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string displayName, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmType? vmType) { throw null; } public static Azure.ResourceManager.Avs.WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable members = null, Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupStatus? status = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupStatus?), Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupProvisioningState? provisioningState = default(Azure.ResourceManager.Avs.Models.WorkloadNetworkVmGroupProvisioningState?), long? revision = default(long?)) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1465,6 +1609,25 @@ public static partial class ArmAvsModelFactory public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AvsCloudLinkProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AvsCloudLinkProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState left, Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState left, Azure.ResourceManager.Avs.Models.AvsCloudLinkProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AvsCloudLinkStatus : System.IEquatable { private readonly object _dummy; @@ -1498,6 +1661,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AvsDnsZoneType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AvsDnsZoneType(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsDnsZoneType Private { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.AvsDnsZoneType Public { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.AvsDnsZoneType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.AvsDnsZoneType left, Azure.ResourceManager.Avs.Models.AvsDnsZoneType right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.AvsDnsZoneType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.AvsDnsZoneType left, Azure.ResourceManager.Avs.Models.AvsDnsZoneType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AvsEncryptionKeyStatus : System.IEquatable { private readonly object _dummy; @@ -1570,6 +1751,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AvsManagementCluster : Azure.ResourceManager.Avs.Models.CommonClusterProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AvsManagementCluster() { } + public string VsanDatastoreName { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.Models.AvsManagementCluster System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1611,6 +1793,7 @@ public partial class AvsPrivateCloudClusterPatch : System.ClientModel.Primitives public AvsPrivateCloudClusterPatch() { } public int? ClusterSize { get { throw null; } set { } } public System.Collections.Generic.IList Hosts { get { throw null; } } + public Azure.ResourceManager.Avs.Models.AvsSku Sku { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.Models.AvsPrivateCloudClusterPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1679,7 +1862,10 @@ public partial class AvsPrivateCloudEndpoints : System.ClientModel.Primitives.IJ { internal AvsPrivateCloudEndpoints() { } public string HcxCloudManager { get { throw null; } } + public string HcxCloudManagerIP { get { throw null; } } public string NsxtManager { get { throw null; } } + public string NsxtManagerIP { get { throw null; } } + public string VcenterIP { get { throw null; } } public string Vcsa { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.Models.AvsPrivateCloudEndpoints System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1692,12 +1878,14 @@ public partial class AvsPrivateCloudPatch : System.ClientModel.Primitives.IJsonM { public AvsPrivateCloudPatch() { } public Azure.ResourceManager.Avs.Models.PrivateCloudAvailabilityProperties Availability { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsDnsZoneType? DnsZoneType { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.CustomerManagedEncryption Encryption { get { throw null; } set { } } public System.Collections.Generic.IList ExtendedNetworkBlocks { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public System.Collections.Generic.IList IdentitySources { get { throw null; } } public Azure.ResourceManager.Avs.Models.InternetConnectivityState? Internet { get { throw null; } set { } } public Azure.ResourceManager.Avs.Models.AvsManagementCluster ManagementCluster { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.Models.AvsPrivateCloudPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1733,7 +1921,11 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AvsSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AvsSku(string name) { } + public int? Capacity { get { throw null; } set { } } + public string Family { get { throw null; } set { } } public string Name { get { throw null; } set { } } + public string Size { get { throw null; } set { } } + public Azure.ResourceManager.Avs.Models.AvsSkuTier? Tier { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Avs.Models.AvsSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1741,6 +1933,13 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public enum AvsSkuTier + { + Free = 0, + Basic = 1, + Standard = 2, + Premium = 3, + } public partial class AvsSubscriptionQuotaAvailabilityResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AvsSubscriptionQuotaAvailabilityResult() { } @@ -1803,6 +2002,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AvsVirtualMachineProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AvsVirtualMachineProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState left, Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState left, Azure.ResourceManager.Avs.Models.AvsVirtualMachineProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AzureHybridBenefitType : System.IEquatable { private readonly object _dummy; @@ -1822,6 +2040,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class CommonClusterProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public CommonClusterProperties() { } public int? ClusterId { get { throw null; } } public int? ClusterSize { get { throw null; } set { } } @@ -1996,6 +2215,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HcxEnterpriseSiteProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public HcxEnterpriseSiteProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState left, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState left, Azure.ResourceManager.Avs.Models.HcxEnterpriseSiteProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HcxEnterpriseSiteStatus : System.IEquatable { private readonly object _dummy; @@ -2034,6 +2272,29 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IscsiPathProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IscsiPathProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Building { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Pending { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState left, Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState left, Azure.ResourceManager.Avs.Models.IscsiPathProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct LunMountMode : System.IEquatable { private readonly object _dummy; @@ -2235,6 +2496,43 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScriptCmdletAudience : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScriptCmdletAudience(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.ScriptCmdletAudience Any { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.ScriptCmdletAudience Automation { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.ScriptCmdletAudience other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.ScriptCmdletAudience left, Azure.ResourceManager.Avs.Models.ScriptCmdletAudience right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.ScriptCmdletAudience (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.ScriptCmdletAudience left, Azure.ResourceManager.Avs.Models.ScriptCmdletAudience right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScriptCmdletProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScriptCmdletProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState left, Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState left, Azure.ResourceManager.Avs.Models.ScriptCmdletProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } public abstract partial class ScriptExecutionParameterDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ScriptExecutionParameterDetails(string name) { } @@ -2290,6 +2588,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Avs.Models.ScriptOutputStreamType left, Azure.ResourceManager.Avs.Models.ScriptOutputStreamType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScriptPackageProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScriptPackageProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState left, Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState left, Azure.ResourceManager.Avs.Models.ScriptPackageProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } public partial class ScriptParameter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ScriptParameter() { } @@ -2553,6 +2870,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState left, Azure.ResourceManager.Avs.Models.WorkloadNetworkDnsZoneProvisioningState right) { throw null; } public override string ToString() { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct WorkloadNetworkName : System.IEquatable { @@ -2593,6 +2911,28 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WorkloadNetworkProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WorkloadNetworkProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Building { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState left, Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState left, Azure.ResourceManager.Avs.Models.WorkloadNetworkProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct WorkloadNetworkPublicIPProvisioningState : System.IEquatable { private readonly object _dummy; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkCollection.cs index 13076c07844b6..fd7b0c320cc9f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_AvsCloudLinkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_CloudLinksList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_List.json // this example is just showing the usage of "CloudLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_CloudLinksList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_CloudLinksGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json // this example is just showing the usage of "CloudLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_CloudLinksGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_CloudLinksGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json // this example is just showing the usage of "CloudLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_CloudLinksGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_CloudLinksGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json // this example is just showing the usage of "CloudLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_CloudLinksGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CloudLinksCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json // this example is just showing the usage of "CloudLinks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkResource.cs index b5dfe04deea64..4dba2e06a83df 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsCloudLinkResource.cs @@ -19,7 +19,7 @@ public partial class Sample_AvsCloudLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_CloudLinksGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json // this example is just showing the usage of "CloudLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_CloudLinksGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CloudLinksCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json // this example is just showing the usage of "CloudLinks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Update_CloudLinksCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_CloudLinksDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/CloudLinks_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Delete.json // this example is just showing the usage of "CloudLinks_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonCollection.cs index f5caf991895c2..b37e4c5e3151d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AvsPrivateCloudAddonCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_AddonsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_List.json // this example is just showing the usage of "Addons_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_AddonsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_AddonsGetArcReg() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AddonsGetArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_AddonsGetArcReg() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AddonsGetArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_AddonsGetArcReg() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task Get_AddonsGetHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AddonsGetHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task Exists_AddonsGetHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AddonsGetHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task GetIfExists_AddonsGetHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -310,7 +310,7 @@ public async Task Get_AddonsGetSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AddonsGetSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -341,7 +341,7 @@ public async Task Exists_AddonsGetSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AddonsGetSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -384,7 +384,7 @@ public async Task GetIfExists_AddonsGetSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -419,7 +419,7 @@ public async Task Get_AddonsGetVR() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AddonsGetVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -450,7 +450,7 @@ public async Task Exists_AddonsGetVR() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AddonsGetVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -488,12 +488,12 @@ public async Task GetIfExists_AddonsGetVR() } } - // Addons_CreateOrUpdate_Arc + // Addons_CreateOrUpdate_ArcReg [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_AddonsCreateOrUpdateArc() + public async Task CreateOrUpdate_AddonsCreateOrUpdateArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -536,7 +536,7 @@ public async Task CreateOrUpdate_AddonsCreateOrUpdateArc() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddonsCreateOrUpdateHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -576,7 +576,7 @@ public async Task CreateOrUpdate_AddonsCreateOrUpdateHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddonsCreateOrUpdateSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -619,7 +619,7 @@ public async Task CreateOrUpdate_AddonsCreateOrUpdateSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AddonsCreateOrUpdateVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonResource.cs index 3fedf587002f2..9cc138f685036 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudAddonResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AvsPrivateCloudAddonResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_AddonsGetArcReg() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Get_AddonsGetHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Get_AddonsGetSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AddonsGetVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Get_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json // this example is just showing the usage of "Addons_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,12 +143,12 @@ public async Task Get_AddonsGetVR() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // Addons_CreateOrUpdate_Arc + // Addons_CreateOrUpdate_ArcReg [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_AddonsCreateOrUpdateArc() + public async Task Update_AddonsCreateOrUpdateArcReg() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_ArcReg.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -188,7 +188,7 @@ public async Task Update_AddonsCreateOrUpdateArc() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddonsCreateOrUpdateHCX() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_HCX.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task Update_AddonsCreateOrUpdateHCX() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddonsCreateOrUpdateSRM() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_SRM.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -265,7 +265,7 @@ public async Task Update_AddonsCreateOrUpdateSRM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AddonsCreateOrUpdateVR() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_CreateOrUpdate_VR.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json // this example is just showing the usage of "Addons_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -302,7 +302,7 @@ public async Task Update_AddonsCreateOrUpdateVR() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_AddonsDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Addons_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Delete.json // this example is just showing the usage of "Addons_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterCollection.cs index 00838e47f86de..58e10f984d024 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AvsPrivateCloudClusterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ClustersList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_List.json // this example is just showing the usage of "Clusters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ClustersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ClustersGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_ClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ClustersGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_ClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ClustersGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_ClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ClustersCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_CreateOrUpdate.json // this example is just showing the usage of "Clusters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterResource.cs index b8a434f0e605c..834b89bf28006 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AvsPrivateCloudClusterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ClustersGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json // this example is just showing the usage of "Clusters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ClustersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ClustersUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Update.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Update.json // this example is just showing the usage of "Clusters_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_ClustersUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ClustersDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Delete.json // this example is just showing the usage of "Clusters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,12 +112,12 @@ public async Task Delete_ClustersDelete() Console.WriteLine($"Succeeded"); } - // Clusters_ListZoneData + // Clusters_ListZones [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetZones_ClustersListZoneData() + public async Task GetZones_ClustersListZones() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_ListZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones.json // this example is just showing the usage of "Clusters_ListZones" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,12 +143,12 @@ public async Task GetZones_ClustersListZoneData() Console.WriteLine($"Succeeded"); } - // Clusters_ListZoneData_Stretched + // Clusters_ListZones_Stretched [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetZones_ClustersListZoneDataStretched() + public async Task GetZones_ClustersListZonesStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Clusters_ListZones_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones_Stretched.json // this example is just showing the usage of "Clusters_ListZones" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineCollection.cs index bcc7309224a23..8ec45e4f28ad6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineCollection.cs @@ -14,12 +14,12 @@ namespace Azure.ResourceManager.Avs.Samples { public partial class Sample_AvsPrivateCloudClusterVirtualMachineCollection { - // ListClusterVirtualMachines + // VirtualMachines_List [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_ListClusterVirtualMachines() + public async Task GetAll_VirtualMachinesList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_List.json // this example is just showing the usage of "VirtualMachines_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,12 +52,12 @@ public async Task GetAll_ListClusterVirtualMachines() Console.WriteLine($"Succeeded"); } - // GetVirtualMachine + // VirtualMachines_Get [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVirtualMachine() + public async Task Get_VirtualMachinesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,12 +88,12 @@ public async Task Get_GetVirtualMachine() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // GetVirtualMachine + // VirtualMachines_Get [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_GetVirtualMachine() + public async Task Exists_VirtualMachinesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,12 +120,12 @@ public async Task Exists_GetVirtualMachine() Console.WriteLine($"Succeeded: {result}"); } - // GetVirtualMachine + // VirtualMachines_Get [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_GetVirtualMachine() + public async Task GetIfExists_VirtualMachinesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineResource.cs index ac16b1681c03e..76013cb88ddac 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudClusterVirtualMachineResource.cs @@ -15,12 +15,12 @@ namespace Azure.ResourceManager.Avs.Samples { public partial class Sample_AvsPrivateCloudClusterVirtualMachineResource { - // GetVirtualMachine + // VirtualMachines_Get [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_GetVirtualMachine() + public async Task Get_VirtualMachinesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json // this example is just showing the usage of "VirtualMachines_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,12 +48,12 @@ public async Task Get_GetVirtualMachine() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - // VirtualMachine_RestrictMovement + // VirtualMachines_RestrictMovement [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RestrictMovement_VirtualMachineRestrictMovement() + public async Task RestrictMovement_VirtualMachinesRestrictMovement() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/VirtualMachines_RestrictMovement.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_RestrictMovement.json // this example is just showing the usage of "VirtualMachines_RestrictMovement" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudCollection.cs index 7c7995b2c2310..22ef33bd01a9f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_AvsPrivateCloudCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PrivateCloudsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List.json // this example is just showing the usage of "PrivateClouds_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_PrivateCloudsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PrivateCloudsListStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_List_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List_Stretched.json // this example is just showing the usage of "PrivateClouds_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task GetAll_PrivateCloudsListStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateCloudsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Get_PrivateCloudsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateCloudsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task Exists_PrivateCloudsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PrivateCloudsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task GetIfExists_PrivateCloudsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateCloudsGetStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -234,7 +234,7 @@ public async Task Get_PrivateCloudsGetStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PrivateCloudsGetStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -264,7 +264,7 @@ public async Task Exists_PrivateCloudsGetStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PrivateCloudsGetStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -306,7 +306,7 @@ public async Task GetIfExists_PrivateCloudsGetStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateCloudsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate.json // this example is just showing the usage of "PrivateClouds_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -353,7 +353,7 @@ public async Task CreateOrUpdate_PrivateCloudsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PrivateCloudsCreateOrUpdateStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_CreateOrUpdate_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate_Stretched.json // this example is just showing the usage of "PrivateClouds_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreCollection.cs index 459d13c2cd106..17e983410c373 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_AvsPrivateCloudDatastoreCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_DatastoresList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_List.json // this example is just showing the usage of "Datastores_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_DatastoresList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DatastoresGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_DatastoresGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_DatastoresGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_DatastoresGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_DatastoresGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task GetIfExists_DatastoresGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_DatastoresCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreResource.cs index 74bda58061dd4..e6ba3e5f1ef80 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudDatastoreResource.cs @@ -19,7 +19,7 @@ public partial class Sample_AvsPrivateCloudDatastoreResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DatastoresGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json // this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_DatastoresGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DatastoresCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json // this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_DatastoresCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DatastoresDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Datastores_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Delete.json // this example is just showing the usage of "Datastores_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudResource.cs index ef63bb95d34f6..0bf60ee5e38e5 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_AvsPrivateCloudResource.cs @@ -22,7 +22,7 @@ public partial class Sample_AvsPrivateCloudResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvsPrivateClouds_PrivateCloudsListInSubscription() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_ListInSubscription.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription.json // this example is just showing the usage of "PrivateClouds_ListInSubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task GetAvsPrivateClouds_PrivateCloudsListInSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvsPrivateClouds_PrivateCloudsListInSubscriptionStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_ListInSubscription_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription_Stretched.json // this example is just showing the usage of "PrivateClouds_ListInSubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task GetAvsPrivateClouds_PrivateCloudsListInSubscriptionStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateCloudsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Get_PrivateCloudsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PrivateCloudsGetStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Get_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json // this example is just showing the usage of "PrivateClouds_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Get_PrivateCloudsGetStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PrivateCloudsUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Update.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update.json // this example is just showing the usage of "PrivateClouds_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Update_PrivateCloudsUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PrivateCloudsUpdateStretched() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Update_Stretched.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update_Stretched.json // this example is just showing the usage of "PrivateClouds_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -237,7 +237,7 @@ public async Task Update_PrivateCloudsUpdateStretched() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PrivateCloudsDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Delete.json // this example is just showing the usage of "PrivateClouds_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -259,13 +259,13 @@ public async Task Delete_PrivateCloudsDelete() Console.WriteLine($"Succeeded"); } - // PrivateClouds_RotateVcenterPassword + // PrivateClouds_ListAdminCredentials [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task RotateVCenterPassword_PrivateCloudsRotateVcenterPassword() + public async Task GetAdminCredentials_PrivateCloudsListAdminCredentials() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_RotateVcenterPassword.json - // this example is just showing the usage of "PrivateClouds_RotateVcenterPassword" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListAdminCredentials.json + // this example is just showing the usage of "PrivateClouds_ListAdminCredentials" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -281,9 +281,9 @@ public async Task RotateVCenterPassword_PrivateCloudsRotateVcenterPassword() AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); // invoke the operation - await avsPrivateCloud.RotateVCenterPasswordAsync(WaitUntil.Completed); + AdminCredentials result = await avsPrivateCloud.GetAdminCredentialsAsync(); - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // PrivateClouds_RotateNsxtPassword @@ -291,7 +291,7 @@ public async Task RotateVCenterPassword_PrivateCloudsRotateVcenterPassword() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RotateNsxtPassword_PrivateCloudsRotateNsxtPassword() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_RotateNsxtPassword.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateNsxtPassword.json // this example is just showing the usage of "PrivateClouds_RotateNsxtPassword" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -313,13 +313,13 @@ public async Task RotateNsxtPassword_PrivateCloudsRotateNsxtPassword() Console.WriteLine($"Succeeded"); } - // PrivateClouds_ListAdminCredentials + // PrivateClouds_RotateVcenterPassword [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAdminCredentials_PrivateCloudsListAdminCredentials() + public async Task RotateVCenterPassword_PrivateCloudsRotateVcenterPassword() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PrivateClouds_ListAdminCredentials.json - // this example is just showing the usage of "PrivateClouds_ListAdminCredentials" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateVcenterPassword.json + // this example is just showing the usage of "PrivateClouds_RotateVcenterPassword" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -335,9 +335,9 @@ public async Task GetAdminCredentials_PrivateCloudsListAdminCredentials() AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); // invoke the operation - AdminCredentials result = await avsPrivateCloud.GetAdminCredentialsAsync(); + await avsPrivateCloud.RotateVCenterPasswordAsync(WaitUntil.Completed); - Console.WriteLine($"Succeeded: {result}"); + Console.WriteLine($"Succeeded"); } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationCollection.cs index 21afbaabbd172..34dd8b0e06791 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteAuthorizationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_AuthorizationsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_List.json // this example is just showing the usage of "Authorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_AuthorizationsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AuthorizationsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json // this example is just showing the usage of "Authorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_AuthorizationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_AuthorizationsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json // this example is just showing the usage of "Authorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_AuthorizationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_AuthorizationsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json // this example is just showing the usage of "Authorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_AuthorizationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_AuthorizationsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json // this example is just showing the usage of "Authorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationResource.cs index 951e309f5a9d0..fb38608bdacf4 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ExpressRouteAuthorizationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteAuthorizationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_AuthorizationsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json // this example is just showing the usage of "Authorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_AuthorizationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_AuthorizationsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json // this example is just showing the usage of "Authorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Update_AuthorizationsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_AuthorizationsDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Authorizations_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Delete.json // this example is just showing the usage of "Authorizations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionCollection.cs index ba10eb4d52cf8..4409b20d3ce40 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_GlobalReachConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GlobalReachConnectionsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_List.json // this example is just showing the usage of "GlobalReachConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_GlobalReachConnectionsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GlobalReachConnectionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json // this example is just showing the usage of "GlobalReachConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GlobalReachConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GlobalReachConnectionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json // this example is just showing the usage of "GlobalReachConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GlobalReachConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GlobalReachConnectionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json // this example is just showing the usage of "GlobalReachConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_GlobalReachConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_GlobalReachConnectionsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_CreateOrUpdate.json // this example is just showing the usage of "GlobalReachConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionResource.cs index 1f1251b85a9db..0667edf1c2f15 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_GlobalReachConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_GlobalReachConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GlobalReachConnectionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json // this example is just showing the usage of "GlobalReachConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GlobalReachConnectionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_GlobalReachConnectionsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_CreateOrUpdate.json // this example is just showing the usage of "GlobalReachConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_GlobalReachConnectionsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_GlobalReachConnectionsDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/GlobalReachConnections_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Delete.json // this example is just showing the usage of "GlobalReachConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteCollection.cs index bd52e286585a2..3e345fc331243 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_HcxEnterpriseSiteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_HcxEnterpriseSitesList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_List.json // this example is just showing the usage of "HcxEnterpriseSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_HcxEnterpriseSitesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HcxEnterpriseSitesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json // this example is just showing the usage of "HcxEnterpriseSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_HcxEnterpriseSitesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_HcxEnterpriseSitesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json // this example is just showing the usage of "HcxEnterpriseSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_HcxEnterpriseSitesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_HcxEnterpriseSitesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json // this example is just showing the usage of "HcxEnterpriseSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_HcxEnterpriseSitesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_HcxEnterpriseSitesCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate.json // this example is just showing the usage of "HcxEnterpriseSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteResource.cs index 707c8af2c4c72..2518d2f3ae684 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_HcxEnterpriseSiteResource.cs @@ -19,7 +19,7 @@ public partial class Sample_HcxEnterpriseSiteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HcxEnterpriseSitesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json // this example is just showing the usage of "HcxEnterpriseSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_HcxEnterpriseSitesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_HcxEnterpriseSitesCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate.json // this example is just showing the usage of "HcxEnterpriseSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Update_HcxEnterpriseSitesCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_HcxEnterpriseSitesDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/HcxEnterpriseSites_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Delete.json // this example is just showing the usage of "HcxEnterpriseSites_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_IscsiPathResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_IscsiPathResource.cs new file mode 100644 index 0000000000000..cca16b9612f0e --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_IscsiPathResource.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; + +namespace Azure.ResourceManager.Avs.Samples +{ + public partial class Sample_IscsiPathResource + { + // IscsiPaths_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_IscsiPathsGet() + { + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Get.json + // this example is just showing the usage of "IscsiPaths_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this IscsiPathResource created on azure + // for more information of creating IscsiPathResource, please refer to the document of IscsiPathResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "group1"; + string privateCloudName = "cloud1"; + ResourceIdentifier iscsiPathResourceId = IscsiPathResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + IscsiPathResource iscsiPath = client.GetIscsiPathResource(iscsiPathResourceId); + + // invoke the operation + IscsiPathResource result = await iscsiPath.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + IscsiPathData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // IscsiPaths_CreateOrUpdate + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_IscsiPathsCreateOrUpdate() + { + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_CreateOrUpdate.json + // this example is just showing the usage of "IscsiPaths_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this IscsiPathResource created on azure + // for more information of creating IscsiPathResource, please refer to the document of IscsiPathResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "group1"; + string privateCloudName = "cloud1"; + ResourceIdentifier iscsiPathResourceId = IscsiPathResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + IscsiPathResource iscsiPath = client.GetIscsiPathResource(iscsiPathResourceId); + + // invoke the operation + IscsiPathData data = new IscsiPathData() + { + NetworkBlock = "192.168.0.0/24", + }; + ArmOperation lro = await iscsiPath.CreateOrUpdateAsync(WaitUntil.Completed, data); + IscsiPathResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + IscsiPathData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // IscsiPaths_Delete + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_IscsiPathsDelete() + { + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Delete.json + // this example is just showing the usage of "IscsiPaths_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this IscsiPathResource created on azure + // for more information of creating IscsiPathResource, please refer to the document of IscsiPathResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "group1"; + string privateCloudName = "cloud1"; + ResourceIdentifier iscsiPathResourceId = IscsiPathResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + IscsiPathResource iscsiPath = client.GetIscsiPathResource(iscsiPathResourceId); + + // invoke the operation + await iscsiPath.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyCollection.cs index 015d7af8be8b0..97c96b7da30eb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_PlacementPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_PlacementPoliciesList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_List.json // this example is just showing the usage of "PlacementPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_PlacementPoliciesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PlacementPoliciesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json // this example is just showing the usage of "PlacementPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_PlacementPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PlacementPoliciesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json // this example is just showing the usage of "PlacementPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_PlacementPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_PlacementPoliciesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json // this example is just showing the usage of "PlacementPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task GetIfExists_PlacementPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PlacementPoliciesCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_CreateOrUpdate.json // this example is just showing the usage of "PlacementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyResource.cs index 344be46edfa0e..0262294ee972f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_PlacementPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PlacementPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PlacementPoliciesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json // this example is just showing the usage of "PlacementPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_PlacementPoliciesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PlacementPoliciesUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Update.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Update.json // this example is just showing the usage of "PlacementPolicies_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Update_PlacementPoliciesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_PlacementPoliciesDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/PlacementPolicies_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Delete.json // this example is just showing the usage of "PlacementPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletCollection.cs index 446da6f164ad2..c838a873b5d68 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ScriptCmdletCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScriptCmdletsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptCmdlets_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_List.json // this example is just showing the usage of "ScriptCmdlets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ScriptCmdletsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptCmdletsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptCmdlets_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json // this example is just showing the usage of "ScriptCmdlets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_ScriptCmdletsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScriptCmdletsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptCmdlets_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json // this example is just showing the usage of "ScriptCmdlets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_ScriptCmdletsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScriptCmdletsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptCmdlets_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json // this example is just showing the usage of "ScriptCmdlets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletResource.cs index 4a658cf821ece..c6053d9240d1d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptCmdletResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScriptCmdletResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptCmdletsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptCmdlets_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json // this example is just showing the usage of "ScriptCmdlets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionCollection.cs index 5c1f999343417..7c677e0cba5af 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ScriptExecutionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScriptExecutionsList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_List.json // this example is just showing the usage of "ScriptExecutions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ScriptExecutionsList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptExecutionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json // this example is just showing the usage of "ScriptExecutions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_ScriptExecutionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScriptExecutionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json // this example is just showing the usage of "ScriptExecutions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_ScriptExecutionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScriptExecutionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json // this example is just showing the usage of "ScriptExecutions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_ScriptExecutionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ScriptExecutionsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate.json // this example is just showing the usage of "ScriptExecutions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionResource.cs index ba0859a6be1fc..8f3abf58df029 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptExecutionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ScriptExecutionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptExecutionsGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json // this example is just showing the usage of "ScriptExecutions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_ScriptExecutionsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ScriptExecutionsCreateOrUpdate() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_CreateOrUpdate.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate.json // this example is just showing the usage of "ScriptExecutions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Update_ScriptExecutionsCreateOrUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ScriptExecutionsDelete() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_Delete.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Delete.json // this example is just showing the usage of "ScriptExecutions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Delete_ScriptExecutionsDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExecutionLogs_ScriptExecutionsGetExecutionLogs() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptExecutions_GetExecutionLogs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_GetExecutionLogs.json // this example is just showing the usage of "ScriptExecutions_GetExecutionLogs" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageCollection.cs index a5468e1e4e034..6dfd7e0deae6c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ScriptPackageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ScriptPackagesList() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptPackages_List.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_List.json // this example is just showing the usage of "ScriptPackages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ScriptPackagesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptPackagesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptPackages_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json // this example is just showing the usage of "ScriptPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_ScriptPackagesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ScriptPackagesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptPackages_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json // this example is just showing the usage of "ScriptPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_ScriptPackagesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_ScriptPackagesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptPackages_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json // this example is just showing the usage of "ScriptPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageResource.cs index dcdf7ae69c0fa..cd26e2e6b8a3a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_ScriptPackageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScriptPackageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ScriptPackagesGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/ScriptPackages_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json // this example is just showing the usage of "ScriptPackages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 0a45ea8ba50db..f9c21b9586e89 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -16,13 +16,13 @@ namespace Azure.ResourceManager.Avs.Samples { public partial class Sample_SubscriptionResourceExtensions { - // Locations_CheckTrialAvailability + // Locations_CheckQuotaAvailability [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailability() + public async Task CheckAvsQuotaAvailability_LocationsCheckQuotaAvailability() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Locations_CheckTrialAvailability.json - // this example is just showing the usage of "Locations_CheckTrialAvailability" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckQuotaAvailability.json + // this example is just showing the usage of "Locations_CheckQuotaAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -37,17 +37,17 @@ public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailability() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - AvsSubscriptionTrialAvailabilityResult result = await subscriptionResource.CheckAvsTrialAvailabilityAsync(location); + AvsSubscriptionQuotaAvailabilityResult result = await subscriptionResource.CheckAvsQuotaAvailabilityAsync(location); Console.WriteLine($"Succeeded: {result}"); } - // Locations_CheckTrialAvailabilityWithSku + // Locations_CheckTrialAvailability [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailabilityWithSku() + public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailability() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Locations_CheckTrialAvailabilityWithSku.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailability.json // this example is just showing the usage of "Locations_CheckTrialAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,19 +63,18 @@ public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailabilityWithS // invoke the operation AzureLocation location = new AzureLocation("eastus"); - AvsSku sku = new AvsSku("avs52t"); - AvsSubscriptionTrialAvailabilityResult result = await subscriptionResource.CheckAvsTrialAvailabilityAsync(location, sku: sku); + AvsSubscriptionTrialAvailabilityResult result = await subscriptionResource.CheckAvsTrialAvailabilityAsync(location); Console.WriteLine($"Succeeded: {result}"); } - // Locations_CheckQuotaAvailability + // Locations_CheckTrialAvailabilityWithSku [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CheckAvsQuotaAvailability_LocationsCheckQuotaAvailability() + public async Task CheckAvsTrialAvailability_LocationsCheckTrialAvailabilityWithSku() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/Locations_CheckQuotaAvailability.json - // this example is just showing the usage of "Locations_CheckQuotaAvailability" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailabilityWithSku.json + // this example is just showing the usage of "Locations_CheckTrialAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -90,7 +89,8 @@ public async Task CheckAvsQuotaAvailability_LocationsCheckQuotaAvailability() // invoke the operation AzureLocation location = new AzureLocation("eastus"); - AvsSubscriptionQuotaAvailabilityResult result = await subscriptionResource.CheckAvsQuotaAvailabilityAsync(location); + AvsSku sku = new AvsSku("avs52t"); + AvsSubscriptionTrialAvailabilityResult result = await subscriptionResource.CheckAvsTrialAvailabilityAsync(location, sku: sku); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkCollection.cs deleted file mode 100644 index 6e1dd3163226c..0000000000000 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkCollection.cs +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; -using Azure.ResourceManager.Avs.Models; - -namespace Azure.ResourceManager.Avs.Samples -{ - public partial class Sample_WorkloadNetworkCollection - { - // WorkloadNetworks_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_WorkloadNetworksGet() - { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_Get.json - // this example is just showing the usage of "WorkloadNetworks_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "group1"; - string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); - - // get the collection of this WorkloadNetworkResource - WorkloadNetworkCollection collection = avsPrivateCloud.GetWorkloadNetworks(); - - // invoke the operation - WorkloadNetworkName workloadNetworkName = WorkloadNetworkName.Default; - WorkloadNetworkResource result = await collection.GetAsync(workloadNetworkName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - WorkloadNetworkData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // WorkloadNetworks_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_WorkloadNetworksGet() - { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_Get.json - // this example is just showing the usage of "WorkloadNetworks_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "group1"; - string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); - - // get the collection of this WorkloadNetworkResource - WorkloadNetworkCollection collection = avsPrivateCloud.GetWorkloadNetworks(); - - // invoke the operation - WorkloadNetworkName workloadNetworkName = WorkloadNetworkName.Default; - bool result = await collection.ExistsAsync(workloadNetworkName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // WorkloadNetworks_Get - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_WorkloadNetworksGet() - { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_Get.json - // this example is just showing the usage of "WorkloadNetworks_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "group1"; - string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); - - // get the collection of this WorkloadNetworkResource - WorkloadNetworkCollection collection = avsPrivateCloud.GetWorkloadNetworks(); - - // invoke the operation - WorkloadNetworkName workloadNetworkName = WorkloadNetworkName.Default; - NullableResponse response = await collection.GetIfExistsAsync(workloadNetworkName); - WorkloadNetworkResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine($"Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - WorkloadNetworkData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // WorkloadNetworks_List - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_WorkloadNetworksList() - { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_List.json - // this example is just showing the usage of "WorkloadNetworks_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "group1"; - string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); - - // get the collection of this WorkloadNetworkResource - WorkloadNetworkCollection collection = avsPrivateCloud.GetWorkloadNetworks(); - - // invoke the operation and iterate over the result - await foreach (WorkloadNetworkResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - WorkloadNetworkData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs index f76e5d3bd8b64..bf80126773424 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkDhcpCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDhcp.json // this example is just showing the usage of "WorkloadNetworks_ListDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -28,16 +28,16 @@ public async Task GetAll_WorkloadNetworksListDhcp() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDhcpResource - WorkloadNetworkDhcpCollection collection = avsPrivateCloud.GetWorkloadNetworkDhcps(); + WorkloadNetworkDhcpCollection collection = workloadNetwork.GetWorkloadNetworkDhcps(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkDhcpResource item in collection.GetAllAsync()) @@ -57,7 +57,7 @@ public async Task GetAll_WorkloadNetworksListDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json // this example is just showing the usage of "WorkloadNetworks_GetDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,16 +65,16 @@ public async Task Get_WorkloadNetworksGetDhcp() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDhcpResource - WorkloadNetworkDhcpCollection collection = avsPrivateCloud.GetWorkloadNetworkDhcps(); + WorkloadNetworkDhcpCollection collection = workloadNetwork.GetWorkloadNetworkDhcps(); // invoke the operation string dhcpId = "dhcp1"; @@ -92,7 +92,7 @@ public async Task Get_WorkloadNetworksGetDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json // this example is just showing the usage of "WorkloadNetworks_GetDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,16 +100,16 @@ public async Task Exists_WorkloadNetworksGetDhcp() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDhcpResource - WorkloadNetworkDhcpCollection collection = avsPrivateCloud.GetWorkloadNetworkDhcps(); + WorkloadNetworkDhcpCollection collection = workloadNetwork.GetWorkloadNetworkDhcps(); // invoke the operation string dhcpId = "dhcp1"; @@ -123,7 +123,7 @@ public async Task Exists_WorkloadNetworksGetDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json // this example is just showing the usage of "WorkloadNetworks_GetDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,16 +131,16 @@ public async Task GetIfExists_WorkloadNetworksGetDhcp() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDhcpResource - WorkloadNetworkDhcpCollection collection = avsPrivateCloud.GetWorkloadNetworkDhcps(); + WorkloadNetworkDhcpCollection collection = workloadNetwork.GetWorkloadNetworkDhcps(); // invoke the operation string dhcpId = "dhcp1"; @@ -166,7 +166,7 @@ public async Task GetIfExists_WorkloadNetworksGetDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreateDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreateDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDhcp.json // this example is just showing the usage of "WorkloadNetworks_CreateDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,16 +174,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDhcp() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDhcpResource - WorkloadNetworkDhcpCollection collection = avsPrivateCloud.GetWorkloadNetworkDhcps(); + WorkloadNetworkDhcpCollection collection = workloadNetwork.GetWorkloadNetworkDhcps(); // invoke the operation string dhcpId = "dhcp1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs index 81d22c50e1a99..90c75fef3af24 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDhcpResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkDhcpResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json // this example is just showing the usage of "WorkloadNetworks_GetDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_WorkloadNetworksGetDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdateDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdateDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDhcp.json // this example is just showing the usage of "WorkloadNetworks_UpdateDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_WorkloadNetworksUpdateDhcp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeleteDhcp() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeleteDhcpConfigurations.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDhcp.json // this example is just showing the usage of "WorkloadNetworks_DeleteDhcp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs index 14198d88c7ef7..b6a38ca5c51ca 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_WorkloadNetworkDnsServiceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListDnsServices() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsServices.json // this example is just showing the usage of "WorkloadNetworks_ListDnsServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -29,16 +29,16 @@ public async Task GetAll_WorkloadNetworksListDnsServices() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsServiceResource - WorkloadNetworkDnsServiceCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsServices(); + WorkloadNetworkDnsServiceCollection collection = workloadNetwork.GetWorkloadNetworkDnsServices(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkDnsServiceResource item in collection.GetAllAsync()) @@ -58,7 +58,7 @@ public async Task GetAll_WorkloadNetworksListDnsServices() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.json // this example is just showing the usage of "WorkloadNetworks_GetDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -66,16 +66,16 @@ public async Task Get_WorkloadNetworksGetDnsService() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsServiceResource - WorkloadNetworkDnsServiceCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsServices(); + WorkloadNetworkDnsServiceCollection collection = workloadNetwork.GetWorkloadNetworkDnsServices(); // invoke the operation string dnsServiceId = "dnsService1"; @@ -93,7 +93,7 @@ public async Task Get_WorkloadNetworksGetDnsService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.json // this example is just showing the usage of "WorkloadNetworks_GetDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,16 +101,16 @@ public async Task Exists_WorkloadNetworksGetDnsService() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsServiceResource - WorkloadNetworkDnsServiceCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsServices(); + WorkloadNetworkDnsServiceCollection collection = workloadNetwork.GetWorkloadNetworkDnsServices(); // invoke the operation string dnsServiceId = "dnsService1"; @@ -124,7 +124,7 @@ public async Task Exists_WorkloadNetworksGetDnsService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.json // this example is just showing the usage of "WorkloadNetworks_GetDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,16 +132,16 @@ public async Task GetIfExists_WorkloadNetworksGetDnsService() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsServiceResource - WorkloadNetworkDnsServiceCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsServices(); + WorkloadNetworkDnsServiceCollection collection = workloadNetwork.GetWorkloadNetworkDnsServices(); // invoke the operation string dnsServiceId = "dnsService1"; @@ -167,7 +167,7 @@ public async Task GetIfExists_WorkloadNetworksGetDnsService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreateDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreateDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsService.json // this example is just showing the usage of "WorkloadNetworks_CreateDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,16 +175,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDnsService() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsServiceResource - WorkloadNetworkDnsServiceCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsServices(); + WorkloadNetworkDnsServiceCollection collection = workloadNetwork.GetWorkloadNetworkDnsServices(); // invoke the operation string dnsServiceId = "dnsService1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs index ee643e2706cf7..b79fb25c34802 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsServiceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_WorkloadNetworkDnsServiceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.json // this example is just showing the usage of "WorkloadNetworks_GetDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_WorkloadNetworksGetDnsService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdateDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdateDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsService.json // this example is just showing the usage of "WorkloadNetworks_UpdateDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_WorkloadNetworksUpdateDnsService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeleteDnsService() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeleteDnsServices.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsService.json // this example is just showing the usage of "WorkloadNetworks_DeleteDnsService" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs index c36f37995d584..ade72e22f61b5 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkDnsZoneCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListDnsZones() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsZones.json // this example is just showing the usage of "WorkloadNetworks_ListDnsZones" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -28,16 +28,16 @@ public async Task GetAll_WorkloadNetworksListDnsZones() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsZoneResource - WorkloadNetworkDnsZoneCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsZones(); + WorkloadNetworkDnsZoneCollection collection = workloadNetwork.GetWorkloadNetworkDnsZones(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkDnsZoneResource item in collection.GetAllAsync()) @@ -57,7 +57,7 @@ public async Task GetAll_WorkloadNetworksListDnsZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json // this example is just showing the usage of "WorkloadNetworks_GetDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,16 +65,16 @@ public async Task Get_WorkloadNetworksGetDnsZone() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsZoneResource - WorkloadNetworkDnsZoneCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsZones(); + WorkloadNetworkDnsZoneCollection collection = workloadNetwork.GetWorkloadNetworkDnsZones(); // invoke the operation string dnsZoneId = "dnsZone1"; @@ -92,7 +92,7 @@ public async Task Get_WorkloadNetworksGetDnsZone() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json // this example is just showing the usage of "WorkloadNetworks_GetDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,16 +100,16 @@ public async Task Exists_WorkloadNetworksGetDnsZone() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsZoneResource - WorkloadNetworkDnsZoneCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsZones(); + WorkloadNetworkDnsZoneCollection collection = workloadNetwork.GetWorkloadNetworkDnsZones(); // invoke the operation string dnsZoneId = "dnsZone1"; @@ -123,7 +123,7 @@ public async Task Exists_WorkloadNetworksGetDnsZone() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json // this example is just showing the usage of "WorkloadNetworks_GetDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,16 +131,16 @@ public async Task GetIfExists_WorkloadNetworksGetDnsZone() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsZoneResource - WorkloadNetworkDnsZoneCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsZones(); + WorkloadNetworkDnsZoneCollection collection = workloadNetwork.GetWorkloadNetworkDnsZones(); // invoke the operation string dnsZoneId = "dnsZone1"; @@ -166,7 +166,7 @@ public async Task GetIfExists_WorkloadNetworksGetDnsZone() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreateDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreateDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsZone.json // this example is just showing the usage of "WorkloadNetworks_CreateDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,16 +174,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateDnsZone() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkDnsZoneResource - WorkloadNetworkDnsZoneCollection collection = avsPrivateCloud.GetWorkloadNetworkDnsZones(); + WorkloadNetworkDnsZoneCollection collection = workloadNetwork.GetWorkloadNetworkDnsZones(); // invoke the operation string dnsZoneId = "dnsZone1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs index 09db3754310e7..8fbf6d24485dd 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkDnsZoneResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkDnsZoneResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json // this example is just showing the usage of "WorkloadNetworks_GetDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_WorkloadNetworksGetDnsZone() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdateDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdateDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsZone.json // this example is just showing the usage of "WorkloadNetworks_UpdateDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_WorkloadNetworksUpdateDnsZone() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeleteDnsZone() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeleteDnsZones.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsZone.json // this example is just showing the usage of "WorkloadNetworks_DeleteDnsZone" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayCollection.cs index 846d8352548a7..5b3c12ff4fce9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListGateways() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListGateways.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListGateways.json // this example is just showing the usage of "WorkloadNetworks_ListGateways" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -27,16 +27,16 @@ public async Task GetAll_WorkloadNetworksListGateways() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkGatewayResource - WorkloadNetworkGatewayCollection collection = avsPrivateCloud.GetWorkloadNetworkGateways(); + WorkloadNetworkGatewayCollection collection = workloadNetwork.GetWorkloadNetworkGateways(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkGatewayResource item in collection.GetAllAsync()) @@ -56,7 +56,7 @@ public async Task GetAll_WorkloadNetworksListGateways() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetGateway() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetGateway.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json // this example is just showing the usage of "WorkloadNetworks_GetGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,16 +64,16 @@ public async Task Get_WorkloadNetworksGetGateway() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkGatewayResource - WorkloadNetworkGatewayCollection collection = avsPrivateCloud.GetWorkloadNetworkGateways(); + WorkloadNetworkGatewayCollection collection = workloadNetwork.GetWorkloadNetworkGateways(); // invoke the operation string gatewayId = "gateway1"; @@ -91,7 +91,7 @@ public async Task Get_WorkloadNetworksGetGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetGateway() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetGateway.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json // this example is just showing the usage of "WorkloadNetworks_GetGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,16 +99,16 @@ public async Task Exists_WorkloadNetworksGetGateway() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkGatewayResource - WorkloadNetworkGatewayCollection collection = avsPrivateCloud.GetWorkloadNetworkGateways(); + WorkloadNetworkGatewayCollection collection = workloadNetwork.GetWorkloadNetworkGateways(); // invoke the operation string gatewayId = "gateway1"; @@ -122,7 +122,7 @@ public async Task Exists_WorkloadNetworksGetGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetGateway() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetGateway.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json // this example is just showing the usage of "WorkloadNetworks_GetGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,16 +130,16 @@ public async Task GetIfExists_WorkloadNetworksGetGateway() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkGatewayResource - WorkloadNetworkGatewayCollection collection = avsPrivateCloud.GetWorkloadNetworkGateways(); + WorkloadNetworkGatewayCollection collection = workloadNetwork.GetWorkloadNetworkGateways(); // invoke the operation string gatewayId = "gateway1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayResource.cs index 90b4a7b379082..4424a705bee7d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkGatewayResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetGateway() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetGateway.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json // this example is just showing the usage of "WorkloadNetworks_GetGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs index 3a40a25615c89..191da498a55d2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkPortMirroringProfileCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListPortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListPortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPortMirroring.json // this example is just showing the usage of "WorkloadNetworks_ListPortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -28,16 +28,16 @@ public async Task GetAll_WorkloadNetworksListPortMirroring() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPortMirroringProfileResource - WorkloadNetworkPortMirroringProfileCollection collection = avsPrivateCloud.GetWorkloadNetworkPortMirroringProfiles(); + WorkloadNetworkPortMirroringProfileCollection collection = workloadNetwork.GetWorkloadNetworkPortMirroringProfiles(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkPortMirroringProfileResource item in collection.GetAllAsync()) @@ -57,7 +57,7 @@ public async Task GetAll_WorkloadNetworksListPortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetPortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.json // this example is just showing the usage of "WorkloadNetworks_GetPortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,16 +65,16 @@ public async Task Get_WorkloadNetworksGetPortMirroring() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPortMirroringProfileResource - WorkloadNetworkPortMirroringProfileCollection collection = avsPrivateCloud.GetWorkloadNetworkPortMirroringProfiles(); + WorkloadNetworkPortMirroringProfileCollection collection = workloadNetwork.GetWorkloadNetworkPortMirroringProfiles(); // invoke the operation string portMirroringId = "portMirroring1"; @@ -92,7 +92,7 @@ public async Task Get_WorkloadNetworksGetPortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetPortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.json // this example is just showing the usage of "WorkloadNetworks_GetPortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,16 +100,16 @@ public async Task Exists_WorkloadNetworksGetPortMirroring() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPortMirroringProfileResource - WorkloadNetworkPortMirroringProfileCollection collection = avsPrivateCloud.GetWorkloadNetworkPortMirroringProfiles(); + WorkloadNetworkPortMirroringProfileCollection collection = workloadNetwork.GetWorkloadNetworkPortMirroringProfiles(); // invoke the operation string portMirroringId = "portMirroring1"; @@ -123,7 +123,7 @@ public async Task Exists_WorkloadNetworksGetPortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetPortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.json // this example is just showing the usage of "WorkloadNetworks_GetPortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,16 +131,16 @@ public async Task GetIfExists_WorkloadNetworksGetPortMirroring() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPortMirroringProfileResource - WorkloadNetworkPortMirroringProfileCollection collection = avsPrivateCloud.GetWorkloadNetworkPortMirroringProfiles(); + WorkloadNetworkPortMirroringProfileCollection collection = workloadNetwork.GetWorkloadNetworkPortMirroringProfiles(); // invoke the operation string portMirroringId = "portMirroring1"; @@ -166,7 +166,7 @@ public async Task GetIfExists_WorkloadNetworksGetPortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreatePortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreatePortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePortMirroring.json // this example is just showing the usage of "WorkloadNetworks_CreatePortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,16 +174,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreatePortMirroring() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPortMirroringProfileResource - WorkloadNetworkPortMirroringProfileCollection collection = avsPrivateCloud.GetWorkloadNetworkPortMirroringProfiles(); + WorkloadNetworkPortMirroringProfileCollection collection = workloadNetwork.GetWorkloadNetworkPortMirroringProfiles(); // invoke the operation string portMirroringId = "portMirroring1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs index 9b5c728469017..bcd241230a748 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPortMirroringProfileResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkPortMirroringProfileResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetPortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.json // this example is just showing the usage of "WorkloadNetworks_GetPortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_WorkloadNetworksGetPortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdatePortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdatePortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdatePortMirroring.json // this example is just showing the usage of "WorkloadNetworks_UpdatePortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_WorkloadNetworksUpdatePortMirroring() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeletePortMirroring() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeletePortMirroringProfiles.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePortMirroring.json // this example is just showing the usage of "WorkloadNetworks_DeletePortMirroring" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs index 2d96894f24c24..6a9993e6e531a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkPublicIPCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListPublicIPs() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListPublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPublicIPs.json // this example is just showing the usage of "WorkloadNetworks_ListPublicIPs" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -27,16 +27,16 @@ public async Task GetAll_WorkloadNetworksListPublicIPs() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPublicIPResource - WorkloadNetworkPublicIPCollection collection = avsPrivateCloud.GetWorkloadNetworkPublicIPs(); + WorkloadNetworkPublicIPCollection collection = workloadNetwork.GetWorkloadNetworkPublicIPs(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkPublicIPResource item in collection.GetAllAsync()) @@ -56,7 +56,7 @@ public async Task GetAll_WorkloadNetworksListPublicIPs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetPublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json // this example is just showing the usage of "WorkloadNetworks_GetPublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,16 +64,16 @@ public async Task Get_WorkloadNetworksGetPublicIP() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPublicIPResource - WorkloadNetworkPublicIPCollection collection = avsPrivateCloud.GetWorkloadNetworkPublicIPs(); + WorkloadNetworkPublicIPCollection collection = workloadNetwork.GetWorkloadNetworkPublicIPs(); // invoke the operation string publicIPId = "publicIP1"; @@ -91,7 +91,7 @@ public async Task Get_WorkloadNetworksGetPublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetPublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json // this example is just showing the usage of "WorkloadNetworks_GetPublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,16 +99,16 @@ public async Task Exists_WorkloadNetworksGetPublicIP() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPublicIPResource - WorkloadNetworkPublicIPCollection collection = avsPrivateCloud.GetWorkloadNetworkPublicIPs(); + WorkloadNetworkPublicIPCollection collection = workloadNetwork.GetWorkloadNetworkPublicIPs(); // invoke the operation string publicIPId = "publicIP1"; @@ -122,7 +122,7 @@ public async Task Exists_WorkloadNetworksGetPublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetPublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json // this example is just showing the usage of "WorkloadNetworks_GetPublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,16 +130,16 @@ public async Task GetIfExists_WorkloadNetworksGetPublicIP() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPublicIPResource - WorkloadNetworkPublicIPCollection collection = avsPrivateCloud.GetWorkloadNetworkPublicIPs(); + WorkloadNetworkPublicIPCollection collection = workloadNetwork.GetWorkloadNetworkPublicIPs(); // invoke the operation string publicIPId = "publicIP1"; @@ -165,7 +165,7 @@ public async Task GetIfExists_WorkloadNetworksGetPublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreatePublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreatePublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP.json // this example is just showing the usage of "WorkloadNetworks_CreatePublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,16 +173,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreatePublicIP() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkPublicIPResource - WorkloadNetworkPublicIPCollection collection = avsPrivateCloud.GetWorkloadNetworkPublicIPs(); + WorkloadNetworkPublicIPCollection collection = workloadNetwork.GetWorkloadNetworkPublicIPs(); // invoke the operation string publicIPId = "publicIP1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs index aedba5399d793..e263eb91456bb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkPublicIPResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkPublicIPResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetPublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetPublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json // this example is just showing the usage of "WorkloadNetworks_GetPublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_WorkloadNetworksGetPublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksCreatePublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreatePublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP.json // this example is just showing the usage of "WorkloadNetworks_CreatePublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_WorkloadNetworksCreatePublicIP() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeletePublicIP() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeletePublicIPs.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePublicIP.json // this example is just showing the usage of "WorkloadNetworks_DeletePublicIP" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkResource.cs index e4d7fed513675..9933f04dc2c0f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkResource.cs @@ -9,7 +9,6 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager.Avs.Models; namespace Azure.ResourceManager.Avs.Samples { @@ -20,7 +19,7 @@ public partial class Sample_WorkloadNetworkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGet() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_Get.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_Get.json // this example is just showing the usage of "WorkloadNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -33,8 +32,7 @@ public async Task Get_WorkloadNetworksGet() string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - WorkloadNetworkName workloadNetworkName = WorkloadNetworkName.Default; - ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // invoke the operation diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs index bf410a292c5a2..c0bbc97b4d257 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkSegmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListSegments() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListSegments.json // this example is just showing the usage of "WorkloadNetworks_ListSegments" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -28,16 +28,16 @@ public async Task GetAll_WorkloadNetworksListSegments() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkSegmentResource - WorkloadNetworkSegmentCollection collection = avsPrivateCloud.GetWorkloadNetworkSegments(); + WorkloadNetworkSegmentCollection collection = workloadNetwork.GetWorkloadNetworkSegments(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkSegmentResource item in collection.GetAllAsync()) @@ -57,7 +57,7 @@ public async Task GetAll_WorkloadNetworksListSegments() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetSegment() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json // this example is just showing the usage of "WorkloadNetworks_GetSegment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,16 +65,16 @@ public async Task Get_WorkloadNetworksGetSegment() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkSegmentResource - WorkloadNetworkSegmentCollection collection = avsPrivateCloud.GetWorkloadNetworkSegments(); + WorkloadNetworkSegmentCollection collection = workloadNetwork.GetWorkloadNetworkSegments(); // invoke the operation string segmentId = "segment1"; @@ -92,7 +92,7 @@ public async Task Get_WorkloadNetworksGetSegment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetSegment() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json // this example is just showing the usage of "WorkloadNetworks_GetSegment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,16 +100,16 @@ public async Task Exists_WorkloadNetworksGetSegment() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkSegmentResource - WorkloadNetworkSegmentCollection collection = avsPrivateCloud.GetWorkloadNetworkSegments(); + WorkloadNetworkSegmentCollection collection = workloadNetwork.GetWorkloadNetworkSegments(); // invoke the operation string segmentId = "segment1"; @@ -123,7 +123,7 @@ public async Task Exists_WorkloadNetworksGetSegment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetSegment() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json // this example is just showing the usage of "WorkloadNetworks_GetSegment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,16 +131,16 @@ public async Task GetIfExists_WorkloadNetworksGetSegment() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkSegmentResource - WorkloadNetworkSegmentCollection collection = avsPrivateCloud.GetWorkloadNetworkSegments(); + WorkloadNetworkSegmentCollection collection = workloadNetwork.GetWorkloadNetworkSegments(); // invoke the operation string segmentId = "segment1"; @@ -166,7 +166,7 @@ public async Task GetIfExists_WorkloadNetworksGetSegment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreateSegments() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreateSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateSegments.json // this example is just showing the usage of "WorkloadNetworks_CreateSegments" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,16 +174,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateSegments() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkSegmentResource - WorkloadNetworkSegmentCollection collection = avsPrivateCloud.GetWorkloadNetworkSegments(); + WorkloadNetworkSegmentCollection collection = workloadNetwork.GetWorkloadNetworkSegments(); // invoke the operation string segmentId = "segment1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs index 97be8f84bfb42..3330199759461 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkSegmentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_WorkloadNetworkSegmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetSegment() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json // this example is just showing the usage of "WorkloadNetworks_GetSegment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_WorkloadNetworksGetSegment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdateSegments() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdateSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateSegments.json // this example is just showing the usage of "WorkloadNetworks_UpdateSegments" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_WorkloadNetworksUpdateSegments() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeleteSegment() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeleteSegments.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteSegment.json // this example is just showing the usage of "WorkloadNetworks_DeleteSegment" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineCollection.cs index 39e6c746484c3..4370dd64ac7e2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkVirtualMachineCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListVirtualMachines() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListVirtualMachines.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVirtualMachines.json // this example is just showing the usage of "WorkloadNetworks_ListVirtualMachines" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -27,16 +27,16 @@ public async Task GetAll_WorkloadNetworksListVirtualMachines() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVirtualMachineResource - WorkloadNetworkVirtualMachineCollection collection = avsPrivateCloud.GetWorkloadNetworkVirtualMachines(); + WorkloadNetworkVirtualMachineCollection collection = workloadNetwork.GetWorkloadNetworkVirtualMachines(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkVirtualMachineResource item in collection.GetAllAsync()) @@ -56,7 +56,7 @@ public async Task GetAll_WorkloadNetworksListVirtualMachines() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetVirtualMachine() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVirtualMachine.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine.json // this example is just showing the usage of "WorkloadNetworks_GetVirtualMachine" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,16 +64,16 @@ public async Task Get_WorkloadNetworksGetVirtualMachine() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVirtualMachineResource - WorkloadNetworkVirtualMachineCollection collection = avsPrivateCloud.GetWorkloadNetworkVirtualMachines(); + WorkloadNetworkVirtualMachineCollection collection = workloadNetwork.GetWorkloadNetworkVirtualMachines(); // invoke the operation string virtualMachineId = "vm1"; @@ -91,7 +91,7 @@ public async Task Get_WorkloadNetworksGetVirtualMachine() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetVirtualMachine() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVirtualMachine.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine.json // this example is just showing the usage of "WorkloadNetworks_GetVirtualMachine" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,16 +99,16 @@ public async Task Exists_WorkloadNetworksGetVirtualMachine() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVirtualMachineResource - WorkloadNetworkVirtualMachineCollection collection = avsPrivateCloud.GetWorkloadNetworkVirtualMachines(); + WorkloadNetworkVirtualMachineCollection collection = workloadNetwork.GetWorkloadNetworkVirtualMachines(); // invoke the operation string virtualMachineId = "vm1"; @@ -122,7 +122,7 @@ public async Task Exists_WorkloadNetworksGetVirtualMachine() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetVirtualMachine() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVirtualMachine.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine.json // this example is just showing the usage of "WorkloadNetworks_GetVirtualMachine" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,16 +130,16 @@ public async Task GetIfExists_WorkloadNetworksGetVirtualMachine() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVirtualMachineResource - WorkloadNetworkVirtualMachineCollection collection = avsPrivateCloud.GetWorkloadNetworkVirtualMachines(); + WorkloadNetworkVirtualMachineCollection collection = workloadNetwork.GetWorkloadNetworkVirtualMachines(); // invoke the operation string virtualMachineId = "vm1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineResource.cs index 7005d4cdcbe88..6b0dc8430b14a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVirtualMachineResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkVirtualMachineResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetVirtualMachine() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVirtualMachine.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine.json // this example is just showing the usage of "WorkloadNetworks_GetVirtualMachine" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs index 6aaefea36c15b..a3cd8093ae50f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkVmGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_WorkloadNetworksListVMGroups() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_ListVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVMGroups.json // this example is just showing the usage of "WorkloadNetworks_ListVmGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -27,16 +27,16 @@ public async Task GetAll_WorkloadNetworksListVMGroups() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVmGroupResource - WorkloadNetworkVmGroupCollection collection = avsPrivateCloud.GetWorkloadNetworkVmGroups(); + WorkloadNetworkVmGroupCollection collection = workloadNetwork.GetWorkloadNetworkVmGroups(); // invoke the operation and iterate over the result await foreach (WorkloadNetworkVmGroupResource item in collection.GetAllAsync()) @@ -56,7 +56,7 @@ public async Task GetAll_WorkloadNetworksListVMGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json // this example is just showing the usage of "WorkloadNetworks_GetVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,16 +64,16 @@ public async Task Get_WorkloadNetworksGetVMGroup() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVmGroupResource - WorkloadNetworkVmGroupCollection collection = avsPrivateCloud.GetWorkloadNetworkVmGroups(); + WorkloadNetworkVmGroupCollection collection = workloadNetwork.GetWorkloadNetworkVmGroups(); // invoke the operation string vmGroupId = "vmGroup1"; @@ -91,7 +91,7 @@ public async Task Get_WorkloadNetworksGetVMGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_WorkloadNetworksGetVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json // this example is just showing the usage of "WorkloadNetworks_GetVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,16 +99,16 @@ public async Task Exists_WorkloadNetworksGetVMGroup() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVmGroupResource - WorkloadNetworkVmGroupCollection collection = avsPrivateCloud.GetWorkloadNetworkVmGroups(); + WorkloadNetworkVmGroupCollection collection = workloadNetwork.GetWorkloadNetworkVmGroups(); // invoke the operation string vmGroupId = "vmGroup1"; @@ -122,7 +122,7 @@ public async Task Exists_WorkloadNetworksGetVMGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_WorkloadNetworksGetVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json // this example is just showing the usage of "WorkloadNetworks_GetVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,16 +130,16 @@ public async Task GetIfExists_WorkloadNetworksGetVMGroup() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVmGroupResource - WorkloadNetworkVmGroupCollection collection = avsPrivateCloud.GetWorkloadNetworkVmGroups(); + WorkloadNetworkVmGroupCollection collection = workloadNetwork.GetWorkloadNetworkVmGroups(); // invoke the operation string vmGroupId = "vmGroup1"; @@ -165,7 +165,7 @@ public async Task GetIfExists_WorkloadNetworksGetVMGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_WorkloadNetworksCreateVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_CreateVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateVMGroup.json // this example is just showing the usage of "WorkloadNetworks_CreateVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,16 +173,16 @@ public async Task CreateOrUpdate_WorkloadNetworksCreateVMGroup() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this AvsPrivateCloudResource created on azure - // for more information of creating AvsPrivateCloudResource, please refer to the document of AvsPrivateCloudResource + // this example assumes you already have this WorkloadNetworkResource created on azure + // for more information of creating WorkloadNetworkResource, please refer to the document of WorkloadNetworkResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; string resourceGroupName = "group1"; string privateCloudName = "cloud1"; - ResourceIdentifier avsPrivateCloudResourceId = AvsPrivateCloudResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); - AvsPrivateCloudResource avsPrivateCloud = client.GetAvsPrivateCloudResource(avsPrivateCloudResourceId); + ResourceIdentifier workloadNetworkResourceId = WorkloadNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + WorkloadNetworkResource workloadNetwork = client.GetWorkloadNetworkResource(workloadNetworkResourceId); // get the collection of this WorkloadNetworkVmGroupResource - WorkloadNetworkVmGroupCollection collection = avsPrivateCloud.GetWorkloadNetworkVmGroups(); + WorkloadNetworkVmGroupCollection collection = workloadNetwork.GetWorkloadNetworkVmGroups(); // invoke the operation string vmGroupId = "vmGroup1"; diff --git a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs index 274587a8490ce..eee4c645a2350 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/samples/Generated/Samples/Sample_WorkloadNetworkVmGroupResource.cs @@ -19,7 +19,7 @@ public partial class Sample_WorkloadNetworkVmGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_WorkloadNetworksGetVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_GetVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json // this example is just showing the usage of "WorkloadNetworks_GetVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_WorkloadNetworksGetVMGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_WorkloadNetworksUpdateVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_UpdateVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateVMGroup.json // this example is just showing the usage of "WorkloadNetworks_UpdateVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_WorkloadNetworksUpdateVMGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_WorkloadNetworksDeleteVMGroup() { - // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/examples/WorkloadNetworks_DeleteVMGroups.json + // Generated from example definition: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteVMGroup.json // this example is just showing the usage of "WorkloadNetworks_DeleteVmGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Azure.ResourceManager.Avs.csproj b/sdk/avs/Azure.ResourceManager.Avs/src/Azure.ResourceManager.Avs.csproj index bc9cd983af62c..7469a60dbc2fc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Azure.ResourceManager.Avs.csproj +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Azure.ResourceManager.Avs.csproj @@ -1,6 +1,6 @@ - 1.4.0-beta.1 + 1.4.0 1.3.0 Azure.ResourceManager.Avs diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs index 3a7a607cf9f73..0d16e08cfe5e2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/ArmAvsModelFactory.cs @@ -1,10 +1,11 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #nullable disable using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Net; using Azure.Core; @@ -45,13 +46,230 @@ public static partial class ArmAvsModelFactory /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud. /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. /// A new instance for mocking. - public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null) + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudData AvsPrivateCloudData( + ResourceIdentifier id = null, + string name = null, + ResourceType resourceType = default, + ResourceManager.Models.SystemData systemData = null, + IDictionary tags = null, + AzureLocation location = default, + string skuName = null, + ManagedServiceIdentity identity = null, + AvsManagementCluster managementCluster = null, + InternetConnectivityState? internet = null, + IEnumerable identitySources = null, + PrivateCloudAvailabilityProperties availability = null, + CustomerManagedEncryption encryption = null, + AvsPrivateCloudProvisioningState? provisioningState = null, + ExpressRouteCircuit circuit = null, + AvsPrivateCloudEndpoints endpoints = null, + string networkBlock = null, + string managementNetwork = null, + string provisioningNetwork = null, + string vMotionNetwork = null, + string vCenterPassword = null, + string nsxtPassword = null, + string vCenterCertificateThumbprint = null, + string nsxtCertificateThumbprint = null, + IEnumerable externalCloudLinks = null, + ExpressRouteCircuit secondaryCircuit = null, + NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null) { - tags ??= new Dictionary(); - identitySources ??= new List(); - externalCloudLinks ??= new List(); + return AvsPrivateCloudData( + id: id, + name: name, + resourceType: resourceType, + systemData: systemData, + tags: tags, + location: location, + sku: skuName != null ? new AvsSku(skuName) : null, + identity: identity, + managementCluster: managementCluster, + internet: internet, + identitySources: identitySources?.ToList(), + availability: availability, + encryption: encryption, + extendedNetworkBlocks: new List(), + provisioningState: provisioningState, + circuit: circuit, + endpoints: endpoints, + networkBlock: networkBlock, + managementNetwork: managementNetwork, + provisioningNetwork: provisioningNetwork, + vMotionNetwork: vMotionNetwork, + vCenterPassword: vCenterPassword, + nsxtPassword: nsxtPassword, + vCenterCertificateThumbprint: vCenterCertificateThumbprint, + nsxtCertificateThumbprint: nsxtCertificateThumbprint, + externalCloudLinks: externalCloudLinks?.ToList(), + secondaryCircuit: secondaryCircuit, + nsxPublicIPQuotaRaised: nsxPublicIPQuotaRaised, + virtualNetworkId: null, + dnsZoneType: null + ); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The SKU (Stock Keeping Unit) assigned to this resource. + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. + /// The default cluster used for management. + /// Connectivity to internet is enabled or disabled. + /// vCenter Single Sign On Identity Sources. + /// Properties describing how the cloud is distributed across availability zones. + /// Customer managed key encryption, can be enabled or disabled. + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// + /// The provisioning state. + /// An ExpressRoute Circuit. + /// The endpoints. + /// + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// + /// Network used to access vCenter Server and NSX-T Manager. + /// Used for virtual machine cold migration, cloning, and snapshot migration. + /// Used for live migration of virtual machines. + /// Optionally, set the vCenter admin password when the private cloud is created. + /// Optionally, set the NSX-T Manager password when the private cloud is created. + /// Thumbprint of the vCenter Server SSL certificate. + /// Thumbprint of the NSX-T Manager SSL certificate. + /// Array of cloud link IDs from other clouds that connect to this one. + /// + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud + /// + /// + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudData AvsPrivateCloudData( + ResourceIdentifier id, + string name, + ResourceType resourceType, + ResourceManager.Models.SystemData systemData, + IDictionary tags, + AzureLocation location, + string sku, + ManagedServiceIdentity identity, + AvsManagementCluster managementCluster, + InternetConnectivityState? internet, + IEnumerable identitySources, + PrivateCloudAvailabilityProperties availability, + CustomerManagedEncryption encryption, + IEnumerable extendedNetworkBlocks, + AvsPrivateCloudProvisioningState? provisioningState, + ExpressRouteCircuit circuit, + AvsPrivateCloudEndpoints endpoints, + string networkBlock, + string managementNetwork, + string provisioningNetwork, + string vMotionNetwork, + string vCenterPassword, + string nsxtPassword, + string vCenterCertificateThumbprint, + string nsxtCertificateThumbprint, + IEnumerable externalCloudLinks, + ExpressRouteCircuit secondaryCircuit, + NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised) + { + return AvsPrivateCloudData( + id: id, + name: name, + resourceType: resourceType, + systemData: systemData, + tags: tags, + location: location, + sku: sku != null ? new AvsSku(sku) : null, + identity: identity, + managementCluster: managementCluster, + internet: internet, + identitySources: identitySources?.ToList(), + availability: availability, + encryption: encryption, + extendedNetworkBlocks: extendedNetworkBlocks?.ToList(), + provisioningState: provisioningState, + circuit: circuit, + endpoints: endpoints, + networkBlock: networkBlock, + managementNetwork: managementNetwork, + provisioningNetwork: provisioningNetwork, + vMotionNetwork: vMotionNetwork, + vCenterPassword: vCenterPassword, + nsxtPassword: nsxtPassword, + vCenterCertificateThumbprint: vCenterCertificateThumbprint, + nsxtCertificateThumbprint: nsxtCertificateThumbprint, + externalCloudLinks: externalCloudLinks?.ToList(), + secondaryCircuit: secondaryCircuit, + nsxPublicIPQuotaRaised: nsxPublicIPQuotaRaised, + virtualNetworkId: null, + dnsZoneType: null + ); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The SKU (Stock Keeping Unit) assigned to this resource. + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData( + ResourceIdentifier id, + string name, + ResourceType resourceType, + ResourceManager.Models.SystemData systemData, + string sku, + int? clusterSize, + AvsPrivateCloudClusterProvisioningState? provisioningState, + int? clusterId, + IEnumerable hosts) + { + return AvsPrivateCloudClusterData( + id: id, + name: name, + resourceType: resourceType, + systemData: systemData, + sku: sku != null ? new AvsSku(sku) : null, + clusterSize: clusterSize, + provisioningState: provisioningState, + clusterId: clusterId, + hosts: hosts?.ToList(), + vsanDatastoreName: null + ); + } + /// Initializes a new instance of . + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + /// A new instance for mocking. + public static CommonClusterProperties CommonClusterProperties(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + { + hosts ??= new List(); - return new AvsPrivateCloudData(id, name, resourceType, systemData, tags, location, skuName != null ? new AvsSku(skuName) : null, identity, managementCluster, internet, identitySources?.ToList(), availability, encryption, new List(), provisioningState, circuit, endpoints, networkBlock, managementNetwork, provisioningNetwork, vMotionNetwork, vCenterPassword, nsxtPassword, vCenterCertificateThumbprint, nsxtCertificateThumbprint, externalCloudLinks?.ToList(), secondaryCircuit, nsxPublicIPQuotaRaised, null); + return CommonClusterProperties( + clusterSize: clusterSize, + provisioningState: provisioningState, + clusterId: clusterId, + hosts: hosts?.ToList() + ); } } -} +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs new file mode 100644 index 0000000000000..99f61fd9d9e06 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudClusterData.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.Avs.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A class representing the AvsPrivateCloudCluster data model. + /// A cluster resource. + /// + public partial class AvsPrivateCloudClusterData : ResourceData + { + /// The name of the SKU. + [EditorBrowsable(EditorBrowsableState.Never)] + public string SkuName + { + get => Sku is null ? default : Sku.Name; + set => Sku = new AvsSku(value); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs new file mode 100644 index 0000000000000..f5348990ce997 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudData.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.Avs.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A class representing the AvsPrivateCloud data model. + /// A private cloud resource + /// + public partial class AvsPrivateCloudData : TrackedResourceData + { + /// The name of the SKU. + [EditorBrowsable(EditorBrowsableState.Never)] + public string SkuName + { + get => Sku is null ? default : Sku.Name; + set => Sku = new AvsSku(value); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs new file mode 100644 index 0000000000000..e7984e6ccbaf7 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/AvsPrivateCloudResource.cs @@ -0,0 +1,746 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Avs.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A Class representing an AvsPrivateCloud along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAvsPrivateCloudResource method. + /// Otherwise you can get one from its parent resource using the GetAvsPrivateCloud method. + /// + public partial class AvsPrivateCloudResource : ArmResource + { + /// + /// Get a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} + /// + /// + /// Operation Id + /// WorkloadNetworks_Get + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Name for the workload network in the private cloud. + /// The cancellation token to use. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is obsolete and will be removed in a future release.", false)] + public virtual Response GetWorkloadNetwork(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworks().Get(workloadNetworkName, cancellationToken); + } + + /// + /// Get a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} + /// + /// + /// Operation Id + /// WorkloadNetworks_Get + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Name for the workload network in the private cloud. + /// The cancellation token to use. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is obsolete and will be removed in a future release.", false)] + public virtual async Task> GetWorkloadNetworkAsync(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworks().GetAsync(workloadNetworkName, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkResources and their operations over a WorkloadNetworkResource. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is obsolete and will be removed in a future release.", false)] + public virtual WorkloadNetworkCollection GetWorkloadNetworks() + { + return GetCachedClient(client => new WorkloadNetworkCollection(client, Id)); + } + + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDhcp + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkDhcp(string dhcpId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkDhcps().Get(dhcpId, cancellationToken); + } + + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDhcp + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkDhcpAsync(string dhcpId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkDhcps().GetAsync(dhcpId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkDhcpResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkDhcpResources and their operations over a WorkloadNetworkDhcpResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps() + { + return GetWorkloadNetwork().GetWorkloadNetworkDhcps(); + } + + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsService + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkDnsService(string dnsServiceId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkDnsServices().Get(dnsServiceId, cancellationToken); + } + + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsService + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkDnsServices().GetAsync(dnsServiceId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkDnsServiceResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkDnsServiceResources and their operations over a WorkloadNetworkDnsServiceResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices() + { + return GetWorkloadNetwork().GetWorkloadNetworkDnsServices(); + } + + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsZone + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkDnsZone(string dnsZoneId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkDnsZones().Get(dnsZoneId, cancellationToken); + } + + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsZone + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkDnsZones().GetAsync(dnsZoneId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkDnsZoneResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkDnsZoneResources and their operations over a WorkloadNetworkDnsZoneResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones() + { + return GetWorkloadNetwork().GetWorkloadNetworkDnsZones(); + } + + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetGateway + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkGateway(string gatewayId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkGateways().Get(gatewayId, cancellationToken); + } + + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetGateway + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkGatewayAsync(string gatewayId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkGateways().GetAsync(gatewayId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkGatewayResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkGatewayResources and their operations over a WorkloadNetworkGatewayResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways() + { + return GetWorkloadNetwork().GetWorkloadNetworkGateways(); + } + + /// + /// Get a port mirroring profile by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPortMirroring + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles().Get(portMirroringId, cancellationToken); + } + + /// + /// Get a port mirroring profile by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPortMirroring + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles().GetAsync(portMirroringId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkPortMirroringProfileResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkPortMirroringProfileResources and their operations over a WorkloadNetworkPortMirroringProfileResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles() + { + return GetWorkloadNetwork().GetWorkloadNetworkPortMirroringProfiles(); + } + + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPublicIP + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkPublicIP(string publicIPId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkPublicIPs().Get(publicIPId, cancellationToken); + } + + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPublicIP + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkPublicIPs().GetAsync(publicIPId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkPublicIPResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkPublicIPResources and their operations over a WorkloadNetworkPublicIPResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs() + { + return GetWorkloadNetwork().GetWorkloadNetworkPublicIPs(); + } + + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetSegment + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkSegment(string segmentId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkSegments().Get(segmentId, cancellationToken); + } + + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetSegment + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkSegmentAsync(string segmentId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkSegments().GetAsync(segmentId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkSegmentResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkSegmentResources and their operations over a WorkloadNetworkSegmentResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments() + { + return GetWorkloadNetwork().GetWorkloadNetworkSegments(); + } + + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVirtualMachine + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Virtual Machine identifier. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines().Get(virtualMachineId, cancellationToken); + } + + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVirtualMachine + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Virtual Machine identifier. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkVirtualMachineResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkVirtualMachineResources and their operations over a WorkloadNetworkVirtualMachineResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines() + { + return GetWorkloadNetwork().GetWorkloadNetworkVirtualMachines(); + } + + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVmGroup + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response GetWorkloadNetworkVmGroup(string vmGroupId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetwork().GetWorkloadNetworkVmGroups().Get(vmGroupId, cancellationToken); + } + + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVmGroup + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetwork().GetWorkloadNetworkVmGroups().GetAsync(vmGroupId, cancellationToken).ConfigureAwait(false); + } + + /// Gets a collection of WorkloadNetworkVmGroupResources in the AvsPrivateCloud. + /// An object representing collection of WorkloadNetworkVmGroupResources and their operations over a WorkloadNetworkVmGroupResource. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups() + { + return GetWorkloadNetwork().GetWorkloadNetworkVmGroups(); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs new file mode 100644 index 0000000000000..23bf887170b41 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/AvsManagementCluster.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs.Models +{ + /// The properties of a management cluster. + public partial class AvsManagementCluster : CommonClusterProperties + { + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(VsanDatastoreName)) + { + writer.WritePropertyName("vsanDatastoreName"u8); + writer.WriteStringValue(VsanDatastoreName); + } + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs similarity index 99% rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs index 84d2972cc9951..761797561d9ff 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.Serialization.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; @@ -185,4 +183,4 @@ CommonClusterProperties IPersistableModel.Create(Binary string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } -} +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs similarity index 91% rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs index 635fbcb737757..67a0ffcbb8aa0 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CommonClusterProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/CommonClusterProperties.cs @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; using System.Collections.Generic; +using System.ComponentModel; namespace Azure.ResourceManager.Avs.Models { @@ -43,9 +42,11 @@ public partial class CommonClusterProperties /// /// /// + [EditorBrowsable(EditorBrowsableState.Never)] private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . + [EditorBrowsable(EditorBrowsableState.Never)] public CommonClusterProperties() { Hosts = new ChangeTrackingList(); @@ -69,10 +70,10 @@ internal CommonClusterProperties(int? clusterSize, AvsPrivateCloudClusterProvisi /// The cluster size. public int? ClusterSize { get; set; } /// The state of the cluster provisioning. - public AvsPrivateCloudClusterProvisioningState? ProvisioningState { get; } + public AvsPrivateCloudClusterProvisioningState? ProvisioningState { get; private protected set; } /// The identity. - public int? ClusterId { get; } + public int? ClusterId { get; private protected set; } /// The hosts. - public IList Hosts { get; } + public IList Hosts { get; private protected set; } } -} +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs similarity index 97% rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs index 80d1b2789eca3..2e29220686c94 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkName.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/Models/WorkloadNetworkName.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; @@ -11,6 +9,7 @@ namespace Azure.ResourceManager.Avs.Models { /// The WorkloadNetworkName. + [EditorBrowsable(EditorBrowsableState.Never)] public readonly partial struct WorkloadNetworkName : IEquatable { private readonly string _value; @@ -21,7 +20,6 @@ public WorkloadNetworkName(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string DefaultValue = "default"; /// default. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs new file mode 100644 index 0000000000000..1a8099d55b899 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/RestOperations/WorkloadNetworksRestOperations.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Avs.Models; + +namespace Azure.ResourceManager.Avs +{ + internal partial class WorkloadNetworksRestOperations + { + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/", false); + uri.AppendPath(workloadNetworkName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/workloadNetworks/", false); + uri.AppendPath(workloadNetworkName.ToString(), true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a private cloud workload network. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// Name for the workload network in the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + WorkloadNetworkData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a private cloud workload network. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// Name for the workload network in the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + [EditorBrowsable(EditorBrowsableState.Never)] + public Response Get(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + WorkloadNetworkData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + } +} \ No newline at end of file diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs similarity index 96% rename from sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs rename to sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs index 3405d7809b72e..24456f6aa0dee 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkCollection.cs @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -23,6 +22,8 @@ namespace Azure.ResourceManager.Avs /// Each in the collection will belong to the same instance of . /// To get a instance call the GetWorkloadNetworks method from an instance of . /// + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This class is obsolete and will be removed in a future release.", false)] public partial class WorkloadNetworkCollection : ArmCollection, IEnumerable, IAsyncEnumerable { private readonly ClientDiagnostics _workloadNetworkClientDiagnostics; @@ -65,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -106,7 +107,7 @@ public virtual async Task> GetAsync(WorkloadNe /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -147,7 +148,7 @@ public virtual Response Get(WorkloadNetworkName workloa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -177,7 +178,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -207,7 +208,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -246,7 +247,7 @@ public virtual async Task> ExistsAsync(WorkloadNetworkName worklo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -285,7 +286,7 @@ public virtual Response Exists(WorkloadNetworkName workloadNetworkName, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -326,7 +327,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs new file mode 100644 index 0000000000000..1e84ea4c47a20 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Customized/WorkloadNetworkResource.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.Avs.Models; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A Class representing a WorkloadNetwork along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetWorkloadNetworkResource method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetwork method. + /// + public partial class WorkloadNetworkResource : ArmResource + { + /// + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The privateCloudName. + /// The workloadNetworkName. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + => CreateResourceIdentifier(subscriptionId, resourceGroupName, privateCloudName); + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs index 27e2a349dc044..76dc4245065b2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ArmAvsModelFactory.cs @@ -18,15 +18,6 @@ namespace Azure.ResourceManager.Avs.Models /// Model factory for models. public static partial class ArmAvsModelFactory { - /// Initializes a new instance of . - /// Trial status. - /// Number of trial hosts available. - /// A new instance for mocking. - public static AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(AvsSubscriptionTrialStatus? status = null, int? availableHosts = null) - { - return new AvsSubscriptionTrialAvailabilityResult(status, availableHosts, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Remaining hosts quota by sku type. /// Host quota is active for current subscription. @@ -38,6 +29,15 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab return new AvsSubscriptionQuotaAvailabilityResult(hostsRemaining, quotaEnabled, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Trial status. + /// Number of trial hosts available. + /// A new instance for mocking. + public static AvsSubscriptionTrialAvailabilityResult AvsSubscriptionTrialAvailabilityResult(AvsSubscriptionTrialStatus? status = null, int? availableHosts = null) + { + return new AvsSubscriptionTrialAvailabilityResult(status, availableHosts, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -45,18 +45,27 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab /// The systemData. /// The tags. /// The location. - /// The private cloud SKU. - /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The SKU (Stock Keeping Unit) assigned to this resource. + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. /// The default cluster used for management. /// Connectivity to internet is enabled or disabled. /// vCenter Single Sign On Identity Sources. /// Properties describing how the cloud is distributed across availability zones. /// Customer managed key encryption, can be enabled or disabled. - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X). + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// /// The provisioning state. /// An ExpressRoute Circuit. /// The endpoints. - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. + /// + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// /// Network used to access vCenter Server and NSX-T Manager. /// Used for virtual machine cold migration, cloning, and snapshot migration. /// Used for live migration of virtual machines. @@ -65,10 +74,18 @@ public static AvsSubscriptionQuotaAvailabilityResult AvsSubscriptionQuotaAvailab /// Thumbprint of the vCenter Server SSL certificate. /// Thumbprint of the NSX-T Manager SSL certificate. /// Array of cloud link IDs from other clouds that connect to this one. - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud. - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. + /// + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud + /// + /// + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 + /// + /// Azure resource ID of the virtual network. + /// The type of DNS zone to use. /// A new instance for mocking. - public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, IEnumerable extendedNetworkBlocks = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null) + public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AvsSku sku = null, ManagedServiceIdentity identity = null, AvsManagementCluster managementCluster = null, InternetConnectivityState? internet = null, IEnumerable identitySources = null, PrivateCloudAvailabilityProperties availability = null, CustomerManagedEncryption encryption = null, IEnumerable extendedNetworkBlocks = null, AvsPrivateCloudProvisioningState? provisioningState = null, ExpressRouteCircuit circuit = null, AvsPrivateCloudEndpoints endpoints = null, string networkBlock = null, string managementNetwork = null, string provisioningNetwork = null, string vMotionNetwork = null, string vCenterPassword = null, string nsxtPassword = null, string vCenterCertificateThumbprint = null, string nsxtCertificateThumbprint = null, IEnumerable externalCloudLinks = null, ExpressRouteCircuit secondaryCircuit = null, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = null, ResourceIdentifier virtualNetworkId = null, AvsDnsZoneType? dnsZoneType = null) { tags ??= new Dictionary(); identitySources ??= new List(); @@ -82,7 +99,7 @@ public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = nu systemData, tags, location, - skuName != null ? new AvsSku(skuName, serializedAdditionalRawData: null) : null, + sku, identity, managementCluster, internet, @@ -104,54 +121,29 @@ public static AvsPrivateCloudData AvsPrivateCloudData(ResourceIdentifier id = nu externalCloudLinks?.ToList(), secondaryCircuit, nsxPublicIPQuotaRaised, + virtualNetworkId, + dnsZoneType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// CIDR of primary subnet. - /// CIDR of secondary subnet. - /// Identifier of the ExpressRoute Circuit (Microsoft Colo only). - /// ExpressRoute Circuit private peering identifier. - /// A new instance for mocking. - public static ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, ResourceIdentifier expressRouteId = null, ResourceIdentifier expressRoutePrivatePeeringId = null) - { - return new ExpressRouteCircuit(primarySubnet, secondarySubnet, expressRouteId, expressRoutePrivatePeeringId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Endpoint for the NSX-T Data Center manager. - /// Endpoint for Virtual Center Server Appliance. - /// Endpoint for the HCX Cloud Manager. - /// A new instance for mocking. - public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null) - { - return new AvsPrivateCloudEndpoints(nsxtManager, vcsa, hcxCloudManager, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The cluster size. /// The state of the cluster provisioning. /// The identity. /// The hosts. + /// Name of the vsan datastore associated with the cluster. /// A new instance for mocking. - public static AvsManagementCluster AvsManagementCluster(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) - { - hosts ??= new List(); - - return new AvsManagementCluster(clusterSize, provisioningState, clusterId, hosts?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The cluster size. - /// The state of the cluster provisioning. - /// The identity. - /// The hosts. - /// A new instance for mocking. - public static CommonClusterProperties CommonClusterProperties(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + public static AvsManagementCluster AvsManagementCluster(int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null, string vsanDatastoreName = null) { hosts ??= new List(); - return new CommonClusterProperties(clusterSize, provisioningState, clusterId, hosts?.ToList(), serializedAdditionalRawData: null); + return new AvsManagementCluster( + clusterSize, + provisioningState, + clusterId, + hosts?.ToList(), + vsanDatastoreName, + serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -174,18 +166,127 @@ public static AvsEncryptionKeyVaultProperties AvsEncryptionKeyVaultProperties(st serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// CIDR of primary subnet. + /// CIDR of secondary subnet. + /// Identifier of the ExpressRoute Circuit (Microsoft Colo only). + /// ExpressRoute Circuit private peering identifier. + /// A new instance for mocking. + public static ExpressRouteCircuit ExpressRouteCircuit(string primarySubnet = null, string secondarySubnet = null, ResourceIdentifier expressRouteId = null, ResourceIdentifier expressRoutePrivatePeeringId = null) + { + return new ExpressRouteCircuit(primarySubnet, secondarySubnet, expressRouteId, expressRoutePrivatePeeringId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Endpoint FQDN for the NSX-T Data Center manager. + /// Endpoint FQDN for Virtual Center Server Appliance. + /// Endpoint FQDN for the HCX Cloud Manager. + /// Endpoint IP for the NSX-T Data Center manager. + /// Endpoint IP for Virtual Center Server Appliance. + /// Endpoint IP for the HCX Cloud Manager. + /// A new instance for mocking. + public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager = null, string vcsa = null, string hcxCloudManager = null, string nsxtManagerIP = null, string vcenterIP = null, string hcxCloudManagerIP = null) + { + return new AvsPrivateCloudEndpoints( + nsxtManager, + vcsa, + hcxCloudManager, + nsxtManagerIP, + vcenterIP, + hcxCloudManagerIP, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The resource-specific properties for this resource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + public static AvsPrivateCloudAddonData AvsPrivateCloudAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudAddonProperties properties = null) + { + return new AvsPrivateCloudAddonData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Addon type. + /// The state of the addon provisioning. + /// A new instance for mocking. + public static AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = null, AddonProvisioningState? provisioningState = null) + { + return new UnknownAddonProperties(addonType == null ? default : new AddonType(addonType), provisioningState, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the ExpressRoute Circuit Authorization provisioning. + /// The ID of the ExpressRoute Circuit Authorization. + /// The key of the ExpressRoute Circuit Authorization. + /// The ID of the ExpressRoute Circuit. + /// A new instance for mocking. + public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpressRouteAuthorizationProvisioningState? provisioningState = null, ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, ResourceIdentifier expressRouteId = null) + { + return new ExpressRouteAuthorizationData( + id, + name, + resourceType, + systemData, + provisioningState, + expressRouteAuthorizationId, + expressRouteAuthorizationKey, + expressRouteId, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning state of the resource. + /// The state of the cloud link. + /// Identifier of the other private cloud participating in the link. + /// A new instance for mocking. + public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsCloudLinkProvisioningState? provisioningState = null, AvsCloudLinkStatus? status = null, ResourceIdentifier linkedCloud = null) + { + return new AvsCloudLinkData( + id, + name, + resourceType, + systemData, + provisioningState, + status, + linkedCloud, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The cluster SKU. + /// The SKU (Stock Keeping Unit) assigned to this resource. /// The cluster size. /// The state of the cluster provisioning. /// The identity. /// The hosts. + /// Name of the vsan datastore associated with the cluster. /// A new instance for mocking. - public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string skuName = null, int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null) + public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsSku sku = null, int? clusterSize = null, AvsPrivateCloudClusterProvisioningState? provisioningState = null, int? clusterId = null, IEnumerable hosts = null, string vsanDatastoreName = null) { hosts ??= new List(); @@ -194,25 +295,15 @@ public static AvsPrivateCloudClusterData AvsPrivateCloudClusterData(ResourceIden name, resourceType, systemData, - skuName != null ? new AvsSku(skuName, serializedAdditionalRawData: null) : null, + sku, clusterSize, provisioningState, clusterId, hosts?.ToList(), + vsanDatastoreName, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// List of hosts belonging to the availability zone in a cluster. - /// Availability zone identifier. - /// A new instance for mocking. - public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, string zone = null) - { - hosts ??= new List(); - - return new AvsClusterZone(hosts?.ToList(), zone, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -221,9 +312,10 @@ public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, st /// The state of the datastore provisioning. /// An Azure NetApp Files volume. /// An iSCSI volume. + /// An Elastic SAN volume. /// The operational status of the datastore. /// A new instance for mocking. - public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudDatastoreProvisioningState? provisioningState = null, ResourceIdentifier netAppVolumeId = null, DiskPoolVolume diskPoolVolume = null, DatastoreStatus? status = null) + public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudDatastoreProvisioningState? provisioningState = null, ResourceIdentifier netAppVolumeId = null, DiskPoolVolume diskPoolVolume = null, ResourceIdentifier elasticSanVolumeTargetId = null, DatastoreStatus? status = null) { return new AvsPrivateCloudDatastoreData( id, @@ -233,6 +325,7 @@ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Resource provisioningState, netAppVolumeId != null ? ResourceManagerModelFactory.WritableSubResource(netAppVolumeId) : null, diskPoolVolume, + elasticSanVolumeTargetId != null ? new ElasticSanVolume(elasticSanVolumeTargetId, serializedAdditionalRawData: null) : null, status, serializedAdditionalRawData: null); } @@ -240,7 +333,10 @@ public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(Resource /// Initializes a new instance of . /// Azure resource ID of the iSCSI target. /// Name of the LUN to be used for datastore. - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + /// + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN + /// /// Device path. /// A new instance for mocking. public static DiskPoolVolume DiskPoolVolume(ResourceIdentifier targetId = null, string lunName = null, LunMountMode? mountOption = null, string path = null) @@ -248,58 +344,73 @@ public static DiskPoolVolume DiskPoolVolume(ResourceIdentifier targetId = null, return new DiskPoolVolume(targetId, lunName, mountOption, path, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// NSX-T Manager username. - /// NSX-T Manager password. - /// vCenter admin username. - /// vCenter admin password. - /// A new instance for mocking. - public static AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null) + /// Initializes a new instance of . + /// List of hosts belonging to the availability zone in a cluster. + /// Availability zone identifier. + /// A new instance for mocking. + public static AvsClusterZone AvsClusterZone(IEnumerable hosts = null, string zone = null) { - return new AdminCredentials(nsxtUsername, nsxtPassword, vCenterUsername, vCenterPassword, serializedAdditionalRawData: null); + hosts ??= new List(); + + return new AvsClusterZone(hosts?.ToList(), zone, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The activation key. - /// The status of the HCX Enterprise Site. - /// A new instance for mocking. - public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string activationKey = null, HcxEnterpriseSiteStatus? status = null) + /// + /// The resource-specific properties for this resource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static PlacementPolicyData PlacementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PlacementPolicyProperties properties = null) { - return new HcxEnterpriseSiteData( + return new PlacementPolicyData( id, name, resourceType, systemData, - activationKey, - status, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Placement Policy type. + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. + /// The provisioning state. + /// A new instance for mocking. + public static PlacementPolicyProperties PlacementPolicyProperties(string policyType = null, PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null) + { + return new UnknownPlacementPolicyProperties(policyType == null ? default : new PlacementPolicyType(policyType), state, displayName, provisioningState, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The state of the ExpressRoute Circuit Authorization provisioning. - /// The ID of the ExpressRoute Circuit Authorization. - /// The key of the ExpressRoute Circuit Authorization. - /// The ID of the ExpressRoute Circuit. - /// A new instance for mocking. - public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpressRouteAuthorizationProvisioningState? provisioningState = null, ResourceIdentifier expressRouteAuthorizationId = null, string expressRouteAuthorizationKey = null, ResourceIdentifier expressRouteId = null) + /// The provisioning state of the resource. + /// Display name of the VM. + /// Virtual machine managed object reference id. + /// Path to virtual machine's folder starting from datacenter virtual machine folder. + /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). + /// A new instance for mocking. + public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsVirtualMachineProvisioningState? provisioningState = null, string displayName = null, string moRefId = null, string folderPath = null, VirtualMachineRestrictMovementState? restrictMovement = null) { - return new ExpressRouteAuthorizationData( + return new AvsPrivateCloudClusterVirtualMachineData( id, name, resourceType, systemData, provisioningState, - expressRouteAuthorizationId, - expressRouteAuthorizationKey, - expressRouteId, + displayName, + moRefId, + folderPath, + restrictMovement, serializedAdditionalRawData: null); } @@ -309,11 +420,23 @@ public static ExpressRouteAuthorizationData ExpressRouteAuthorizationData(Resour /// The resourceType. /// The systemData. /// The state of the ExpressRoute Circuit Authorization provisioning. - /// The network used for global reach carved out from the original network block provided for the private cloud. - /// Authorization key from the peer express route used for the global reach connection. + /// + /// The network used for global reach carved out from the original network block + /// provided for the private cloud + /// + /// + /// Authorization key from the peer express route used for the global reach + /// connection + /// /// The connection status of the global reach connection. - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection. - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection. + /// + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection + /// + /// + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection + /// /// A new instance for mocking. public static GlobalReachConnectionData GlobalReachConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GlobalReachConnectionProvisioningState? provisioningState = null, string addressPrefix = null, string authorizationKey = null, GlobalReachConnectionStatus? circuitConnectionStatus = null, ResourceIdentifier peerExpressRouteCircuit = null, ResourceIdentifier expressRouteId = null) { @@ -331,194 +454,259 @@ public static GlobalReachConnectionData GlobalReachConnectionData(ResourceIdenti serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// A new instance for mocking. - public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null) + /// The provisioning state of the resource. + /// The activation key. + /// The status of the HCX Enterprise Site. + /// A new instance for mocking. + public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HcxEnterpriseSiteProvisioningState? provisioningState = null, string activationKey = null, HcxEnterpriseSiteStatus? status = null) { - return new WorkloadNetworkData(id, name, resourceType, systemData, serializedAdditionalRawData: null); + return new HcxEnterpriseSiteData( + id, + name, + resourceType, + systemData, + provisioningState, + activationKey, + status, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the segment. - /// Gateway which to connect segment to. - /// Subnet which to connect segment to. - /// Port Vif which segment is associated with. - /// Segment status. - /// The provisioning state. - /// NSX revision number. - /// A new instance for mocking. - public static WorkloadNetworkSegmentData WorkloadNetworkSegmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string connectedGateway = null, WorkloadNetworkSegmentSubnet subnet = null, IEnumerable portVif = null, WorkloadNetworkSegmentStatus? status = null, WorkloadNetworkSegmentProvisioningState? provisioningState = null, long? revision = null) + /// The state of the iSCSI path provisioning. + /// CIDR Block for iSCSI path. + /// A new instance for mocking. + public static IscsiPathData IscsiPathData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IscsiPathProvisioningState? provisioningState = null, string networkBlock = null) { - portVif ??= new List(); - - return new WorkloadNetworkSegmentData( + return new IscsiPathData( id, name, resourceType, systemData, - displayName, - connectedGateway, - subnet, - portVif?.ToList(), - status, provisioningState, - revision, + networkBlock, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of port or VIF attached to segment. - /// A new instance for mocking. - public static WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null) + /// Initializes a new instance of . + /// NSX-T Manager username. + /// NSX-T Manager password. + /// vCenter admin username. + /// vCenter admin password. + /// A new instance for mocking. + public static AdminCredentials AdminCredentials(string nsxtUsername = null, string nsxtPassword = null, string vCenterUsername = null, string vCenterPassword = null) { - return new WorkloadNetworkSegmentPortVif(portName, serializedAdditionalRawData: null); + return new AdminCredentials(nsxtUsername, nsxtPassword, vCenterUsername, vCenterPassword, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// DHCP properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// A reference to the script cmdlet resource if user is running a AVS script. + /// + /// Parameters the script will accept + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - /// A new instance for mocking. - public static WorkloadNetworkDhcpData WorkloadNetworkDhcpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkDhcpEntity properties = null) + /// + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception + /// + /// Time limit for execution. + /// Time to live for the resource. If not provided, will be available for 60 days. + /// Time the script execution was submitted. + /// Time the script execution was started. + /// Time the script execution was finished. + /// The state of the script execution resource. + /// Standard output stream from the powershell execution. + /// User-defined dictionary. + /// Standard information out stream from the powershell execution. + /// Standard warning out stream from the powershell execution. + /// Standard error output stream from the powershell execution. + /// A new instance for mocking. + public static ScriptExecutionData ScriptExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier scriptCmdletId = null, IEnumerable parameters = null, IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, DateTimeOffset? submittedOn = null, DateTimeOffset? startedOn = null, DateTimeOffset? finishedOn = null, ScriptExecutionProvisioningState? provisioningState = null, IEnumerable output = null, BinaryData namedOutputs = null, IEnumerable information = null, IEnumerable warnings = null, IEnumerable errors = null) { - return new WorkloadNetworkDhcpData( + parameters ??= new List(); + hiddenParameters ??= new List(); + output ??= new List(); + information ??= new List(); + warnings ??= new List(); + errors ??= new List(); + + return new ScriptExecutionData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Type of DHCP: SERVER or RELAY. - /// Display name of the DHCP entity. - /// NSX Segments consuming DHCP. - /// The provisioning state. - /// NSX revision number. - /// A new instance for mocking. - public static WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = null, string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null) - { - segments ??= new List(); - - return new UnknownWorkloadNetworkDhcpEntity( - dhcpType == null ? default : new DhcpTypeEnum(dhcpType), - displayName, - segments?.ToList(), + scriptCmdletId, + parameters?.ToList(), + hiddenParameters?.ToList(), + failureReason, + timeout, + retention, + submittedOn, + startedOn, + finishedOn, provisioningState, - revision, + output?.ToList(), + namedOutputs, + information?.ToList(), + warnings?.ToList(), + errors?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the DHCP entity. - /// NSX Gateway Path. - /// A new instance for mocking. - public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string path = null) + /// The provisioning state of the resource. + /// User friendly description of the package. + /// Module version. + /// Company that created and supports the package. + /// Link to support by the package vendor. + /// A new instance for mocking. + public static ScriptPackageData ScriptPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ScriptPackageProvisioningState? provisioningState = null, string description = null, string version = null, string company = null, Uri uri = null) { - return new WorkloadNetworkGatewayData( + return new ScriptPackageData( id, name, resourceType, systemData, - displayName, - path, + provisioningState, + description, + version, + company, + uri, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the port mirroring profile. - /// Direction of port mirroring profile. - /// Source VM Group. - /// Destination VM Group. - /// Port Mirroring Status. - /// The provisioning state. - /// NSX revision number. - /// A new instance for mocking. - public static WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, PortMirroringProfileDirection? direction = null, string source = null, string destination = null, PortMirroringProfileStatus? status = null, WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = null, long? revision = null) + /// The provisioning state of the resource. + /// Description of the scripts functionality. + /// Recommended time limit for execution. + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers. + /// Parameters the script will accept. + /// A new instance for mocking. + public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ScriptCmdletProvisioningState? provisioningState = null, string description = null, TimeSpan? timeout = null, ScriptCmdletAudience? audience = null, IEnumerable parameters = null) { - return new WorkloadNetworkPortMirroringProfileData( + parameters ??= new List(); + + return new ScriptCmdletData( id, name, resourceType, systemData, - displayName, - direction, - source, - destination, - status, provisioningState, - revision, + description, + timeout, + audience, + parameters?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject + /// + /// The parameter name that the script will expect a parameter value for. + /// User friendly description of the parameter. + /// + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing + /// + /// Is this parameter required or optional. + /// A new instance for mocking. + public static ScriptParameter ScriptParameter(ScriptParameterType? parameterType = null, string name = null, string description = null, ParameterVisibilityStatus? visibility = null, ParameterOptionalityStatus? optional = null) + { + return new ScriptParameter( + parameterType, + name, + description, + visibility, + optional, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the VM group. - /// Virtual machine members of this group. - /// VM Group status. - /// The provisioning state. - /// NSX revision number. - /// A new instance for mocking. - public static WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable members = null, WorkloadNetworkVmGroupStatus? status = null, WorkloadNetworkVmGroupProvisioningState? provisioningState = null, long? revision = null) + /// The provisioning state of the resource. + /// A new instance for mocking. + public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null) { - members ??= new List(); - - return new WorkloadNetworkVmGroupData( + return new WorkloadNetworkData( id, name, resourceType, systemData, - displayName, - members?.ToList(), - status, provisioningState, - revision, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the VM. - /// Virtual machine type. - /// A new instance for mocking. - public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, WorkloadNetworkVmType? vmType = null) + /// + /// The resource-specific properties for this resource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static WorkloadNetworkDhcpData WorkloadNetworkDhcpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkDhcpEntity properties = null) { - return new WorkloadNetworkVirtualMachineData( + return new WorkloadNetworkDhcpData( id, name, resourceType, systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Type of DHCP: SERVER or RELAY. + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkDhcpEntity WorkloadNetworkDhcpEntity(string dhcpType = null, string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null) + { + segments ??= new List(); + + return new UnknownWorkloadNetworkDhcpEntity( + dhcpType == null ? default : new DhcpTypeEnum(dhcpType), displayName, - vmType, + segments?.ToList(), + provisioningState, + revision, serializedAdditionalRawData: null); } @@ -589,263 +777,188 @@ public static WorkloadNetworkDnsZoneData WorkloadNetworkDnsZoneData(ResourceIden serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Display name of the Public IP Block. - /// Number of Public IPs requested. - /// CIDR Block of the Public IP Block. - /// The provisioning state. - /// A new instance for mocking. - public static WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = null, string publicIPBlock = null, WorkloadNetworkPublicIPProvisioningState? provisioningState = null) + /// The provisioning state of the resource. + /// Display name of the DHCP entity. + /// NSX Gateway Path. + /// A new instance for mocking. + public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null, string displayName = null, string path = null) { - return new WorkloadNetworkPublicIPData( + return new WorkloadNetworkGatewayData( id, name, resourceType, systemData, - displayName, - numberOfPublicIPs, - publicIPBlock, provisioningState, + displayName, + path, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The state of the cloud link. - /// Identifier of the other private cloud participating in the link. - /// A new instance for mocking. - public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsCloudLinkStatus? status = null, ResourceIdentifier linkedCloud = null) + /// Display name of the port mirroring profile. + /// Direction of port mirroring profile. + /// Source VM Group. + /// Destination VM Group. + /// Port Mirroring Status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkPortMirroringProfileData WorkloadNetworkPortMirroringProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, PortMirroringProfileDirection? direction = null, string source = null, string destination = null, PortMirroringProfileStatus? status = null, WorkloadNetworkPortMirroringProfileProvisioningState? provisioningState = null, long? revision = null) { - return new AvsCloudLinkData( + return new WorkloadNetworkPortMirroringProfileData( id, name, resourceType, systemData, + displayName, + direction, + source, + destination, status, - linkedCloud, + provisioningState, + revision, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// The properties of an addon resource - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// A new instance for mocking. - public static AvsPrivateCloudAddonData AvsPrivateCloudAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AvsPrivateCloudAddonProperties properties = null) - { - return new AvsPrivateCloudAddonData( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The type of private cloud addon. - /// The state of the addon provisioning. - /// A new instance for mocking. - public static AvsPrivateCloudAddonProperties AvsPrivateCloudAddonProperties(string addonType = null, AddonProvisioningState? provisioningState = null) - { - return new UnknownAddonProperties(addonType == null ? default : new AddonType(addonType), provisioningState, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Display name of the VM. - /// Virtual machine managed object reference id. - /// Path to virtual machine's folder starting from datacenter virtual machine folder. - /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). - /// A new instance for mocking. - public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string moRefId = null, string folderPath = null, VirtualMachineRestrictMovementState? restrictMovement = null) + /// Display name of the Public IP Block. + /// Number of Public IPs requested. + /// CIDR Block of the Public IP Block. + /// The provisioning state. + /// A new instance for mocking. + public static WorkloadNetworkPublicIPData WorkloadNetworkPublicIPData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? numberOfPublicIPs = null, string publicIPBlock = null, WorkloadNetworkPublicIPProvisioningState? provisioningState = null) { - return new AvsPrivateCloudClusterVirtualMachineData( + return new WorkloadNetworkPublicIPData( id, name, resourceType, systemData, displayName, - moRefId, - folderPath, - restrictMovement, + numberOfPublicIPs, + publicIPBlock, + provisioningState, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// placement policy properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// A new instance for mocking. - public static PlacementPolicyData PlacementPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PlacementPolicyProperties properties = null) + /// Display name of the segment. + /// Gateway which to connect segment to. + /// Subnet which to connect segment to. + /// Port Vif which segment is associated with. + /// Segment status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkSegmentData WorkloadNetworkSegmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string connectedGateway = null, WorkloadNetworkSegmentSubnet subnet = null, IEnumerable portVif = null, WorkloadNetworkSegmentStatus? status = null, WorkloadNetworkSegmentProvisioningState? provisioningState = null, long? revision = null) { - return new PlacementPolicyData( + portVif ??= new List(); + + return new WorkloadNetworkSegmentData( id, name, resourceType, systemData, - properties, + displayName, + connectedGateway, + subnet, + portVif?.ToList(), + status, + provisioningState, + revision, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// placement policy type. - /// Whether the placement policy is enabled or disabled. - /// Display name of the placement policy. - /// The provisioning state. - /// A new instance for mocking. - public static PlacementPolicyProperties PlacementPolicyProperties(string policyType = null, PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null) + /// Initializes a new instance of . + /// Name of port or VIF attached to segment. + /// A new instance for mocking. + public static WorkloadNetworkSegmentPortVif WorkloadNetworkSegmentPortVif(string portName = null) { - return new UnknownPlacementPolicyProperties(policyType == null ? default : new PlacementPolicyType(policyType), state, displayName, provisioningState, serializedAdditionalRawData: null); + return new WorkloadNetworkSegmentPortVif(portName, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// User friendly description of the package. - /// Module version. - /// Company that created and supports the package. - /// Link to support by the package vendor. - /// A new instance for mocking. - public static ScriptPackageData ScriptPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string version = null, string company = null, Uri uri = null) + /// The provisioning state of the resource. + /// Display name of the VM. + /// Virtual machine type. + /// A new instance for mocking. + public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadNetworkProvisioningState? provisioningState = null, string displayName = null, WorkloadNetworkVmType? vmType = null) { - return new ScriptPackageData( + return new WorkloadNetworkVirtualMachineData( id, name, resourceType, systemData, - description, - version, - company, - uri, + provisioningState, + displayName, + vmType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Description of the scripts functionality. - /// Recommended time limit for execution. - /// Parameters the script will accept. - /// A new instance for mocking. - public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, TimeSpan? timeout = null, IEnumerable parameters = null) + /// Display name of the VM group. + /// Virtual machine members of this group. + /// VM Group status. + /// The provisioning state. + /// NSX revision number. + /// A new instance for mocking. + public static WorkloadNetworkVmGroupData WorkloadNetworkVmGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable members = null, WorkloadNetworkVmGroupStatus? status = null, WorkloadNetworkVmGroupProvisioningState? provisioningState = null, long? revision = null) { - parameters ??= new List(); + members ??= new List(); - return new ScriptCmdletData( + return new WorkloadNetworkVmGroupData( id, name, resourceType, systemData, - description, - timeout, - parameters?.ToList(), + displayName, + members?.ToList(), + status, + provisioningState, + revision, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject. - /// The parameter name that the script will expect a parameter value for. - /// User friendly description of the parameter. - /// Should this parameter be visible to arm and passed in the parameters argument when executing. - /// Is this parameter required or optional. - /// A new instance for mocking. - public static ScriptParameter ScriptParameter(ScriptParameterType? parameterType = null, string name = null, string description = null, ParameterVisibilityStatus? visibility = null, ParameterOptionalityStatus? optional = null) + /// Initializes a new instance of . + /// The state of the addon provisioning. + /// The VMware vCenter resource ID. + /// A new instance for mocking. + public static AddonArcProperties AddonArcProperties(AddonProvisioningState? provisioningState = null, string vCenter = null) { - return new ScriptParameter( - parameterType, - name, - description, - visibility, - optional, - serializedAdditionalRawData: null); + return new AddonArcProperties(AddonType.Arc, provisioningState, serializedAdditionalRawData: null, vCenter); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// A reference to the script cmdlet resource if user is running a AVS script. - /// - /// Parameters the script will accept - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception. - /// Time limit for execution. - /// Time to live for the resource. If not provided, will be available for 60 days. - /// Time the script execution was submitted. - /// Time the script execution was started. - /// Time the script execution was finished. - /// The state of the script execution resource. - /// Standard output stream from the powershell execution. - /// User-defined dictionary. - /// Standard information out stream from the powershell execution. - /// Standard warning out stream from the powershell execution. - /// Standard error output stream from the powershell execution. - /// A new instance for mocking. - public static ScriptExecutionData ScriptExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier scriptCmdletId = null, IEnumerable parameters = null, IEnumerable hiddenParameters = null, string failureReason = null, string timeout = null, string retention = null, DateTimeOffset? submittedOn = null, DateTimeOffset? startedOn = null, DateTimeOffset? finishedOn = null, ScriptExecutionProvisioningState? provisioningState = null, IEnumerable output = null, BinaryData namedOutputs = null, IEnumerable information = null, IEnumerable warnings = null, IEnumerable errors = null) + /// Initializes a new instance of . + /// The state of the addon provisioning. + /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + /// A new instance for mocking. + public static AddonHcxProperties AddonHcxProperties(AddonProvisioningState? provisioningState = null, string offer = null) { - parameters ??= new List(); - hiddenParameters ??= new List(); - output ??= new List(); - information ??= new List(); - warnings ??= new List(); - errors ??= new List(); - - return new ScriptExecutionData( - id, - name, - resourceType, - systemData, - scriptCmdletId, - parameters?.ToList(), - hiddenParameters?.ToList(), - failureReason, - timeout, - retention, - submittedOn, - startedOn, - finishedOn, - provisioningState, - output?.ToList(), - namedOutputs, - information?.ToList(), - warnings?.ToList(), - errors?.ToList(), - serializedAdditionalRawData: null); + return new AddonHcxProperties(AddonType.HCX, provisioningState, serializedAdditionalRawData: null, offer); } /// Initializes a new instance of . @@ -866,45 +979,53 @@ public static AddonVrProperties AddonVrProperties(AddonProvisioningState? provis return new AddonVrProperties(AddonType.VR, provisioningState, serializedAdditionalRawData: null, vrsCount); } - /// Initializes a new instance of . - /// The state of the addon provisioning. - /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise). - /// A new instance for mocking. - public static AddonHcxProperties AddonHcxProperties(AddonProvisioningState? provisioningState = null, string offer = null) + /// Initializes a new instance of . + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. + /// The provisioning state. + /// Virtual machine members list. + /// Host members list. + /// placement policy affinity type. + /// vm-host placement policy affinity strength (should/must). + /// placement policy azure hybrid benefit opt-in type. + /// A new instance for mocking. + public static VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, IEnumerable hostMembers = null, AvsPlacementPolicyAffinityType affinityType = default, VmHostPlacementPolicyAffinityStrength? affinityStrength = null, AzureHybridBenefitType? azureHybridBenefitType = null) { - return new AddonHcxProperties(AddonType.HCX, provisioningState, serializedAdditionalRawData: null, offer); - } + vmMembers ??= new List(); + hostMembers ??= new List(); - /// Initializes a new instance of . - /// The state of the addon provisioning. - /// The VMware vCenter resource ID. - /// A new instance for mocking. - public static AddonArcProperties AddonArcProperties(AddonProvisioningState? provisioningState = null, string vCenter = null) - { - return new AddonArcProperties(AddonType.Arc, provisioningState, serializedAdditionalRawData: null, vCenter); + return new VmHostPlacementPolicyProperties( + PlacementPolicyType.VmHost, + state, + displayName, + provisioningState, + serializedAdditionalRawData: null, + vmMembers?.ToList(), + hostMembers?.ToList(), + affinityType, + affinityStrength, + azureHybridBenefitType); } - /// Initializes a new instance of . - /// Display name of the DHCP entity. - /// NSX Segments consuming DHCP. + /// Initializes a new instance of . + /// Whether the placement policy is enabled or disabled. + /// Display name of the placement policy. /// The provisioning state. - /// NSX revision number. - /// DHCP Server Address. - /// DHCP Server Lease Time. - /// A new instance for mocking. - public static WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, string serverAddress = null, long? leaseTime = null) + /// Virtual machine members list. + /// placement policy affinity type. + /// A new instance for mocking. + public static VmPlacementPolicyProperties VmPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, AvsPlacementPolicyAffinityType affinityType = default) { - segments ??= new List(); + vmMembers ??= new List(); - return new WorkloadNetworkDhcpServer( - DhcpTypeEnum.Server, + return new VmPlacementPolicyProperties( + PlacementPolicyType.VmVm, + state, displayName, - segments?.ToList(), provisioningState, - revision, serializedAdditionalRawData: null, - serverAddress, - leaseTime); + vmMembers?.ToList(), + affinityType); } /// Initializes a new instance of . @@ -929,53 +1050,181 @@ public static WorkloadNetworkDhcpRelay WorkloadNetworkDhcpRelay(string displayNa serverAddresses?.ToList()); } - /// Initializes a new instance of . - /// Whether the placement policy is enabled or disabled. - /// Display name of the placement policy. + /// Initializes a new instance of . + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. /// The provisioning state. - /// Virtual machine members list. - /// placement policy affinity type. - /// A new instance for mocking. - public static VmPlacementPolicyProperties VmPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, AvsPlacementPolicyAffinityType affinityType = default) + /// NSX revision number. + /// DHCP Server Address. + /// DHCP Server Lease Time. + /// A new instance for mocking. + public static WorkloadNetworkDhcpServer WorkloadNetworkDhcpServer(string displayName = null, IEnumerable segments = null, WorkloadNetworkDhcpProvisioningState? provisioningState = null, long? revision = null, string serverAddress = null, long? leaseTime = null) { - vmMembers ??= new List(); + segments ??= new List(); - return new VmPlacementPolicyProperties( - PlacementPolicyType.VmVm, - state, + return new WorkloadNetworkDhcpServer( + DhcpTypeEnum.Server, displayName, + segments?.ToList(), provisioningState, + revision, serializedAdditionalRawData: null, - vmMembers?.ToList(), - affinityType); + serverAddress, + leaseTime); } - /// Initializes a new instance of . - /// Whether the placement policy is enabled or disabled. - /// Display name of the placement policy. - /// The provisioning state. - /// Virtual machine members list. - /// Host members list. - /// placement policy affinity type. - /// vm-host placement policy affinity strength (should/must). - /// placement policy azure hybrid benefit opt-in type. - /// A new instance for mocking. - public static VmHostPlacementPolicyProperties VmHostPlacementPolicyProperties(PlacementPolicyState? state = null, string displayName = null, PlacementPolicyProvisioningState? provisioningState = null, IEnumerable vmMembers = null, IEnumerable hostMembers = null, AvsPlacementPolicyAffinityType affinityType = default, VmHostPlacementPolicyAffinityStrength? affinityStrength = null, AzureHybridBenefitType? azureHybridBenefitType = null) + /// Initializes a new instance of . + /// Endpoint for the NSX-T Data Center manager. + /// Endpoint for Virtual Center Server Appliance. + /// Endpoint for the HCX Cloud Manager. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudEndpoints AvsPrivateCloudEndpoints(string nsxtManager, string vcsa, string hcxCloudManager) { - vmMembers ??= new List(); - hostMembers ??= new List(); + return AvsPrivateCloudEndpoints(nsxtManager: nsxtManager, vcsa: vcsa, hcxCloudManager: hcxCloudManager, nsxtManagerIP: default, vcenterIP: default, hcxCloudManagerIP: default); + } - return new VmHostPlacementPolicyProperties( - PlacementPolicyType.VmHost, - state, - displayName, - provisioningState, - serializedAdditionalRawData: null, - vmMembers?.ToList(), - hostMembers?.ToList(), - affinityType, - affinityStrength, - azureHybridBenefitType); + /// Initializes a new instance of . + /// The cluster size. + /// The state of the cluster provisioning. + /// The identity. + /// The hosts. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsManagementCluster AvsManagementCluster(int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IEnumerable hosts) + { + return AvsManagementCluster(clusterSize: clusterSize, provisioningState: provisioningState, clusterId: clusterId, hosts: hosts, vsanDatastoreName: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the datastore provisioning. + /// An Azure NetApp Files volume. + /// An iSCSI volume. + /// The operational status of the datastore. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudDatastoreData AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, ResourceIdentifier netAppVolumeId, DiskPoolVolume diskPoolVolume, DatastoreStatus? status) + { + return AvsPrivateCloudDatastoreData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: provisioningState, netAppVolumeId: netAppVolumeId, diskPoolVolume: diskPoolVolume, elasticSanVolumeTargetId: default, status: status); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The activation key. + /// The status of the HCX Enterprise Site. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static HcxEnterpriseSiteData HcxEnterpriseSiteData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string activationKey, HcxEnterpriseSiteStatus? status) + { + return HcxEnterpriseSiteData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, activationKey: activationKey, status: status); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static WorkloadNetworkData WorkloadNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData) + { + return WorkloadNetworkData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the DHCP entity. + /// NSX Gateway Path. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static WorkloadNetworkGatewayData WorkloadNetworkGatewayData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string path) + { + return WorkloadNetworkGatewayData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, path: path); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the VM. + /// Virtual machine type. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static WorkloadNetworkVirtualMachineData WorkloadNetworkVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, WorkloadNetworkVmType? vmType) + { + return WorkloadNetworkVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, vmType: vmType); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the cloud link. + /// Identifier of the other private cloud participating in the link. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsCloudLinkData AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud) + { + return AvsCloudLinkData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, status: status, linkedCloud: linkedCloud); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Display name of the VM. + /// Virtual machine managed object reference id. + /// Path to virtual machine's folder starting from datacenter virtual machine folder. + /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static AvsPrivateCloudClusterVirtualMachineData AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement) + { + return AvsPrivateCloudClusterVirtualMachineData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, displayName: displayName, moRefId: moRefId, folderPath: folderPath, restrictMovement: restrictMovement); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// User friendly description of the package. + /// Module version. + /// Company that created and supports the package. + /// Link to support by the package vendor. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ScriptPackageData ScriptPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string version, string company, Uri uri) + { + return ScriptPackageData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, description: description, version: version, company: company, uri: uri); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Description of the scripts functionality. + /// Recommended time limit for execution. + /// Parameters the script will accept. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ScriptCmdletData ScriptCmdletData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, TimeSpan? timeout, IEnumerable parameters) + { + return ScriptCmdletData(id: id, name: name, resourceType: resourceType, systemData: systemData, provisioningState: default, description: description, timeout: timeout, audience: default, parameters: parameters); } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs index 6d91b26ec6f27..c316424f14b08 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a cloud link in a private cloud + /// Create a CloudLink /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the cloud link resource. - /// A cloud link in the private cloud. + /// Name of the cloud link. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOrUpdateAsyn try { var response = await _avsCloudLinkCloudLinksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrUpdateAsyn } /// - /// Create or update a cloud link in a private cloud + /// Create a CloudLink /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the cloud link resource. - /// A cloud link in the private cloud. + /// Name of the cloud link. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU try { var response = _avsCloudLinkCloudLinksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data, cancellationToken); - var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cloudLinkName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU } /// - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(string cloudL } /// - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string cloudL /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string cloudL /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string cloudLinkName, Cancella } /// - /// List cloud link in a private cloud + /// List CloudLink resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string cloudLinkName, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken } /// - /// List cloud link in a private cloud + /// List CloudLink resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string cloudLinkName, Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string cloudLinkName, Canc /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string cloudLinkName, CancellationToken can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string cloudLinkName, CancellationToken can /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs index 0ef62e6596ed8..87b1a0acd6c43 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.Serialization.cs @@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(Status)) { writer.WritePropertyName("status"u8); @@ -76,6 +81,7 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element string name = default; ResourceType type = default; SystemData systemData = default; + AvsCloudLinkProvisioningState? provisioningState = default; AvsCloudLinkStatus? status = default; ResourceIdentifier linkedCloud = default; IDictionary serializedAdditionalRawData = default; @@ -115,6 +121,15 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AvsCloudLinkProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("status"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -147,6 +162,7 @@ internal static AvsCloudLinkData DeserializeAvsCloudLinkData(JsonElement element name, type, systemData, + provisioningState, status, linkedCloud, serializedAdditionalRawData); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs index 52ed98ef6539f..40557248ca470 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkData.cs @@ -61,16 +61,20 @@ public AvsCloudLinkData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// The state of the cloud link. /// Identifier of the other private cloud participating in the link. /// Keeps track of any properties unknown to the library. - internal AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AvsCloudLinkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsCloudLinkProvisioningState? provisioningState, AvsCloudLinkStatus? status, ResourceIdentifier linkedCloud, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; Status = status; LinkedCloud = linkedCloud; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public AvsCloudLinkProvisioningState? ProvisioningState { get; } /// The state of the cloud link. public AvsCloudLinkStatus? Status { get; } /// Identifier of the other private cloud participating in the link. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs index 569a2ac75c640..becf6cebb1804 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsCloudLinkResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(CancellationT } /// - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken cancellation } /// - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a cloud link in a private cloud + /// Create a CloudLink /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A cloud link in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsCloudLinkData data, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual async Task> UpdateAsync(WaitUn try { var response = await _avsCloudLinkCloudLinksRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -299,7 +299,7 @@ public virtual async Task> UpdateAsync(WaitUn } /// - /// Create or update a cloud link in a private cloud + /// Create a CloudLink /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A cloud link in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, AvsCloudLinkData data, CancellationToken cancellationToken = default) @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Av try { var response = _avsCloudLinkCloudLinksRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsCloudLinkOperationSource(Client), _avsCloudLinkCloudLinksClientDiagnostics, Pipeline, _avsCloudLinkCloudLinksRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs index b3d04e7c069a4..2294956f0fa79 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a addon in a private cloud + /// Create a Addon /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the addon for the private cloud. - /// A addon in the private cloud. + /// Name of the addon. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOrUp try { var response = await _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrUp } /// - /// Create or update a addon in a private cloud + /// Create a Addon /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrUp /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the addon for the private cloud. - /// A addon in the private cloud. + /// Name of the addon. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt try { var response = _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, addonName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt } /// - /// Get an addon by name in a private cloud + /// Get a Addon /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(strin } /// - /// Get an addon by name in a private cloud + /// Get a Addon /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(strin /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string addonName, Canc } /// - /// List addons in a private cloud + /// List Addon resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string addonName, Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat } /// - /// List addons in a private cloud + /// List Addon resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string addonName, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string addonName, Cancella /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string addonName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string addonName, CancellationToken cancell /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfE /// /// /// - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs index b9d6c3d107b3d..ee048fa34e28b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonData.cs @@ -62,7 +62,7 @@ public AvsPrivateCloudAddonData() /// The resourceType. /// The systemData. /// - /// The properties of an addon resource + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// @@ -74,7 +74,7 @@ internal AvsPrivateCloudAddonData(ResourceIdentifier id, string name, ResourceTy } /// - /// The properties of an addon resource + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs index 1a447bad5d298..2f4bbb5d238b3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudAddonResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get an addon by name in a private cloud + /// Get a Addon /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Cance } /// - /// Get an addon by name in a private cloud + /// Get a Addon /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken canc } /// - /// Delete a addon in a private cloud + /// Delete a Addon /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a addon in a private cloud + /// Delete a Addon /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a addon in a private cloud + /// Create a Addon /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A addon in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsPrivateCloudAddonData data, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual async Task> UpdateAsyn try { var response = await _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -299,7 +299,7 @@ public virtual async Task> UpdateAsyn } /// - /// Create or update a addon in a private cloud + /// Create a Addon /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsyn /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A addon in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, AvsPrivateCloudAddonData data, CancellationToken cancellationToken = default) @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil waitU try { var response = _avsPrivateCloudAddonAddonsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudAddonOperationSource(Client), _avsPrivateCloudAddonAddonsClientDiagnostics, Pipeline, _avsPrivateCloudAddonAddonsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs index 38c002a6d0da8..d18d4e7f6bf4a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a cluster in a private cloud + /// Create a Cluster /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the cluster in the private cloud. - /// A cluster in the private cloud. + /// Name of the cluster. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOr try { var response = await _avsPrivateCloudClusterClustersRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOr } /// - /// Create or update a cluster in a private cloud + /// Create a Cluster /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOr /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the cluster in the private cloud. - /// A cluster in the private cloud. + /// Name of the cluster. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU try { var response = _avsPrivateCloudClusterClustersRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudClusterOperationSource(Client), _avsPrivateCloudClusterClustersClientDiagnostics, Pipeline, _avsPrivateCloudClusterClustersRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clusterName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU } /// - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(str } /// - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string clusterName, } /// - /// List clusters in a private cloud + /// List Cluster resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string clusterName, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancell } /// - /// List clusters in a private cloud + /// List Cluster resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetI /// /// /// - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs index 7e4c90521ff94..d6a71e9c543f8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.Serialization.cs @@ -66,6 +66,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(VsanDatastoreName)) + { + writer.WritePropertyName("vsanDatastoreName"u8); + writer.WriteStringValue(VsanDatastoreName); + } writer.WriteEndObject(); } @@ -98,6 +103,7 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData AvsPrivateCloudClusterProvisioningState? provisioningState = default; int? clusterId = default; IList hosts = default; + string vsanDatastoreName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -181,6 +187,11 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData hosts = array; continue; } + if (property0.NameEquals("vsanDatastoreName"u8)) + { + vsanDatastoreName = property0.Value.GetString(); + continue; + } } continue; } @@ -200,6 +211,7 @@ internal static AvsPrivateCloudClusterData DeserializeAvsPrivateCloudClusterData provisioningState, clusterId, hosts ?? new ChangeTrackingList(), + vsanDatastoreName, serializedAdditionalRawData); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs index 6fa36f702d7af..11659771d1c03 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterData.cs @@ -52,7 +52,7 @@ public partial class AvsPrivateCloudClusterData : ResourceData private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The cluster SKU. + /// The SKU (Stock Keeping Unit) assigned to this resource. /// is null. public AvsPrivateCloudClusterData(AvsSku sku) { @@ -67,19 +67,21 @@ public AvsPrivateCloudClusterData(AvsSku sku) /// The name. /// The resourceType. /// The systemData. - /// The cluster SKU. + /// The SKU (Stock Keeping Unit) assigned to this resource. /// The cluster size. /// The state of the cluster provisioning. /// The identity. /// The hosts. + /// Name of the vsan datastore associated with the cluster. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsSku sku, int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AvsPrivateCloudClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsSku sku, int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, string vsanDatastoreName, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Sku = sku; ClusterSize = clusterSize; ProvisioningState = provisioningState; ClusterId = clusterId; Hosts = hosts; + VsanDatastoreName = vsanDatastoreName; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -88,15 +90,8 @@ internal AvsPrivateCloudClusterData() { } - /// The cluster SKU. - internal AvsSku Sku { get; set; } - /// The name of the SKU. - public string SkuName - { - get => Sku is null ? default : Sku.Name; - set => Sku = new AvsSku(value); - } - + /// The SKU (Stock Keeping Unit) assigned to this resource. + public AvsSku Sku { get; set; } /// The cluster size. public int? ClusterSize { get; set; } /// The state of the cluster provisioning. @@ -105,5 +100,7 @@ public string SkuName public int? ClusterId { get; } /// The hosts. public IList Hosts { get; } + /// Name of the vsan datastore associated with the cluster. + public string VsanDatastoreName { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs index a3c8269dbbd93..5ce32f2aa8353 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterResource.cs @@ -98,7 +98,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores() } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -110,7 +110,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores() /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -118,7 +118,7 @@ public virtual AvsPrivateCloudDatastoreCollection GetAvsPrivateCloudDatastores() /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -129,7 +129,7 @@ public virtual async Task> GetAvsPriv } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAvsPriv /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -149,7 +149,7 @@ public virtual async Task> GetAvsPriv /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -159,146 +159,146 @@ public virtual Response GetAvsPrivateCloudData return GetAvsPrivateCloudDatastores().Get(datastoreName, cancellationToken); } - /// Gets a collection of AvsPrivateCloudClusterVirtualMachineResources in the AvsPrivateCloudCluster. - /// An object representing collection of AvsPrivateCloudClusterVirtualMachineResources and their operations over a AvsPrivateCloudClusterVirtualMachineResource. - public virtual AvsPrivateCloudClusterVirtualMachineCollection GetAvsPrivateCloudClusterVirtualMachines() + /// Gets a collection of PlacementPolicyResources in the AvsPrivateCloudCluster. + /// An object representing collection of PlacementPolicyResources and their operations over a PlacementPolicyResource. + public virtual PlacementPolicyCollection GetPlacementPolicies() { - return GetCachedClient(client => new AvsPrivateCloudClusterVirtualMachineCollection(client, Id)); + return GetCachedClient(client => new PlacementPolicyCollection(client, Id)); } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName} /// /// /// Operation Id - /// VirtualMachines_Get + /// PlacementPolicies_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Virtual Machine identifier. + /// Name of the placement policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAvsPrivateCloudClusterVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default) + public virtual async Task> GetPlacementPolicyAsync(string placementPolicyName, CancellationToken cancellationToken = default) { - return await GetAvsPrivateCloudClusterVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false); + return await GetPlacementPolicies().GetAsync(placementPolicyName, cancellationToken).ConfigureAwait(false); } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName} /// /// /// Operation Id - /// VirtualMachines_Get + /// PlacementPolicies_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Virtual Machine identifier. + /// Name of the placement policy. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAvsPrivateCloudClusterVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default) + public virtual Response GetPlacementPolicy(string placementPolicyName, CancellationToken cancellationToken = default) { - return GetAvsPrivateCloudClusterVirtualMachines().Get(virtualMachineId, cancellationToken); + return GetPlacementPolicies().Get(placementPolicyName, cancellationToken); } - /// Gets a collection of PlacementPolicyResources in the AvsPrivateCloudCluster. - /// An object representing collection of PlacementPolicyResources and their operations over a PlacementPolicyResource. - public virtual PlacementPolicyCollection GetPlacementPolicies() + /// Gets a collection of AvsPrivateCloudClusterVirtualMachineResources in the AvsPrivateCloudCluster. + /// An object representing collection of AvsPrivateCloudClusterVirtualMachineResources and their operations over a AvsPrivateCloudClusterVirtualMachineResource. + public virtual AvsPrivateCloudClusterVirtualMachineCollection GetAvsPrivateCloudClusterVirtualMachines() { - return GetCachedClient(client => new PlacementPolicyCollection(client, Id)); + return GetCachedClient(client => new AvsPrivateCloudClusterVirtualMachineCollection(client, Id)); } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId} /// /// /// Operation Id - /// PlacementPolicies_Get + /// VirtualMachines_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// ID of the virtual machine. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetPlacementPolicyAsync(string placementPolicyName, CancellationToken cancellationToken = default) + public virtual async Task> GetAvsPrivateCloudClusterVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default) { - return await GetPlacementPolicies().GetAsync(placementPolicyName, cancellationToken).ConfigureAwait(false); + return await GetAvsPrivateCloudClusterVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false); } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId} /// /// /// Operation Id - /// PlacementPolicies_Get + /// VirtualMachines_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// ID of the virtual machine. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetPlacementPolicy(string placementPolicyName, CancellationToken cancellationToken = default) + public virtual Response GetAvsPrivateCloudClusterVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default) { - return GetPlacementPolicies().Get(placementPolicyName, cancellationToken); + return GetAvsPrivateCloudClusterVirtualMachines().Get(virtualMachineId, cancellationToken); } /// - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// /// Request Path @@ -310,7 +310,7 @@ public virtual Response GetPlacementPolicy(string place /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual async Task> GetAsync(Can } /// - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// /// Request Path @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual Response Get(CancellationToken ca } /// - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// /// Request Path @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// /// Request Path @@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -462,7 +462,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update a cluster in a private cloud + /// Update a Cluster /// /// /// Request Path @@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -508,7 +508,7 @@ public virtual async Task> UpdateAs } /// - /// Update a cluster in a private cloud + /// Update a Cluster /// /// /// Request Path @@ -520,7 +520,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -566,7 +566,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -595,7 +595,7 @@ public virtual AsyncPageable GetZonesAsync(CancellationToken can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs index 3772e65ec77f2..4e8ab0fbb6abc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -97,7 +97,7 @@ public virtual async Task } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path @@ -109,7 +109,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -142,7 +142,7 @@ public virtual Response Get(string } /// - /// List of virtual machines in a private cloud cluster + /// List VirtualMachine resources by Cluster /// /// /// Request Path @@ -154,7 +154,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual AsyncPageable GetAl } /// - /// List of virtual machines in a private cloud cluster + /// List VirtualMachine resources by Cluster /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(Can /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -300,7 +300,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs index c8245287d44cf..b489414196bef 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.Serialization.cs @@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(DisplayName)) { writer.WritePropertyName("displayName"u8); @@ -86,6 +91,7 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl string name = default; ResourceType type = default; SystemData systemData = default; + AvsVirtualMachineProvisioningState? provisioningState = default; string displayName = default; string moRefId = default; string folderPath = default; @@ -127,6 +133,15 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new AvsVirtualMachineProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("displayName"u8)) { displayName = property0.Value.GetString(); @@ -165,6 +180,7 @@ internal static AvsPrivateCloudClusterVirtualMachineData DeserializeAvsPrivateCl name, type, systemData, + provisioningState, displayName, moRefId, folderPath, diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs index 567296d60777a..efefe62f2927a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineData.cs @@ -61,13 +61,15 @@ public AvsPrivateCloudClusterVirtualMachineData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// Display name of the VM. /// Virtual machine managed object reference id. /// Path to virtual machine's folder starting from datacenter virtual machine folder. /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsVirtualMachineProvisioningState? provisioningState, string displayName, string moRefId, string folderPath, VirtualMachineRestrictMovementState? restrictMovement, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; DisplayName = displayName; MoRefId = moRefId; FolderPath = folderPath; @@ -75,6 +77,8 @@ internal AvsPrivateCloudClusterVirtualMachineData(ResourceIdentifier id, string _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public AvsVirtualMachineProvisioningState? ProvisioningState { get; } /// Display name of the VM. public string DisplayName { get; } /// Virtual machine managed object reference id. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs index 111ec87b6b134..577485c2b2722 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudClusterVirtualMachineResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -131,7 +131,7 @@ public virtual async Task } /// - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// /// Request Path @@ -143,7 +143,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -192,7 +192,7 @@ public virtual Response Get(Cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled). + /// The body type of the operation request. /// The cancellation token to use. /// is null. public virtual async Task RestrictMovementAsync(WaitUntil waitUntil, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement, CancellationToken cancellationToken = default) @@ -229,7 +229,7 @@ public virtual async Task RestrictMovementAsync(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -238,7 +238,7 @@ public virtual async Task RestrictMovementAsync(WaitUntil waitUnti /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled). + /// The body type of the operation request. /// The cancellation token to use. /// is null. public virtual ArmOperation RestrictMovement(WaitUntil waitUntil, AvsPrivateCloudClusterVirtualMachineRestrictMovement restrictMovement, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs index 7f35c79ac5084..15f59a39cc8c1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudCollection.cs @@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a private cloud + /// Create a PrivateCloud /// /// /// Request Path @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -75,7 +75,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Name of the private cloud. - /// The private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -89,7 +89,7 @@ public virtual async Task> CreateOrUpdateA try { var response = await _avsPrivateCloudPrivateCloudsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -102,7 +102,7 @@ public virtual async Task> CreateOrUpdateA } /// - /// Create or update a private cloud + /// Create a PrivateCloud /// /// /// Request Path @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -124,7 +124,7 @@ public virtual async Task> CreateOrUpdateA /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Name of the private cloud. - /// The private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -138,7 +138,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _avsPrivateCloudPrivateCloudsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudOperationSource(Client), _avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, privateCloudName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual async Task> GetAsync(string pri } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string pri /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response Get(string privateCloudName, Ca } /// - /// List private clouds in a resource group + /// List PrivateCloud resources by resource group /// /// /// Request Path @@ -253,7 +253,7 @@ public virtual Response Get(string privateCloudName, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo } /// - /// List private clouds in a resource group + /// List PrivateCloud resources by resource group /// /// /// Request Path @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string privateCloudName, C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string privateCloudName, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs index 31d003c89a623..221fce4222998 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.Serialization.cs @@ -166,6 +166,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("nsxPublicIpQuotaRaised"u8); writer.WriteStringValue(NsxPublicIPQuotaRaised.Value.ToString()); } + if (Optional.IsDefined(VirtualNetworkId)) + { + writer.WritePropertyName("virtualNetworkId"u8); + writer.WriteStringValue(VirtualNetworkId); + } + if (Optional.IsDefined(DnsZoneType)) + { + writer.WritePropertyName("dnsZoneType"u8); + writer.WriteStringValue(DnsZoneType.Value.ToString()); + } writer.WriteEndObject(); } @@ -217,6 +227,8 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e IReadOnlyList externalCloudLinks = default; ExpressRouteCircuit secondaryCircuit = default; NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised = default; + ResourceIdentifier virtualNetworkId = default; + AvsDnsZoneType? dnsZoneType = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -457,6 +469,24 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e nsxPublicIPQuotaRaised = new NsxPublicIPQuotaRaisedEnum(property0.Value.GetString()); continue; } + if (property0.NameEquals("virtualNetworkId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + virtualNetworkId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("dnsZoneType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dnsZoneType = new AvsDnsZoneType(property0.Value.GetString()); + continue; + } } continue; } @@ -495,6 +525,8 @@ internal static AvsPrivateCloudData DeserializeAvsPrivateCloudData(JsonElement e externalCloudLinks ?? new ChangeTrackingList(), secondaryCircuit, nsxPublicIPQuotaRaised, + virtualNetworkId, + dnsZoneType, serializedAdditionalRawData); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs index 71e1351f7d2dd..5c2167c33be70 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudData.cs @@ -53,7 +53,7 @@ public partial class AvsPrivateCloudData : TrackedResourceData /// Initializes a new instance of . /// The location. - /// The private cloud SKU. + /// The SKU (Stock Keeping Unit) assigned to this resource. /// is null. public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location) { @@ -72,18 +72,27 @@ public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location) /// The systemData. /// The tags. /// The location. - /// The private cloud SKU. - /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The SKU (Stock Keeping Unit) assigned to this resource. + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. /// The default cluster used for management. /// Connectivity to internet is enabled or disabled. /// vCenter Single Sign On Identity Sources. /// Properties describing how the cloud is distributed across availability zones. /// Customer managed key encryption, can be enabled or disabled. - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X). + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// /// The provisioning state. /// An ExpressRoute Circuit. /// The endpoints. - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. + /// + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// /// Network used to access vCenter Server and NSX-T Manager. /// Used for virtual machine cold migration, cloning, and snapshot migration. /// Used for live migration of virtual machines. @@ -92,10 +101,18 @@ public AvsPrivateCloudData(AzureLocation location, AvsSku sku) : base(location) /// Thumbprint of the vCenter Server SSL certificate. /// Thumbprint of the NSX-T Manager SSL certificate. /// Array of cloud link IDs from other clouds that connect to this one. - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud. - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. + /// + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud + /// + /// + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 + /// + /// Azure resource ID of the virtual network. + /// The type of DNS zone to use. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AvsSku sku, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, AvsPrivateCloudProvisioningState? provisioningState, ExpressRouteCircuit circuit, AvsPrivateCloudEndpoints endpoints, string networkBlock, string managementNetwork, string provisioningNetwork, string vMotionNetwork, string vCenterPassword, string nsxtPassword, string vCenterCertificateThumbprint, string nsxtCertificateThumbprint, IReadOnlyList externalCloudLinks, ExpressRouteCircuit secondaryCircuit, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AvsSku sku, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, AvsPrivateCloudProvisioningState? provisioningState, ExpressRouteCircuit circuit, AvsPrivateCloudEndpoints endpoints, string networkBlock, string managementNetwork, string provisioningNetwork, string vMotionNetwork, string vCenterPassword, string nsxtPassword, string vCenterCertificateThumbprint, string nsxtCertificateThumbprint, IReadOnlyList externalCloudLinks, ExpressRouteCircuit secondaryCircuit, NsxPublicIPQuotaRaisedEnum? nsxPublicIPQuotaRaised, ResourceIdentifier virtualNetworkId, AvsDnsZoneType? dnsZoneType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -119,6 +136,8 @@ internal AvsPrivateCloudData(ResourceIdentifier id, string name, ResourceType re ExternalCloudLinks = externalCloudLinks; SecondaryCircuit = secondaryCircuit; NsxPublicIPQuotaRaised = nsxPublicIPQuotaRaised; + VirtualNetworkId = virtualNetworkId; + DnsZoneType = dnsZoneType; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -127,16 +146,9 @@ internal AvsPrivateCloudData() { } - /// The private cloud SKU. - internal AvsSku Sku { get; set; } - /// The name of the SKU. - public string SkuName - { - get => Sku is null ? default : Sku.Name; - set => Sku = new AvsSku(value); - } - - /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The SKU (Stock Keeping Unit) assigned to this resource. + public AvsSku Sku { get; set; } + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. public ManagedServiceIdentity Identity { get; set; } /// The default cluster used for management. public AvsManagementCluster ManagementCluster { get; set; } @@ -148,7 +160,12 @@ public string SkuName public PrivateCloudAvailabilityProperties Availability { get; set; } /// Customer managed key encryption, can be enabled or disabled. public CustomerManagedEncryption Encryption { get; set; } - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X). + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// public IList ExtendedNetworkBlocks { get; } /// The provisioning state. public AvsPrivateCloudProvisioningState? ProvisioningState { get; } @@ -156,7 +173,11 @@ public string SkuName public ExpressRouteCircuit Circuit { get; set; } /// The endpoints. public AvsPrivateCloudEndpoints Endpoints { get; } - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. + /// + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// public string NetworkBlock { get; set; } /// Network used to access vCenter Server and NSX-T Manager. public string ManagementNetwork { get; } @@ -174,9 +195,19 @@ public string SkuName public string NsxtCertificateThumbprint { get; } /// Array of cloud link IDs from other clouds that connect to this one. public IReadOnlyList ExternalCloudLinks { get; } - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud. + /// + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud + /// public ExpressRouteCircuit SecondaryCircuit { get; set; } - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. + /// + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 + /// public NsxPublicIPQuotaRaisedEnum? NsxPublicIPQuotaRaised { get; } + /// Azure resource ID of the virtual network. + public ResourceIdentifier VirtualNetworkId { get; set; } + /// The type of DNS zone to use. + public AvsDnsZoneType? DnsZoneType { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs index b20e0ef4274e0..3f2fb7336422d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a datastore in a private cloud cluster + /// Create a Datastore /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the datastore in the private cloud cluster. - /// A datastore in a private cloud cluster. + /// Name of the datastore. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> Create try { var response = await _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> Create } /// - /// Create or update a datastore in a private cloud cluster + /// Create a Datastore /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> Create /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the datastore in the private cloud cluster. - /// A datastore in a private cloud cluster. + /// Name of the datastore. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(Wai try { var response = _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, datastoreName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wai } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(s } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(s /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string datastoreNa } /// - /// List datastores in a private cloud cluster + /// List Datastore resources by Cluster /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string datastoreNa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cance } /// - /// List datastores in a private cloud cluster + /// List Datastore resources by Cluster /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string datastoreName, Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string datastoreName, Canc /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string datastoreName, CancellationToken can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string datastoreName, CancellationToken can /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> Ge /// /// /// - /// Name of the datastore in the private cloud cluster. + /// Name of the datastore. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs index 4788dfe2ab370..f65ccb6832173 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.Serialization.cs @@ -55,6 +55,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("diskPoolVolume"u8); writer.WriteObjectValue(DiskPoolVolume, options); } + if (Optional.IsDefined(ElasticSanVolume)) + { + writer.WritePropertyName("elasticSanVolume"u8); + writer.WriteObjectValue(ElasticSanVolume, options); + } if (options.Format != "W" && Optional.IsDefined(Status)) { writer.WritePropertyName("status"u8); @@ -90,6 +95,7 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore AvsPrivateCloudDatastoreProvisioningState? provisioningState = default; WritableSubResource netAppVolume = default; DiskPoolVolume diskPoolVolume = default; + ElasticSanVolume elasticSanVolume = default; DatastoreStatus? status = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -155,6 +161,15 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore diskPoolVolume = DiskPoolVolume.DeserializeDiskPoolVolume(property0.Value, options); continue; } + if (property0.NameEquals("elasticSanVolume"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + elasticSanVolume = ElasticSanVolume.DeserializeElasticSanVolume(property0.Value, options); + continue; + } if (property0.NameEquals("status"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -181,6 +196,7 @@ internal static AvsPrivateCloudDatastoreData DeserializeAvsPrivateCloudDatastore provisioningState, netAppVolume, diskPoolVolume, + elasticSanVolume, status, serializedAdditionalRawData); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs index 1275606325e0c..9adf75d2e24d3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreData.cs @@ -65,13 +65,15 @@ public AvsPrivateCloudDatastoreData() /// The state of the datastore provisioning. /// An Azure NetApp Files volume. /// An iSCSI volume. + /// An Elastic SAN volume. /// The operational status of the datastore. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, WritableSubResource netAppVolume, DiskPoolVolume diskPoolVolume, DatastoreStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal AvsPrivateCloudDatastoreData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AvsPrivateCloudDatastoreProvisioningState? provisioningState, WritableSubResource netAppVolume, DiskPoolVolume diskPoolVolume, ElasticSanVolume elasticSanVolume, DatastoreStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { ProvisioningState = provisioningState; NetAppVolume = netAppVolume; DiskPoolVolume = diskPoolVolume; + ElasticSanVolume = elasticSanVolume; Status = status; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -94,6 +96,15 @@ public ResourceIdentifier NetAppVolumeId /// An iSCSI volume. public DiskPoolVolume DiskPoolVolume { get; set; } + /// An Elastic SAN volume. + internal ElasticSanVolume ElasticSanVolume { get; set; } + /// Azure resource ID of the Elastic SAN Volume. + public ResourceIdentifier ElasticSanVolumeTargetId + { + get => ElasticSanVolume is null ? default : ElasticSanVolume.TargetId; + set => ElasticSanVolume = new ElasticSanVolume(value); + } + /// The operational status of the datastore. public DatastoreStatus? Status { get; } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs index 0c3af8d8fc5d4..f5fccd0ff9062 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudDatastoreResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -130,7 +130,7 @@ public virtual async Task> GetAsync(C } /// - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// /// Request Path @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response Get(CancellationToken } /// - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// /// Request Path @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// /// Request Path @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a datastore in a private cloud cluster + /// Create a Datastore /// /// /// Request Path @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -275,7 +275,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A datastore in a private cloud cluster. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, AvsPrivateCloudDatastoreData data, CancellationToken cancellationToken = default) @@ -287,7 +287,7 @@ public virtual async Task> Update try { var response = await _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -300,7 +300,7 @@ public virtual async Task> Update } /// - /// Create or update a datastore in a private cloud cluster + /// Create a Datastore /// /// /// Request Path @@ -312,7 +312,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual async Task> Update /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A datastore in a private cloud cluster. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, AvsPrivateCloudDatastoreData data, CancellationToken cancellationToken = default) @@ -333,7 +333,7 @@ public virtual ArmOperation Update(WaitUntil w try { var response = _avsPrivateCloudDatastoreDatastoresRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new AvsPrivateCloudDatastoreOperationSource(Client), _avsPrivateCloudDatastoreDatastoresClientDiagnostics, Pipeline, _avsPrivateCloudDatastoreDatastoresRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs index aa472612ab221..dc03d06a5dfa5 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/AvsPrivateCloudResource.cs @@ -90,142 +90,73 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of AvsPrivateCloudClusterResources in the AvsPrivateCloud. - /// An object representing collection of AvsPrivateCloudClusterResources and their operations over a AvsPrivateCloudClusterResource. - public virtual AvsPrivateCloudClusterCollection GetAvsPrivateCloudClusters() - { - return GetCachedClient(client => new AvsPrivateCloudClusterCollection(client, Id)); - } - - /// - /// Get a cluster by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName} - /// - /// - /// Operation Id - /// Clusters_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the cluster in the private cloud. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAvsPrivateCloudClusterAsync(string clusterName, CancellationToken cancellationToken = default) - { - return await GetAvsPrivateCloudClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a cluster by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName} - /// - /// - /// Operation Id - /// Clusters_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the cluster in the private cloud. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAvsPrivateCloudCluster(string clusterName, CancellationToken cancellationToken = default) - { - return GetAvsPrivateCloudClusters().Get(clusterName, cancellationToken); - } - - /// Gets a collection of HcxEnterpriseSiteResources in the AvsPrivateCloud. - /// An object representing collection of HcxEnterpriseSiteResources and their operations over a HcxEnterpriseSiteResource. - public virtual HcxEnterpriseSiteCollection GetHcxEnterpriseSites() + /// Gets a collection of AvsPrivateCloudAddonResources in the AvsPrivateCloud. + /// An object representing collection of AvsPrivateCloudAddonResources and their operations over a AvsPrivateCloudAddonResource. + public virtual AvsPrivateCloudAddonCollection GetAvsPrivateCloudAddons() { - return GetCachedClient(client => new HcxEnterpriseSiteCollection(client, Id)); + return GetCachedClient(client => new AvsPrivateCloudAddonCollection(client, Id)); } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a Addon /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName} /// /// /// Operation Id - /// HcxEnterpriseSites_Get + /// Addons_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the addon. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetHcxEnterpriseSiteAsync(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default) + public virtual async Task> GetAvsPrivateCloudAddonAsync(string addonName, CancellationToken cancellationToken = default) { - return await GetHcxEnterpriseSites().GetAsync(hcxEnterpriseSiteName, cancellationToken).ConfigureAwait(false); + return await GetAvsPrivateCloudAddons().GetAsync(addonName, cancellationToken).ConfigureAwait(false); } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a Addon /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName} /// /// /// Operation Id - /// HcxEnterpriseSites_Get + /// Addons_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the addon. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetHcxEnterpriseSite(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default) + public virtual Response GetAvsPrivateCloudAddon(string addonName, CancellationToken cancellationToken = default) { - return GetHcxEnterpriseSites().Get(hcxEnterpriseSiteName, cancellationToken); + return GetAvsPrivateCloudAddons().Get(addonName, cancellationToken); } /// Gets a collection of ExpressRouteAuthorizationResources in the AvsPrivateCloud. @@ -236,7 +167,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -248,7 +179,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -256,7 +187,7 @@ public virtual ExpressRouteAuthorizationCollection GetExpressRouteAuthorizations /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -267,7 +198,7 @@ public virtual async Task> GetExpres } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -279,7 +210,7 @@ public virtual async Task> GetExpres /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -287,7 +218,7 @@ public virtual async Task> GetExpres /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -297,897 +228,356 @@ public virtual Response GetExpressRouteAuthor return GetExpressRouteAuthorizations().Get(authorizationName, cancellationToken); } - /// Gets a collection of GlobalReachConnectionResources in the AvsPrivateCloud. - /// An object representing collection of GlobalReachConnectionResources and their operations over a GlobalReachConnectionResource. - public virtual GlobalReachConnectionCollection GetGlobalReachConnections() - { - return GetCachedClient(client => new GlobalReachConnectionCollection(client, Id)); - } - - /// - /// Get a global reach connection by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName} - /// - /// - /// Operation Id - /// GlobalReachConnections_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the global reach connection in the private cloud. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetGlobalReachConnectionAsync(string globalReachConnectionName, CancellationToken cancellationToken = default) - { - return await GetGlobalReachConnections().GetAsync(globalReachConnectionName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a global reach connection by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName} - /// - /// - /// Operation Id - /// GlobalReachConnections_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the global reach connection in the private cloud. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetGlobalReachConnection(string globalReachConnectionName, CancellationToken cancellationToken = default) - { - return GetGlobalReachConnections().Get(globalReachConnectionName, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkResources and their operations over a WorkloadNetworkResource. - public virtual WorkloadNetworkCollection GetWorkloadNetworks() - { - return GetCachedClient(client => new WorkloadNetworkCollection(client, Id)); - } - - /// - /// Get a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} - /// - /// - /// Operation Id - /// WorkloadNetworks_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name for the workload network in the private cloud. - /// The cancellation token to use. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkAsync(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworks().GetAsync(workloadNetworkName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} - /// - /// - /// Operation Id - /// WorkloadNetworks_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name for the workload network in the private cloud. - /// The cancellation token to use. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetwork(WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworks().Get(workloadNetworkName, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkSegmentResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkSegmentResources and their operations over a WorkloadNetworkSegmentResource. - public virtual WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments() - { - return GetCachedClient(client => new WorkloadNetworkSegmentCollection(client, Id)); - } - - /// - /// Get a segment by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetSegment - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkSegmentAsync(string segmentId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkSegments().GetAsync(segmentId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a segment by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetSegment - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkSegment(string segmentId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkSegments().Get(segmentId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkDhcpResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkDhcpResources and their operations over a WorkloadNetworkDhcpResource. - public virtual WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps() - { - return GetCachedClient(client => new WorkloadNetworkDhcpCollection(client, Id)); - } - - /// - /// Get dhcp by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetDhcp - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkDhcpAsync(string dhcpId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkDhcps().GetAsync(dhcpId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get dhcp by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetDhcp - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkDhcp(string dhcpId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkDhcps().Get(dhcpId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkGatewayResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkGatewayResources and their operations over a WorkloadNetworkGatewayResource. - public virtual WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways() - { - return GetCachedClient(client => new WorkloadNetworkGatewayCollection(client, Id)); - } - - /// - /// Get a gateway by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetGateway - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkGatewayAsync(string gatewayId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkGateways().GetAsync(gatewayId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a gateway by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetGateway - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkGateway(string gatewayId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkGateways().Get(gatewayId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkPortMirroringProfileResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkPortMirroringProfileResources and their operations over a WorkloadNetworkPortMirroringProfileResource. - public virtual WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles() - { - return GetCachedClient(client => new WorkloadNetworkPortMirroringProfileCollection(client, Id)); - } - - /// - /// Get a port mirroring profile by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetPortMirroring - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkPortMirroringProfiles().GetAsync(portMirroringId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a port mirroring profile by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetPortMirroring - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkPortMirroringProfiles().Get(portMirroringId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkVmGroupResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkVmGroupResources and their operations over a WorkloadNetworkVmGroupResource. - public virtual WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups() - { - return GetCachedClient(client => new WorkloadNetworkVmGroupCollection(client, Id)); - } - - /// - /// Get a vm group by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetVmGroup - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkVmGroups().GetAsync(vmGroupId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a vm group by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetVmGroup - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkVmGroup(string vmGroupId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkVmGroups().Get(vmGroupId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkVirtualMachineResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkVirtualMachineResources and their operations over a WorkloadNetworkVirtualMachineResource. - public virtual WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines() - { - return GetCachedClient(client => new WorkloadNetworkVirtualMachineCollection(client, Id)); - } - - /// - /// Get a virtual machine by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetVirtualMachine - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Virtual Machine identifier. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default) - { - return await GetWorkloadNetworkVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get a virtual machine by id in a private cloud workload network. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} - /// - /// - /// Operation Id - /// WorkloadNetworks_GetVirtualMachine - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Virtual Machine identifier. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default) - { - return GetWorkloadNetworkVirtualMachines().Get(virtualMachineId, cancellationToken); - } - - /// Gets a collection of WorkloadNetworkDnsServiceResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkDnsServiceResources and their operations over a WorkloadNetworkDnsServiceResource. - public virtual WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices() + /// Gets a collection of AvsCloudLinkResources in the AvsPrivateCloud. + /// An object representing collection of AvsCloudLinkResources and their operations over a AvsCloudLinkResource. + public virtual AvsCloudLinkCollection GetAvsCloudLinks() { - return GetCachedClient(client => new WorkloadNetworkDnsServiceCollection(client, Id)); + return GetCachedClient(client => new AvsCloudLinkCollection(client, Id)); } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a CloudLink /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName} /// /// /// Operation Id - /// WorkloadNetworks_GetDnsService + /// CloudLinks_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// Name of the cloud link. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, CancellationToken cancellationToken = default) + public virtual async Task> GetAvsCloudLinkAsync(string cloudLinkName, CancellationToken cancellationToken = default) { - return await GetWorkloadNetworkDnsServices().GetAsync(dnsServiceId, cancellationToken).ConfigureAwait(false); + return await GetAvsCloudLinks().GetAsync(cloudLinkName, cancellationToken).ConfigureAwait(false); } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a CloudLink /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName} /// /// /// Operation Id - /// WorkloadNetworks_GetDnsService + /// CloudLinks_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// Name of the cloud link. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkDnsService(string dnsServiceId, CancellationToken cancellationToken = default) + public virtual Response GetAvsCloudLink(string cloudLinkName, CancellationToken cancellationToken = default) { - return GetWorkloadNetworkDnsServices().Get(dnsServiceId, cancellationToken); + return GetAvsCloudLinks().Get(cloudLinkName, cancellationToken); } - /// Gets a collection of WorkloadNetworkDnsZoneResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkDnsZoneResources and their operations over a WorkloadNetworkDnsZoneResource. - public virtual WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones() + /// Gets a collection of AvsPrivateCloudClusterResources in the AvsPrivateCloud. + /// An object representing collection of AvsPrivateCloudClusterResources and their operations over a AvsPrivateCloudClusterResource. + public virtual AvsPrivateCloudClusterCollection GetAvsPrivateCloudClusters() { - return GetCachedClient(client => new WorkloadNetworkDnsZoneCollection(client, Id)); + return GetCachedClient(client => new AvsPrivateCloudClusterCollection(client, Id)); } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a Cluster /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName} /// /// /// Operation Id - /// WorkloadNetworks_GetDnsZone + /// Clusters_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// Name of the cluster. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, CancellationToken cancellationToken = default) + public virtual async Task> GetAvsPrivateCloudClusterAsync(string clusterName, CancellationToken cancellationToken = default) { - return await GetWorkloadNetworkDnsZones().GetAsync(dnsZoneId, cancellationToken).ConfigureAwait(false); + return await GetAvsPrivateCloudClusters().GetAsync(clusterName, cancellationToken).ConfigureAwait(false); } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a Cluster /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName} /// /// /// Operation Id - /// WorkloadNetworks_GetDnsZone + /// Clusters_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// Name of the cluster. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkDnsZone(string dnsZoneId, CancellationToken cancellationToken = default) + public virtual Response GetAvsPrivateCloudCluster(string clusterName, CancellationToken cancellationToken = default) { - return GetWorkloadNetworkDnsZones().Get(dnsZoneId, cancellationToken); + return GetAvsPrivateCloudClusters().Get(clusterName, cancellationToken); } - /// Gets a collection of WorkloadNetworkPublicIPResources in the AvsPrivateCloud. - /// An object representing collection of WorkloadNetworkPublicIPResources and their operations over a WorkloadNetworkPublicIPResource. - public virtual WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs() + /// Gets a collection of GlobalReachConnectionResources in the AvsPrivateCloud. + /// An object representing collection of GlobalReachConnectionResources and their operations over a GlobalReachConnectionResource. + public virtual GlobalReachConnectionCollection GetGlobalReachConnections() { - return GetCachedClient(client => new WorkloadNetworkPublicIPCollection(client, Id)); + return GetCachedClient(client => new GlobalReachConnectionCollection(client, Id)); } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a GlobalReachConnection /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName} /// /// /// Operation Id - /// WorkloadNetworks_GetPublicIP + /// GlobalReachConnections_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// Name of the global reach connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, CancellationToken cancellationToken = default) + public virtual async Task> GetGlobalReachConnectionAsync(string globalReachConnectionName, CancellationToken cancellationToken = default) { - return await GetWorkloadNetworkPublicIPs().GetAsync(publicIPId, cancellationToken).ConfigureAwait(false); + return await GetGlobalReachConnections().GetAsync(globalReachConnectionName, cancellationToken).ConfigureAwait(false); } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a GlobalReachConnection /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName} /// /// /// Operation Id - /// WorkloadNetworks_GetPublicIP + /// GlobalReachConnections_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// Name of the global reach connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetWorkloadNetworkPublicIP(string publicIPId, CancellationToken cancellationToken = default) + public virtual Response GetGlobalReachConnection(string globalReachConnectionName, CancellationToken cancellationToken = default) { - return GetWorkloadNetworkPublicIPs().Get(publicIPId, cancellationToken); + return GetGlobalReachConnections().Get(globalReachConnectionName, cancellationToken); } - /// Gets a collection of AvsCloudLinkResources in the AvsPrivateCloud. - /// An object representing collection of AvsCloudLinkResources and their operations over a AvsCloudLinkResource. - public virtual AvsCloudLinkCollection GetAvsCloudLinks() + /// Gets a collection of HcxEnterpriseSiteResources in the AvsPrivateCloud. + /// An object representing collection of HcxEnterpriseSiteResources and their operations over a HcxEnterpriseSiteResource. + public virtual HcxEnterpriseSiteCollection GetHcxEnterpriseSites() { - return GetCachedClient(client => new AvsCloudLinkCollection(client, Id)); + return GetCachedClient(client => new HcxEnterpriseSiteCollection(client, Id)); } /// - /// Get an cloud link by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName} /// /// /// Operation Id - /// CloudLinks_Get + /// HcxEnterpriseSites_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the cloud link resource. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAvsCloudLinkAsync(string cloudLinkName, CancellationToken cancellationToken = default) + public virtual async Task> GetHcxEnterpriseSiteAsync(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default) { - return await GetAvsCloudLinks().GetAsync(cloudLinkName, cancellationToken).ConfigureAwait(false); + return await GetHcxEnterpriseSites().GetAsync(hcxEnterpriseSiteName, cancellationToken).ConfigureAwait(false); } /// - /// Get an cloud link by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName} /// /// /// Operation Id - /// CloudLinks_Get + /// HcxEnterpriseSites_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the cloud link resource. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAvsCloudLink(string cloudLinkName, CancellationToken cancellationToken = default) + public virtual Response GetHcxEnterpriseSite(string hcxEnterpriseSiteName, CancellationToken cancellationToken = default) { - return GetAvsCloudLinks().Get(cloudLinkName, cancellationToken); + return GetHcxEnterpriseSites().Get(hcxEnterpriseSiteName, cancellationToken); } - /// Gets a collection of AvsPrivateCloudAddonResources in the AvsPrivateCloud. - /// An object representing collection of AvsPrivateCloudAddonResources and their operations over a AvsPrivateCloudAddonResource. - public virtual AvsPrivateCloudAddonCollection GetAvsPrivateCloudAddons() + /// Gets an object representing a IscsiPathResource along with the instance operations that can be performed on it in the AvsPrivateCloud. + /// Returns a object. + public virtual IscsiPathResource GetIscsiPath() { - return GetCachedClient(client => new AvsPrivateCloudAddonCollection(client, Id)); + return new IscsiPathResource(Client, Id.AppendChildResource("iscsiPaths", "default")); + } + + /// Gets a collection of ScriptExecutionResources in the AvsPrivateCloud. + /// An object representing collection of ScriptExecutionResources and their operations over a ScriptExecutionResource. + public virtual ScriptExecutionCollection GetScriptExecutions() + { + return GetCachedClient(client => new ScriptExecutionCollection(client, Id)); } /// - /// Get an addon by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName} /// /// /// Operation Id - /// Addons_Get + /// ScriptExecutions_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the addon for the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAvsPrivateCloudAddonAsync(string addonName, CancellationToken cancellationToken = default) + public virtual async Task> GetScriptExecutionAsync(string scriptExecutionName, CancellationToken cancellationToken = default) { - return await GetAvsPrivateCloudAddons().GetAsync(addonName, cancellationToken).ConfigureAwait(false); + return await GetScriptExecutions().GetAsync(scriptExecutionName, cancellationToken).ConfigureAwait(false); } /// - /// Get an addon by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName} /// /// /// Operation Id - /// Addons_Get + /// ScriptExecutions_Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource - /// + /// /// /// /// - /// Name of the addon for the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAvsPrivateCloudAddon(string addonName, CancellationToken cancellationToken = default) + public virtual Response GetScriptExecution(string scriptExecutionName, CancellationToken cancellationToken = default) { - return GetAvsPrivateCloudAddons().Get(addonName, cancellationToken); + return GetScriptExecutions().Get(scriptExecutionName, cancellationToken); } /// Gets a collection of ScriptPackageResources in the AvsPrivateCloud. @@ -1198,7 +588,7 @@ public virtual ScriptPackageCollection GetScriptPackages() } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -1210,7 +600,7 @@ public virtual ScriptPackageCollection GetScriptPackages() /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1218,7 +608,7 @@ public virtual ScriptPackageCollection GetScriptPackages() /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -1229,7 +619,7 @@ public virtual async Task> GetScriptPackageAsync } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -1241,7 +631,7 @@ public virtual async Task> GetScriptPackageAsync /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1249,7 +639,7 @@ public virtual async Task> GetScriptPackageAsync /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -1259,77 +649,15 @@ public virtual Response GetScriptPackage(string scriptPac return GetScriptPackages().Get(scriptPackageName, cancellationToken); } - /// Gets a collection of ScriptExecutionResources in the AvsPrivateCloud. - /// An object representing collection of ScriptExecutionResources and their operations over a ScriptExecutionResource. - public virtual ScriptExecutionCollection GetScriptExecutions() - { - return GetCachedClient(client => new ScriptExecutionCollection(client, Id)); - } - - /// - /// Get an script execution by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName} - /// - /// - /// Operation Id - /// ScriptExecutions_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the user-invoked script execution resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetScriptExecutionAsync(string scriptExecutionName, CancellationToken cancellationToken = default) - { - return await GetScriptExecutions().GetAsync(scriptExecutionName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Get an script execution by name in a private cloud - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName} - /// - /// - /// Operation Id - /// ScriptExecutions_Get - /// - /// - /// Default Api Version - /// 2023-03-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the user-invoked script execution resource. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetScriptExecution(string scriptExecutionName, CancellationToken cancellationToken = default) + /// Gets an object representing a WorkloadNetworkResource along with the instance operations that can be performed on it in the AvsPrivateCloud. + /// Returns a object. + public virtual WorkloadNetworkResource GetWorkloadNetwork() { - return GetScriptExecutions().Get(scriptExecutionName, cancellationToken); + return new WorkloadNetworkResource(Client, Id.AppendChildResource("workloadNetworks", "default")); } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -1341,7 +669,7 @@ public virtual Response GetScriptExecution(string scrip /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1369,7 +697,7 @@ public virtual async Task> GetAsync(Cancellati } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -1381,7 +709,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1409,7 +737,7 @@ public virtual Response Get(CancellationToken cancellat } /// - /// Delete a private cloud + /// Delete a PrivateCloud /// /// /// Request Path @@ -1421,7 +749,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1451,7 +779,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a private cloud + /// Delete a PrivateCloud /// /// /// Request Path @@ -1463,7 +791,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1493,7 +821,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update a private cloud + /// Update a PrivateCloud /// /// /// Request Path @@ -1505,7 +833,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1539,7 +867,7 @@ public virtual async Task> UpdateAsync(Wai } /// - /// Update a private cloud + /// Update a PrivateCloud /// /// /// Request Path @@ -1551,7 +879,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1585,19 +913,19 @@ public virtual ArmOperation Update(WaitUntil waitUntil, } /// - /// Rotate the vCenter password + /// List the admin credentials for the private cloud /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials /// /// /// Operation Id - /// PrivateClouds_RotateVcenterPassword + /// PrivateClouds_ListAdminCredentials /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1605,19 +933,15 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task RotateVCenterPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> GetAdminCredentialsAsync(CancellationToken cancellationToken = default) { - using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword"); + using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials"); scope.Start(); try { - var response = await _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; + var response = await _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; } catch (Exception e) { @@ -1627,19 +951,19 @@ public virtual async Task RotateVCenterPasswordAsync(WaitUntil wai } /// - /// Rotate the vCenter password + /// List the admin credentials for the private cloud /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials /// /// /// Operation Id - /// PrivateClouds_RotateVcenterPassword + /// PrivateClouds_ListAdminCredentials /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1647,19 +971,15 @@ public virtual async Task RotateVCenterPasswordAsync(WaitUntil wai /// /// /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual Response GetAdminCredentials(CancellationToken cancellationToken = default) { - using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword"); + using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials"); scope.Start(); try { - var response = _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; + var response = _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; } catch (Exception e) { @@ -1681,7 +1001,7 @@ public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1723,7 +1043,7 @@ public virtual async Task RotateNsxtPasswordAsync(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1753,19 +1073,19 @@ public virtual ArmOperation RotateNsxtPassword(WaitUntil waitUntil, Cancellation } /// - /// List the admin credentials for the private cloud + /// Rotate the vCenter password /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword /// /// /// Operation Id - /// PrivateClouds_ListAdminCredentials + /// PrivateClouds_RotateVcenterPassword /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1773,15 +1093,19 @@ public virtual ArmOperation RotateNsxtPassword(WaitUntil waitUntil, Cancellation /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task> GetAdminCredentialsAsync(CancellationToken cancellationToken = default) + public virtual async Task RotateVCenterPasswordAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials"); + using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword"); scope.Start(); try { - var response = await _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentialsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; + var response = await _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPasswordAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -1791,19 +1115,19 @@ public virtual async Task> GetAdminCredentialsAsync(C } /// - /// List the admin credentials for the private cloud + /// Rotate the vCenter password /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword /// /// /// Operation Id - /// PrivateClouds_ListAdminCredentials + /// PrivateClouds_RotateVcenterPassword /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1811,15 +1135,19 @@ public virtual async Task> GetAdminCredentialsAsync(C /// /// /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual Response GetAdminCredentials(CancellationToken cancellationToken = default) + public virtual ArmOperation RotateVCenterPassword(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.GetAdminCredentials"); + using var scope = _avsPrivateCloudPrivateCloudsClientDiagnostics.CreateScope("AvsPrivateCloudResource.RotateVCenterPassword"); scope.Start(); try { - var response = _avsPrivateCloudPrivateCloudsRestClient.ListAdminCredentials(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; + var response = _avsPrivateCloudPrivateCloudsRestClient.RotateVcenterPassword(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new AvsArmOperation(_avsPrivateCloudPrivateCloudsClientDiagnostics, Pipeline, _avsPrivateCloudPrivateCloudsRestClient.CreateRotateVcenterPasswordRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; } catch (Exception e) { @@ -1841,7 +1169,7 @@ public virtual Response GetAdminCredentials(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1903,7 +1231,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -1965,7 +1293,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -2022,7 +1350,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -2079,7 +1407,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -2139,7 +1467,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs index 7b58de2e5a230..b430c3f597fc2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. - /// An ExpressRoute Circuit Authorization. + /// Name of the ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> Creat try { var response = await _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> Creat } /// - /// Create or update an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> Creat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. - /// An ExpressRoute Circuit Authorization. + /// Name of the ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(Wa try { var response = _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data, cancellationToken); - var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wa } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync( } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync( /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string authorizat } /// - /// List ExpressRoute Circuit Authorizations in a private cloud + /// List ExpressRouteAuthorization resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string authorizat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Canc } /// - /// List ExpressRoute Circuit Authorizations in a private cloud + /// List ExpressRouteAuthorization resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> G /// /// /// - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs index a9465eeb9a110..44fde78ecc033 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationData.cs @@ -61,7 +61,7 @@ public ExpressRouteAuthorizationData() /// The name. /// The resourceType. /// The systemData. - /// The state of the ExpressRoute Circuit Authorization provisioning. + /// The state of the ExpressRoute Circuit Authorization provisioning. /// The ID of the ExpressRoute Circuit Authorization. /// The key of the ExpressRoute Circuit Authorization. /// The ID of the ExpressRoute Circuit. @@ -75,7 +75,7 @@ internal ExpressRouteAuthorizationData(ResourceIdentifier id, string name, Resou _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The state of the ExpressRoute Circuit Authorization provisioning. + /// The state of the ExpressRoute Circuit Authorization provisioning. public ExpressRouteAuthorizationProvisioningState? ProvisioningState { get; } /// The ID of the ExpressRoute Circuit Authorization. public ResourceIdentifier ExpressRouteAuthorizationId { get; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs index e7eca098535c9..82f3991609a0a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ExpressRouteAuthorizationResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync( } /// - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken } /// - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// An ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, ExpressRouteAuthorizationData data, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual async Task> Updat try { var response = await _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -299,7 +299,7 @@ public virtual async Task> Updat } /// - /// Create or update an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> Updat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// An ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, ExpressRouteAuthorizationData data, CancellationToken cancellationToken = default) @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil try { var response = _expressRouteAuthorizationAuthorizationsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ExpressRouteAuthorizationOperationSource(Client), _expressRouteAuthorizationAuthorizationsClientDiagnostics, Pipeline, _expressRouteAuthorizationAuthorizationsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs index f2e3da6b282e5..50ae0b65f1cef 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/AvsExtensions.cs @@ -52,6 +52,63 @@ public static AvsPrivateCloudResource GetAvsPrivateCloudResource(this ArmClient return GetMockableAvsArmClient(client).GetAvsPrivateCloudResource(id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAvsArmClient(client).GetAvsPrivateCloudAddonResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAvsArmClient(client).GetExpressRouteAuthorizationResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AvsCloudLinkResource GetAvsCloudLinkResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAvsArmClient(client).GetAvsCloudLinkResource(id); + } + /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -91,41 +148,41 @@ public static AvsPrivateCloudDatastoreResource GetAvsPrivateCloudDatastoreResour } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static PlacementPolicyResource GetPlacementPolicyResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetHcxEnterpriseSiteResource(id); + return GetMockableAvsArmClient(client).GetPlacementPolicyResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetExpressRouteAuthorizationResource(id); + return GetMockableAvsArmClient(client).GetAvsPrivateCloudClusterVirtualMachineResource(id); } /// @@ -148,136 +205,136 @@ public static GlobalReachConnectionResource GetGlobalReachConnectionResource(thi } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkResource GetWorkloadNetworkResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkResource(id); + return GetMockableAvsArmClient(client).GetHcxEnterpriseSiteResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static IscsiPathResource GetIscsiPathResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkSegmentResource(id); + return GetMockableAvsArmClient(client).GetIscsiPathResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ScriptExecutionResource GetScriptExecutionResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkDhcpResource(id); + return GetMockableAvsArmClient(client).GetScriptExecutionResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ScriptPackageResource GetScriptPackageResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkGatewayResource(id); + return GetMockableAvsArmClient(client).GetScriptPackageResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ScriptCmdletResource GetScriptCmdletResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkPortMirroringProfileResource(id); + return GetMockableAvsArmClient(client).GetScriptCmdletResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkResource GetWorkloadNetworkResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkVmGroupResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetWorkloadNetworkVirtualMachineResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkDhcpResource(id); } /// @@ -319,155 +376,117 @@ public static WorkloadNetworkDnsZoneResource GetWorkloadNetworkDnsZoneResource(t } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAvsArmClient(client).GetWorkloadNetworkPublicIPResource(id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static AvsCloudLinkResource GetAvsCloudLinkResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAvsArmClient(client).GetAvsCloudLinkResource(id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetAvsPrivateCloudAddonResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkGatewayResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetAvsPrivateCloudClusterVirtualMachineResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkPortMirroringProfileResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static PlacementPolicyResource GetPlacementPolicyResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetPlacementPolicyResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkPublicIPResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static ScriptPackageResource GetScriptPackageResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetScriptPackageResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkSegmentResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static ScriptCmdletResource GetScriptCmdletResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetScriptCmdletResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkVirtualMachineResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static ScriptExecutionResource GetScriptExecutionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAvsArmClient(client).GetScriptExecutionResource(id); + return GetMockableAvsArmClient(client).GetWorkloadNetworkVmGroupResource(id); } /// @@ -488,7 +507,7 @@ public static AvsPrivateCloudCollection GetAvsPrivateClouds(this ResourceGroupRe } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -500,7 +519,7 @@ public static AvsPrivateCloudCollection GetAvsPrivateClouds(this ResourceGroupRe /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -526,7 +545,7 @@ public static async Task> GetAvsPrivateCloudAs } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -538,7 +557,7 @@ public static async Task> GetAvsPrivateCloudAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -564,137 +583,137 @@ public static Response GetAvsPrivateCloud(this Resource } /// - /// Return trial status for subscription by region + /// Return quota for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability /// /// /// Operation Id - /// Locations_CheckTrialAvailability + /// Locations_CheckQuotaAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Azure region. - /// The sku to check for trial availability. + /// The name of the Azure region. /// The cancellation token to use. /// is null. - public static async Task> CheckAvsTrialAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public static async Task> CheckAvsQuotaAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailabilityAsync(location, sku, cancellationToken).ConfigureAwait(false); + return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailabilityAsync(location, cancellationToken).ConfigureAwait(false); } /// - /// Return trial status for subscription by region + /// Return quota for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability /// /// /// Operation Id - /// Locations_CheckTrialAvailability + /// Locations_CheckQuotaAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Azure region. - /// The sku to check for trial availability. + /// The name of the Azure region. /// The cancellation token to use. /// is null. - public static Response CheckAvsTrialAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public static Response CheckAvsQuotaAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailability(location, sku, cancellationToken); + return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailability(location, cancellationToken); } /// - /// Return quota for subscription by region + /// Return trial status for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability /// /// /// Operation Id - /// Locations_CheckQuotaAvailability + /// Locations_CheckTrialAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Azure region. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. /// is null. - public static async Task> CheckAvsQuotaAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + public static async Task> CheckAvsTrialAvailabilityAsync(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailabilityAsync(location, cancellationToken).ConfigureAwait(false); + return await GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailabilityAsync(location, sku, cancellationToken).ConfigureAwait(false); } /// - /// Return quota for subscription by region + /// Return trial status for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability /// /// /// Operation Id - /// Locations_CheckQuotaAvailability + /// Locations_CheckTrialAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// Azure region. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. /// is null. - public static Response CheckAvsQuotaAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + public static Response CheckAvsTrialAvailability(this SubscriptionResource subscriptionResource, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsQuotaAvailability(location, cancellationToken); + return GetMockableAvsSubscriptionResource(subscriptionResource).CheckAvsTrialAvailability(location, sku, cancellationToken); } /// - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// /// Request Path @@ -706,7 +725,7 @@ public static Response CheckAvsQuotaAvai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -730,7 +749,7 @@ public static AsyncPageable GetAvsPrivateCloudsAsync(th } /// - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// /// Request Path @@ -742,7 +761,7 @@ public static AsyncPageable GetAvsPrivateCloudsAsync(th /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs index 21a9502f61176..daf42488f4d4b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsArmClient.cs @@ -46,6 +46,42 @@ public virtual AvsPrivateCloudResource GetAvsPrivateCloudResource(ResourceIdenti return new AvsPrivateCloudResource(Client, id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(ResourceIdentifier id) + { + AvsPrivateCloudAddonResource.ValidateResourceId(id); + return new AvsPrivateCloudAddonResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(ResourceIdentifier id) + { + ExpressRouteAuthorizationResource.ValidateResourceId(id); + return new ExpressRouteAuthorizationResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AvsCloudLinkResource GetAvsCloudLinkResource(ResourceIdentifier id) + { + AvsCloudLinkResource.ValidateResourceId(id); + return new AvsCloudLinkResource(Client, id); + } + /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -71,27 +107,27 @@ public virtual AvsPrivateCloudDatastoreResource GetAvsPrivateCloudDatastoreResou } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(ResourceIdentifier id) + /// Returns a object. + public virtual PlacementPolicyResource GetPlacementPolicyResource(ResourceIdentifier id) { - HcxEnterpriseSiteResource.ValidateResourceId(id); - return new HcxEnterpriseSiteResource(Client, id); + PlacementPolicyResource.ValidateResourceId(id); + return new PlacementPolicyResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual ExpressRouteAuthorizationResource GetExpressRouteAuthorizationResource(ResourceIdentifier id) + /// Returns a object. + public virtual AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(ResourceIdentifier id) { - ExpressRouteAuthorizationResource.ValidateResourceId(id); - return new ExpressRouteAuthorizationResource(Client, id); + AvsPrivateCloudClusterVirtualMachineResource.ValidateResourceId(id); + return new AvsPrivateCloudClusterVirtualMachineResource(Client, id); } /// @@ -107,87 +143,87 @@ public virtual GlobalReachConnectionResource GetGlobalReachConnectionResource(Re } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkResource GetWorkloadNetworkResource(ResourceIdentifier id) + /// Returns a object. + public virtual HcxEnterpriseSiteResource GetHcxEnterpriseSiteResource(ResourceIdentifier id) { - WorkloadNetworkResource.ValidateResourceId(id); - return new WorkloadNetworkResource(Client, id); + HcxEnterpriseSiteResource.ValidateResourceId(id); + return new HcxEnterpriseSiteResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(ResourceIdentifier id) + /// Returns a object. + public virtual IscsiPathResource GetIscsiPathResource(ResourceIdentifier id) { - WorkloadNetworkSegmentResource.ValidateResourceId(id); - return new WorkloadNetworkSegmentResource(Client, id); + IscsiPathResource.ValidateResourceId(id); + return new IscsiPathResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(ResourceIdentifier id) + /// Returns a object. + public virtual ScriptExecutionResource GetScriptExecutionResource(ResourceIdentifier id) { - WorkloadNetworkDhcpResource.ValidateResourceId(id); - return new WorkloadNetworkDhcpResource(Client, id); + ScriptExecutionResource.ValidateResourceId(id); + return new ScriptExecutionResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(ResourceIdentifier id) + /// Returns a object. + public virtual ScriptPackageResource GetScriptPackageResource(ResourceIdentifier id) { - WorkloadNetworkGatewayResource.ValidateResourceId(id); - return new WorkloadNetworkGatewayResource(Client, id); + ScriptPackageResource.ValidateResourceId(id); + return new ScriptPackageResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(ResourceIdentifier id) + /// Returns a object. + public virtual ScriptCmdletResource GetScriptCmdletResource(ResourceIdentifier id) { - WorkloadNetworkPortMirroringProfileResource.ValidateResourceId(id); - return new WorkloadNetworkPortMirroringProfileResource(Client, id); + ScriptCmdletResource.ValidateResourceId(id); + return new ScriptCmdletResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkResource GetWorkloadNetworkResource(ResourceIdentifier id) { - WorkloadNetworkVmGroupResource.ValidateResourceId(id); - return new WorkloadNetworkVmGroupResource(Client, id); + WorkloadNetworkResource.ValidateResourceId(id); + return new WorkloadNetworkResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkDhcpResource GetWorkloadNetworkDhcpResource(ResourceIdentifier id) { - WorkloadNetworkVirtualMachineResource.ValidateResourceId(id); - return new WorkloadNetworkVirtualMachineResource(Client, id); + WorkloadNetworkDhcpResource.ValidateResourceId(id); + return new WorkloadNetworkDhcpResource(Client, id); } /// @@ -215,99 +251,75 @@ public virtual WorkloadNetworkDnsZoneResource GetWorkloadNetworkDnsZoneResource( } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(ResourceIdentifier id) - { - WorkloadNetworkPublicIPResource.ValidateResourceId(id); - return new WorkloadNetworkPublicIPResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AvsCloudLinkResource GetAvsCloudLinkResource(ResourceIdentifier id) - { - AvsCloudLinkResource.ValidateResourceId(id); - return new AvsCloudLinkResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AvsPrivateCloudAddonResource GetAvsPrivateCloudAddonResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkGatewayResource GetWorkloadNetworkGatewayResource(ResourceIdentifier id) { - AvsPrivateCloudAddonResource.ValidateResourceId(id); - return new AvsPrivateCloudAddonResource(Client, id); + WorkloadNetworkGatewayResource.ValidateResourceId(id); + return new WorkloadNetworkGatewayResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AvsPrivateCloudClusterVirtualMachineResource GetAvsPrivateCloudClusterVirtualMachineResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkPortMirroringProfileResource GetWorkloadNetworkPortMirroringProfileResource(ResourceIdentifier id) { - AvsPrivateCloudClusterVirtualMachineResource.ValidateResourceId(id); - return new AvsPrivateCloudClusterVirtualMachineResource(Client, id); + WorkloadNetworkPortMirroringProfileResource.ValidateResourceId(id); + return new WorkloadNetworkPortMirroringProfileResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual PlacementPolicyResource GetPlacementPolicyResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkPublicIPResource GetWorkloadNetworkPublicIPResource(ResourceIdentifier id) { - PlacementPolicyResource.ValidateResourceId(id); - return new PlacementPolicyResource(Client, id); + WorkloadNetworkPublicIPResource.ValidateResourceId(id); + return new WorkloadNetworkPublicIPResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual ScriptPackageResource GetScriptPackageResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkSegmentResource GetWorkloadNetworkSegmentResource(ResourceIdentifier id) { - ScriptPackageResource.ValidateResourceId(id); - return new ScriptPackageResource(Client, id); + WorkloadNetworkSegmentResource.ValidateResourceId(id); + return new WorkloadNetworkSegmentResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual ScriptCmdletResource GetScriptCmdletResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkVirtualMachineResource GetWorkloadNetworkVirtualMachineResource(ResourceIdentifier id) { - ScriptCmdletResource.ValidateResourceId(id); - return new ScriptCmdletResource(Client, id); + WorkloadNetworkVirtualMachineResource.ValidateResourceId(id); + return new WorkloadNetworkVirtualMachineResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual ScriptExecutionResource GetScriptExecutionResource(ResourceIdentifier id) + /// Returns a object. + public virtual WorkloadNetworkVmGroupResource GetWorkloadNetworkVmGroupResource(ResourceIdentifier id) { - ScriptExecutionResource.ValidateResourceId(id); - return new ScriptExecutionResource(Client, id); + WorkloadNetworkVmGroupResource.ValidateResourceId(id); + return new WorkloadNetworkVmGroupResource(Client, id); } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs index bdd8a62525706..13641e496b0f1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsResourceGroupResource.cs @@ -41,7 +41,7 @@ public virtual AvsPrivateCloudCollection GetAvsPrivateClouds() } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -53,7 +53,7 @@ public virtual AvsPrivateCloudCollection GetAvsPrivateClouds() /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ public virtual async Task> GetAvsPrivateCloudA } /// - /// Get a private cloud + /// Get a PrivateCloud /// /// /// Request Path @@ -84,7 +84,7 @@ public virtual async Task> GetAvsPrivateCloudA /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs index 08c2a8bda6ecb..343d2169e16bf 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Extensions/MockableAvsSubscriptionResource.cs @@ -47,32 +47,31 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Return trial status for subscription by region + /// Return quota for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability /// /// /// Operation Id - /// Locations_CheckTrialAvailability + /// Locations_CheckQuotaAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// - /// Azure region. - /// The sku to check for trial availability. + /// The name of the Azure region. /// The cancellation token to use. - public virtual async Task> CheckAvsTrialAvailabilityAsync(AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public virtual async Task> CheckAvsQuotaAvailabilityAsync(AzureLocation location, CancellationToken cancellationToken = default) { - using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsTrialAvailability"); + using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsQuotaAvailability"); scope.Start(); try { - var response = await LocationsRestClient.CheckTrialAvailabilityAsync(Id.SubscriptionId, location, sku, cancellationToken).ConfigureAwait(false); + var response = await LocationsRestClient.CheckQuotaAvailabilityAsync(Id.SubscriptionId, location, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -83,32 +82,31 @@ public virtual async Task> Chec } /// - /// Return trial status for subscription by region + /// Return quota for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability /// /// /// Operation Id - /// Locations_CheckTrialAvailability + /// Locations_CheckQuotaAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// - /// Azure region. - /// The sku to check for trial availability. + /// The name of the Azure region. /// The cancellation token to use. - public virtual Response CheckAvsTrialAvailability(AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public virtual Response CheckAvsQuotaAvailability(AzureLocation location, CancellationToken cancellationToken = default) { - using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsTrialAvailability"); + using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsQuotaAvailability"); scope.Start(); try { - var response = LocationsRestClient.CheckTrialAvailability(Id.SubscriptionId, location, sku, cancellationToken); + var response = LocationsRestClient.CheckQuotaAvailability(Id.SubscriptionId, location, cancellationToken); return response; } catch (Exception e) @@ -119,31 +117,32 @@ public virtual Response CheckAvsTrialAva } /// - /// Return quota for subscription by region + /// Return trial status for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability /// /// /// Operation Id - /// Locations_CheckQuotaAvailability + /// Locations_CheckTrialAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// - /// Azure region. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. - public virtual async Task> CheckAvsQuotaAvailabilityAsync(AzureLocation location, CancellationToken cancellationToken = default) + public virtual async Task> CheckAvsTrialAvailabilityAsync(AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { - using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsQuotaAvailability"); + using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsTrialAvailability"); scope.Start(); try { - var response = await LocationsRestClient.CheckQuotaAvailabilityAsync(Id.SubscriptionId, location, cancellationToken).ConfigureAwait(false); + var response = await LocationsRestClient.CheckTrialAvailabilityAsync(Id.SubscriptionId, location, sku, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -154,31 +153,32 @@ public virtual async Task> Chec } /// - /// Return quota for subscription by region + /// Return trial status for subscription by region /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability + /// /subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability /// /// /// Operation Id - /// Locations_CheckQuotaAvailability + /// Locations_CheckTrialAvailability /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// - /// Azure region. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. - public virtual Response CheckAvsQuotaAvailability(AzureLocation location, CancellationToken cancellationToken = default) + public virtual Response CheckAvsTrialAvailability(AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { - using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsQuotaAvailability"); + using var scope = LocationsClientDiagnostics.CreateScope("MockableAvsSubscriptionResource.CheckAvsTrialAvailability"); scope.Start(); try { - var response = LocationsRestClient.CheckQuotaAvailability(Id.SubscriptionId, location, cancellationToken); + var response = LocationsRestClient.CheckTrialAvailability(Id.SubscriptionId, location, sku, cancellationToken); return response; } catch (Exception e) @@ -189,7 +189,7 @@ public virtual Response CheckAvsQuotaAva } /// - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// /// Request Path @@ -201,7 +201,7 @@ public virtual Response CheckAvsQuotaAva /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual AsyncPageable GetAvsPrivateCloudsAsync(C } /// - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// /// Request Path @@ -231,7 +231,7 @@ public virtual AsyncPageable GetAvsPrivateCloudsAsync(C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionCollection.cs index 37a9db8a602dc..236924e4f6fa9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the global reach connection in the private cloud. - /// A global reach connection in the private cloud. + /// Name of the global reach connection. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOrU try { var response = await _globalReachConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrU } /// - /// Create or update a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrU /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the global reach connection in the private cloud. - /// A global reach connection in the private cloud. + /// Name of the global reach connection. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn try { var response = _globalReachConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data, cancellationToken); - var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, globalReachConnectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn } /// - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(stri } /// - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(stri /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string globalReachCon } /// - /// List global reach connections in a private cloud + /// List GlobalReachConnection resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string globalReachCon /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancella } /// - /// List global reach connections in a private cloud + /// List GlobalReachConnection resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string globalReachConnecti /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string globalReachConnecti /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string globalReachConnectionName, Cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string globalReachConnectionName, Cancellat /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIf /// /// /// - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionData.cs index 5af108250532d..d2053e09b5a57 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionData.cs @@ -62,11 +62,23 @@ public GlobalReachConnectionData() /// The resourceType. /// The systemData. /// The state of the ExpressRoute Circuit Authorization provisioning. - /// The network used for global reach carved out from the original network block provided for the private cloud. - /// Authorization key from the peer express route used for the global reach connection. + /// + /// The network used for global reach carved out from the original network block + /// provided for the private cloud + /// + /// + /// Authorization key from the peer express route used for the global reach + /// connection + /// /// The connection status of the global reach connection. - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection. - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection. + /// + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection + /// + /// + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection + /// /// Keeps track of any properties unknown to the library. internal GlobalReachConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GlobalReachConnectionProvisioningState? provisioningState, string addressPrefix, string authorizationKey, GlobalReachConnectionStatus? circuitConnectionStatus, ResourceIdentifier peerExpressRouteCircuit, ResourceIdentifier expressRouteId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -81,15 +93,27 @@ internal GlobalReachConnectionData(ResourceIdentifier id, string name, ResourceT /// The state of the ExpressRoute Circuit Authorization provisioning. public GlobalReachConnectionProvisioningState? ProvisioningState { get; } - /// The network used for global reach carved out from the original network block provided for the private cloud. + /// + /// The network used for global reach carved out from the original network block + /// provided for the private cloud + /// public string AddressPrefix { get; } - /// Authorization key from the peer express route used for the global reach connection. + /// + /// Authorization key from the peer express route used for the global reach + /// connection + /// public string AuthorizationKey { get; set; } /// The connection status of the global reach connection. public GlobalReachConnectionStatus? CircuitConnectionStatus { get; } - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection. + /// + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection + /// public ResourceIdentifier PeerExpressRouteCircuit { get; set; } - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection. + /// + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection + /// public ResourceIdentifier ExpressRouteId { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionResource.cs index d2ef8995ba9aa..66f72b742510f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/GlobalReachConnectionResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Canc } /// - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken can } /// - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A global reach connection in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, GlobalReachConnectionData data, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual async Task> UpdateAsy try { var response = await _globalReachConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -299,7 +299,7 @@ public virtual async Task> UpdateAsy } /// - /// Create or update a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsy /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A global reach connection in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, GlobalReachConnectionData data, CancellationToken cancellationToken = default) @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil wait try { var response = _globalReachConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new GlobalReachConnectionOperationSource(Client), _globalReachConnectionClientDiagnostics, Pipeline, _globalReachConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs index fbf67e57025cc..5416b3e257758 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update an activation key for on-premises HCX site + /// Create a HcxEnterpriseSite /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the HCX Enterprise Site in the private cloud. - /// The HCX Enterprise Site. + /// Name of the HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -103,7 +103,7 @@ public virtual async Task> CreateOrUpdat } /// - /// Create or update an activation key for on-premises HCX site + /// Create a HcxEnterpriseSite /// /// /// Request Path @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -124,8 +124,8 @@ public virtual async Task> CreateOrUpdat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the HCX Enterprise Site in the private cloud. - /// The HCX Enterprise Site. + /// Name of the HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -154,7 +154,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -199,7 +199,7 @@ public virtual async Task> GetAsync(string h } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string h /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual async Task> GetAsync(string h /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -244,7 +244,7 @@ public virtual Response Get(string hcxEnterpriseSiteN } /// - /// List HCX on-premises key in a private cloud + /// List HcxEnterpriseSite resources by PrivateCloud /// /// /// Request Path @@ -256,7 +256,7 @@ public virtual Response Get(string hcxEnterpriseSiteN /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation } /// - /// List HCX on-premises key in a private cloud + /// List HcxEnterpriseSite resources by PrivateCloud /// /// /// Request Path @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string hcxEnterpriseSiteNa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string hcxEnterpriseSiteNa /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -402,7 +402,7 @@ public virtual Response Exists(string hcxEnterpriseSiteName, CancellationT /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual Response Exists(string hcxEnterpriseSiteName, CancellationT /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -447,7 +447,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> GetIfExis /// /// /// - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.Serialization.cs index e4eca14582f44..a81eaec8d2d46 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.Serialization.cs @@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(ActivationKey)) { writer.WritePropertyName("activationKey"u8); @@ -76,6 +81,7 @@ internal static HcxEnterpriseSiteData DeserializeHcxEnterpriseSiteData(JsonEleme string name = default; ResourceType type = default; SystemData systemData = default; + HcxEnterpriseSiteProvisioningState? provisioningState = default; string activationKey = default; HcxEnterpriseSiteStatus? status = default; IDictionary serializedAdditionalRawData = default; @@ -115,6 +121,15 @@ internal static HcxEnterpriseSiteData DeserializeHcxEnterpriseSiteData(JsonEleme } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new HcxEnterpriseSiteProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("activationKey"u8)) { activationKey = property0.Value.GetString(); @@ -143,6 +158,7 @@ internal static HcxEnterpriseSiteData DeserializeHcxEnterpriseSiteData(JsonEleme name, type, systemData, + provisioningState, activationKey, status, serializedAdditionalRawData); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.cs index 153277f4a592a..9bdb7f093ba68 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteData.cs @@ -61,16 +61,20 @@ public HcxEnterpriseSiteData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// The activation key. /// The status of the HCX Enterprise Site. /// Keeps track of any properties unknown to the library. - internal HcxEnterpriseSiteData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string activationKey, HcxEnterpriseSiteStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal HcxEnterpriseSiteData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HcxEnterpriseSiteProvisioningState? provisioningState, string activationKey, HcxEnterpriseSiteStatus? status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; ActivationKey = activationKey; Status = status; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public HcxEnterpriseSiteProvisioningState? ProvisioningState { get; } /// The activation key. public string ActivationKey { get; } /// The status of the HCX Enterprise Site. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs index ae5003bb5ccad..1de9641912c0b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/HcxEnterpriseSiteResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Cancella } /// - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken cancell } /// - /// Delete HCX on-premises key in a private cloud + /// Delete a HcxEnterpriseSite /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete HCX on-premises key in a private cloud + /// Delete a HcxEnterpriseSite /// /// /// Request Path @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update an activation key for on-premises HCX site + /// Create a HcxEnterpriseSite /// /// /// Request Path @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, HcxEnterpriseSiteData data, CancellationToken cancellationToken = default) @@ -305,7 +305,7 @@ public virtual async Task> UpdateAsync(W } /// - /// Create or update an activation key for on-premises HCX site + /// Create a HcxEnterpriseSite /// /// /// Request Path @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual async Task> UpdateAsync(W /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, HcxEnterpriseSiteData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.Serialization.cs new file mode 100644 index 0000000000000..69e2507235ad6 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.Serialization.cs @@ -0,0 +1,182 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Avs.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Avs +{ + public partial class IscsiPathData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IscsiPathData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(NetworkBlock)) + { + writer.WritePropertyName("networkBlock"u8); + writer.WriteStringValue(NetworkBlock); + } + writer.WriteEndObject(); + } + + IscsiPathData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IscsiPathData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIscsiPathData(document.RootElement, options); + } + + internal static IscsiPathData DeserializeIscsiPathData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IscsiPathProvisioningState? provisioningState = default; + string networkBlock = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new IscsiPathProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("networkBlock"u8)) + { + networkBlock = property0.Value.GetString(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IscsiPathData( + id, + name, + type, + systemData, + provisioningState, + networkBlock, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(IscsiPathData)} does not support writing '{options.Format}' format."); + } + } + + IscsiPathData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeIscsiPathData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IscsiPathData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.cs new file mode 100644 index 0000000000000..61250670f48d8 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathData.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Avs.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A class representing the IscsiPath data model. + /// An iSCSI path resource + /// + public partial class IscsiPathData : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public IscsiPathData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the iSCSI path provisioning. + /// CIDR Block for iSCSI path. + /// Keeps track of any properties unknown to the library. + internal IscsiPathData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IscsiPathProvisioningState? provisioningState, string networkBlock, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + ProvisioningState = provisioningState; + NetworkBlock = networkBlock; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The state of the iSCSI path provisioning. + public IscsiPathProvisioningState? ProvisioningState { get; } + /// CIDR Block for iSCSI path. + public string NetworkBlock { get; set; } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.Serialization.cs new file mode 100644 index 0000000000000..7ed94437893e5 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Avs +{ + public partial class IscsiPathResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + IscsiPathData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + IscsiPathData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.cs new file mode 100644 index 0000000000000..53542ba61ee62 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/IscsiPathResource.cs @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Avs +{ + /// + /// A Class representing an IscsiPath along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetIscsiPathResource method. + /// Otherwise you can get one from its parent resource using the GetIscsiPath method. + /// + public partial class IscsiPathResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The privateCloudName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _iscsiPathClientDiagnostics; + private readonly IscsiPathsRestOperations _iscsiPathRestClient; + private readonly IscsiPathData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.AVS/privateClouds/iscsiPaths"; + + /// Initializes a new instance of the class for mocking. + protected IscsiPathResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal IscsiPathResource(ArmClient client, IscsiPathData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal IscsiPathResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _iscsiPathClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Avs", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string iscsiPathApiVersion); + _iscsiPathRestClient = new IscsiPathsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, iscsiPathApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual IscsiPathData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_Get + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.Get"); + scope.Start(); + try + { + var response = await _iscsiPathRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IscsiPathResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_Get + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.Get"); + scope.Start(); + try + { + var response = _iscsiPathRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IscsiPathResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_Delete + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.Delete"); + scope.Start(); + try + { + var response = await _iscsiPathRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(_iscsiPathClientDiagnostics, Pipeline, _iscsiPathRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_Delete + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.Delete"); + scope.Start(); + try + { + var response = _iscsiPathRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); + var operation = new AvsArmOperation(_iscsiPathClientDiagnostics, Pipeline, _iscsiPathRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, IscsiPathData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _iscsiPathRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new IscsiPathOperationSource(Client), _iscsiPathClientDiagnostics, Pipeline, _iscsiPathRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create a IscsiPath + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default + /// + /// + /// Operation Id + /// IscsiPaths_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resource create parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, IscsiPathData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _iscsiPathClientDiagnostics.CreateScope("IscsiPathResource.CreateOrUpdate"); + scope.Start(); + try + { + var response = _iscsiPathRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); + var operation = new AvsArmOperation(new IscsiPathOperationSource(Client), _iscsiPathClientDiagnostics, Pipeline, _iscsiPathRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/IscsiPathOperationSource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/IscsiPathOperationSource.cs new file mode 100644 index 0000000000000..8e114a3cd5baf --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/LongRunningOperation/IscsiPathOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.Avs +{ + internal class IscsiPathOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal IscsiPathOperationSource(ArmClient client) + { + _client = client; + } + + IscsiPathResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = IscsiPathData.DeserializeIscsiPathData(document.RootElement); + return new IscsiPathResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = IscsiPathData.DeserializeIscsiPathData(document.RootElement); + return new IscsiPathResource(_client, data); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonArcProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonArcProperties.cs index 3608e93e19ec6..8eb8b0c8d7c72 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonArcProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonArcProperties.cs @@ -20,7 +20,7 @@ public AddonArcProperties() } /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. /// The VMware vCenter resource ID. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonHcxProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonHcxProperties.cs index 99feda67fb9ef..09b0bec3f4a0a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonHcxProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonHcxProperties.cs @@ -25,7 +25,7 @@ public AddonHcxProperties(string offer) } /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. /// The HCX offer, example VMware MaaS Cloud Provider (Enterprise). diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.Serialization.cs index 3fb9c86c06699..7a39c914044d7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AddonList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static AddonList DeserializeAddonList(JsonElement element, ModelReaderW return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static AddonList DeserializeAddonList(JsonElement element, ModelReaderW } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static AddonList DeserializeAddonList(JsonElement element, ModelReaderW } } serializedAdditionalRawData = rawDataDictionary; - return new AddonList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new AddonList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs index 1d9f507ffd218..32c35e075bc4f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of addons. + /// The response of a Addon list operation. internal partial class AddonList { /// @@ -46,25 +47,34 @@ internal partial class AddonList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal AddonList() + /// The Addon items on this page. + /// is null. + internal AddonList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The Addon items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal AddonList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal AddonList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal AddonList() + { + } + + /// The Addon items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonProvisioningState.cs index d1b576a42b4bd..525218c48435e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the addon provisioning. + /// Addon provisioning state. public readonly partial struct AddonProvisioningState : IEquatable { private readonly string _value; @@ -24,26 +24,26 @@ public AddonProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string CancelledValue = "Cancelled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static AddonProvisioningState Succeeded { get; } = new AddonProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static AddonProvisioningState Failed { get; } = new AddonProvisioningState(FailedValue); - /// Cancelled. + /// Resource creation was canceled. + public static AddonProvisioningState Canceled { get; } = new AddonProvisioningState(CanceledValue); + /// is cancelled. public static AddonProvisioningState Cancelled { get; } = new AddonProvisioningState(CancelledValue); - /// Building. + /// is building. public static AddonProvisioningState Building { get; } = new AddonProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static AddonProvisioningState Deleting { get; } = new AddonProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static AddonProvisioningState Updating { get; } = new AddonProvisioningState(UpdatingValue); - /// Canceled. - public static AddonProvisioningState Canceled { get; } = new AddonProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(AddonProvisioningState left, AddonProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonSrmProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonSrmProperties.cs index 45b0a43f7aab6..9331bc1853356 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonSrmProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonSrmProperties.cs @@ -20,7 +20,7 @@ public AddonSrmProperties() } /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. /// The Site Recovery Manager (SRM) license. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonType.cs index 69f692edd73ac..17d088db2021e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The type of private cloud addon. + /// Addon type. internal readonly partial struct AddonType : IEquatable { private readonly string _value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonVrProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonVrProperties.cs index f6656a33364f6..a0c82111f0080 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonVrProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AddonVrProperties.cs @@ -22,7 +22,7 @@ public AddonVrProperties(int vrsCount) } /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. /// The vSphere Replication Server (VRS) count. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvailabilityStrategy.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvailabilityStrategy.cs index 1ba25d134ae52..6e075866b86e3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvailabilityStrategy.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvailabilityStrategy.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The availability strategy for the private cloud. + /// Whether the private clouds is available in a single zone or two zones. public readonly partial struct AvailabilityStrategy : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvailabilityStrategy(string value) private const string SingleZoneValue = "SingleZone"; private const string DualZoneValue = "DualZone"; - /// SingleZone. + /// in single zone. public static AvailabilityStrategy SingleZone { get; } = new AvailabilityStrategy(SingleZoneValue); - /// DualZone. + /// in two zones. public static AvailabilityStrategy DualZone { get; } = new AvailabilityStrategy(DualZoneValue); /// Determines if two values are the same. public static bool operator ==(AvailabilityStrategy left, AvailabilityStrategy right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkProvisioningState.cs new file mode 100644 index 0000000000000..6a341ae91ef32 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// cloud link provisioning state. + public readonly partial struct AvsCloudLinkProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AvsCloudLinkProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static AvsCloudLinkProvisioningState Succeeded { get; } = new AvsCloudLinkProvisioningState(SucceededValue); + /// Resource creation failed. + public static AvsCloudLinkProvisioningState Failed { get; } = new AvsCloudLinkProvisioningState(FailedValue); + /// Resource creation was canceled. + public static AvsCloudLinkProvisioningState Canceled { get; } = new AvsCloudLinkProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(AvsCloudLinkProvisioningState left, AvsCloudLinkProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AvsCloudLinkProvisioningState left, AvsCloudLinkProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AvsCloudLinkProvisioningState(string value) => new AvsCloudLinkProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AvsCloudLinkProvisioningState other && Equals(other); + /// + public bool Equals(AvsCloudLinkProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkStatus.cs index 98ef568c79d0d..de548a1996f08 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsCloudLinkStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the cloud link. + /// Cloud Link status. public readonly partial struct AvsCloudLinkStatus : IEquatable { private readonly string _value; @@ -28,15 +28,15 @@ public AvsCloudLinkStatus(string value) private const string FailedValue = "Failed"; private const string DisconnectedValue = "Disconnected"; - /// Active. + /// is active. public static AvsCloudLinkStatus Active { get; } = new AvsCloudLinkStatus(ActiveValue); - /// Building. + /// is building. public static AvsCloudLinkStatus Building { get; } = new AvsCloudLinkStatus(BuildingValue); - /// Deleting. + /// is deleting. public static AvsCloudLinkStatus Deleting { get; } = new AvsCloudLinkStatus(DeletingValue); - /// Failed. + /// is failed. public static AvsCloudLinkStatus Failed { get; } = new AvsCloudLinkStatus(FailedValue); - /// Disconnected. + /// is disconnected. public static AvsCloudLinkStatus Disconnected { get; } = new AvsCloudLinkStatus(DisconnectedValue); /// Determines if two values are the same. public static bool operator ==(AvsCloudLinkStatus left, AvsCloudLinkStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsDnsZoneType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsDnsZoneType.cs new file mode 100644 index 0000000000000..c9083ae684b51 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsDnsZoneType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// The type of DNS zone. + public readonly partial struct AvsDnsZoneType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AvsDnsZoneType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PublicValue = "Public"; + private const string PrivateValue = "Private"; + + /// Primary DNS zone. + public static AvsDnsZoneType Public { get; } = new AvsDnsZoneType(PublicValue); + /// Private DNS zone. + public static AvsDnsZoneType Private { get; } = new AvsDnsZoneType(PrivateValue); + /// Determines if two values are the same. + public static bool operator ==(AvsDnsZoneType left, AvsDnsZoneType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AvsDnsZoneType left, AvsDnsZoneType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AvsDnsZoneType(string value) => new AvsDnsZoneType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AvsDnsZoneType other && Equals(other); + /// + public bool Equals(AvsDnsZoneType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionKeyStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionKeyStatus.cs index b6da3933fd339..65d683b8f346b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionKeyStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionKeyStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of key provided. + /// Whether the the encryption key is connected or access denied. public readonly partial struct AvsEncryptionKeyStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvsEncryptionKeyStatus(string value) private const string ConnectedValue = "Connected"; private const string AccessDeniedValue = "AccessDenied"; - /// Connected. + /// is connected. public static AvsEncryptionKeyStatus Connected { get; } = new AvsEncryptionKeyStatus(ConnectedValue); - /// AccessDenied. + /// is access denied. public static AvsEncryptionKeyStatus AccessDenied { get; } = new AvsEncryptionKeyStatus(AccessDeniedValue); /// Determines if two values are the same. public static bool operator ==(AvsEncryptionKeyStatus left, AvsEncryptionKeyStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionState.cs index 3f5a6fc0f7564..14825db6d4bd4 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Status of customer managed encryption key. + /// Whether encryption is enabled or disabled. public readonly partial struct AvsEncryptionState : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvsEncryptionState(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static AvsEncryptionState Enabled { get; } = new AvsEncryptionState(EnabledValue); - /// Disabled. + /// is disabled. public static AvsEncryptionState Disabled { get; } = new AvsEncryptionState(DisabledValue); /// Determines if two values are the same. public static bool operator ==(AvsEncryptionState left, AvsEncryptionState right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionVersionType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionVersionType.cs index 4933591540664..73ed81140741f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionVersionType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsEncryptionVersionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Property of the key if user provided or auto detected. + /// Whether the encryption version is fixed or auto-detected. public readonly partial struct AvsEncryptionVersionType : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvsEncryptionVersionType(string value) private const string FixedValue = "Fixed"; private const string AutoDetectedValue = "AutoDetected"; - /// Fixed. + /// is fixed. public static AvsEncryptionVersionType Fixed { get; } = new AvsEncryptionVersionType(FixedValue); - /// AutoDetected. + /// is auto-detected. public static AvsEncryptionVersionType AutoDetected { get; } = new AvsEncryptionVersionType(AutoDetectedValue); /// Determines if two values are the same. public static bool operator ==(AvsEncryptionVersionType left, AvsEncryptionVersionType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.Serialization.cs index 037ad24177534..eb94b06ee7750 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.Serialization.cs @@ -24,19 +24,6 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr writer.WriteEndObject(); } - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AvsManagementCluster)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - } - AvsManagementCluster IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; @@ -61,6 +48,7 @@ internal static AvsManagementCluster DeserializeAvsManagementCluster(JsonElement AvsPrivateCloudClusterProvisioningState? provisioningState = default; int? clusterId = default; IList hosts = default; + string vsanDatastoreName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -106,13 +94,24 @@ internal static AvsManagementCluster DeserializeAvsManagementCluster(JsonElement hosts = array; continue; } + if (property.NameEquals("vsanDatastoreName"u8)) + { + vsanDatastoreName = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AvsManagementCluster(clusterSize, provisioningState, clusterId, hosts ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new AvsManagementCluster( + clusterSize, + provisioningState, + clusterId, + hosts ?? new ChangeTrackingList(), + vsanDatastoreName, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.cs index d68805dcffdcb..2240ee04b2045 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsManagementCluster.cs @@ -11,11 +11,12 @@ namespace Azure.ResourceManager.Avs.Models { /// The properties of a management cluster. - public partial class AvsManagementCluster : CommonClusterProperties + public partial class AvsManagementCluster { /// Initializes a new instance of . public AvsManagementCluster() { + Hosts = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -23,9 +24,18 @@ public AvsManagementCluster() /// The state of the cluster provisioning. /// The identity. /// The hosts. + /// Name of the vsan datastore associated with the cluster. /// Keeps track of any properties unknown to the library. - internal AvsManagementCluster(int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, IDictionary serializedAdditionalRawData) : base(clusterSize, provisioningState, clusterId, hosts, serializedAdditionalRawData) + internal AvsManagementCluster(int? clusterSize, AvsPrivateCloudClusterProvisioningState? provisioningState, int? clusterId, IList hosts, string vsanDatastoreName, IDictionary serializedAdditionalRawData) { + ClusterSize = clusterSize; + ProvisioningState = provisioningState; + ClusterId = clusterId; + Hosts = hosts; + VsanDatastoreName = vsanDatastoreName; + _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Name of the vsan datastore associated with the cluster. + public string VsanDatastoreName { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPlacementPolicyAffinityType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPlacementPolicyAffinityType.cs index dbe1674ce6b96..be6f8f514f8d6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPlacementPolicyAffinityType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPlacementPolicyAffinityType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Placement policy affinity type. + /// Affinity type. public readonly partial struct AvsPlacementPolicyAffinityType : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvsPlacementPolicyAffinityType(string value) private const string AffinityValue = "Affinity"; private const string AntiAffinityValue = "AntiAffinity"; - /// Affinity. + /// is affinity. public static AvsPlacementPolicyAffinityType Affinity { get; } = new AvsPlacementPolicyAffinityType(AffinityValue); - /// AntiAffinity. + /// is anti-affinity. public static AvsPlacementPolicyAffinityType AntiAffinity { get; } = new AvsPlacementPolicyAffinityType(AntiAffinityValue); /// Determines if two values are the same. public static bool operator ==(AvsPlacementPolicyAffinityType left, AvsPlacementPolicyAffinityType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonProperties.cs index 1dd3118732fd1..586c832fb72e2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudAddonProperties.cs @@ -55,7 +55,7 @@ protected AvsPrivateCloudAddonProperties() } /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. internal AvsPrivateCloudAddonProperties(AddonType addonType, AddonProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) @@ -65,7 +65,7 @@ internal AvsPrivateCloudAddonProperties(AddonType addonType, AddonProvisioningSt _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The type of private cloud addon. + /// Addon type. internal AddonType AddonType { get; set; } /// The state of the addon provisioning. public AddonProvisioningState? ProvisioningState { get; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.Serialization.cs index 1a36ceb962f25..7b46042098197 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.Serialization.cs @@ -34,6 +34,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AvsPrivateCloudClusterPatch)} does not support writing '{format}' format."); } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku, options); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(ClusterSize)) @@ -89,12 +94,22 @@ internal static AvsPrivateCloudClusterPatch DeserializeAvsPrivateCloudClusterPat { return null; } + AvsSku sku = default; int? clusterSize = default; IList hosts = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("sku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = AvsSku.DeserializeAvsSku(property.Value, options); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -136,7 +151,7 @@ internal static AvsPrivateCloudClusterPatch DeserializeAvsPrivateCloudClusterPat } } serializedAdditionalRawData = rawDataDictionary; - return new AvsPrivateCloudClusterPatch(clusterSize, hosts ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new AvsPrivateCloudClusterPatch(sku, clusterSize, hosts ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs index 0c5a1c803ed2a..7e0c78500168e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterPatch.cs @@ -52,16 +52,20 @@ public AvsPrivateCloudClusterPatch() } /// Initializes a new instance of . + /// The SKU (Stock Keeping Unit) assigned to this resource. /// The cluster size. /// The hosts. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudClusterPatch(int? clusterSize, IList hosts, IDictionary serializedAdditionalRawData) + internal AvsPrivateCloudClusterPatch(AvsSku sku, int? clusterSize, IList hosts, IDictionary serializedAdditionalRawData) { + Sku = sku; ClusterSize = clusterSize; Hosts = hosts; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + public AvsSku Sku { get; set; } /// The cluster size. public int? ClusterSize { get; set; } /// The hosts. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterProvisioningState.cs index 2f22328d710fc..bf506478fb1a2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudClusterProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the cluster provisioning. + /// Cluster provisioning state. public readonly partial struct AvsPrivateCloudClusterProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public AvsPrivateCloudClusterProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string CancelledValue = "Cancelled"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static AvsPrivateCloudClusterProvisioningState Succeeded { get; } = new AvsPrivateCloudClusterProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static AvsPrivateCloudClusterProvisioningState Failed { get; } = new AvsPrivateCloudClusterProvisioningState(FailedValue); - /// Cancelled. + /// Resource creation was canceled. + public static AvsPrivateCloudClusterProvisioningState Canceled { get; } = new AvsPrivateCloudClusterProvisioningState(CanceledValue); + /// is cancelled. public static AvsPrivateCloudClusterProvisioningState Cancelled { get; } = new AvsPrivateCloudClusterProvisioningState(CancelledValue); - /// Deleting. + /// is deleting. public static AvsPrivateCloudClusterProvisioningState Deleting { get; } = new AvsPrivateCloudClusterProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static AvsPrivateCloudClusterProvisioningState Updating { get; } = new AvsPrivateCloudClusterProvisioningState(UpdatingValue); - /// Canceled. - public static AvsPrivateCloudClusterProvisioningState Canceled { get; } = new AvsPrivateCloudClusterProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(AvsPrivateCloudClusterProvisioningState left, AvsPrivateCloudClusterProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreProvisioningState.cs index 5b56c77305e12..43f57d0331b70 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudDatastoreProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the datastore provisioning. + /// datastore provisioning state. public readonly partial struct AvsPrivateCloudDatastoreProvisioningState : IEquatable { private readonly string _value; @@ -24,29 +24,29 @@ public AvsPrivateCloudDatastoreProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string CancelledValue = "Cancelled"; private const string PendingValue = "Pending"; private const string CreatingValue = "Creating"; private const string UpdatingValue = "Updating"; private const string DeletingValue = "Deleting"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static AvsPrivateCloudDatastoreProvisioningState Succeeded { get; } = new AvsPrivateCloudDatastoreProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static AvsPrivateCloudDatastoreProvisioningState Failed { get; } = new AvsPrivateCloudDatastoreProvisioningState(FailedValue); - /// Cancelled. + /// Resource creation was canceled. + public static AvsPrivateCloudDatastoreProvisioningState Canceled { get; } = new AvsPrivateCloudDatastoreProvisioningState(CanceledValue); + /// is cancelled. public static AvsPrivateCloudDatastoreProvisioningState Cancelled { get; } = new AvsPrivateCloudDatastoreProvisioningState(CancelledValue); - /// Pending. + /// is pending. public static AvsPrivateCloudDatastoreProvisioningState Pending { get; } = new AvsPrivateCloudDatastoreProvisioningState(PendingValue); - /// Creating. + /// is creating. public static AvsPrivateCloudDatastoreProvisioningState Creating { get; } = new AvsPrivateCloudDatastoreProvisioningState(CreatingValue); - /// Updating. + /// is updating. public static AvsPrivateCloudDatastoreProvisioningState Updating { get; } = new AvsPrivateCloudDatastoreProvisioningState(UpdatingValue); - /// Deleting. + /// is deleting. public static AvsPrivateCloudDatastoreProvisioningState Deleting { get; } = new AvsPrivateCloudDatastoreProvisioningState(DeletingValue); - /// Canceled. - public static AvsPrivateCloudDatastoreProvisioningState Canceled { get; } = new AvsPrivateCloudDatastoreProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(AvsPrivateCloudDatastoreProvisioningState left, AvsPrivateCloudDatastoreProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.Serialization.cs index c71f1ce2ca81c..0fb09ef4b2455 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.Serialization.cs @@ -49,6 +49,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("hcxCloudManager"u8); writer.WriteStringValue(HcxCloudManager); } + if (options.Format != "W" && Optional.IsDefined(NsxtManagerIP)) + { + writer.WritePropertyName("nsxtManagerIp"u8); + writer.WriteStringValue(NsxtManagerIP); + } + if (options.Format != "W" && Optional.IsDefined(VcenterIP)) + { + writer.WritePropertyName("vcenterIp"u8); + writer.WriteStringValue(VcenterIP); + } + if (options.Format != "W" && Optional.IsDefined(HcxCloudManagerIP)) + { + writer.WritePropertyName("hcxCloudManagerIp"u8); + writer.WriteStringValue(HcxCloudManagerIP); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -89,6 +104,9 @@ internal static AvsPrivateCloudEndpoints DeserializeAvsPrivateCloudEndpoints(Jso string nsxtManager = default; string vcsa = default; string hcxCloudManager = default; + string nsxtManagerIP = default; + string vcenterIP = default; + string hcxCloudManagerIP = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -108,13 +126,35 @@ internal static AvsPrivateCloudEndpoints DeserializeAvsPrivateCloudEndpoints(Jso hcxCloudManager = property.Value.GetString(); continue; } + if (property.NameEquals("nsxtManagerIp"u8)) + { + nsxtManagerIP = property.Value.GetString(); + continue; + } + if (property.NameEquals("vcenterIp"u8)) + { + vcenterIP = property.Value.GetString(); + continue; + } + if (property.NameEquals("hcxCloudManagerIp"u8)) + { + hcxCloudManagerIP = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AvsPrivateCloudEndpoints(nsxtManager, vcsa, hcxCloudManager, serializedAdditionalRawData); + return new AvsPrivateCloudEndpoints( + nsxtManager, + vcsa, + hcxCloudManager, + nsxtManagerIP, + vcenterIP, + hcxCloudManagerIP, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.cs index 31f72d2c814fc..de4bc26b07f32 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudEndpoints.cs @@ -51,23 +51,35 @@ internal AvsPrivateCloudEndpoints() } /// Initializes a new instance of . - /// Endpoint for the NSX-T Data Center manager. - /// Endpoint for Virtual Center Server Appliance. - /// Endpoint for the HCX Cloud Manager. + /// Endpoint FQDN for the NSX-T Data Center manager. + /// Endpoint FQDN for Virtual Center Server Appliance. + /// Endpoint FQDN for the HCX Cloud Manager. + /// Endpoint IP for the NSX-T Data Center manager. + /// Endpoint IP for Virtual Center Server Appliance. + /// Endpoint IP for the HCX Cloud Manager. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudEndpoints(string nsxtManager, string vcsa, string hcxCloudManager, IDictionary serializedAdditionalRawData) + internal AvsPrivateCloudEndpoints(string nsxtManager, string vcsa, string hcxCloudManager, string nsxtManagerIP, string vcenterIP, string hcxCloudManagerIP, IDictionary serializedAdditionalRawData) { NsxtManager = nsxtManager; Vcsa = vcsa; HcxCloudManager = hcxCloudManager; + NsxtManagerIP = nsxtManagerIP; + VcenterIP = vcenterIP; + HcxCloudManagerIP = hcxCloudManagerIP; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Endpoint for the NSX-T Data Center manager. + /// Endpoint FQDN for the NSX-T Data Center manager. public string NsxtManager { get; } - /// Endpoint for Virtual Center Server Appliance. + /// Endpoint FQDN for Virtual Center Server Appliance. public string Vcsa { get; } - /// Endpoint for the HCX Cloud Manager. + /// Endpoint FQDN for the HCX Cloud Manager. public string HcxCloudManager { get; } + /// Endpoint IP for the NSX-T Data Center manager. + public string NsxtManagerIP { get; } + /// Endpoint IP for Virtual Center Server Appliance. + public string VcenterIP { get; } + /// Endpoint IP for the HCX Cloud Manager. + public string HcxCloudManagerIP { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.Serialization.cs index ebe42f69ce3a3..594b5653067dc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.Serialization.cs @@ -46,6 +46,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } + if (Optional.IsDefined(Sku)) + { + writer.WritePropertyName("sku"u8); + writer.WriteObjectValue(Sku, options); + } if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); @@ -93,6 +98,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } + if (Optional.IsDefined(DnsZoneType)) + { + writer.WritePropertyName("dnsZoneType"u8); + writer.WriteStringValue(DnsZoneType.Value.ToString()); + } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -132,6 +142,7 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement return null; } IDictionary tags = default; + AvsSku sku = default; ManagedServiceIdentity identity = default; AvsManagementCluster managementCluster = default; InternetConnectivityState? internet = default; @@ -139,6 +150,7 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement PrivateCloudAvailabilityProperties availability = default; CustomerManagedEncryption encryption = default; IList extendedNetworkBlocks = default; + AvsDnsZoneType? dnsZoneType = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -157,6 +169,15 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement tags = dictionary; continue; } + if (property.NameEquals("sku"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = AvsSku.DeserializeAvsSku(property.Value, options); + continue; + } if (property.NameEquals("identity"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -239,6 +260,15 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement extendedNetworkBlocks = array; continue; } + if (property0.NameEquals("dnsZoneType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dnsZoneType = new AvsDnsZoneType(property0.Value.GetString()); + continue; + } } continue; } @@ -250,6 +280,7 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement serializedAdditionalRawData = rawDataDictionary; return new AvsPrivateCloudPatch( tags ?? new ChangeTrackingDictionary(), + sku, identity, managementCluster, internet, @@ -257,6 +288,7 @@ internal static AvsPrivateCloudPatch DeserializeAvsPrivateCloudPatch(JsonElement availability, encryption, extendedNetworkBlocks ?? new ChangeTrackingList(), + dnsZoneType, serializedAdditionalRawData); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs index c5aae2c79e523..8dedef6365bd0 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudPatch.cs @@ -56,17 +56,25 @@ public AvsPrivateCloudPatch() /// Initializes a new instance of . /// Resource tags. - /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The SKU (Stock Keeping Unit) assigned to this resource. + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. /// The default cluster used for management. /// Connectivity to internet is enabled or disabled. /// vCenter Single Sign On Identity Sources. /// Properties describing how the cloud is distributed across availability zones. /// Customer managed key encryption, can be enabled or disabled. - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X). + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// + /// The type of DNS zone to use. /// Keeps track of any properties unknown to the library. - internal AvsPrivateCloudPatch(IDictionary tags, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, IDictionary serializedAdditionalRawData) + internal AvsPrivateCloudPatch(IDictionary tags, AvsSku sku, ManagedServiceIdentity identity, AvsManagementCluster managementCluster, InternetConnectivityState? internet, IList identitySources, PrivateCloudAvailabilityProperties availability, CustomerManagedEncryption encryption, IList extendedNetworkBlocks, AvsDnsZoneType? dnsZoneType, IDictionary serializedAdditionalRawData) { Tags = tags; + Sku = sku; Identity = identity; ManagementCluster = managementCluster; Internet = internet; @@ -74,12 +82,15 @@ internal AvsPrivateCloudPatch(IDictionary tags, ManagedServiceId Availability = availability; Encryption = encryption; ExtendedNetworkBlocks = extendedNetworkBlocks; + DnsZoneType = dnsZoneType; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Resource tags. public IDictionary Tags { get; } - /// The identity of the private cloud, if configured. Current supported identity types: SystemAssigned, None. + /// The SKU (Stock Keeping Unit) assigned to this resource. + public AvsSku Sku { get; set; } + /// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned. public ManagedServiceIdentity Identity { get; set; } /// The default cluster used for management. public AvsManagementCluster ManagementCluster { get; set; } @@ -91,7 +102,14 @@ internal AvsPrivateCloudPatch(IDictionary tags, ManagedServiceId public PrivateCloudAvailabilityProperties Availability { get; set; } /// Customer managed key encryption, can be enabled or disabled. public CustomerManagedEncryption Encryption { get; set; } - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X). + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// public IList ExtendedNetworkBlocks { get; } + /// The type of DNS zone to use. + public AvsDnsZoneType? DnsZoneType { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudProvisioningState.cs index 6f40553e40248..8cad252df3bac 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsPrivateCloudProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// private cloud provisioning state. public readonly partial struct AvsPrivateCloudProvisioningState : IEquatable { private readonly string _value; @@ -24,29 +24,29 @@ public AvsPrivateCloudProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string CancelledValue = "Cancelled"; private const string PendingValue = "Pending"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static AvsPrivateCloudProvisioningState Succeeded { get; } = new AvsPrivateCloudProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static AvsPrivateCloudProvisioningState Failed { get; } = new AvsPrivateCloudProvisioningState(FailedValue); - /// Cancelled. + /// Resource creation was canceled. + public static AvsPrivateCloudProvisioningState Canceled { get; } = new AvsPrivateCloudProvisioningState(CanceledValue); + /// is cancelled. public static AvsPrivateCloudProvisioningState Cancelled { get; } = new AvsPrivateCloudProvisioningState(CancelledValue); - /// Pending. + /// is pending. public static AvsPrivateCloudProvisioningState Pending { get; } = new AvsPrivateCloudProvisioningState(PendingValue); - /// Building. + /// is building. public static AvsPrivateCloudProvisioningState Building { get; } = new AvsPrivateCloudProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static AvsPrivateCloudProvisioningState Deleting { get; } = new AvsPrivateCloudProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static AvsPrivateCloudProvisioningState Updating { get; } = new AvsPrivateCloudProvisioningState(UpdatingValue); - /// Canceled. - public static AvsPrivateCloudProvisioningState Canceled { get; } = new AvsPrivateCloudProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(AvsPrivateCloudProvisioningState left, AvsPrivateCloudProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.Serialization.cs index 4606da49eb522..214a09f4abd5b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.Serialization.cs @@ -36,6 +36,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); + if (Optional.IsDefined(Tier)) + { + writer.WritePropertyName("tier"u8); + writer.WriteStringValue(Tier.Value.ToSerialString()); + } + if (Optional.IsDefined(Size)) + { + writer.WritePropertyName("size"u8); + writer.WriteStringValue(Size); + } + if (Optional.IsDefined(Family)) + { + writer.WritePropertyName("family"u8); + writer.WriteStringValue(Family); + } + if (Optional.IsDefined(Capacity)) + { + writer.WritePropertyName("capacity"u8); + writer.WriteNumberValue(Capacity.Value); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -74,6 +94,10 @@ internal static AvsSku DeserializeAvsSku(JsonElement element, ModelReaderWriterO return null; } string name = default; + AvsSkuTier? tier = default; + string size = default; + string family = default; + int? capacity = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -83,13 +107,47 @@ internal static AvsSku DeserializeAvsSku(JsonElement element, ModelReaderWriterO name = property.Value.GetString(); continue; } + if (property.NameEquals("tier"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tier = property.Value.GetString().ToAvsSkuTier(); + continue; + } + if (property.NameEquals("size"u8)) + { + size = property.Value.GetString(); + continue; + } + if (property.NameEquals("family"u8)) + { + family = property.Value.GetString(); + continue; + } + if (property.NameEquals("capacity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + capacity = property.Value.GetInt32(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AvsSku(name, serializedAdditionalRawData); + return new AvsSku( + name, + tier, + size, + family, + capacity, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.cs index c0076fbc71a3d..c7ded958b9e0a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSku.cs @@ -46,7 +46,7 @@ public partial class AvsSku private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The name of the SKU. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. /// is null. public AvsSku(string name) { @@ -56,11 +56,19 @@ public AvsSku(string name) } /// Initializes a new instance of . - /// The name of the SKU. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. /// Keeps track of any properties unknown to the library. - internal AvsSku(string name, IDictionary serializedAdditionalRawData) + internal AvsSku(string name, AvsSkuTier? tier, string size, string family, int? capacity, IDictionary serializedAdditionalRawData) { Name = name; + Tier = tier; + Size = size; + Family = family; + Capacity = capacity; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -69,7 +77,15 @@ internal AvsSku() { } - /// The name of the SKU. + /// The name of the SKU. E.g. P3. It is typically a letter+number code. public string Name { get; set; } + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + public AvsSkuTier? Tier { get; set; } + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + public string Size { get; set; } + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + public string Family { get; set; } + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. + public int? Capacity { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.Serialization.cs new file mode 100644 index 0000000000000..11c7f220efe47 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Avs.Models +{ + internal static partial class AvsSkuTierExtensions + { + public static string ToSerialString(this AvsSkuTier value) => value switch + { + AvsSkuTier.Free => "Free", + AvsSkuTier.Basic => "Basic", + AvsSkuTier.Standard => "Standard", + AvsSkuTier.Premium => "Premium", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AvsSkuTier value.") + }; + + public static AvsSkuTier ToAvsSkuTier(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Free")) return AvsSkuTier.Free; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Basic")) return AvsSkuTier.Basic; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return AvsSkuTier.Standard; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium")) return AvsSkuTier.Premium; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AvsSkuTier value."); + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.cs new file mode 100644 index 0000000000000..84d77f07403f7 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSkuTier.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Avs.Models +{ + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + public enum AvsSkuTier + { + /// Free. + Free, + /// Basic. + Basic, + /// Standard. + Standard, + /// Premium. + Premium + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionQuotaEnabled.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionQuotaEnabled.cs index 694903340ba30..aa2a070e0efea 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionQuotaEnabled.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionQuotaEnabled.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Host quota is active for current subscription. + /// quota enabled. public readonly partial struct AvsSubscriptionQuotaEnabled : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AvsSubscriptionQuotaEnabled(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static AvsSubscriptionQuotaEnabled Enabled { get; } = new AvsSubscriptionQuotaEnabled(EnabledValue); - /// Disabled. + /// is disabled. public static AvsSubscriptionQuotaEnabled Disabled { get; } = new AvsSubscriptionQuotaEnabled(DisabledValue); /// Determines if two values are the same. public static bool operator ==(AvsSubscriptionQuotaEnabled left, AvsSubscriptionQuotaEnabled right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionTrialStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionTrialStatus.cs index e60bfd8d14d37..a87e7e188ccfc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionTrialStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsSubscriptionTrialStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Trial status. + /// trial status. public readonly partial struct AvsSubscriptionTrialStatus : IEquatable { private readonly string _value; @@ -26,11 +26,11 @@ public AvsSubscriptionTrialStatus(string value) private const string TrialUsedValue = "TrialUsed"; private const string TrialDisabledValue = "TrialDisabled"; - /// TrialAvailable. + /// is available. public static AvsSubscriptionTrialStatus TrialAvailable { get; } = new AvsSubscriptionTrialStatus(TrialAvailableValue); - /// TrialUsed. + /// is used. public static AvsSubscriptionTrialStatus TrialUsed { get; } = new AvsSubscriptionTrialStatus(TrialUsedValue); - /// TrialDisabled. + /// is disabled. public static AvsSubscriptionTrialStatus TrialDisabled { get; } = new AvsSubscriptionTrialStatus(TrialDisabledValue); /// Determines if two values are the same. public static bool operator ==(AvsSubscriptionTrialStatus left, AvsSubscriptionTrialStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsVirtualMachineProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsVirtualMachineProvisioningState.cs new file mode 100644 index 0000000000000..6ed5c5bb7a9f8 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AvsVirtualMachineProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// Virtual Machine provisioning state. + public readonly partial struct AvsVirtualMachineProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AvsVirtualMachineProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static AvsVirtualMachineProvisioningState Succeeded { get; } = new AvsVirtualMachineProvisioningState(SucceededValue); + /// Resource creation failed. + public static AvsVirtualMachineProvisioningState Failed { get; } = new AvsVirtualMachineProvisioningState(FailedValue); + /// Resource creation was canceled. + public static AvsVirtualMachineProvisioningState Canceled { get; } = new AvsVirtualMachineProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(AvsVirtualMachineProvisioningState left, AvsVirtualMachineProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AvsVirtualMachineProvisioningState left, AvsVirtualMachineProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AvsVirtualMachineProvisioningState(string value) => new AvsVirtualMachineProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AvsVirtualMachineProvisioningState other && Equals(other); + /// + public bool Equals(AvsVirtualMachineProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AzureHybridBenefitType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AzureHybridBenefitType.cs index 7e9418e2fdfce..a8961706a4799 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AzureHybridBenefitType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/AzureHybridBenefitType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Placement policy hosts opt-in Azure Hybrid Benefit type. + /// Azure Hybrid Benefit type. public readonly partial struct AzureHybridBenefitType : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public AzureHybridBenefitType(string value) private const string SqlHostValue = "SqlHost"; private const string NoneValue = "None"; - /// SqlHost. + /// is SqlHost. public static AzureHybridBenefitType SqlHost { get; } = new AzureHybridBenefitType(SqlHostValue); - /// None. + /// is None. public static AzureHybridBenefitType None { get; } = new AzureHybridBenefitType(NoneValue); /// Determines if two values are the same. public static bool operator ==(AzureHybridBenefitType left, AzureHybridBenefitType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.Serialization.cs index 8aaa0e0c795ac..f2cc0aaa85693 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CloudLinkList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static CloudLinkList DeserializeCloudLinkList(JsonElement element, Mode return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static CloudLinkList DeserializeCloudLinkList(JsonElement element, Mode } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static CloudLinkList DeserializeCloudLinkList(JsonElement element, Mode } } serializedAdditionalRawData = rawDataDictionary; - return new CloudLinkList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new CloudLinkList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs index 90e0dc6c25a26..c9c5918de86d8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/CloudLinkList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of cloud links. + /// The response of a CloudLink list operation. internal partial class CloudLinkList { /// @@ -46,25 +47,34 @@ internal partial class CloudLinkList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal CloudLinkList() + /// The CloudLink items on this page. + /// is null. + internal CloudLinkList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The CloudLink items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal CloudLinkList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal CloudLinkList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal CloudLinkList() + { + } + + /// The CloudLink items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.Serialization.cs index 4fa536fda297a..a312ed2735785 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ClusterList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static ClusterList DeserializeClusterList(JsonElement element, ModelRea return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static ClusterList DeserializeClusterList(JsonElement element, ModelRea } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static ClusterList DeserializeClusterList(JsonElement element, ModelRea } } serializedAdditionalRawData = rawDataDictionary; - return new ClusterList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ClusterList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs index cb30e269317dd..ff288019954e8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ClusterList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of clusters. + /// The response of a Cluster list operation. internal partial class ClusterList { /// @@ -46,25 +47,34 @@ internal partial class ClusterList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ClusterList() + /// The Cluster items on this page. + /// is null. + internal ClusterList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The Cluster items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal ClusterList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ClusterList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal ClusterList() + { + } + + /// The Cluster items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.Serialization.cs index adad87ecad9de..33de597f2e825 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DatastoreList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static DatastoreList DeserializeDatastoreList(JsonElement element, Mode return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static DatastoreList DeserializeDatastoreList(JsonElement element, Mode } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static DatastoreList DeserializeDatastoreList(JsonElement element, Mode } } serializedAdditionalRawData = rawDataDictionary; - return new DatastoreList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new DatastoreList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs index d410a7adfa7d7..85af1315a8b71 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of datastores. + /// The response of a Datastore list operation. internal partial class DatastoreList { /// @@ -46,25 +47,34 @@ internal partial class DatastoreList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal DatastoreList() + /// The Datastore items on this page. + /// is null. + internal DatastoreList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The Datastore items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal DatastoreList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal DatastoreList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal DatastoreList() + { + } + + /// The Datastore items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreStatus.cs index 292051c3c226e..4d4ffa6d69a40 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DatastoreStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The operational status of the datastore. + /// datastore status. public readonly partial struct DatastoreStatus : IEquatable { private readonly string _value; @@ -30,19 +30,19 @@ public DatastoreStatus(string value) private const string LostCommunicationValue = "LostCommunication"; private const string DeadOrErrorValue = "DeadOrError"; - /// Unknown. + /// is unknown. public static DatastoreStatus Unknown { get; } = new DatastoreStatus(UnknownValue); - /// Accessible. + /// is accessible. public static DatastoreStatus Accessible { get; } = new DatastoreStatus(AccessibleValue); - /// Inaccessible. + /// is inaccessible. public static DatastoreStatus Inaccessible { get; } = new DatastoreStatus(InaccessibleValue); - /// Attached. + /// is attached. public static DatastoreStatus Attached { get; } = new DatastoreStatus(AttachedValue); - /// Detached. + /// is detached. public static DatastoreStatus Detached { get; } = new DatastoreStatus(DetachedValue); - /// LostCommunication. + /// is lost communication. public static DatastoreStatus LostCommunication { get; } = new DatastoreStatus(LostCommunicationValue); - /// DeadOrError. + /// is dead or error. public static DatastoreStatus DeadOrError { get; } = new DatastoreStatus(DeadOrErrorValue); /// Determines if two values are the same. public static bool operator ==(DatastoreStatus left, DatastoreStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DiskPoolVolume.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DiskPoolVolume.cs index e0ecd38ec726b..d93545d3da59d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DiskPoolVolume.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DiskPoolVolume.cs @@ -62,7 +62,10 @@ public DiskPoolVolume(ResourceIdentifier targetId, string lunName) /// Initializes a new instance of . /// Azure resource ID of the iSCSI target. /// Name of the LUN to be used for datastore. - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + /// + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN + /// /// Device path. /// Keeps track of any properties unknown to the library. internal DiskPoolVolume(ResourceIdentifier targetId, string lunName, LunMountMode? mountOption, string path, IDictionary serializedAdditionalRawData) @@ -83,7 +86,10 @@ internal DiskPoolVolume() public ResourceIdentifier TargetId { get; set; } /// Name of the LUN to be used for datastore. public string LunName { get; set; } - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + /// + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN + /// public LunMountMode? MountOption { get; set; } /// Device path. public string Path { get; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceLogLevel.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceLogLevel.cs index c3ad70a4a27b8..1ef989d2d19ff 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceLogLevel.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceLogLevel.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// DNS Service log level. + /// DNS service log level. public readonly partial struct DnsServiceLogLevel : IEquatable { private readonly string _value; @@ -28,15 +28,15 @@ public DnsServiceLogLevel(string value) private const string ErrorValue = "ERROR"; private const string FatalValue = "FATAL"; - /// DEBUG. + /// is debug. public static DnsServiceLogLevel Debug { get; } = new DnsServiceLogLevel(DebugValue); - /// INFO. + /// is info. public static DnsServiceLogLevel Info { get; } = new DnsServiceLogLevel(InfoValue); - /// WARNING. + /// is warning. public static DnsServiceLogLevel Warning { get; } = new DnsServiceLogLevel(WarningValue); - /// ERROR. + /// is error. public static DnsServiceLogLevel Error { get; } = new DnsServiceLogLevel(ErrorValue); - /// FATAL. + /// is fatal. public static DnsServiceLogLevel Fatal { get; } = new DnsServiceLogLevel(FatalValue); /// Determines if two values are the same. public static bool operator ==(DnsServiceLogLevel left, DnsServiceLogLevel right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceStatus.cs index 70323ace76edf..21fa2bbba6452 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/DnsServiceStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// DNS Service status. + /// DNS service status. public readonly partial struct DnsServiceStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public DnsServiceStatus(string value) private const string SuccessValue = "SUCCESS"; private const string FailureValue = "FAILURE"; - /// SUCCESS. + /// is success. public static DnsServiceStatus Success { get; } = new DnsServiceStatus(SuccessValue); - /// FAILURE. + /// is failure. public static DnsServiceStatus Failure { get; } = new DnsServiceStatus(FailureValue); /// Determines if two values are the same. public static bool operator ==(DnsServiceStatus left, DnsServiceStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.Serialization.cs new file mode 100644 index 0000000000000..c6563a8e57aa4 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Avs.Models +{ + internal partial class ElasticSanVolume : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ElasticSanVolume)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("targetId"u8); + writer.WriteStringValue(TargetId); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ElasticSanVolume IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ElasticSanVolume)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeElasticSanVolume(document.RootElement, options); + } + + internal static ElasticSanVolume DeserializeElasticSanVolume(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier targetId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("targetId"u8)) + { + targetId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ElasticSanVolume(targetId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ElasticSanVolume)} does not support writing '{options.Format}' format."); + } + } + + ElasticSanVolume IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeElasticSanVolume(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ElasticSanVolume)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.cs new file mode 100644 index 0000000000000..f7abf0e899fa7 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ElasticSanVolume.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Avs.Models +{ + /// An Elastic SAN volume from Microsoft.ElasticSan provider. + internal partial class ElasticSanVolume + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Azure resource ID of the Elastic SAN Volume. + /// is null. + public ElasticSanVolume(ResourceIdentifier targetId) + { + Argument.AssertNotNull(targetId, nameof(targetId)); + + TargetId = targetId; + } + + /// Initializes a new instance of . + /// Azure resource ID of the Elastic SAN Volume. + /// Keeps track of any properties unknown to the library. + internal ElasticSanVolume(ResourceIdentifier targetId, IDictionary serializedAdditionalRawData) + { + TargetId = targetId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ElasticSanVolume() + { + } + + /// Azure resource ID of the Elastic SAN Volume. + public ResourceIdentifier TargetId { get; set; } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.Serialization.cs index c1300820c28b4..2900e24c2b826 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ExpressRouteAuthorizationList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static ExpressRouteAuthorizationList DeserializeExpressRouteAuthorizati return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static ExpressRouteAuthorizationList DeserializeExpressRouteAuthorizati } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static ExpressRouteAuthorizationList DeserializeExpressRouteAuthorizati } } serializedAdditionalRawData = rawDataDictionary; - return new ExpressRouteAuthorizationList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ExpressRouteAuthorizationList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs index 425923c08a845..e138dbefb6e3f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of ExpressRoute Circuit Authorizations. + /// The response of a ExpressRouteAuthorization list operation. internal partial class ExpressRouteAuthorizationList { /// @@ -46,25 +47,34 @@ internal partial class ExpressRouteAuthorizationList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ExpressRouteAuthorizationList() + /// The ExpressRouteAuthorization items on this page. + /// is null. + internal ExpressRouteAuthorizationList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The ExpressRouteAuthorization items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal ExpressRouteAuthorizationList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ExpressRouteAuthorizationList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal ExpressRouteAuthorizationList() + { + } + + /// The ExpressRouteAuthorization items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationProvisioningState.cs index b9947775b8c26..de11407a46924 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ExpressRouteAuthorizationProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the ExpressRoute Circuit Authorization provisioning. + /// Express Route Circuit Authorization provisioning state. public readonly partial struct ExpressRouteAuthorizationProvisioningState : IEquatable { private readonly string _value; @@ -24,17 +24,17 @@ public ExpressRouteAuthorizationProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; - private const string UpdatingValue = "Updating"; private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; - /// Succeeded. + /// Resource has been created. public static ExpressRouteAuthorizationProvisioningState Succeeded { get; } = new ExpressRouteAuthorizationProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static ExpressRouteAuthorizationProvisioningState Failed { get; } = new ExpressRouteAuthorizationProvisioningState(FailedValue); - /// Updating. - public static ExpressRouteAuthorizationProvisioningState Updating { get; } = new ExpressRouteAuthorizationProvisioningState(UpdatingValue); - /// Canceled. + /// Resource creation was canceled. public static ExpressRouteAuthorizationProvisioningState Canceled { get; } = new ExpressRouteAuthorizationProvisioningState(CanceledValue); + /// is updating. + public static ExpressRouteAuthorizationProvisioningState Updating { get; } = new ExpressRouteAuthorizationProvisioningState(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(ExpressRouteAuthorizationProvisioningState left, ExpressRouteAuthorizationProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.Serialization.cs index e7e2ac1da86ad..589f00622adba 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(GlobalReachConnectionList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static GlobalReachConnectionList DeserializeGlobalReachConnectionList(J return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static GlobalReachConnectionList DeserializeGlobalReachConnectionList(J } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static GlobalReachConnectionList DeserializeGlobalReachConnectionList(J } } serializedAdditionalRawData = rawDataDictionary; - return new GlobalReachConnectionList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new GlobalReachConnectionList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs index cfbc2bab74e68..d1f38befc357e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of global reach connections. + /// The response of a GlobalReachConnection list operation. internal partial class GlobalReachConnectionList { /// @@ -46,25 +47,34 @@ internal partial class GlobalReachConnectionList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal GlobalReachConnectionList() + /// The GlobalReachConnection items on this page. + /// is null. + internal GlobalReachConnectionList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The GlobalReachConnection items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal GlobalReachConnectionList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal GlobalReachConnectionList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal GlobalReachConnectionList() + { + } + + /// The GlobalReachConnection items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs index 29867604bfa0b..eefff1e50e5d9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the ExpressRoute Circuit Authorization provisioning. + /// Global Reach Connection provisioning state. public readonly partial struct GlobalReachConnectionProvisioningState : IEquatable { private readonly string _value; @@ -24,17 +24,17 @@ public GlobalReachConnectionProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; - private const string UpdatingValue = "Updating"; private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; - /// Succeeded. + /// Resource has been created. public static GlobalReachConnectionProvisioningState Succeeded { get; } = new GlobalReachConnectionProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static GlobalReachConnectionProvisioningState Failed { get; } = new GlobalReachConnectionProvisioningState(FailedValue); - /// Updating. - public static GlobalReachConnectionProvisioningState Updating { get; } = new GlobalReachConnectionProvisioningState(UpdatingValue); - /// Canceled. + /// Resource creation was canceled. public static GlobalReachConnectionProvisioningState Canceled { get; } = new GlobalReachConnectionProvisioningState(CanceledValue); + /// is updating. + public static GlobalReachConnectionProvisioningState Updating { get; } = new GlobalReachConnectionProvisioningState(UpdatingValue); /// Determines if two values are the same. public static bool operator ==(GlobalReachConnectionProvisioningState left, GlobalReachConnectionProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs index d8dafe4fa0dd7..41e33db24f138 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The connection status of the global reach connection. + /// Global Reach Connection status. public readonly partial struct GlobalReachConnectionStatus : IEquatable { private readonly string _value; @@ -26,11 +26,11 @@ public GlobalReachConnectionStatus(string value) private const string ConnectingValue = "Connecting"; private const string DisconnectedValue = "Disconnected"; - /// Connected. + /// is connected. public static GlobalReachConnectionStatus Connected { get; } = new GlobalReachConnectionStatus(ConnectedValue); - /// Connecting. + /// is connecting. public static GlobalReachConnectionStatus Connecting { get; } = new GlobalReachConnectionStatus(ConnectingValue); - /// Disconnected. + /// is disconnected. public static GlobalReachConnectionStatus Disconnected { get; } = new GlobalReachConnectionStatus(DisconnectedValue); /// Determines if two values are the same. public static bool operator ==(GlobalReachConnectionStatus left, GlobalReachConnectionStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.Serialization.cs index 180e75b6be3ab..ff28a60d3a866 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HcxEnterpriseSiteList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static HcxEnterpriseSiteList DeserializeHcxEnterpriseSiteList(JsonEleme return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static HcxEnterpriseSiteList DeserializeHcxEnterpriseSiteList(JsonEleme } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static HcxEnterpriseSiteList DeserializeHcxEnterpriseSiteList(JsonEleme } } serializedAdditionalRawData = rawDataDictionary; - return new HcxEnterpriseSiteList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new HcxEnterpriseSiteList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs index 754189151a799..5477646006654 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of HCX Enterprise Sites. + /// The response of a HcxEnterpriseSite list operation. internal partial class HcxEnterpriseSiteList { /// @@ -46,25 +47,34 @@ internal partial class HcxEnterpriseSiteList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal HcxEnterpriseSiteList() + /// The HcxEnterpriseSite items on this page. + /// is null. + internal HcxEnterpriseSiteList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on a page. - /// URL to get the next page if any. + /// The HcxEnterpriseSite items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal HcxEnterpriseSiteList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal HcxEnterpriseSiteList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on a page. + /// Initializes a new instance of for deserialization. + internal HcxEnterpriseSiteList() + { + } + + /// The HcxEnterpriseSite items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteProvisioningState.cs new file mode 100644 index 0000000000000..ec3e6fbbd7690 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// HCX Enterprise Site provisioning state. + public readonly partial struct HcxEnterpriseSiteProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HcxEnterpriseSiteProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static HcxEnterpriseSiteProvisioningState Succeeded { get; } = new HcxEnterpriseSiteProvisioningState(SucceededValue); + /// Resource creation failed. + public static HcxEnterpriseSiteProvisioningState Failed { get; } = new HcxEnterpriseSiteProvisioningState(FailedValue); + /// Resource creation was canceled. + public static HcxEnterpriseSiteProvisioningState Canceled { get; } = new HcxEnterpriseSiteProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(HcxEnterpriseSiteProvisioningState left, HcxEnterpriseSiteProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HcxEnterpriseSiteProvisioningState left, HcxEnterpriseSiteProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator HcxEnterpriseSiteProvisioningState(string value) => new HcxEnterpriseSiteProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HcxEnterpriseSiteProvisioningState other && Equals(other); + /// + public bool Equals(HcxEnterpriseSiteProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteStatus.cs index 942634baaaa01..84fb3ae3fc231 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/HcxEnterpriseSiteStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The status of the HCX Enterprise Site. + /// HCX Enterprise Site status. public readonly partial struct HcxEnterpriseSiteStatus : IEquatable { private readonly string _value; @@ -27,13 +27,13 @@ public HcxEnterpriseSiteStatus(string value) private const string DeactivatedValue = "Deactivated"; private const string DeletedValue = "Deleted"; - /// Available. + /// is available. public static HcxEnterpriseSiteStatus Available { get; } = new HcxEnterpriseSiteStatus(AvailableValue); - /// Consumed. + /// is consumed. public static HcxEnterpriseSiteStatus Consumed { get; } = new HcxEnterpriseSiteStatus(ConsumedValue); - /// Deactivated. + /// is deactivated. public static HcxEnterpriseSiteStatus Deactivated { get; } = new HcxEnterpriseSiteStatus(DeactivatedValue); - /// Deleted. + /// is deleted. public static HcxEnterpriseSiteStatus Deleted { get; } = new HcxEnterpriseSiteStatus(DeletedValue); /// Determines if two values are the same. public static bool operator ==(HcxEnterpriseSiteStatus left, HcxEnterpriseSiteStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/InternetConnectivityState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/InternetConnectivityState.cs index 2a61125f8322c..82a7b97cf5bc1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/InternetConnectivityState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/InternetConnectivityState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Connectivity to internet is enabled or disabled. + /// Whether internet is enabled or disabled. public readonly partial struct InternetConnectivityState : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public InternetConnectivityState(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static InternetConnectivityState Enabled { get; } = new InternetConnectivityState(EnabledValue); - /// Disabled. + /// is disabled. public static InternetConnectivityState Disabled { get; } = new InternetConnectivityState(DisabledValue); /// Determines if two values are the same. public static bool operator ==(InternetConnectivityState left, InternetConnectivityState right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.Serialization.cs new file mode 100644 index 0000000000000..1a2cb0cb0903a --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.Serialization.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Avs.Models +{ + internal partial class IscsiPathListResult : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IscsiPathListResult)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink.AbsoluteUri); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IscsiPathListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IscsiPathListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIscsiPathListResult(document.RootElement, options); + } + + internal static IscsiPathListResult DeserializeIscsiPathListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + Uri nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(IscsiPathData.DeserializeIscsiPathData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IscsiPathListResult(value, nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(IscsiPathListResult)} does not support writing '{options.Format}' format."); + } + } + + IscsiPathListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeIscsiPathListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IscsiPathListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.cs new file mode 100644 index 0000000000000..125ca6abc9908 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathListResult.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Avs.Models +{ + /// The response of a IscsiPath list operation. + internal partial class IscsiPathListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The IscsiPath items on this page. + /// is null. + internal IscsiPathListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// The IscsiPath items on this page. + /// The link to the next page of items. + /// Keeps track of any properties unknown to the library. + internal IscsiPathListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IscsiPathListResult() + { + } + + /// The IscsiPath items on this page. + public IReadOnlyList Value { get; } + /// The link to the next page of items. + public Uri NextLink { get; } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathProvisioningState.cs new file mode 100644 index 0000000000000..cbe82495b33f7 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/IscsiPathProvisioningState.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// private cloud provisioning state. + public readonly partial struct IscsiPathProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IscsiPathProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string PendingValue = "Pending"; + private const string BuildingValue = "Building"; + private const string DeletingValue = "Deleting"; + private const string UpdatingValue = "Updating"; + + /// Resource has been created. + public static IscsiPathProvisioningState Succeeded { get; } = new IscsiPathProvisioningState(SucceededValue); + /// Resource creation failed. + public static IscsiPathProvisioningState Failed { get; } = new IscsiPathProvisioningState(FailedValue); + /// Resource creation was canceled. + public static IscsiPathProvisioningState Canceled { get; } = new IscsiPathProvisioningState(CanceledValue); + /// is pending. + public static IscsiPathProvisioningState Pending { get; } = new IscsiPathProvisioningState(PendingValue); + /// is building. + public static IscsiPathProvisioningState Building { get; } = new IscsiPathProvisioningState(BuildingValue); + /// is deleting. + public static IscsiPathProvisioningState Deleting { get; } = new IscsiPathProvisioningState(DeletingValue); + /// is updating. + public static IscsiPathProvisioningState Updating { get; } = new IscsiPathProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(IscsiPathProvisioningState left, IscsiPathProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IscsiPathProvisioningState left, IscsiPathProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator IscsiPathProvisioningState(string value) => new IscsiPathProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IscsiPathProvisioningState other && Equals(other); + /// + public bool Equals(IscsiPathProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/LunMountMode.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/LunMountMode.cs index 5008a01713e4f..53b4dd3516485 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/LunMountMode.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/LunMountMode.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.Avs.Models { - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN. + /// + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN + /// public readonly partial struct LunMountMode : IEquatable { private readonly string _value; @@ -25,9 +28,9 @@ public LunMountMode(string value) private const string MountValue = "MOUNT"; private const string AttachValue = "ATTACH"; - /// MOUNT. + /// is mount. public static LunMountMode Mount { get; } = new LunMountMode(MountValue); - /// ATTACH. + /// is attach. public static LunMountMode Attach { get; } = new LunMountMode(AttachValue); /// Determines if two values are the same. public static bool operator ==(LunMountMode left, LunMountMode right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/NsxPublicIPQuotaRaisedEnum.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/NsxPublicIPQuotaRaisedEnum.cs index 47a26ddff50a3..b192b3f6de327 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/NsxPublicIPQuotaRaisedEnum.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/NsxPublicIPQuotaRaisedEnum.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024. + /// NSX public IP quota raised. public readonly partial struct NsxPublicIPQuotaRaisedEnum : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public NsxPublicIPQuotaRaisedEnum(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static NsxPublicIPQuotaRaisedEnum Enabled { get; } = new NsxPublicIPQuotaRaisedEnum(EnabledValue); - /// Disabled. + /// is disabled. public static NsxPublicIPQuotaRaisedEnum Disabled { get; } = new NsxPublicIPQuotaRaisedEnum(DisabledValue); /// Determines if two values are the same. public static bool operator ==(NsxPublicIPQuotaRaisedEnum left, NsxPublicIPQuotaRaisedEnum right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.Serialization.cs index 1b98821ffebe3..c74a85f6f06bc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.Serialization.cs @@ -69,8 +69,8 @@ internal static PSCredentialExecutionParameterDetails DeserializePSCredentialExe } string username = default; string password = default; - string name = default; ScriptExecutionParameterType type = default; + string name = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -85,14 +85,14 @@ internal static PSCredentialExecutionParameterDetails DeserializePSCredentialExe password = property.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (property.NameEquals("type"u8)) { - name = property.Value.GetString(); + type = new ScriptExecutionParameterType(property.Value.GetString()); continue; } - if (property.NameEquals("type"u8)) + if (property.NameEquals("name"u8)) { - type = new ScriptExecutionParameterType(property.Value.GetString()); + name = property.Value.GetString(); continue; } if (options.Format != "W") @@ -101,7 +101,7 @@ internal static PSCredentialExecutionParameterDetails DeserializePSCredentialExe } } serializedAdditionalRawData = rawDataDictionary; - return new PSCredentialExecutionParameterDetails(name, type, serializedAdditionalRawData, username, password); + return new PSCredentialExecutionParameterDetails(type, name, serializedAdditionalRawData, username, password); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.cs index 4c37cba3403a5..d1faa6ccc178c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PSCredentialExecutionParameterDetails.cs @@ -24,12 +24,12 @@ public PSCredentialExecutionParameterDetails(string name) : base(name) } /// Initializes a new instance of . + /// script execution parameter type. /// The parameter name. - /// The type of execution parameter. /// Keeps track of any properties unknown to the library. /// username for login. /// password for login. - internal PSCredentialExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType, IDictionary serializedAdditionalRawData, string username, string password) : base(name, parameterType, serializedAdditionalRawData) + internal PSCredentialExecutionParameterDetails(ScriptExecutionParameterType parameterType, string name, IDictionary serializedAdditionalRawData, string username, string password) : base(parameterType, name, serializedAdditionalRawData) { Username = username; Password = password; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterOptionalityStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterOptionalityStatus.cs index bc8d45a45be62..5810e19eae79c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterOptionalityStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterOptionalityStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Is this parameter required or optional. + /// Optional Param. public readonly partial struct ParameterOptionalityStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public ParameterOptionalityStatus(string value) private const string OptionalValue = "Optional"; private const string RequiredValue = "Required"; - /// Optional. + /// is optional. public static ParameterOptionalityStatus Optional { get; } = new ParameterOptionalityStatus(OptionalValue); - /// Required. + /// is required. public static ParameterOptionalityStatus Required { get; } = new ParameterOptionalityStatus(RequiredValue); /// Determines if two values are the same. public static bool operator ==(ParameterOptionalityStatus left, ParameterOptionalityStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterVisibilityStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterVisibilityStatus.cs index 3b0508453ba4b..32b3d09856a62 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterVisibilityStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ParameterVisibilityStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Should this parameter be visible to arm and passed in the parameters argument when executing. + /// Visibility Parameter. public readonly partial struct ParameterVisibilityStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public ParameterVisibilityStatus(string value) private const string VisibleValue = "Visible"; private const string HiddenValue = "Hidden"; - /// Visible. + /// is visible. public static ParameterVisibilityStatus Visible { get; } = new ParameterVisibilityStatus(VisibleValue); - /// Hidden. + /// is hidden. public static ParameterVisibilityStatus Hidden { get; } = new ParameterVisibilityStatus(HiddenValue); /// Determines if two values are the same. public static bool operator ==(ParameterVisibilityStatus left, ParameterVisibilityStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.Serialization.cs index 6abe3d9b83ec1..ee7a8360fa32a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PlacementPoliciesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static PlacementPoliciesList DeserializePlacementPoliciesList(JsonEleme return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static PlacementPoliciesList DeserializePlacementPoliciesList(JsonEleme } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static PlacementPoliciesList DeserializePlacementPoliciesList(JsonEleme } } serializedAdditionalRawData = rawDataDictionary; - return new PlacementPoliciesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new PlacementPoliciesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs index 037a366ad23a2..1770220851ad9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPoliciesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// Represents list of placement policies. + /// The response of a PlacementPolicy list operation. internal partial class PlacementPoliciesList { /// @@ -46,25 +47,34 @@ internal partial class PlacementPoliciesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal PlacementPoliciesList() + /// The PlacementPolicy items on this page. + /// is null. + internal PlacementPoliciesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The PlacementPolicy items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal PlacementPoliciesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal PlacementPoliciesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal PlacementPoliciesList() + { + } + + /// The PlacementPolicy items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProperties.cs index 64fc0ee0129fd..be1d25693e249 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProperties.cs @@ -55,7 +55,7 @@ protected PlacementPolicyProperties() } /// Initializes a new instance of . - /// placement policy type. + /// Placement Policy type. /// Whether the placement policy is enabled or disabled. /// Display name of the placement policy. /// The provisioning state. @@ -69,7 +69,7 @@ internal PlacementPolicyProperties(PlacementPolicyType policyType, PlacementPoli _serializedAdditionalRawData = serializedAdditionalRawData; } - /// placement policy type. + /// Placement Policy type. internal PlacementPolicyType PolicyType { get; set; } /// Whether the placement policy is enabled or disabled. public PlacementPolicyState? State { get; set; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProvisioningState.cs index 59257b81b5182..a643a54b53c1e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Placement Policy provisioning state. public readonly partial struct PlacementPolicyProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public PlacementPolicyProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static PlacementPolicyProvisioningState Succeeded { get; } = new PlacementPolicyProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static PlacementPolicyProvisioningState Failed { get; } = new PlacementPolicyProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static PlacementPolicyProvisioningState Canceled { get; } = new PlacementPolicyProvisioningState(CanceledValue); + /// is building. public static PlacementPolicyProvisioningState Building { get; } = new PlacementPolicyProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static PlacementPolicyProvisioningState Deleting { get; } = new PlacementPolicyProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static PlacementPolicyProvisioningState Updating { get; } = new PlacementPolicyProvisioningState(UpdatingValue); - /// Canceled. - public static PlacementPolicyProvisioningState Canceled { get; } = new PlacementPolicyProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(PlacementPolicyProvisioningState left, PlacementPolicyProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyState.cs index ee4cbd1e67bcd..cf6e60a5c7b29 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Whether the placement policy is enabled or disabled. + /// Placement Policy state. public readonly partial struct PlacementPolicyState : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public PlacementPolicyState(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static PlacementPolicyState Enabled { get; } = new PlacementPolicyState(EnabledValue); - /// Disabled. + /// is disabled. public static PlacementPolicyState Disabled { get; } = new PlacementPolicyState(DisabledValue); /// Determines if two values are the same. public static bool operator ==(PlacementPolicyState left, PlacementPolicyState right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyType.cs index b1bb7d4bc6d15..52643b136436b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PlacementPolicyType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// placement policy type. + /// Placement Policy type. internal readonly partial struct PlacementPolicyType : IEquatable { private readonly string _value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileDirection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileDirection.cs index 9de5ff773b81e..0826bcf696301 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileDirection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileDirection.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Direction of port mirroring profile. + /// Port Mirroring Direction. public readonly partial struct PortMirroringProfileDirection : IEquatable { private readonly string _value; @@ -26,11 +26,11 @@ public PortMirroringProfileDirection(string value) private const string EgressValue = "EGRESS"; private const string BidirectionalValue = "BIDIRECTIONAL"; - /// INGRESS. + /// is ingress. public static PortMirroringProfileDirection Ingress { get; } = new PortMirroringProfileDirection(IngressValue); - /// EGRESS. + /// is egress. public static PortMirroringProfileDirection Egress { get; } = new PortMirroringProfileDirection(EgressValue); - /// BIDIRECTIONAL. + /// is bidirectional. public static PortMirroringProfileDirection Bidirectional { get; } = new PortMirroringProfileDirection(BidirectionalValue); /// Determines if two values are the same. public static bool operator ==(PortMirroringProfileDirection left, PortMirroringProfileDirection right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileStatus.cs index e803a2ec809be..9eaadcc386583 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PortMirroringProfileStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Port Mirroring Status. + /// Port Mirroring status. public readonly partial struct PortMirroringProfileStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public PortMirroringProfileStatus(string value) private const string SuccessValue = "SUCCESS"; private const string FailureValue = "FAILURE"; - /// SUCCESS. + /// is success. public static PortMirroringProfileStatus Success { get; } = new PortMirroringProfileStatus(SuccessValue); - /// FAILURE. + /// is failure. public static PortMirroringProfileStatus Failure { get; } = new PortMirroringProfileStatus(FailureValue); /// Determines if two values are the same. public static bool operator ==(PortMirroringProfileStatus left, PortMirroringProfileStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.Serialization.cs index 7af5c40fd8e7d..cd91d54e3d077 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PrivateCloudList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static PrivateCloudList DeserializePrivateCloudList(JsonElement element return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static PrivateCloudList DeserializePrivateCloudList(JsonElement element } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static PrivateCloudList DeserializePrivateCloudList(JsonElement element } } serializedAdditionalRawData = rawDataDictionary; - return new PrivateCloudList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new PrivateCloudList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs index f145f01f70f0b..c57e5ef3f522e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/PrivateCloudList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A paged list of private clouds. + /// The response of a PrivateCloud list operation. internal partial class PrivateCloudList { /// @@ -46,25 +47,34 @@ internal partial class PrivateCloudList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal PrivateCloudList() + /// The PrivateCloud items on this page. + /// is null. + internal PrivateCloudList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The PrivateCloud items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal PrivateCloudList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal PrivateCloudList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal PrivateCloudList() + { + } + + /// The PrivateCloud items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletAudience.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletAudience.cs new file mode 100644 index 0000000000000..d4d6221932f2a --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletAudience.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers. + public readonly partial struct ScriptCmdletAudience : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScriptCmdletAudience(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AutomationValue = "Automation"; + private const string AnyValue = "Any"; + + /// is automation. + public static ScriptCmdletAudience Automation { get; } = new ScriptCmdletAudience(AutomationValue); + /// is any. + public static ScriptCmdletAudience Any { get; } = new ScriptCmdletAudience(AnyValue); + /// Determines if two values are the same. + public static bool operator ==(ScriptCmdletAudience left, ScriptCmdletAudience right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScriptCmdletAudience left, ScriptCmdletAudience right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ScriptCmdletAudience(string value) => new ScriptCmdletAudience(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScriptCmdletAudience other && Equals(other); + /// + public bool Equals(ScriptCmdletAudience other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletProvisioningState.cs new file mode 100644 index 0000000000000..b3091956c0fc0 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// A script cmdlet provisioning state. + public readonly partial struct ScriptCmdletProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScriptCmdletProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static ScriptCmdletProvisioningState Succeeded { get; } = new ScriptCmdletProvisioningState(SucceededValue); + /// Resource creation failed. + public static ScriptCmdletProvisioningState Failed { get; } = new ScriptCmdletProvisioningState(FailedValue); + /// Resource creation was canceled. + public static ScriptCmdletProvisioningState Canceled { get; } = new ScriptCmdletProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(ScriptCmdletProvisioningState left, ScriptCmdletProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScriptCmdletProvisioningState left, ScriptCmdletProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ScriptCmdletProvisioningState(string value) => new ScriptCmdletProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScriptCmdletProvisioningState other && Equals(other); + /// + public bool Equals(ScriptCmdletProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.Serialization.cs index 14d484ac4dd88..34c41632a4bbe 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ScriptCmdletsList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static ScriptCmdletsList DeserializeScriptCmdletsList(JsonElement eleme return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static ScriptCmdletsList DeserializeScriptCmdletsList(JsonElement eleme } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static ScriptCmdletsList DeserializeScriptCmdletsList(JsonElement eleme } } serializedAdditionalRawData = rawDataDictionary; - return new ScriptCmdletsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ScriptCmdletsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs index 95be3876ebe4b..b92092ab9af5b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptCmdletsList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// Pageable list of scripts/cmdlets. + /// The response of a ScriptCmdlet list operation. internal partial class ScriptCmdletsList { /// @@ -46,25 +47,34 @@ internal partial class ScriptCmdletsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ScriptCmdletsList() + /// The ScriptCmdlet items on this page. + /// is null. + internal ScriptCmdletsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of scripts. - /// URL to get the next page if any. + /// The ScriptCmdlet items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal ScriptCmdletsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ScriptCmdletsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of scripts. + /// Initializes a new instance of for deserialization. + internal ScriptCmdletsList() + { + } + + /// The ScriptCmdlet items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.Serialization.cs index 62cd259998010..4f44d53c0cb41 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.Serialization.cs @@ -34,10 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ScriptExecutionParameterDetails)} does not support writing '{format}' format."); } - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); writer.WritePropertyName("type"u8); writer.WriteStringValue(ParameterType.ToString()); + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.cs index 40eba903846d8..d9b707ec5afb4 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterDetails.cs @@ -60,13 +60,13 @@ protected ScriptExecutionParameterDetails(string name) } /// Initializes a new instance of . + /// script execution parameter type. /// The parameter name. - /// The type of execution parameter. /// Keeps track of any properties unknown to the library. - internal ScriptExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType, IDictionary serializedAdditionalRawData) + internal ScriptExecutionParameterDetails(ScriptExecutionParameterType parameterType, string name, IDictionary serializedAdditionalRawData) { - Name = name; ParameterType = parameterType; + Name = name; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -75,9 +75,9 @@ internal ScriptExecutionParameterDetails() { } + /// script execution parameter type. + internal ScriptExecutionParameterType ParameterType { get; set; } /// The parameter name. public string Name { get; set; } - /// The type of execution parameter. - internal ScriptExecutionParameterType ParameterType { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterType.cs index 64ecb8cf9f5db..c6ac5b17ad31a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionParameterType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The type of execution parameter. + /// script execution parameter type. internal readonly partial struct ScriptExecutionParameterType : IEquatable { private readonly string _value; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs index f90df9bf74e4a..23cc338e91128 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The state of the script execution resource. + /// Script Execution provisioning state. public readonly partial struct ScriptExecutionProvisioningState : IEquatable { private readonly string _value; @@ -22,31 +22,31 @@ public ScriptExecutionProvisioningState(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string PendingValue = "Pending"; - private const string RunningValue = "Running"; private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string PendingValue = "Pending"; + private const string RunningValue = "Running"; private const string CancellingValue = "Cancelling"; private const string CancelledValue = "Cancelled"; private const string DeletingValue = "Deleting"; - private const string CanceledValue = "Canceled"; - /// Pending. - public static ScriptExecutionProvisioningState Pending { get; } = new ScriptExecutionProvisioningState(PendingValue); - /// Running. - public static ScriptExecutionProvisioningState Running { get; } = new ScriptExecutionProvisioningState(RunningValue); - /// Succeeded. + /// Resource has been created. public static ScriptExecutionProvisioningState Succeeded { get; } = new ScriptExecutionProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static ScriptExecutionProvisioningState Failed { get; } = new ScriptExecutionProvisioningState(FailedValue); - /// Cancelling. + /// Resource creation was canceled. + public static ScriptExecutionProvisioningState Canceled { get; } = new ScriptExecutionProvisioningState(CanceledValue); + /// is pending. + public static ScriptExecutionProvisioningState Pending { get; } = new ScriptExecutionProvisioningState(PendingValue); + /// is running. + public static ScriptExecutionProvisioningState Running { get; } = new ScriptExecutionProvisioningState(RunningValue); + /// is cancelling. public static ScriptExecutionProvisioningState Cancelling { get; } = new ScriptExecutionProvisioningState(CancellingValue); - /// Cancelled. + /// is cancelled. public static ScriptExecutionProvisioningState Cancelled { get; } = new ScriptExecutionProvisioningState(CancelledValue); - /// Deleting. + /// is deleting. public static ScriptExecutionProvisioningState Deleting { get; } = new ScriptExecutionProvisioningState(DeletingValue); - /// Canceled. - public static ScriptExecutionProvisioningState Canceled { get; } = new ScriptExecutionProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(ScriptExecutionProvisioningState left, ScriptExecutionProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.Serialization.cs index 66291e8284cde..b4b38f44eb117 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ScriptExecutionsList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static ScriptExecutionsList DeserializeScriptExecutionsList(JsonElement return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static ScriptExecutionsList DeserializeScriptExecutionsList(JsonElement } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static ScriptExecutionsList DeserializeScriptExecutionsList(JsonElement } } serializedAdditionalRawData = rawDataDictionary; - return new ScriptExecutionsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ScriptExecutionsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs index b447114264205..62258050712a9 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptExecutionsList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// Pageable list of script executions. + /// The response of a ScriptExecution list operation. internal partial class ScriptExecutionsList { /// @@ -46,25 +47,34 @@ internal partial class ScriptExecutionsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ScriptExecutionsList() + /// The ScriptExecution items on this page. + /// is null. + internal ScriptExecutionsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of scripts. - /// URL to get the next page if any. + /// The ScriptExecution items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal ScriptExecutionsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ScriptExecutionsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of scripts. + /// Initializes a new instance of for deserialization. + internal ScriptExecutionsList() + { + } + + /// The ScriptExecution items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptOutputStreamType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptOutputStreamType.cs index 86a91c52e39f8..ab926949fbeac 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptOutputStreamType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptOutputStreamType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The ScriptOutputStreamType. + /// Script Output Stream type. public readonly partial struct ScriptOutputStreamType : IEquatable { private readonly string _value; @@ -27,13 +27,13 @@ public ScriptOutputStreamType(string value) private const string OutputValue = "Output"; private const string ErrorValue = "Error"; - /// Information. + /// is information. public static ScriptOutputStreamType Information { get; } = new ScriptOutputStreamType(InformationValue); - /// Warning. + /// is warning. public static ScriptOutputStreamType Warning { get; } = new ScriptOutputStreamType(WarningValue); - /// Output. + /// is output. public static ScriptOutputStreamType Output { get; } = new ScriptOutputStreamType(OutputValue); - /// Error. + /// is error. public static ScriptOutputStreamType Error { get; } = new ScriptOutputStreamType(ErrorValue); /// Determines if two values are the same. public static bool operator ==(ScriptOutputStreamType left, ScriptOutputStreamType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageProvisioningState.cs new file mode 100644 index 0000000000000..7263888a2c476 --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackageProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// Script Package provisioning state. + public readonly partial struct ScriptPackageProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScriptPackageProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + + /// Resource has been created. + public static ScriptPackageProvisioningState Succeeded { get; } = new ScriptPackageProvisioningState(SucceededValue); + /// Resource creation failed. + public static ScriptPackageProvisioningState Failed { get; } = new ScriptPackageProvisioningState(FailedValue); + /// Resource creation was canceled. + public static ScriptPackageProvisioningState Canceled { get; } = new ScriptPackageProvisioningState(CanceledValue); + /// Determines if two values are the same. + public static bool operator ==(ScriptPackageProvisioningState left, ScriptPackageProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScriptPackageProvisioningState left, ScriptPackageProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ScriptPackageProvisioningState(string value) => new ScriptPackageProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScriptPackageProvisioningState other && Equals(other); + /// + public bool Equals(ScriptPackageProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.Serialization.cs index a84158db58127..c215c36399fb6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ScriptPackagesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static ScriptPackagesList DeserializeScriptPackagesList(JsonElement ele return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static ScriptPackagesList DeserializeScriptPackagesList(JsonElement ele } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static ScriptPackagesList DeserializeScriptPackagesList(JsonElement ele } } serializedAdditionalRawData = rawDataDictionary; - return new ScriptPackagesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ScriptPackagesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs index ece371d42737d..9964564e41cad 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptPackagesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of the available script packages. + /// The response of a ScriptPackage list operation. internal partial class ScriptPackagesList { /// @@ -46,25 +47,34 @@ internal partial class ScriptPackagesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ScriptPackagesList() + /// The ScriptPackage items on this page. + /// is null. + internal ScriptPackagesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// List of script package resources. - /// URL to get the next page if any. + /// The ScriptPackage items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal ScriptPackagesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ScriptPackagesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of script package resources. + /// Initializes a new instance of for deserialization. + internal ScriptPackagesList() + { + } + + /// The ScriptPackage items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameter.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameter.cs index 7a7cc3c07965c..403d98a87e69b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameter.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameter.cs @@ -51,10 +51,16 @@ internal ScriptParameter() } /// Initializes a new instance of . - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject. + /// + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject + /// /// The parameter name that the script will expect a parameter value for. /// User friendly description of the parameter. - /// Should this parameter be visible to arm and passed in the parameters argument when executing. + /// + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing + /// /// Is this parameter required or optional. /// Keeps track of any properties unknown to the library. internal ScriptParameter(ScriptParameterType? parameterType, string name, string description, ParameterVisibilityStatus? visibility, ParameterOptionalityStatus? optional, IDictionary serializedAdditionalRawData) @@ -67,13 +73,19 @@ internal ScriptParameter(ScriptParameterType? parameterType, string name, string _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject. + /// + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject + /// public ScriptParameterType? ParameterType { get; } /// The parameter name that the script will expect a parameter value for. public string Name { get; } /// User friendly description of the parameter. public string Description { get; } - /// Should this parameter be visible to arm and passed in the parameters argument when executing. + /// + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing + /// public ParameterVisibilityStatus? Visibility { get; } /// Is this parameter required or optional. public ParameterOptionalityStatus? Optional { get; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameterType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameterType.cs index 1ccf341395f00..3607f98b58f57 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameterType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptParameterType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject. + /// Script Parameter types. public readonly partial struct ScriptParameterType : IEquatable { private readonly string _value; @@ -29,17 +29,17 @@ public ScriptParameterType(string value) private const string BoolValue = "Bool"; private const string FloatValue = "Float"; - /// String. + /// is string. public static ScriptParameterType String { get; } = new ScriptParameterType(StringValue); - /// SecureString. + /// is secure string. public static ScriptParameterType SecureString { get; } = new ScriptParameterType(SecureStringValue); - /// Credential. + /// is credential. public static ScriptParameterType Credential { get; } = new ScriptParameterType(CredentialValue); - /// Int. + /// is int. public static ScriptParameterType Int { get; } = new ScriptParameterType(IntValue); - /// Bool. + /// is bool. public static ScriptParameterType Bool { get; } = new ScriptParameterType(BoolValue); - /// Float. + /// is float. public static ScriptParameterType Float { get; } = new ScriptParameterType(FloatValue); /// Determines if two values are the same. public static bool operator ==(ScriptParameterType left, ScriptParameterType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.Serialization.cs index 7aee13f70836f..86f5f0684e337 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.Serialization.cs @@ -63,8 +63,8 @@ internal static ScriptSecureStringExecutionParameterDetails DeserializeScriptSec return null; } string secureValue = default; - string name = default; ScriptExecutionParameterType type = default; + string name = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -74,14 +74,14 @@ internal static ScriptSecureStringExecutionParameterDetails DeserializeScriptSec secureValue = property.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (property.NameEquals("type"u8)) { - name = property.Value.GetString(); + type = new ScriptExecutionParameterType(property.Value.GetString()); continue; } - if (property.NameEquals("type"u8)) + if (property.NameEquals("name"u8)) { - type = new ScriptExecutionParameterType(property.Value.GetString()); + name = property.Value.GetString(); continue; } if (options.Format != "W") @@ -90,7 +90,7 @@ internal static ScriptSecureStringExecutionParameterDetails DeserializeScriptSec } } serializedAdditionalRawData = rawDataDictionary; - return new ScriptSecureStringExecutionParameterDetails(name, type, serializedAdditionalRawData, secureValue); + return new ScriptSecureStringExecutionParameterDetails(type, name, serializedAdditionalRawData, secureValue); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.cs index 70c1bf0e06841..448b692ba630c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptSecureStringExecutionParameterDetails.cs @@ -24,11 +24,11 @@ public ScriptSecureStringExecutionParameterDetails(string name) : base(name) } /// Initializes a new instance of . + /// script execution parameter type. /// The parameter name. - /// The type of execution parameter. /// Keeps track of any properties unknown to the library. /// A secure value for the passed parameter, not to be stored in logs. - internal ScriptSecureStringExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType, IDictionary serializedAdditionalRawData, string secureValue) : base(name, parameterType, serializedAdditionalRawData) + internal ScriptSecureStringExecutionParameterDetails(ScriptExecutionParameterType parameterType, string name, IDictionary serializedAdditionalRawData, string secureValue) : base(parameterType, name, serializedAdditionalRawData) { SecureValue = secureValue; ParameterType = parameterType; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.Serialization.cs index dfc0992d6242b..2aaff1d5d7a48 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.Serialization.cs @@ -63,8 +63,8 @@ internal static ScriptStringExecutionParameterDetails DeserializeScriptStringExe return null; } string value = default; - string name = default; ScriptExecutionParameterType type = default; + string name = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -74,14 +74,14 @@ internal static ScriptStringExecutionParameterDetails DeserializeScriptStringExe value = property.Value.GetString(); continue; } - if (property.NameEquals("name"u8)) + if (property.NameEquals("type"u8)) { - name = property.Value.GetString(); + type = new ScriptExecutionParameterType(property.Value.GetString()); continue; } - if (property.NameEquals("type"u8)) + if (property.NameEquals("name"u8)) { - type = new ScriptExecutionParameterType(property.Value.GetString()); + name = property.Value.GetString(); continue; } if (options.Format != "W") @@ -90,7 +90,7 @@ internal static ScriptStringExecutionParameterDetails DeserializeScriptStringExe } } serializedAdditionalRawData = rawDataDictionary; - return new ScriptStringExecutionParameterDetails(name, type, serializedAdditionalRawData, value); + return new ScriptStringExecutionParameterDetails(type, name, serializedAdditionalRawData, value); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.cs index fac0b2e5e4a2b..f9476acd5ce72 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/ScriptStringExecutionParameterDetails.cs @@ -24,11 +24,11 @@ public ScriptStringExecutionParameterDetails(string name) : base(name) } /// Initializes a new instance of . + /// script execution parameter type. /// The parameter name. - /// The type of execution parameter. /// Keeps track of any properties unknown to the library. /// The value for the passed parameter. - internal ScriptStringExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType, IDictionary serializedAdditionalRawData, string value) : base(name, parameterType, serializedAdditionalRawData) + internal ScriptStringExecutionParameterDetails(ScriptExecutionParameterType parameterType, string name, IDictionary serializedAdditionalRawData, string value) : base(parameterType, name, serializedAdditionalRawData) { Value = value; ParameterType = parameterType; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SingleSignOnIdentitySource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SingleSignOnIdentitySource.cs index 9809189fd6ef3..1faa6cc6ab413 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SingleSignOnIdentitySource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SingleSignOnIdentitySource.cs @@ -59,8 +59,14 @@ public SingleSignOnIdentitySource() /// Primary server URL. /// Secondary server URL. /// Protect LDAP communication using SSL certificate (LDAPS). - /// The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. - /// The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + /// + /// The ID of an Active Directory user with a minimum of read-only access to Base + /// DN for users and group + /// + /// + /// The password of the Active Directory user with a minimum of read-only access to + /// Base DN for users and groups. + /// /// Keeps track of any properties unknown to the library. internal SingleSignOnIdentitySource(string name, string @alias, string domain, string baseUserDN, string baseGroupDN, Uri primaryServer, Uri secondaryServer, SslCertificateStatus? ssl, string username, string password, IDictionary serializedAdditionalRawData) { @@ -93,9 +99,15 @@ internal SingleSignOnIdentitySource(string name, string @alias, string domain, s public Uri SecondaryServer { get; set; } /// Protect LDAP communication using SSL certificate (LDAPS). public SslCertificateStatus? Ssl { get; set; } - /// The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. + /// + /// The ID of an Active Directory user with a minimum of read-only access to Base + /// DN for users and group + /// public string Username { get; set; } - /// The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + /// + /// The password of the Active Directory user with a minimum of read-only access to + /// Base DN for users and groups. + /// public string Password { get; set; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SslCertificateStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SslCertificateStatus.cs index 0e7feb2204abc..438b8ef8d6e32 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SslCertificateStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/SslCertificateStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Protect LDAP communication using SSL certificate (LDAPS). + /// Whether SSL is enabled or disabled. public readonly partial struct SslCertificateStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public SslCertificateStatus(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static SslCertificateStatus Enabled { get; } = new SslCertificateStatus(EnabledValue); - /// Disabled. + /// is disabled. public static SslCertificateStatus Disabled { get; } = new SslCertificateStatus(DisabledValue); /// Determines if two values are the same. public static bool operator ==(SslCertificateStatus left, SslCertificateStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownAddonProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownAddonProperties.cs index ab398254a5b2c..8288a6d5621cc 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownAddonProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownAddonProperties.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Avs.Models internal partial class UnknownAddonProperties : AvsPrivateCloudAddonProperties { /// Initializes a new instance of . - /// The type of private cloud addon. + /// Addon type. /// The state of the addon provisioning. /// Keeps track of any properties unknown to the library. internal UnknownAddonProperties(AddonType addonType, AddonProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(addonType, provisioningState, serializedAdditionalRawData) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownPlacementPolicyProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownPlacementPolicyProperties.cs index 7db101ebc760f..9c3dbe6cf8dfb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownPlacementPolicyProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownPlacementPolicyProperties.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Avs.Models internal partial class UnknownPlacementPolicyProperties : PlacementPolicyProperties { /// Initializes a new instance of . - /// placement policy type. + /// Placement Policy type. /// Whether the placement policy is enabled or disabled. /// Display name of the placement policy. /// The provisioning state. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.Serialization.cs index 6459b399e699b..e2761cf118d19 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.Serialization.cs @@ -57,20 +57,20 @@ internal static UnknownScriptExecutionParameter DeserializeUnknownScriptExecutio { return null; } - string name = default; ScriptExecutionParameterType type = "Unknown"; + string name = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("name"u8)) + if (property.NameEquals("type"u8)) { - name = property.Value.GetString(); + type = new ScriptExecutionParameterType(property.Value.GetString()); continue; } - if (property.NameEquals("type"u8)) + if (property.NameEquals("name"u8)) { - type = new ScriptExecutionParameterType(property.Value.GetString()); + name = property.Value.GetString(); continue; } if (options.Format != "W") @@ -79,7 +79,7 @@ internal static UnknownScriptExecutionParameter DeserializeUnknownScriptExecutio } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownScriptExecutionParameter(name, type, serializedAdditionalRawData); + return new UnknownScriptExecutionParameter(type, name, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.cs index f70210a52c288..c75b63f7cc41e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/UnknownScriptExecutionParameter.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.Avs.Models internal partial class UnknownScriptExecutionParameter : ScriptExecutionParameterDetails { /// Initializes a new instance of . + /// script execution parameter type. /// The parameter name. - /// The type of execution parameter. /// Keeps track of any properties unknown to the library. - internal UnknownScriptExecutionParameter(string name, ScriptExecutionParameterType parameterType, IDictionary serializedAdditionalRawData) : base(name, parameterType, serializedAdditionalRawData) + internal UnknownScriptExecutionParameter(ScriptExecutionParameterType parameterType, string name, IDictionary serializedAdditionalRawData) : base(parameterType, name, serializedAdditionalRawData) { ParameterType = parameterType; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachineRestrictMovementState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachineRestrictMovementState.cs index 948a10bf4710b..5f7c42fe4df18 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachineRestrictMovementState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachineRestrictMovementState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled). + /// Virtual Machine Restrict Movement state. public readonly partial struct VirtualMachineRestrictMovementState : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public VirtualMachineRestrictMovementState(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// is enabled. public static VirtualMachineRestrictMovementState Enabled { get; } = new VirtualMachineRestrictMovementState(EnabledValue); - /// Disabled. + /// is disabled. public static VirtualMachineRestrictMovementState Disabled { get; } = new VirtualMachineRestrictMovementState(DisabledValue); /// Determines if two values are the same. public static bool operator ==(VirtualMachineRestrictMovementState left, VirtualMachineRestrictMovementState right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.Serialization.cs index ccb1f7e4b423b..d9eb4a9be4480 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VirtualMachinesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static VirtualMachinesList DeserializeVirtualMachinesList(JsonElement e return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static VirtualMachinesList DeserializeVirtualMachinesList(JsonElement e } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static VirtualMachinesList DeserializeVirtualMachinesList(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new VirtualMachinesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new VirtualMachinesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs index 4a32204ed6e25..5fd2fe12a7e81 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VirtualMachinesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of Virtual Machines. + /// The response of a VirtualMachine list operation. internal partial class VirtualMachinesList { /// @@ -46,25 +47,34 @@ internal partial class VirtualMachinesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal VirtualMachinesList() + /// The VirtualMachine items on this page. + /// is null. + internal VirtualMachinesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items to be displayed on the page. - /// URL to get the next page if any. + /// The VirtualMachine items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal VirtualMachinesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal VirtualMachinesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items to be displayed on the page. + /// Initializes a new instance of for deserialization. + internal VirtualMachinesList() + { + } + + /// The VirtualMachine items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyAffinityStrength.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyAffinityStrength.cs index a956754b6bbcd..d8f6ef880e890 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyAffinityStrength.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyAffinityStrength.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// VM-Host placement policy affinity strength (should/must). + /// Affinity Strength. public readonly partial struct VmHostPlacementPolicyAffinityStrength : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public VmHostPlacementPolicyAffinityStrength(string value) private const string ShouldValue = "Should"; private const string MustValue = "Must"; - /// Should. + /// is should. public static VmHostPlacementPolicyAffinityStrength Should { get; } = new VmHostPlacementPolicyAffinityStrength(ShouldValue); - /// Must. + /// is must. public static VmHostPlacementPolicyAffinityStrength Must { get; } = new VmHostPlacementPolicyAffinityStrength(MustValue); /// Determines if two values are the same. public static bool operator ==(VmHostPlacementPolicyAffinityStrength left, VmHostPlacementPolicyAffinityStrength right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyProperties.cs index e6efbc45393b6..9ff0fec0165c4 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmHostPlacementPolicyProperties.cs @@ -32,7 +32,7 @@ public VmHostPlacementPolicyProperties(IEnumerable vmMembers } /// Initializes a new instance of . - /// placement policy type. + /// Placement Policy type. /// Whether the placement policy is enabled or disabled. /// Display name of the placement policy. /// The provisioning state. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmPlacementPolicyProperties.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmPlacementPolicyProperties.cs index 8cb4acb872c05..90b781cf8c56d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmPlacementPolicyProperties.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/VmPlacementPolicyProperties.cs @@ -29,7 +29,7 @@ public VmPlacementPolicyProperties(IEnumerable vmMembers, Av } /// Initializes a new instance of . - /// placement policy type. + /// Placement Policy type. /// Whether the placement policy is enabled or disabled. /// Display name of the placement policy. /// The provisioning state. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs index 242e97e23dbcc..4426d07780392 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs @@ -11,7 +11,8 @@ namespace Azure.ResourceManager.Avs.Models { /// - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.Serialization.cs index ae560d22e4c71..4f7f5e3777b98 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkDhcpList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkDhcpList DeserializeWorkloadNetworkDhcpList(JsonE return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkDhcpList DeserializeWorkloadNetworkDhcpList(JsonE } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkDhcpList DeserializeWorkloadNetworkDhcpList(JsonE } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkDhcpList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkDhcpList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs index 25c6f8b939c00..e96fb124ba1ee 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX dhcp entities. + /// The response of a WorkloadNetworkDhcp list operation. internal partial class WorkloadNetworkDhcpList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkDhcpList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkDhcpList() + /// The WorkloadNetworkDhcp items on this page. + /// is null. + internal WorkloadNetworkDhcpList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkDhcp items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkDhcpList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkDhcpList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkDhcpList() + { + } + + /// The WorkloadNetworkDhcp items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs index 076e6a129529d..b23b0cc5e0e68 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network DHCP provisioning state. public readonly partial struct WorkloadNetworkDhcpProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkDhcpProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkDhcpProvisioningState Succeeded { get; } = new WorkloadNetworkDhcpProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkDhcpProvisioningState Failed { get; } = new WorkloadNetworkDhcpProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkDhcpProvisioningState Canceled { get; } = new WorkloadNetworkDhcpProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkDhcpProvisioningState Building { get; } = new WorkloadNetworkDhcpProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkDhcpProvisioningState Deleting { get; } = new WorkloadNetworkDhcpProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkDhcpProvisioningState Updating { get; } = new WorkloadNetworkDhcpProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkDhcpProvisioningState Canceled { get; } = new WorkloadNetworkDhcpProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkDhcpProvisioningState left, WorkloadNetworkDhcpProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs index 824fb4b72968d..afa659fe95571 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network DNS Service provisioning state. public readonly partial struct WorkloadNetworkDnsServiceProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkDnsServiceProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkDnsServiceProvisioningState Succeeded { get; } = new WorkloadNetworkDnsServiceProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkDnsServiceProvisioningState Failed { get; } = new WorkloadNetworkDnsServiceProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkDnsServiceProvisioningState Canceled { get; } = new WorkloadNetworkDnsServiceProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkDnsServiceProvisioningState Building { get; } = new WorkloadNetworkDnsServiceProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkDnsServiceProvisioningState Deleting { get; } = new WorkloadNetworkDnsServiceProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkDnsServiceProvisioningState Updating { get; } = new WorkloadNetworkDnsServiceProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkDnsServiceProvisioningState Canceled { get; } = new WorkloadNetworkDnsServiceProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkDnsServiceProvisioningState left, WorkloadNetworkDnsServiceProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.Serialization.cs index fe6d8336f638f..f2546b6b8d685 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkDnsServicesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkDnsServicesList DeserializeWorkloadNetworkDnsServ return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkDnsServicesList DeserializeWorkloadNetworkDnsServ } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkDnsServicesList DeserializeWorkloadNetworkDnsServ } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkDnsServicesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkDnsServicesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs index 8c5256d9a49af..9e4bbbf3938df 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsServicesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX DNS Services. + /// The response of a WorkloadNetworkDnsService list operation. internal partial class WorkloadNetworkDnsServicesList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkDnsServicesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkDnsServicesList() + /// The WorkloadNetworkDnsService items on this page. + /// is null. + internal WorkloadNetworkDnsServicesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkDnsService items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkDnsServicesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkDnsServicesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkDnsServicesList() + { + } + + /// The WorkloadNetworkDnsService items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs index 79dfb71630a71..94b1aa8022aac 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network DNS Zone provisioning state. public readonly partial struct WorkloadNetworkDnsZoneProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkDnsZoneProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkDnsZoneProvisioningState Succeeded { get; } = new WorkloadNetworkDnsZoneProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkDnsZoneProvisioningState Failed { get; } = new WorkloadNetworkDnsZoneProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkDnsZoneProvisioningState Canceled { get; } = new WorkloadNetworkDnsZoneProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkDnsZoneProvisioningState Building { get; } = new WorkloadNetworkDnsZoneProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkDnsZoneProvisioningState Deleting { get; } = new WorkloadNetworkDnsZoneProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkDnsZoneProvisioningState Updating { get; } = new WorkloadNetworkDnsZoneProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkDnsZoneProvisioningState Canceled { get; } = new WorkloadNetworkDnsZoneProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkDnsZoneProvisioningState left, WorkloadNetworkDnsZoneProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.Serialization.cs index 516a9a717136c..e2b1a72d766ad 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkDnsZonesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkDnsZonesList DeserializeWorkloadNetworkDnsZonesLi return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkDnsZonesList DeserializeWorkloadNetworkDnsZonesLi } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkDnsZonesList DeserializeWorkloadNetworkDnsZonesLi } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkDnsZonesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkDnsZonesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs index 6dff27af6f6a9..d4af95740ee82 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkDnsZonesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX DNS Zones. + /// The response of a WorkloadNetworkDnsZone list operation. internal partial class WorkloadNetworkDnsZonesList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkDnsZonesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkDnsZonesList() + /// The WorkloadNetworkDnsZone items on this page. + /// is null. + internal WorkloadNetworkDnsZonesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkDnsZone items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkDnsZonesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkDnsZonesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkDnsZonesList() + { + } + + /// The WorkloadNetworkDnsZone items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.Serialization.cs index 52c1c556cc4f1..b4e158d4311d7 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkGatewayList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkGatewayList DeserializeWorkloadNetworkGatewayList return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkGatewayList DeserializeWorkloadNetworkGatewayList } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkGatewayList DeserializeWorkloadNetworkGatewayList } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkGatewayList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkGatewayList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs index 8f36fcf501bd8..91a4042bdf759 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkGatewayList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX Gateways. + /// The response of a WorkloadNetworkGateway list operation. internal partial class WorkloadNetworkGatewayList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkGatewayList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkGatewayList() + /// The WorkloadNetworkGateway items on this page. + /// is null. + internal WorkloadNetworkGatewayList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkGateway items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkGatewayList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkGatewayList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkGatewayList() + { + } + + /// The WorkloadNetworkGateway items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.Serialization.cs index ebf86f7f5c0f4..c80bf4bf7afbb 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkList DeserializeWorkloadNetworkList(JsonElement e return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkList DeserializeWorkloadNetworkList(JsonElement e } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkList DeserializeWorkloadNetworkList(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs index 767c51d34aa2a..fc96e3cefef9e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of workload networks. + /// The response of a WorkloadNetwork list operation. internal partial class WorkloadNetworkList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkList() + /// The WorkloadNetwork items on this page. + /// is null. + internal WorkloadNetworkList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetwork items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkList() + { + } + + /// The WorkloadNetwork items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.Serialization.cs index f0be2663c1b0a..7ff8908cabe95 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkPortMirroringList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkPortMirroringList DeserializeWorkloadNetworkPortM return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkPortMirroringList DeserializeWorkloadNetworkPortM } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkPortMirroringList DeserializeWorkloadNetworkPortM } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkPortMirroringList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkPortMirroringList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs index 0a9acffb1ef08..5077aff247f23 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX Port Mirroring. + /// The response of a WorkloadNetworkPortMirroring list operation. internal partial class WorkloadNetworkPortMirroringList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkPortMirroringList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkPortMirroringList() + /// The WorkloadNetworkPortMirroring items on this page. + /// is null. + internal WorkloadNetworkPortMirroringList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkPortMirroring items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkPortMirroringList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkPortMirroringList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkPortMirroringList() + { + } + + /// The WorkloadNetworkPortMirroring items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileProvisioningState.cs index ae30ee08d0b56..f3e6f6d01ecfd 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProfileProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network Port Mirroring provisioning state. public readonly partial struct WorkloadNetworkPortMirroringProfileProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkPortMirroringProfileProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkPortMirroringProfileProvisioningState Succeeded { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkPortMirroringProfileProvisioningState Failed { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkPortMirroringProfileProvisioningState Canceled { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkPortMirroringProfileProvisioningState Building { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkPortMirroringProfileProvisioningState Deleting { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkPortMirroringProfileProvisioningState Updating { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkPortMirroringProfileProvisioningState Canceled { get; } = new WorkloadNetworkPortMirroringProfileProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkPortMirroringProfileProvisioningState left, WorkloadNetworkPortMirroringProfileProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkProvisioningState.cs new file mode 100644 index 0000000000000..c3bffc301b3ab --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkProvisioningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Avs.Models +{ + /// base Workload Network provisioning state. + public readonly partial struct WorkloadNetworkProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WorkloadNetworkProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string BuildingValue = "Building"; + private const string DeletingValue = "Deleting"; + private const string UpdatingValue = "Updating"; + + /// Resource has been created. + public static WorkloadNetworkProvisioningState Succeeded { get; } = new WorkloadNetworkProvisioningState(SucceededValue); + /// Resource creation failed. + public static WorkloadNetworkProvisioningState Failed { get; } = new WorkloadNetworkProvisioningState(FailedValue); + /// Resource creation was canceled. + public static WorkloadNetworkProvisioningState Canceled { get; } = new WorkloadNetworkProvisioningState(CanceledValue); + /// is building. + public static WorkloadNetworkProvisioningState Building { get; } = new WorkloadNetworkProvisioningState(BuildingValue); + /// is deleting. + public static WorkloadNetworkProvisioningState Deleting { get; } = new WorkloadNetworkProvisioningState(DeletingValue); + /// is updating. + public static WorkloadNetworkProvisioningState Updating { get; } = new WorkloadNetworkProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(WorkloadNetworkProvisioningState left, WorkloadNetworkProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WorkloadNetworkProvisioningState left, WorkloadNetworkProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator WorkloadNetworkProvisioningState(string value) => new WorkloadNetworkProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WorkloadNetworkProvisioningState other && Equals(other); + /// + public bool Equals(WorkloadNetworkProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs index 49179b5d2d6f7..26dc407e48a45 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network Public IP provisioning state. public readonly partial struct WorkloadNetworkPublicIPProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkPublicIPProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkPublicIPProvisioningState Succeeded { get; } = new WorkloadNetworkPublicIPProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkPublicIPProvisioningState Failed { get; } = new WorkloadNetworkPublicIPProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkPublicIPProvisioningState Canceled { get; } = new WorkloadNetworkPublicIPProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkPublicIPProvisioningState Building { get; } = new WorkloadNetworkPublicIPProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkPublicIPProvisioningState Deleting { get; } = new WorkloadNetworkPublicIPProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkPublicIPProvisioningState Updating { get; } = new WorkloadNetworkPublicIPProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkPublicIPProvisioningState Canceled { get; } = new WorkloadNetworkPublicIPProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkPublicIPProvisioningState left, WorkloadNetworkPublicIPProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.Serialization.cs index 8b7af668bde89..004398d48198d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkPublicIPsList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkPublicIPsList DeserializeWorkloadNetworkPublicIPs return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkPublicIPsList DeserializeWorkloadNetworkPublicIPs } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkPublicIPsList DeserializeWorkloadNetworkPublicIPs } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkPublicIPsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkPublicIPsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs index fa951f2662613..757f010d97478 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkPublicIPsList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX Public IP Blocks. + /// The response of a WorkloadNetworkPublicIP list operation. internal partial class WorkloadNetworkPublicIPsList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkPublicIPsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkPublicIPsList() + /// The WorkloadNetworkPublicIP items on this page. + /// is null. + internal WorkloadNetworkPublicIPsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkPublicIP items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkPublicIPsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkPublicIPsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkPublicIPsList() + { + } + + /// The WorkloadNetworkPublicIP items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs index 6ccc3fd5017dd..dbc7ae3216005 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network Segment provisioning state. public readonly partial struct WorkloadNetworkSegmentProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkSegmentProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkSegmentProvisioningState Succeeded { get; } = new WorkloadNetworkSegmentProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkSegmentProvisioningState Failed { get; } = new WorkloadNetworkSegmentProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkSegmentProvisioningState Canceled { get; } = new WorkloadNetworkSegmentProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkSegmentProvisioningState Building { get; } = new WorkloadNetworkSegmentProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkSegmentProvisioningState Deleting { get; } = new WorkloadNetworkSegmentProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkSegmentProvisioningState Updating { get; } = new WorkloadNetworkSegmentProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkSegmentProvisioningState Canceled { get; } = new WorkloadNetworkSegmentProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkSegmentProvisioningState left, WorkloadNetworkSegmentProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentStatus.cs index 3cb491527511a..4e5141b66c4bd 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentStatus.cs @@ -25,9 +25,9 @@ public WorkloadNetworkSegmentStatus(string value) private const string SuccessValue = "SUCCESS"; private const string FailureValue = "FAILURE"; - /// SUCCESS. + /// is success. public static WorkloadNetworkSegmentStatus Success { get; } = new WorkloadNetworkSegmentStatus(SuccessValue); - /// FAILURE. + /// is failure. public static WorkloadNetworkSegmentStatus Failure { get; } = new WorkloadNetworkSegmentStatus(FailureValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkSegmentStatus left, WorkloadNetworkSegmentStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.Serialization.cs index 4dea787df0aec..1d9596a64b380 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkSegmentsList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkSegmentsList DeserializeWorkloadNetworkSegmentsLi return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkSegmentsList DeserializeWorkloadNetworkSegmentsLi } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkSegmentsList DeserializeWorkloadNetworkSegmentsLi } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkSegmentsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkSegmentsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs index 686be38322438..290cc2794f9b2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkSegmentsList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX Segments. + /// The response of a WorkloadNetworkSegment list operation. internal partial class WorkloadNetworkSegmentsList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkSegmentsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkSegmentsList() + /// The WorkloadNetworkSegment items on this page. + /// is null. + internal WorkloadNetworkSegmentsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkSegment items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkSegmentsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkSegmentsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkSegmentsList() + { + } + + /// The WorkloadNetworkSegment items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.Serialization.cs index 9a657d5984a3b..b535d1a79af57 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkVirtualMachinesList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkVirtualMachinesList DeserializeWorkloadNetworkVir return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkVirtualMachinesList DeserializeWorkloadNetworkVir } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkVirtualMachinesList DeserializeWorkloadNetworkVir } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkVirtualMachinesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkVirtualMachinesList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs index fef60a320a3e1..1da50da469bea 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVirtualMachinesList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX Virtual Machines. + /// The response of a WorkloadNetworkVirtualMachine list operation. internal partial class WorkloadNetworkVirtualMachinesList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkVirtualMachinesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkVirtualMachinesList() + /// The WorkloadNetworkVirtualMachine items on this page. + /// is null. + internal WorkloadNetworkVirtualMachinesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkVirtualMachine items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkVirtualMachinesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkVirtualMachinesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkVirtualMachinesList() + { + } + + /// The WorkloadNetworkVirtualMachine items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupProvisioningState.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupProvisioningState.cs index 2a2f390715039..aa0f43030c37d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupProvisioningState.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// The provisioning state. + /// Workload Network VM Group provisioning state. public readonly partial struct WorkloadNetworkVmGroupProvisioningState : IEquatable { private readonly string _value; @@ -24,23 +24,23 @@ public WorkloadNetworkVmGroupProvisioningState(string value) private const string SucceededValue = "Succeeded"; private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; private const string BuildingValue = "Building"; private const string DeletingValue = "Deleting"; private const string UpdatingValue = "Updating"; - private const string CanceledValue = "Canceled"; - /// Succeeded. + /// Resource has been created. public static WorkloadNetworkVmGroupProvisioningState Succeeded { get; } = new WorkloadNetworkVmGroupProvisioningState(SucceededValue); - /// Failed. + /// Resource creation failed. public static WorkloadNetworkVmGroupProvisioningState Failed { get; } = new WorkloadNetworkVmGroupProvisioningState(FailedValue); - /// Building. + /// Resource creation was canceled. + public static WorkloadNetworkVmGroupProvisioningState Canceled { get; } = new WorkloadNetworkVmGroupProvisioningState(CanceledValue); + /// is building. public static WorkloadNetworkVmGroupProvisioningState Building { get; } = new WorkloadNetworkVmGroupProvisioningState(BuildingValue); - /// Deleting. + /// is deleting. public static WorkloadNetworkVmGroupProvisioningState Deleting { get; } = new WorkloadNetworkVmGroupProvisioningState(DeletingValue); - /// Updating. + /// is updating. public static WorkloadNetworkVmGroupProvisioningState Updating { get; } = new WorkloadNetworkVmGroupProvisioningState(UpdatingValue); - /// Canceled. - public static WorkloadNetworkVmGroupProvisioningState Canceled { get; } = new WorkloadNetworkVmGroupProvisioningState(CanceledValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkVmGroupProvisioningState left, WorkloadNetworkVmGroupProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupStatus.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupStatus.cs index 59f42174f5e4a..99a01aaef9424 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupStatus.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupStatus.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// VM Group status. + /// VM group status. public readonly partial struct WorkloadNetworkVmGroupStatus : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public WorkloadNetworkVmGroupStatus(string value) private const string SuccessValue = "SUCCESS"; private const string FailureValue = "FAILURE"; - /// SUCCESS. + /// is success. public static WorkloadNetworkVmGroupStatus Success { get; } = new WorkloadNetworkVmGroupStatus(SuccessValue); - /// FAILURE. + /// is failure. public static WorkloadNetworkVmGroupStatus Failure { get; } = new WorkloadNetworkVmGroupStatus(FailureValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkVmGroupStatus left, WorkloadNetworkVmGroupStatus right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.Serialization.cs index 86bce6fc8c680..9f32cad6c00ea 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.Serialization.cs @@ -34,20 +34,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(WorkloadNetworkVmGroupsList)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } - if (options.Format != "W" && Optional.IsDefined(NextLink)) + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -87,17 +84,13 @@ internal static WorkloadNetworkVmGroupsList DeserializeWorkloadNetworkVmGroupsLi return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -108,7 +101,11 @@ internal static WorkloadNetworkVmGroupsList DeserializeWorkloadNetworkVmGroupsLi } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -117,7 +114,7 @@ internal static WorkloadNetworkVmGroupsList DeserializeWorkloadNetworkVmGroupsLi } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkVmGroupsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new WorkloadNetworkVmGroupsList(value, nextLink, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs index 92476321b6522..01e927e5d2ef4 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmGroupsList.cs @@ -7,10 +7,11 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.Avs.Models { - /// A list of NSX VM Groups. + /// The response of a WorkloadNetworkVMGroup list operation. internal partial class WorkloadNetworkVmGroupsList { /// @@ -46,25 +47,34 @@ internal partial class WorkloadNetworkVmGroupsList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal WorkloadNetworkVmGroupsList() + /// The WorkloadNetworkVMGroup items on this page. + /// is null. + internal WorkloadNetworkVmGroupsList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// The items on the page. - /// URL to get the next page if any. + /// The WorkloadNetworkVMGroup items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkVmGroupsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal WorkloadNetworkVmGroupsList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The items on the page. + /// Initializes a new instance of for deserialization. + internal WorkloadNetworkVmGroupsList() + { + } + + /// The WorkloadNetworkVMGroup items on this page. public IReadOnlyList Value { get; } - /// URL to get the next page if any. - public string NextLink { get; } + /// The link to the next page of items. + public Uri NextLink { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmType.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmType.cs index 0fe9b0c4aea60..4de720cc0e5f6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmType.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/Models/WorkloadNetworkVmType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Avs.Models { - /// Virtual machine type. + /// VM type. public readonly partial struct WorkloadNetworkVmType : IEquatable { private readonly string _value; @@ -26,11 +26,11 @@ public WorkloadNetworkVmType(string value) private const string EdgeValue = "EDGE"; private const string ServiceValue = "SERVICE"; - /// REGULAR. + /// is regular. public static WorkloadNetworkVmType Regular { get; } = new WorkloadNetworkVmType(RegularValue); - /// EDGE. + /// is edge. public static WorkloadNetworkVmType Edge { get; } = new WorkloadNetworkVmType(EdgeValue); - /// SERVICE. + /// is service. public static WorkloadNetworkVmType Service { get; } = new WorkloadNetworkVmType(ServiceValue); /// Determines if two values are the same. public static bool operator ==(WorkloadNetworkVmType left, WorkloadNetworkVmType right) => left.Equals(right); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyCollection.cs index b30a785e7d03e..292f843e9d495 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// A placement policy in the private cloud cluster. + /// Name of the placement policy. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOrUpdateA try { var response = await _placementPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new PlacementPolicyOperationSource(Client), _placementPolicyClientDiagnostics, Pipeline, _placementPolicyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new PlacementPolicyOperationSource(Client), _placementPolicyClientDiagnostics, Pipeline, _placementPolicyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrUpdateA } /// - /// Create or update a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrUpdateA /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// A placement policy in the private cloud cluster. + /// Name of the placement policy. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _placementPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data, cancellationToken); - var operation = new AvsArmOperation(new PlacementPolicyOperationSource(Client), _placementPolicyClientDiagnostics, Pipeline, _placementPolicyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new PlacementPolicyOperationSource(Client), _placementPolicyClientDiagnostics, Pipeline, _placementPolicyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, placementPolicyName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(string pla } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string pla /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string pla /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string placementPolicyName, } /// - /// List placement policies in a private cloud cluster + /// List PlacementPolicy resources by Cluster /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string placementPolicyName, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo } /// - /// List placement policies in a private cloud cluster + /// List PlacementPolicy resources by Cluster /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string placementPolicyName /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string placementPolicyName /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string placementPolicyName, CancellationTok /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string placementPolicyName, CancellationTok /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExists /// /// /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the placement policy. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyData.cs index 6248f9c7ded0c..1803f4098840b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyData.cs @@ -62,7 +62,7 @@ public PlacementPolicyData() /// The resourceType. /// The systemData. /// - /// placement policy properties + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -74,7 +74,7 @@ internal PlacementPolicyData(ResourceIdentifier id, string name, ResourceType re } /// - /// placement policy properties + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyResource.cs index 1b31e9b8d6f17..8f28aedd0dcdf 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/PlacementPolicyResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -131,7 +131,7 @@ public virtual async Task> GetAsync(Cancellati } /// - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// /// Request Path @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response Get(CancellationToken cancellat } /// - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// /// Request Path @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// /// Request Path @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// /// Request Path @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The placement policy properties that may be updated. + /// The placement policy properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, PlacementPolicyPatch patch, CancellationToken cancellationToken = default) @@ -301,7 +301,7 @@ public virtual async Task> UpdateAsync(Wai } /// - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// /// Request Path @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The placement policy properties that may be updated. + /// The placement policy properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, PlacementPolicyPatch patch, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs index daa76d17fb985..9d59b7d0e723b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AddonsRestOperations.cs @@ -32,7 +32,7 @@ public AddonsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List addons in a private cloud. - /// The ID of the target subscription. + /// List Addon resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscriptionId, string r } } - /// List addons in a private cloud. - /// The ID of the target subscription. + /// List Addon resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get an addon by name in a private cloud. - /// The ID of the target subscription. + /// Get a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscripti } } - /// Get an addon by name in a private cloud. - /// The ID of the target subscription. + /// Get a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a addon in a private cloud. - /// The ID of the target subscription. + /// Create a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the addon for the private cloud. - /// A addon in the private cloud. + /// Name of the private cloud. + /// Name of the addon. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a addon in a private cloud. - /// The ID of the target subscription. + /// Create a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the addon for the private cloud. - /// A addon in the private cloud. + /// Name of the private cloud. + /// Name of the addon. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -372,11 +372,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a addon in a private cloud. - /// The ID of the target subscription. + /// Delete a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -400,11 +400,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a addon in a private cloud. - /// The ID of the target subscription. + /// Delete a Addon. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the addon for the private cloud. + /// Name of the addon. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -450,9 +450,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List addons in a private cloud. + /// List Addon resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -481,9 +481,9 @@ public async Task> ListNextPageAsync(string nextLink, string } } - /// List addons in a private cloud. + /// List Addon resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs index a84b4dcc14d0f..39fae46292415 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/AuthorizationsRestOperations.cs @@ -32,7 +32,7 @@ public AuthorizationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List ExpressRoute Circuit Authorizations in a private cloud. - /// The ID of the target subscription. + /// List ExpressRouteAuthorization resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subs } } - /// List ExpressRoute Circuit Authorizations in a private cloud. - /// The ID of the target subscription. + /// List ExpressRouteAuthorization resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud. - /// The ID of the target subscription. + /// Get a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subsc } } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud. - /// The ID of the target subscription. + /// Get a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update an ExpressRoute Circuit Authorization in a private cloud. - /// The ID of the target subscription. + /// Create a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. - /// An ExpressRoute Circuit Authorization. + /// Name of the private cloud. + /// Name of the ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update an ExpressRoute Circuit Authorization in a private cloud. - /// The ID of the target subscription. + /// Create a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. - /// An ExpressRoute Circuit Authorization. + /// Name of the private cloud. + /// Name of the ExpressRoute Circuit Authorization. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -372,11 +372,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete an ExpressRoute Circuit Authorization in a private cloud. - /// The ID of the target subscription. + /// Delete a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -400,11 +400,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete an ExpressRoute Circuit Authorization in a private cloud. - /// The ID of the target subscription. + /// Delete a ExpressRouteAuthorization. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud. + /// Name of the ExpressRoute Circuit Authorization. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -450,9 +450,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List ExpressRoute Circuit Authorizations in a private cloud. + /// List ExpressRouteAuthorization resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -481,9 +481,9 @@ public async Task> ListNextPageAsync(str } } - /// List ExpressRoute Circuit Authorizations in a private cloud. + /// List ExpressRouteAuthorization resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs index dfa02117f16e1..7d19d6809ee26 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/CloudLinksRestOperations.cs @@ -32,7 +32,7 @@ public CloudLinksRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List cloud link in a private cloud. - /// The ID of the target subscription. + /// List CloudLink resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscriptionId, stri } } - /// List cloud link in a private cloud. - /// The ID of the target subscription. + /// List CloudLink resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get an cloud link by name in a private cloud. - /// The ID of the target subscription. + /// Get a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscriptionId, st } } - /// Get an cloud link by name in a private cloud. - /// The ID of the target subscription. + /// Get a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a cloud link in a private cloud. - /// The ID of the target subscription. + /// Create a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cloud link resource. - /// A cloud link in the private cloud. + /// Name of the private cloud. + /// Name of the cloud link. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a cloud link in a private cloud. - /// The ID of the target subscription. + /// Create a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cloud link resource. - /// A cloud link in the private cloud. + /// Name of the private cloud. + /// Name of the cloud link. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -372,11 +372,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a cloud link in a private cloud. - /// The ID of the target subscription. + /// Delete a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -400,11 +400,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a cloud link in a private cloud. - /// The ID of the target subscription. + /// Delete a CloudLink. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cloud link resource. + /// Name of the cloud link. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -450,9 +450,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List cloud link in a private cloud. + /// List CloudLink resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -481,9 +481,9 @@ public async Task> ListNextPageAsync(string nextLink, st } } - /// List cloud link in a private cloud. + /// List CloudLink resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs index e2500b1260ffd..1637192a3fe8d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ClustersRestOperations.cs @@ -32,7 +32,7 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List clusters in a private cloud. - /// The ID of the target subscription. + /// List Cluster resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscriptionId, string } } - /// List clusters in a private cloud. - /// The ID of the target subscription. + /// List Cluster resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a cluster by name in a private cloud. - /// The ID of the target subscription. + /// Get a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscrip } } - /// Get a cluster by name in a private cloud. - /// The ID of the target subscription. + /// Get a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a cluster in a private cloud. - /// The ID of the target subscription. + /// Create a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cluster in the private cloud. - /// A cluster in the private cloud. + /// Name of the private cloud. + /// Name of the cluster. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a cluster in a private cloud. - /// The ID of the target subscription. + /// Create a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cluster in the private cloud. - /// A cluster in the private cloud. + /// Name of the private cloud. + /// Name of the cluster. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -376,11 +376,11 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update a cluster in a private cloud. - /// The ID of the target subscription. + /// Update a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cluster properties to be updated. /// The cancellation token to use. /// , , , or is null. @@ -405,11 +405,11 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update a cluster in a private cloud. - /// The ID of the target subscription. + /// Update a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cluster properties to be updated. /// The cancellation token to use. /// , , , or is null. @@ -472,11 +472,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a cluster in a private cloud. - /// The ID of the target subscription. + /// Delete a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -500,11 +500,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a cluster in a private cloud. - /// The ID of the target subscription. + /// Delete a Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -569,10 +569,10 @@ internal HttpMessage CreateListZonesRequest(string subscriptionId, string resour } /// List hosts by zone in a cluster. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -600,10 +600,10 @@ public async Task> ListZonesAsync(string subscriptionI } /// List hosts by zone in a cluster. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -652,9 +652,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List clusters in a private cloud. + /// List Cluster resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -683,9 +683,9 @@ public async Task> ListNextPageAsync(string nextLink, stri } } - /// List clusters in a private cloud. + /// List Cluster resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs index 108e4e11ae0c4..62344eab5d1aa 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/DatastoresRestOperations.cs @@ -32,7 +32,7 @@ public DatastoresRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -76,11 +76,11 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List datastores in a private cloud cluster. - /// The ID of the target subscription. + /// List Datastore resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -107,11 +107,11 @@ public async Task> ListAsync(string subscriptionId, stri } } - /// List datastores in a private cloud cluster. - /// The ID of the target subscription. + /// List Datastore resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -180,12 +180,12 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Get a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -215,12 +215,12 @@ public async Task> GetAsync(string subscr } } - /// Get a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Get a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -296,13 +296,13 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Create a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. - /// A datastore in a private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. + /// Resource create parameters. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -327,13 +327,13 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Create a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. - /// A datastore in a private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. + /// Resource create parameters. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -400,12 +400,12 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Delete a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -430,12 +430,12 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a datastore in a private cloud cluster. - /// The ID of the target subscription. + /// Delete a Datastore. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the datastore in the private cloud cluster. + /// Name of the cluster. + /// Name of the datastore. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -482,12 +482,12 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List datastores in a private cloud cluster. + /// List Datastore resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -515,12 +515,12 @@ public async Task> ListNextPageAsync(string nextLink, st } } - /// List datastores in a private cloud cluster. + /// List Datastore resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs index 96c51d74b9b96..2dd629817e128 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/GlobalReachConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public GlobalReachConnectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List global reach connections in a private cloud. - /// The ID of the target subscription. + /// List GlobalReachConnection resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscrip } } - /// List global reach connections in a private cloud. - /// The ID of the target subscription. + /// List GlobalReachConnection resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a global reach connection by name in a private cloud. - /// The ID of the target subscription. + /// Get a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscript } } - /// Get a global reach connection by name in a private cloud. - /// The ID of the target subscription. + /// Get a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a global reach connection in a private cloud. - /// The ID of the target subscription. + /// Create a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the global reach connection in the private cloud. - /// A global reach connection in the private cloud. + /// Name of the private cloud. + /// Name of the global reach connection. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a global reach connection in a private cloud. - /// The ID of the target subscription. + /// Create a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the global reach connection in the private cloud. - /// A global reach connection in the private cloud. + /// Name of the private cloud. + /// Name of the global reach connection. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -372,11 +372,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a global reach connection in a private cloud. - /// The ID of the target subscription. + /// Delete a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -400,11 +400,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a global reach connection in a private cloud. - /// The ID of the target subscription. + /// Delete a GlobalReachConnection. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the global reach connection in the private cloud. + /// Name of the global reach connection. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -450,9 +450,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List global reach connections in a private cloud. + /// List GlobalReachConnection resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -481,9 +481,9 @@ public async Task> ListNextPageAsync(string } } - /// List global reach connections in a private cloud. + /// List GlobalReachConnection resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs index 7021c21d4f75c..708c460253bc2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/HcxEnterpriseSitesRestOperations.cs @@ -32,7 +32,7 @@ public HcxEnterpriseSitesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List HCX on-premises key in a private cloud. - /// The ID of the target subscription. + /// List HcxEnterpriseSite resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscription } } - /// List HCX on-premises key in a private cloud. - /// The ID of the target subscription. + /// List HcxEnterpriseSite resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get an HCX on-premises key by name in a private cloud. - /// The ID of the target subscription. + /// Get a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscriptionI } } - /// Get an HCX on-premises key by name in a private cloud. - /// The ID of the target subscription. + /// Get a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -276,12 +276,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update an activation key for on-premises HCX site. - /// The ID of the target subscription. + /// Create a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. - /// The HCX Enterprise Site. + /// Name of the private cloud. + /// Name of the HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -310,12 +310,12 @@ public async Task> CreateOrUpdateAsync(string su } } - /// Create or update an activation key for on-premises HCX site. - /// The ID of the target subscription. + /// Create a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. - /// The HCX Enterprise Site. + /// Name of the private cloud. + /// Name of the HCX Enterprise Site. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -382,11 +382,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete HCX on-premises key in a private cloud. - /// The ID of the target subscription. + /// Delete a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -409,11 +409,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete HCX on-premises key in a private cloud. - /// The ID of the target subscription. + /// Delete a HcxEnterpriseSite. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud. + /// Name of the HCX Enterprise Site. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -458,9 +458,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List HCX on-premises key in a private cloud. + /// List HcxEnterpriseSite resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -489,9 +489,9 @@ public async Task> ListNextPageAsync(string next } } - /// List HCX on-premises key in a private cloud. + /// List HcxEnterpriseSite resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/IscsiPathsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/IscsiPathsRestOperations.cs new file mode 100644 index 0000000000000..3c518807f4dac --- /dev/null +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/IscsiPathsRestOperations.cs @@ -0,0 +1,497 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Avs.Models; + +namespace Azure.ResourceManager.Avs +{ + internal partial class IscsiPathsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of IscsiPathsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public IscsiPathsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-09-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListByPrivateCloudRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByPrivateCloudRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List IscsiPath resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByPrivateCloudAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateListByPrivateCloudRequest(subscriptionId, resourceGroupName, privateCloudName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IscsiPathListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IscsiPathListResult.DeserializeIscsiPathListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List IscsiPath resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByPrivateCloud(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateListByPrivateCloudRequest(subscriptionId, resourceGroupName, privateCloudName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IscsiPathListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IscsiPathListResult.DeserializeIscsiPathListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IscsiPathData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IscsiPathData.DeserializeIscsiPathData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((IscsiPathData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IscsiPathData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IscsiPathData.DeserializeIscsiPathData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((IscsiPathData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, IscsiPathData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string privateCloudName, IscsiPathData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// Resource create parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string privateCloudName, IscsiPathData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, privateCloudName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// Resource create parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, IscsiPathData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, privateCloudName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); + uri.AppendPath(privateCloudName, true); + uri.AppendPath("/iscsiPaths/default", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, privateCloudName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a IscsiPath. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, privateCloudName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByPrivateCloudNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByPrivateCloudNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List IscsiPath resources by PrivateCloud. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByPrivateCloudNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateListByPrivateCloudNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IscsiPathListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IscsiPathListResult.DeserializeIscsiPathListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List IscsiPath resources by PrivateCloud. + /// The URL to the next page of results. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByPrivateCloudNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + + using var message = CreateListByPrivateCloudNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IscsiPathListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IscsiPathListResult.DeserializeIscsiPathListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs index 79948d01f9242..ce73eb7ab7203 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/LocationsRestOperations.cs @@ -32,11 +32,11 @@ public LocationsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateCheckTrialAvailabilityRequestUri(string subscriptionId, AzureLocation location, AvsSku sku) + internal RequestUriBuilder CreateCheckQuotaAvailabilityRequestUri(string subscriptionId, AzureLocation location) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -44,12 +44,12 @@ internal RequestUriBuilder CreateCheckTrialAvailabilityRequestUri(string subscri uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.AVS/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkTrialAvailability", false); + uri.AppendPath("/checkQuotaAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCheckTrialAvailabilityRequest(string subscriptionId, AzureLocation location, AvsSku sku) + internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, AzureLocation location) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -60,41 +60,33 @@ internal HttpMessage CreateCheckTrialAvailabilityRequest(string subscriptionId, uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.AVS/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkTrialAvailability", false); + uri.AppendPath("/checkQuotaAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (sku != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(sku, ModelSerializationExtensions.WireOptions); - request.Content = content; - } _userAgent.Apply(message); return message; } - /// Return trial status for subscription by region. - /// The ID of the target subscription. - /// Azure region. - /// The sku to check for trial availability. + /// Return quota for subscription by region. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> CheckTrialAvailabilityAsync(string subscriptionId, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public async Task> CheckQuotaAvailabilityAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateCheckTrialAvailabilityRequest(subscriptionId, location, sku); + using var message = CreateCheckQuotaAvailabilityRequest(subscriptionId, location); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - AvsSubscriptionTrialAvailabilityResult value = default; + AvsSubscriptionQuotaAvailabilityResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AvsSubscriptionTrialAvailabilityResult.DeserializeAvsSubscriptionTrialAvailabilityResult(document.RootElement); + value = AvsSubscriptionQuotaAvailabilityResult.DeserializeAvsSubscriptionQuotaAvailabilityResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -102,26 +94,25 @@ public async Task> CheckTrialAv } } - /// Return trial status for subscription by region. - /// The ID of the target subscription. - /// Azure region. - /// The sku to check for trial availability. + /// Return quota for subscription by region. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response CheckTrialAvailability(string subscriptionId, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) + public Response CheckQuotaAvailability(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateCheckTrialAvailabilityRequest(subscriptionId, location, sku); + using var message = CreateCheckQuotaAvailabilityRequest(subscriptionId, location); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - AvsSubscriptionTrialAvailabilityResult value = default; + AvsSubscriptionQuotaAvailabilityResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AvsSubscriptionTrialAvailabilityResult.DeserializeAvsSubscriptionTrialAvailabilityResult(document.RootElement); + value = AvsSubscriptionQuotaAvailabilityResult.DeserializeAvsSubscriptionQuotaAvailabilityResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -129,7 +120,7 @@ public Response CheckTrialAvailability(s } } - internal RequestUriBuilder CreateCheckQuotaAvailabilityRequestUri(string subscriptionId, AzureLocation location) + internal RequestUriBuilder CreateCheckTrialAvailabilityRequestUri(string subscriptionId, AzureLocation location, AvsSku sku) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -137,12 +128,12 @@ internal RequestUriBuilder CreateCheckQuotaAvailabilityRequestUri(string subscri uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.AVS/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkQuotaAvailability", false); + uri.AppendPath("/checkTrialAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, AzureLocation location) + internal HttpMessage CreateCheckTrialAvailabilityRequest(string subscriptionId, AzureLocation location, AvsSku sku) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -153,33 +144,41 @@ internal HttpMessage CreateCheckQuotaAvailabilityRequest(string subscriptionId, uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.AVS/locations/", false); uri.AppendPath(location, true); - uri.AppendPath("/checkQuotaAvailability", false); + uri.AppendPath("/checkTrialAvailability", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + if (sku != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(sku, ModelSerializationExtensions.WireOptions); + request.Content = content; + } _userAgent.Apply(message); return message; } - /// Return quota for subscription by region. - /// The ID of the target subscription. - /// Azure region. + /// Return trial status for subscription by region. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> CheckQuotaAvailabilityAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + public async Task> CheckTrialAvailabilityAsync(string subscriptionId, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateCheckQuotaAvailabilityRequest(subscriptionId, location); + using var message = CreateCheckTrialAvailabilityRequest(subscriptionId, location, sku); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - AvsSubscriptionQuotaAvailabilityResult value = default; + AvsSubscriptionTrialAvailabilityResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AvsSubscriptionQuotaAvailabilityResult.DeserializeAvsSubscriptionQuotaAvailabilityResult(document.RootElement); + value = AvsSubscriptionTrialAvailabilityResult.DeserializeAvsSubscriptionTrialAvailabilityResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -187,25 +186,26 @@ public async Task> CheckQuotaAv } } - /// Return quota for subscription by region. - /// The ID of the target subscription. - /// Azure region. + /// Return trial status for subscription by region. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// Optionally, check for a specific SKU. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response CheckQuotaAvailability(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + public Response CheckTrialAvailability(string subscriptionId, AzureLocation location, AvsSku sku = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - using var message = CreateCheckQuotaAvailabilityRequest(subscriptionId, location); + using var message = CreateCheckTrialAvailabilityRequest(subscriptionId, location, sku); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - AvsSubscriptionQuotaAvailabilityResult value = default; + AvsSubscriptionTrialAvailabilityResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AvsSubscriptionQuotaAvailabilityResult.DeserializeAvsSubscriptionQuotaAvailabilityResult(document.RootElement); + value = AvsSubscriptionTrialAvailabilityResult.DeserializeAvsSubscriptionTrialAvailabilityResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs index 024b043440de4..41ee40b59f0f6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PlacementPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public PlacementPoliciesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -76,11 +76,11 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List placement policies in a private cloud cluster. - /// The ID of the target subscription. + /// List PlacementPolicy resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -107,11 +107,11 @@ public async Task> ListAsync(string subscription } } - /// List placement policies in a private cloud cluster. - /// The ID of the target subscription. + /// List PlacementPolicy resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -180,12 +180,12 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a placement policy by name in a private cloud cluster. - /// The ID of the target subscription. + /// Get a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the cluster. + /// Name of the placement policy. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -215,12 +215,12 @@ public async Task> GetAsync(string subscriptionId, } } - /// Get a placement policy by name in a private cloud cluster. - /// The ID of the target subscription. + /// Get a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the cluster. + /// Name of the placement policy. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -296,13 +296,13 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Create a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// A placement policy in the private cloud cluster. + /// Name of the cluster. + /// Name of the placement policy. + /// Resource create parameters. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -327,13 +327,13 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Create a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// A placement policy in the private cloud cluster. + /// Name of the cluster. + /// Name of the placement policy. + /// Resource create parameters. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -404,13 +404,13 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Update a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// The placement policy properties that may be updated. + /// Name of the cluster. + /// Name of the placement policy. + /// The placement policy properties to be updated. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -435,13 +435,13 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Update a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. - /// The placement policy properties that may be updated. + /// Name of the cluster. + /// Name of the placement policy. + /// The placement policy properties to be updated. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -508,12 +508,12 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Delete a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the cluster. + /// Name of the placement policy. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -538,12 +538,12 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a placement policy in a private cloud cluster. - /// The ID of the target subscription. + /// Delete a PlacementPolicy. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy. + /// Name of the cluster. + /// Name of the placement policy. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -590,12 +590,12 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List placement policies in a private cloud cluster. + /// List PlacementPolicy resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -623,12 +623,12 @@ public async Task> ListNextPageAsync(string next } } - /// List placement policies in a private cloud cluster. + /// List PlacementPolicy resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs index 578e21f56da1a..f1f5b7e5109f3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/PrivateCloudsRestOperations.cs @@ -32,24 +32,22 @@ public PrivateCloudsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListInSubscriptionRequestUri(string subscriptionId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListInSubscriptionRequest(string subscriptionId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -58,8 +56,6 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -68,18 +64,16 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List private clouds in a resource group. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. + /// List PrivateCloud resources by subscription ID. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListInSubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName); + using var message = CreateListInSubscriptionRequest(subscriptionId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -95,18 +89,16 @@ public async Task> ListAsync(string subscriptionId, s } } - /// List private clouds in a resource group. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. + /// List PrivateCloud resources by subscription ID. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ListInSubscription(string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName); + using var message = CreateListInSubscriptionRequest(subscriptionId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -122,18 +114,20 @@ public Response List(string subscriptionId, string resourceGro } } - internal RequestUriBuilder CreateListInSubscriptionRequestUri(string subscriptionId) + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListInSubscriptionRequest(string subscriptionId) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -142,6 +136,8 @@ internal HttpMessage CreateListInSubscriptionRequest(string subscriptionId) uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -150,16 +146,18 @@ internal HttpMessage CreateListInSubscriptionRequest(string subscriptionId) return message; } - /// List private clouds in a subscription. - /// The ID of the target subscription. + /// List PrivateCloud resources by resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListInSubscriptionAsync(string subscriptionId, CancellationToken cancellationToken = default) + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListInSubscriptionRequest(subscriptionId); + using var message = CreateListRequest(subscriptionId, resourceGroupName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -175,16 +173,18 @@ public async Task> ListInSubscriptionAsync(string sub } } - /// List private clouds in a subscription. - /// The ID of the target subscription. + /// List PrivateCloud resources by resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - public Response ListInSubscription(string subscriptionId, CancellationToken cancellationToken = default) + /// or is null. + /// or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListInSubscriptionRequest(subscriptionId); + using var message = CreateListRequest(subscriptionId, resourceGroupName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -234,8 +234,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a private cloud. - /// The ID of the target subscription. + /// Get a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -265,8 +265,8 @@ public async Task> GetAsync(string subscriptionId, } } - /// Get a private cloud. - /// The ID of the target subscription. + /// Get a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -334,11 +334,11 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a private cloud. - /// The ID of the target subscription. + /// Create a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// The private cloud. + /// Resource create parameters. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -361,11 +361,11 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a private cloud. - /// The ID of the target subscription. + /// Create a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// The private cloud. + /// Resource create parameters. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -426,8 +426,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update a private cloud. - /// The ID of the target subscription. + /// Update a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The private cloud properties to be updated. @@ -453,8 +453,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update a private cloud. - /// The ID of the target subscription. + /// Update a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The private cloud properties to be updated. @@ -514,8 +514,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a private cloud. - /// The ID of the target subscription. + /// Delete a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -540,8 +540,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a private cloud. - /// The ID of the target subscription. + /// Delete a PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -566,7 +566,7 @@ public Response Delete(string subscriptionId, string resourceGroupName, string p } } - internal RequestUriBuilder CreateRotateVcenterPasswordRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListAdminCredentialsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -576,12 +576,12 @@ internal RequestUriBuilder CreateRotateVcenterPasswordRequestUri(string subscrip uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/rotateVcenterPassword", false); + uri.AppendPath("/listAdminCredentials", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateRotateVcenterPasswordRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListAdminCredentialsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -594,7 +594,7 @@ internal HttpMessage CreateRotateVcenterPasswordRequest(string subscriptionId, s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/rotateVcenterPassword", false); + uri.AppendPath("/listAdminCredentials", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -602,51 +602,59 @@ internal HttpMessage CreateRotateVcenterPasswordRequest(string subscriptionId, s return message; } - /// Rotate the vCenter password. - /// The ID of the target subscription. + /// List the admin credentials for the private cloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task RotateVcenterPasswordAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListAdminCredentialsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateRotateVcenterPasswordRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListAdminCredentialsRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 202: - case 204: - return message.Response; + case 200: + { + AdminCredentials value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AdminCredentials.DeserializeAdminCredentials(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Rotate the vCenter password. - /// The ID of the target subscription. + /// List the admin credentials for the private cloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RotateVcenterPassword(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListAdminCredentials(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateRotateVcenterPasswordRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListAdminCredentialsRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 202: - case 204: - return message.Response; + case 200: + { + AdminCredentials value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AdminCredentials.DeserializeAdminCredentials(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } @@ -689,7 +697,7 @@ internal HttpMessage CreateRotateNsxtPasswordRequest(string subscriptionId, stri } /// Rotate the NSX-T Manager password. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -714,7 +722,7 @@ public async Task RotateNsxtPasswordAsync(string subscriptionId, strin } /// Rotate the NSX-T Manager password. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -738,7 +746,7 @@ public Response RotateNsxtPassword(string subscriptionId, string resourceGroupNa } } - internal RequestUriBuilder CreateListAdminCredentialsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateRotateVcenterPasswordRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -748,12 +756,12 @@ internal RequestUriBuilder CreateListAdminCredentialsRequestUri(string subscript uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/listAdminCredentials", false); + uri.AppendPath("/rotateVcenterPassword", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListAdminCredentialsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateRotateVcenterPasswordRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -766,7 +774,7 @@ internal HttpMessage CreateListAdminCredentialsRequest(string subscriptionId, st uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/listAdminCredentials", false); + uri.AppendPath("/rotateVcenterPassword", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -774,65 +782,57 @@ internal HttpMessage CreateListAdminCredentialsRequest(string subscriptionId, st return message; } - /// List the admin credentials for the private cloud. - /// The ID of the target subscription. + /// Rotate the vCenter password. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAdminCredentialsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task RotateVcenterPasswordAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListAdminCredentialsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateRotateVcenterPasswordRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: - { - AdminCredentials value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AdminCredentials.DeserializeAdminCredentials(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List the admin credentials for the private cloud. - /// The ID of the target subscription. + /// Rotate the vCenter password. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListAdminCredentials(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response RotateVcenterPassword(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListAdminCredentialsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateRotateVcenterPasswordRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: - { - AdminCredentials value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AdminCredentials.DeserializeAdminCredentials(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) + internal RequestUriBuilder CreateListInSubscriptionNextPageRequestUri(string nextLink, string subscriptionId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -840,7 +840,7 @@ internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string return uri; } - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) + internal HttpMessage CreateListInSubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -854,20 +854,18 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List private clouds in a resource group. + /// List PrivateCloud resources by subscription ID. /// The URL to the next page of results. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListInSubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListInSubscriptionNextPageRequest(nextLink, subscriptionId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -883,20 +881,18 @@ public async Task> ListNextPageAsync(string nextLink, } } - /// List private clouds in a resource group. + /// List PrivateCloud resources by subscription ID. /// The URL to the next page of results. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The cancellation token to use. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ListInSubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); + using var message = CreateListInSubscriptionNextPageRequest(nextLink, subscriptionId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -912,7 +908,7 @@ public Response ListNextPage(string nextLink, string subscript } } - internal RequestUriBuilder CreateListInSubscriptionNextPageRequestUri(string nextLink, string subscriptionId) + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -920,7 +916,7 @@ internal RequestUriBuilder CreateListInSubscriptionNextPageRequestUri(string nex return uri; } - internal HttpMessage CreateListInSubscriptionNextPageRequest(string nextLink, string subscriptionId) + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -934,18 +930,20 @@ internal HttpMessage CreateListInSubscriptionNextPageRequest(string nextLink, st return message; } - /// List private clouds in a subscription. + /// List PrivateCloud resources by resource group. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public async Task> ListInSubscriptionNextPageAsync(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListInSubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -961,18 +959,20 @@ public async Task> ListInSubscriptionNextPageAsync(st } } - /// List private clouds in a subscription. + /// List PrivateCloud resources by resource group. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - public Response ListInSubscriptionNextPage(string nextLink, string subscriptionId, CancellationToken cancellationToken = default) + /// , or is null. + /// or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - using var message = CreateListInSubscriptionNextPageRequest(nextLink, subscriptionId); + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs index eced00adc94ac..4fd5becdd176b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptCmdletsRestOperations.cs @@ -32,7 +32,7 @@ public ScriptCmdletsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -76,11 +76,11 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud. - /// The ID of the target subscription. + /// List ScriptCmdlet resources by ScriptPackage. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -107,11 +107,11 @@ public async Task> ListAsync(string subscriptionId, } } - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud. - /// The ID of the target subscription. + /// List ScriptCmdlet resources by ScriptPackage. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -180,12 +180,12 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Return information about a script cmdlet resource in a specific package on a private cloud. - /// The ID of the target subscription. + /// Get a ScriptCmdlet. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script package. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -215,12 +215,12 @@ public async Task> GetAsync(string subscriptionId, st } } - /// Return information about a script cmdlet resource in a specific package on a private cloud. - /// The ID of the target subscription. + /// Get a ScriptCmdlet. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script package. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -272,12 +272,12 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud. + /// List ScriptCmdlet resources by ScriptPackage. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -305,12 +305,12 @@ public async Task> ListNextPageAsync(string nextLink } } - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud. + /// List ScriptCmdlet resources by ScriptPackage. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs index 4667592c93280..e185f1e34c2c2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptExecutionsRestOperations.cs @@ -33,7 +33,7 @@ public ScriptExecutionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -73,8 +73,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List script executions in a private cloud. - /// The ID of the target subscription. + /// List ScriptExecution resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -102,8 +102,8 @@ public async Task> ListAsync(string subscriptionI } } - /// List script executions in a private cloud. - /// The ID of the target subscription. + /// List ScriptExecution resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -169,11 +169,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get an script execution by name in a private cloud. - /// The ID of the target subscription. + /// Get a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -202,11 +202,11 @@ public async Task> GetAsync(string subscriptionId, } } - /// Get an script execution by name in a private cloud. - /// The ID of the target subscription. + /// Get a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -277,12 +277,12 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create or update a script execution in a private cloud. - /// The ID of the target subscription. + /// Create a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the user-invoked script execution resource. - /// A script running in the private cloud. + /// Name of the private cloud. + /// Name of the script cmdlet. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -306,12 +306,12 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create or update a script execution in a private cloud. - /// The ID of the target subscription. + /// Create a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the user-invoked script execution resource. - /// A script running in the private cloud. + /// Name of the private cloud. + /// Name of the script cmdlet. + /// Resource create parameters. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -373,11 +373,11 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Cancel a ScriptExecution in a private cloud. - /// The ID of the target subscription. + /// Delete a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -401,11 +401,11 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Cancel a ScriptExecution in a private cloud. - /// The ID of the target subscription. + /// Delete a ScriptExecution. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -482,10 +482,10 @@ internal HttpMessage CreateGetExecutionLogsRequest(string subscriptionId, string } /// Return the logs for a script execution resource. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// Name of the desired output stream to return. If not provided, will return all. An empty array will return nothing. /// The cancellation token to use. /// , , or is null. @@ -514,10 +514,10 @@ public async Task> GetExecutionLogsAsync(string su } /// Return the logs for a script execution resource. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// Name of the desired output stream to return. If not provided, will return all. An empty array will return nothing. /// The cancellation token to use. /// , , or is null. @@ -567,9 +567,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List script executions in a private cloud. + /// List ScriptExecution resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -598,9 +598,9 @@ public async Task> ListNextPageAsync(string nextL } } - /// List script executions in a private cloud. + /// List ScriptExecution resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs index 7a63bca2b9140..dd763f38c53c8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/ScriptPackagesRestOperations.cs @@ -32,7 +32,7 @@ public ScriptPackagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,8 +72,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List script packages available to run on the private cloud. - /// The ID of the target subscription. + /// List ScriptPackage resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -101,8 +101,8 @@ public async Task> ListAsync(string subscriptionId, } } - /// List script packages available to run on the private cloud. - /// The ID of the target subscription. + /// List ScriptPackage resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -168,11 +168,11 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a script package available to run on a private cloud. - /// The ID of the target subscription. + /// Get a ScriptPackage. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -201,11 +201,11 @@ public async Task> GetAsync(string subscriptionId, s } } - /// Get a script package available to run on a private cloud. - /// The ID of the target subscription. + /// Get a ScriptPackage. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -256,9 +256,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List script packages available to run on the private cloud. + /// List ScriptPackage resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -287,9 +287,9 @@ public async Task> ListNextPageAsync(string nextLin } } - /// List script packages available to run on the private cloud. + /// List ScriptPackage resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 5ea45c4e57e80..6ee46ac34973f 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -76,11 +76,11 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List of virtual machines in a private cloud cluster. - /// The ID of the target subscription. + /// List VirtualMachine resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -107,11 +107,11 @@ public async Task> ListAsync(string subscriptionId } } - /// List of virtual machines in a private cloud cluster. - /// The ID of the target subscription. + /// List VirtualMachine resources by Cluster. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -180,12 +180,12 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a virtual machine by id in a private cloud cluster. - /// The ID of the target subscription. + /// Get a VirtualMachine. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Virtual Machine identifier. + /// Name of the cluster. + /// ID of the virtual machine. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -215,12 +215,12 @@ public async Task> GetAsync(s } } - /// Get a virtual machine by id in a private cloud cluster. - /// The ID of the target subscription. + /// Get a VirtualMachine. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Virtual Machine identifier. + /// Name of the cluster. + /// ID of the virtual machine. /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -299,12 +299,12 @@ internal HttpMessage CreateRestrictMovementRequest(string subscriptionId, string } /// Enable or disable DRS-driven VM movement restriction. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Virtual Machine identifier. - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled). + /// Name of the cluster. + /// ID of the virtual machine. + /// The body type of the operation request. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -329,12 +329,12 @@ public async Task RestrictMovementAsync(string subscriptionId, string } /// Enable or disable DRS-driven VM movement restriction. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. - /// Virtual Machine identifier. - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled). + /// Name of the cluster. + /// ID of the virtual machine. + /// The body type of the operation request. /// The cancellation token to use. /// , , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. @@ -380,12 +380,12 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List of virtual machines in a private cloud cluster. + /// List VirtualMachine resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -413,12 +413,12 @@ public async Task> ListNextPageAsync(string nextLi } } - /// List of virtual machines in a private cloud cluster. + /// List VirtualMachine resources by Cluster. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name of the cluster in the private cloud. + /// Name of the cluster. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs index 2fc3557ed63e9..c4553fc54acf8 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/RestOperations/WorkloadNetworksRestOperations.cs @@ -32,11 +32,11 @@ public WorkloadNetworksRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-09-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -46,13 +46,12 @@ internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/", false); - uri.AppendPath(workloadNetworkName.ToString(), true); + uri.AppendPath("/workloadNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -65,8 +64,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/", false); - uri.AppendPath(workloadNetworkName.ToString(), true); + uri.AppendPath("/workloadNetworks", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -74,71 +72,65 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetwork resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name for the workload network in the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkData value = default; + WorkloadNetworkList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); + value = WorkloadNetworkList.DeserializeWorkloadNetworkList(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((WorkloadNetworkData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetwork resources by PrivateCloud. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Name for the workload network in the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName, CancellationToken cancellationToken = default) + public Response List(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName, workloadNetworkName); + using var message = CreateListRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkData value = default; + WorkloadNetworkList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); + value = WorkloadNetworkList.DeserializeWorkloadNetworkList(document.RootElement); return Response.FromValue(value, message.Response); } - case 404: - return Response.FromValue((WorkloadNetworkData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -148,12 +140,12 @@ internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks", false); + uri.AppendPath("/workloadNetworks/default", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -166,7 +158,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks", false); + uri.AppendPath("/workloadNetworks/default", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -174,65 +166,69 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List of workload networks in a private cloud. - /// The ID of the target subscription. + /// Get a WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkList value = default; + WorkloadNetworkData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkList.DeserializeWorkloadNetworkList(document.RootElement); + value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WorkloadNetworkData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// List of workload networks in a private cloud. - /// The ID of the target subscription. + /// Get a WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkList value = default; + WorkloadNetworkData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkList.DeserializeWorkloadNetworkList(document.RootElement); + value = WorkloadNetworkData.DeserializeWorkloadNetworkData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WorkloadNetworkData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -242,12 +238,12 @@ internal RequestUriBuilder CreateListSegmentsRequestUri(string subscriptionId, s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments", false); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -260,7 +256,7 @@ internal HttpMessage CreateListSegmentsRequest(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments", false); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -268,28 +264,28 @@ internal HttpMessage CreateListSegmentsRequest(string subscriptionId, string res return message; } - /// List of segments in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDhcpRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentsList value = default; + WorkloadNetworkDhcpList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -297,28 +293,28 @@ public async Task> ListSegmentsAsync(strin } } - /// List of segments in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListSegments(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDhcpRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentsList value = default; + WorkloadNetworkDhcpList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -326,7 +322,7 @@ public Response ListSegments(string subscriptionId, } } - internal RequestUriBuilder CreateGetSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + internal RequestUriBuilder CreateGetDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -336,13 +332,13 @@ internal RequestUriBuilder CreateGetSegmentRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + internal HttpMessage CreateGetDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -355,8 +351,8 @@ internal HttpMessage CreateGetSegmentRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -364,73 +360,73 @@ internal HttpMessage CreateGetSegmentRequest(string subscriptionId, string resou return message; } - /// Get a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetSegmentAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); - using var message = CreateGetSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); + using var message = CreateGetDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentData value = default; + WorkloadNetworkDhcpData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(document.RootElement); + value = WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkSegmentData)null, message.Response); + return Response.FromValue((WorkloadNetworkDhcpData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); - using var message = CreateGetSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); + using var message = CreateGetDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentData value = default; + WorkloadNetworkDhcpData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(document.RootElement); + value = WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkSegmentData)null, message.Response); + return Response.FromValue((WorkloadNetworkDhcpData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + internal RequestUriBuilder CreateCreateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -440,13 +436,13 @@ internal RequestUriBuilder CreateCreateSegmentsRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + internal HttpMessage CreateCreateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -459,8 +455,8 @@ internal HttpMessage CreateCreateSegmentsRequest(string subscriptionId, string r uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -472,24 +468,24 @@ internal HttpMessage CreateCreateSegmentsRequest(string subscriptionId, string r return message; } - /// Create a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the DHCP configuration. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); + using var message = CreateCreateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -501,24 +497,24 @@ public async Task CreateSegmentsAsync(string subscriptionId, string re } } - /// Create a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the DHCP configuration. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); + using var message = CreateCreateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -530,7 +526,7 @@ public Response CreateSegments(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateUpdateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + internal RequestUriBuilder CreateUpdateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -540,13 +536,13 @@ internal RequestUriBuilder CreateUpdateSegmentsRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) + internal HttpMessage CreateUpdateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -559,8 +555,8 @@ internal HttpMessage CreateUpdateSegmentsRequest(string subscriptionId, string r uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -572,24 +568,24 @@ internal HttpMessage CreateUpdateSegmentsRequest(string subscriptionId, string r return message; } - /// Create or update a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the DHCP configuration. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdateSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); + using var message = CreateUpdateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -601,24 +597,24 @@ public async Task UpdateSegmentsAsync(string subscriptionId, string re } } - /// Create or update a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the DHCP configuration. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); + using var message = CreateUpdateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -630,7 +626,7 @@ public Response UpdateSegments(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateDeleteSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + internal RequestUriBuilder CreateDeleteDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -640,13 +636,13 @@ internal RequestUriBuilder CreateDeleteSegmentRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) + internal HttpMessage CreateDeleteDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -659,8 +655,8 @@ internal HttpMessage CreateDeleteSegmentRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/segments/", false); - uri.AppendPath(segmentId, true); + uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); + uri.AppendPath(dhcpId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -668,22 +664,22 @@ internal HttpMessage CreateDeleteSegmentRequest(string subscriptionId, string re return message; } - /// Delete a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteSegmentAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); - using var message = CreateDeleteSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); + using var message = CreateDeleteDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -696,22 +692,22 @@ public async Task DeleteSegmentAsync(string subscriptionId, string res } } - /// Delete a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDhcp. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeleteDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); - using var message = CreateDeleteSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); + using var message = CreateDeleteDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -724,7 +720,7 @@ public Response DeleteSegment(string subscriptionId, string resourceGroupName, s } } - internal RequestUriBuilder CreateListDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDnsServicesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -734,12 +730,12 @@ internal RequestUriBuilder CreateListDhcpRequestUri(string subscriptionId, strin uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations", false); + uri.AppendPath("/workloadNetworks/default/dnsServices", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDnsServicesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -752,7 +748,7 @@ internal HttpMessage CreateListDhcpRequest(string subscriptionId, string resourc uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations", false); + uri.AppendPath("/workloadNetworks/default/dnsServices", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -760,28 +756,28 @@ internal HttpMessage CreateListDhcpRequest(string subscriptionId, string resourc return message; } - /// List dhcp in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDnsServicesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDhcpRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsServicesRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpList value = default; + WorkloadNetworkDnsServicesList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); + value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -789,28 +785,28 @@ public async Task> ListDhcpAsync(string subscr } } - /// List dhcp in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDnsServices(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDhcpRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsServicesRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpList value = default; + WorkloadNetworkDnsServicesList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); + value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -818,7 +814,7 @@ public Response ListDhcp(string subscriptionId, string } } - internal RequestUriBuilder CreateGetDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + internal RequestUriBuilder CreateGetDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -828,13 +824,13 @@ internal RequestUriBuilder CreateGetDhcpRequestUri(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + internal HttpMessage CreateGetDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -847,8 +843,8 @@ internal HttpMessage CreateGetDhcpRequest(string subscriptionId, string resource uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -856,73 +852,73 @@ internal HttpMessage CreateGetDhcpRequest(string subscriptionId, string resource return message; } - /// Get dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// ID of the DNS service. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - using var message = CreateGetDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); + using var message = CreateGetDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpData value = default; + WorkloadNetworkDnsServiceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(document.RootElement); + value = WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkDhcpData)null, message.Response); + return Response.FromValue((WorkloadNetworkDnsServiceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// ID of the DNS service. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - using var message = CreateGetDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); + using var message = CreateGetDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpData value = default; + WorkloadNetworkDnsServiceData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(document.RootElement); + value = WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkDhcpData)null, message.Response); + return Response.FromValue((WorkloadNetworkDnsServiceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + internal RequestUriBuilder CreateCreateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -932,13 +928,13 @@ internal RequestUriBuilder CreateCreateDhcpRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + internal HttpMessage CreateCreateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -951,8 +947,8 @@ internal HttpMessage CreateCreateDhcpRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -964,24 +960,24 @@ internal HttpMessage CreateCreateDhcpRequest(string subscriptionId, string resou return message; } - /// Create dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// ID of the DNS service. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); + using var message = CreateCreateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -993,24 +989,24 @@ public async Task CreateDhcpAsync(string subscriptionId, string resour } } - /// Create dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// ID of the DNS service. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); + using var message = CreateCreateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1022,7 +1018,7 @@ public Response CreateDhcp(string subscriptionId, string resourceGroupName, stri } } - internal RequestUriBuilder CreateUpdateDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + internal RequestUriBuilder CreateUpdateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1032,13 +1028,13 @@ internal RequestUriBuilder CreateUpdateDhcpRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data) + internal HttpMessage CreateUpdateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1051,8 +1047,8 @@ internal HttpMessage CreateUpdateDhcpRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1064,24 +1060,24 @@ internal HttpMessage CreateUpdateDhcpRequest(string subscriptionId, string resou return message; } - /// Create or update dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// ID of the DNS service. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdateDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); + using var message = CreateUpdateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1093,24 +1089,24 @@ public async Task UpdateDhcpAsync(string subscriptionId, string resour } } - /// Create or update dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// ID of the DNS service. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId, data); + using var message = CreateUpdateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1122,7 +1118,7 @@ public Response UpdateDhcp(string subscriptionId, string resourceGroupName, stri } } - internal RequestUriBuilder CreateDeleteDhcpRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + internal RequestUriBuilder CreateDeleteDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1132,13 +1128,13 @@ internal RequestUriBuilder CreateDeleteDhcpRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteDhcpRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId) + internal HttpMessage CreateDeleteDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1151,8 +1147,8 @@ internal HttpMessage CreateDeleteDhcpRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dhcpConfigurations/", false); - uri.AppendPath(dhcpId, true); + uri.AppendPath("/workloadNetworks/default/dnsServices/", false); + uri.AppendPath(dnsServiceId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1160,22 +1156,22 @@ internal HttpMessage CreateDeleteDhcpRequest(string subscriptionId, string resou return message; } - /// Delete dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// ID of the DNS service. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteDhcpAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - using var message = CreateDeleteDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); + using var message = CreateDeleteDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -1188,22 +1184,22 @@ public async Task DeleteDhcpAsync(string subscriptionId, string resour } } - /// Delete dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsService. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// ID of the DNS service. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeleteDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dhcpId, nameof(dhcpId)); + Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - using var message = CreateDeleteDhcpRequest(subscriptionId, resourceGroupName, privateCloudName, dhcpId); + using var message = CreateDeleteDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1216,7 +1212,7 @@ public Response DeleteDhcp(string subscriptionId, string resourceGroupName, stri } } - internal RequestUriBuilder CreateListGatewaysRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDnsZonesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1226,12 +1222,12 @@ internal RequestUriBuilder CreateListGatewaysRequestUri(string subscriptionId, s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/gateways", false); + uri.AppendPath("/workloadNetworks/default/dnsZones", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListGatewaysRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDnsZonesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1244,7 +1240,7 @@ internal HttpMessage CreateListGatewaysRequest(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/gateways", false); + uri.AppendPath("/workloadNetworks/default/dnsZones", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1252,28 +1248,28 @@ internal HttpMessage CreateListGatewaysRequest(string subscriptionId, string res return message; } - /// List of gateways in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListGatewaysAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDnsZonesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListGatewaysRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsZonesRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayList value = default; + WorkloadNetworkDnsZonesList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1281,28 +1277,28 @@ public async Task> ListGatewaysAsync(string } } - /// List of gateways in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListGateways(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDnsZones(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListGatewaysRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsZonesRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayList value = default; + WorkloadNetworkDnsZonesList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1310,7 +1306,7 @@ public Response ListGateways(string subscriptionId, } } - internal RequestUriBuilder CreateGetGatewayRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) + internal RequestUriBuilder CreateGetDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1320,13 +1316,13 @@ internal RequestUriBuilder CreateGetGatewayRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/gateways/", false); - uri.AppendPath(gatewayId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetGatewayRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) + internal HttpMessage CreateGetDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1339,8 +1335,8 @@ internal HttpMessage CreateGetGatewayRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/gateways/", false); - uri.AppendPath(gatewayId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1348,73 +1344,73 @@ internal HttpMessage CreateGetGatewayRequest(string subscriptionId, string resou return message; } - /// Get a gateway by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetGatewayAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(gatewayId, nameof(gatewayId)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateGetGatewayRequest(subscriptionId, resourceGroupName, privateCloudName, gatewayId); + using var message = CreateGetDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayData value = default; + WorkloadNetworkDnsZoneData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(document.RootElement); + value = WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkGatewayData)null, message.Response); + return Response.FromValue((WorkloadNetworkDnsZoneData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get a gateway by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetGateway(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(gatewayId, nameof(gatewayId)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateGetGatewayRequest(subscriptionId, resourceGroupName, privateCloudName, gatewayId); + using var message = CreateGetDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayData value = default; + WorkloadNetworkDnsZoneData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(document.RootElement); + value = WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkGatewayData)null, message.Response); + return Response.FromValue((WorkloadNetworkDnsZoneData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateCreateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1424,16 +1420,17 @@ internal RequestUriBuilder CreateListPortMirroringRequestUri(string subscription uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles", false); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateCreateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1442,73 +1439,78 @@ internal HttpMessage CreateListPortMirroringRequest(string subscriptionId, strin uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles", false); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// List of port mirroring profiles in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListPortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateCreateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkPortMirroringList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List of port mirroring profiles in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateCreateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkPortMirroringList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + internal RequestUriBuilder CreateUpdateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1518,17 +1520,17 @@ internal RequestUriBuilder CreateGetPortMirroringRequestUri(string subscriptionI uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + internal HttpMessage CreateUpdateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1537,82 +1539,78 @@ internal HttpMessage CreateGetPortMirroringRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Get a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the DNS zone. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetPortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); + using var message = CreateUpdateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkPortMirroringProfileData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkPortMirroringProfileData)null, message.Response); + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the DNS zone. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); + using var message = CreateUpdateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkPortMirroringProfileData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkPortMirroringProfileData)null, message.Response); + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + internal RequestUriBuilder CreateDeleteDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1622,17 +1620,17 @@ internal RequestUriBuilder CreateCreatePortMirroringRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + internal HttpMessage CreateDeleteDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1641,78 +1639,72 @@ internal HttpMessage CreateCreatePortMirroringRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/dnsZones/", false); + uri.AppendPath(dnsZoneId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreatePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateCreatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); + using var message = CreateDeleteDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 201: + case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Create a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsZone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeleteDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateCreatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); + using var message = CreateDeleteDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 201: + case 202: + case 204: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + internal RequestUriBuilder CreateListGatewaysRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1722,17 +1714,16 @@ internal RequestUriBuilder CreateUpdatePortMirroringRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/gateways", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) + internal HttpMessage CreateListGatewaysRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1741,78 +1732,73 @@ internal HttpMessage CreateUpdatePortMirroringRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/gateways", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create or update a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkGateway resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdatePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListGatewaysAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); + using var message = CreateListGatewaysRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkGatewayList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Create or update a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkGateway resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListGateways(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); + using var message = CreateListGatewaysRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkGatewayList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateDeletePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + internal RequestUriBuilder CreateGetGatewayRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1822,17 +1808,17 @@ internal RequestUriBuilder CreateDeletePortMirroringRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/gateways/", false); + uri.AppendPath(gatewayId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeletePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) + internal HttpMessage CreateGetGatewayRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -1841,8 +1827,8 @@ internal HttpMessage CreateDeletePortMirroringRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); - uri.AppendPath(portMirroringId, true); + uri.AppendPath("/workloadNetworks/default/gateways/", false); + uri.AppendPath(gatewayId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1850,63 +1836,73 @@ internal HttpMessage CreateDeletePortMirroringRequest(string subscriptionId, str return message; } - /// Delete a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkGateway. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeletePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetGatewayAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); + Argument.AssertNotNullOrEmpty(gatewayId, nameof(gatewayId)); - using var message = CreateDeletePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); + using var message = CreateGetGatewayRequest(subscriptionId, resourceGroupName, privateCloudName, gatewayId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + WorkloadNetworkGatewayData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkGatewayData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Delete a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkGateway. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeletePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetGateway(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); + Argument.AssertNotNullOrEmpty(gatewayId, nameof(gatewayId)); - using var message = CreateDeletePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); + using var message = CreateGetGatewayRequest(subscriptionId, resourceGroupName, privateCloudName, gatewayId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + WorkloadNetworkGatewayData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkGatewayData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListVmGroupsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1916,12 +1912,12 @@ internal RequestUriBuilder CreateListVmGroupsRequestUri(string subscriptionId, s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups", false); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListVmGroupsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1934,7 +1930,7 @@ internal HttpMessage CreateListVmGroupsRequest(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups", false); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1942,28 +1938,28 @@ internal HttpMessage CreateListVmGroupsRequest(string subscriptionId, string res return message; } - /// List of vm groups in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListVmGroupsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListPortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVmGroupsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupsList value = default; + WorkloadNetworkPortMirroringList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1971,28 +1967,28 @@ public async Task> ListVmGroupsAsync(strin } } - /// List of vm groups in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListVmGroups(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVmGroupsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupsList value = default; + WorkloadNetworkPortMirroringList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -2000,7 +1996,7 @@ public Response ListVmGroups(string subscriptionId, } } - internal RequestUriBuilder CreateGetVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + internal RequestUriBuilder CreateGetPortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2010,13 +2006,13 @@ internal RequestUriBuilder CreateGetVmGroupRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + internal HttpMessage CreateGetPortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2029,8 +2025,8 @@ internal HttpMessage CreateGetVmGroupRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2038,73 +2034,73 @@ internal HttpMessage CreateGetVmGroupRequest(string subscriptionId, string resou return message; } - /// Get a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetPortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - using var message = CreateGetVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); + using var message = CreateGetPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupData value = default; + WorkloadNetworkPortMirroringProfileData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(document.RootElement); + value = WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkVmGroupData)null, message.Response); + return Response.FromValue((WorkloadNetworkPortMirroringProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - using var message = CreateGetVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); + using var message = CreateGetPortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupData value = default; + WorkloadNetworkPortMirroringProfileData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(document.RootElement); + value = WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkVmGroupData)null, message.Response); + return Response.FromValue((WorkloadNetworkPortMirroringProfileData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + internal RequestUriBuilder CreateCreatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2114,13 +2110,13 @@ internal RequestUriBuilder CreateCreateVmGroupRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + internal HttpMessage CreateCreatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2133,8 +2129,8 @@ internal HttpMessage CreateCreateVmGroupRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2146,24 +2142,24 @@ internal HttpMessage CreateCreateVmGroupRequest(string subscriptionId, string re return message; } - /// Create a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreatePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); + using var message = CreateCreatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2175,24 +2171,24 @@ public async Task CreateVmGroupAsync(string subscriptionId, string res } } - /// Create a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); + using var message = CreateCreatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2204,7 +2200,7 @@ public Response CreateVmGroup(string subscriptionId, string resourceGroupName, s } } - internal RequestUriBuilder CreateUpdateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + internal RequestUriBuilder CreateUpdatePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2214,13 +2210,13 @@ internal RequestUriBuilder CreateUpdateVmGroupRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) + internal HttpMessage CreateUpdatePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2233,8 +2229,8 @@ internal HttpMessage CreateUpdateVmGroupRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2246,24 +2242,24 @@ internal HttpMessage CreateUpdateVmGroupRequest(string subscriptionId, string re return message; } - /// Create or update a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the NSX port mirroring profile. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdateVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdatePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); + using var message = CreateUpdatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2275,24 +2271,24 @@ public async Task UpdateVmGroupAsync(string subscriptionId, string res } } - /// Create or update a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the NSX port mirroring profile. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); + using var message = CreateUpdatePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2304,7 +2300,7 @@ public Response UpdateVmGroup(string subscriptionId, string resourceGroupName, s } } - internal RequestUriBuilder CreateDeleteVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + internal RequestUriBuilder CreateDeletePortMirroringRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2314,13 +2310,13 @@ internal RequestUriBuilder CreateDeleteVmGroupRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) + internal HttpMessage CreateDeletePortMirroringRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2333,8 +2329,8 @@ internal HttpMessage CreateDeleteVmGroupRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/vmGroups/", false); - uri.AppendPath(vmGroupId, true); + uri.AppendPath("/workloadNetworks/default/portMirroringProfiles/", false); + uri.AppendPath(portMirroringId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2342,22 +2338,22 @@ internal HttpMessage CreateDeleteVmGroupRequest(string subscriptionId, string re return message; } - /// Delete a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeletePortMirroringAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - using var message = CreateDeleteVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); + using var message = CreateDeletePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -2370,22 +2366,22 @@ public async Task DeleteVmGroupAsync(string subscriptionId, string res } } - /// Delete a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPortMirroring. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeletePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNullOrEmpty(portMirroringId, nameof(portMirroringId)); - using var message = CreateDeleteVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); + using var message = CreateDeletePortMirroringRequest(subscriptionId, resourceGroupName, privateCloudName, portMirroringId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -2398,7 +2394,7 @@ public Response DeleteVmGroup(string subscriptionId, string resourceGroupName, s } } - internal RequestUriBuilder CreateListVirtualMachinesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListPublicIPsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2408,12 +2404,12 @@ internal RequestUriBuilder CreateListVirtualMachinesRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/virtualMachines", false); + uri.AppendPath("/workloadNetworks/default/publicIPs", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListVirtualMachinesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListPublicIPsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2426,7 +2422,7 @@ internal HttpMessage CreateListVirtualMachinesRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/virtualMachines", false); + uri.AppendPath("/workloadNetworks/default/publicIPs", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2434,28 +2430,28 @@ internal HttpMessage CreateListVirtualMachinesRequest(string subscriptionId, str return message; } - /// List of virtual machines in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListVirtualMachinesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListPublicIPsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVirtualMachinesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPublicIPsRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachinesList value = default; + WorkloadNetworkPublicIPsList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -2463,28 +2459,28 @@ public async Task> ListVirtualMachi } } - /// List of virtual machines in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListVirtualMachines(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListPublicIPs(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVirtualMachinesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPublicIPsRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachinesList value = default; + WorkloadNetworkPublicIPsList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -2492,7 +2488,7 @@ public Response ListVirtualMachines(string s } } - internal RequestUriBuilder CreateGetVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) + internal RequestUriBuilder CreateGetPublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2502,13 +2498,13 @@ internal RequestUriBuilder CreateGetVirtualMachineRequestUri(string subscription uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/virtualMachines/", false); - uri.AppendPath(virtualMachineId, true); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetVirtualMachineRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) + internal HttpMessage CreateGetPublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2521,8 +2517,8 @@ internal HttpMessage CreateGetVirtualMachineRequest(string subscriptionId, strin uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/virtualMachines/", false); - uri.AppendPath(virtualMachineId, true); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2530,73 +2526,73 @@ internal HttpMessage CreateGetVirtualMachineRequest(string subscriptionId, strin return message; } - /// Get a virtual machine by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Virtual Machine identifier. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetVirtualMachineAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetPublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(virtualMachineId, nameof(virtualMachineId)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); - using var message = CreateGetVirtualMachineRequest(subscriptionId, resourceGroupName, privateCloudName, virtualMachineId); + using var message = CreateGetPublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachineData value = default; + WorkloadNetworkPublicIPData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(document.RootElement); + value = WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkVirtualMachineData)null, message.Response); + return Response.FromValue((WorkloadNetworkPublicIPData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Get a virtual machine by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// Virtual Machine identifier. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetVirtualMachine(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetPublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(virtualMachineId, nameof(virtualMachineId)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); - using var message = CreateGetVirtualMachineRequest(subscriptionId, resourceGroupName, privateCloudName, virtualMachineId); + using var message = CreateGetPublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachineData value = default; + WorkloadNetworkPublicIPData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(document.RootElement); + value = WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WorkloadNetworkVirtualMachineData)null, message.Response); + return Response.FromValue((WorkloadNetworkPublicIPData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListDnsServicesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateCreatePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2606,16 +2602,17 @@ internal RequestUriBuilder CreateListDnsServicesRequestUri(string subscriptionId uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices", false); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListDnsServicesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateCreatePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -2624,73 +2621,78 @@ internal HttpMessage CreateListDnsServicesRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices", false); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// List of DNS services in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDnsServicesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreatePublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListDnsServicesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateCreatePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsServicesList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List of DNS services in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListDnsServices(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreatePublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListDnsServicesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateCreatePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsServicesList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + internal RequestUriBuilder CreateDeletePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2700,17 +2702,17 @@ internal RequestUriBuilder CreateGetDnsServiceRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + internal HttpMessage CreateDeletePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -2719,8 +2721,8 @@ internal HttpMessage CreateGetDnsServiceRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/publicIPs/", false); + uri.AppendPath(publicIPId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -2728,73 +2730,63 @@ internal HttpMessage CreateGetDnsServiceRequest(string subscriptionId, string re return message; } - /// Get a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeletePublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); - using var message = CreateGetDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); + using var message = CreateDeletePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsServiceData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkDnsServiceData)null, message.Response); + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPublicIP. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS zone. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeletePublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); + Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); - using var message = CreateGetDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); + using var message = CreateDeletePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsServiceData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkDnsServiceData)null, message.Response); + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + internal RequestUriBuilder CreateListSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2804,17 +2796,16 @@ internal RequestUriBuilder CreateCreateDnsServiceRequestUri(string subscriptionI uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + internal HttpMessage CreateListSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -2823,78 +2814,73 @@ internal HttpMessage CreateCreateDnsServiceRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkSegment resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); + using var message = CreateListSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + WorkloadNetworkSegmentsList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Create a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkSegment resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListSegments(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); + using var message = CreateListSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + WorkloadNetworkSegmentsList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdateDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + internal RequestUriBuilder CreateGetSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -2904,17 +2890,17 @@ internal RequestUriBuilder CreateUpdateDnsServiceRequestUri(string subscriptionI uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data) + internal HttpMessage CreateGetSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -2923,78 +2909,82 @@ internal HttpMessage CreateUpdateDnsServiceRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create or update a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. + /// The ID of the NSX Segment. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdateDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetSegmentAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); - using var message = CreateUpdateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); + using var message = CreateGetSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkSegmentData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkSegmentData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Create or update a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. + /// The ID of the NSX Segment. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); - using var message = CreateUpdateDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId, data); + using var message = CreateGetSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkSegmentData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkSegmentData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateDeleteDnsServiceRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + internal RequestUriBuilder CreateCreateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3004,17 +2994,17 @@ internal RequestUriBuilder CreateDeleteDnsServiceRequestUri(string subscriptionI uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteDnsServiceRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId) + internal HttpMessage CreateCreateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3023,72 +3013,78 @@ internal HttpMessage CreateDeleteDnsServiceRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsServices/", false); - uri.AppendPath(dnsServiceId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Delete a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// The ID of the NSX Segment. + /// Resource create parameters. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteDnsServiceAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateDeleteDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); + using var message = CreateCreateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - case 204: + case 201: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Delete a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// The ID of the NSX Segment. + /// Resource create parameters. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsServiceId, nameof(dnsServiceId)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateDeleteDnsServiceRequest(subscriptionId, resourceGroupName, privateCloudName, dnsServiceId); + using var message = CreateCreateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - case 204: + case 201: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListDnsZonesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateUpdateSegmentsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3098,16 +3094,17 @@ internal RequestUriBuilder CreateListDnsZonesRequestUri(string subscriptionId, s uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones", false); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListDnsZonesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateUpdateSegmentsRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3116,73 +3113,78 @@ internal HttpMessage CreateListDnsZonesRequest(string subscriptionId, string res uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones", false); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// List of DNS zones in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// The ID of the NSX Segment. + /// The resource properties to be updated. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDnsZonesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateSegmentsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListDnsZonesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateUpdateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsZonesList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// List of DNS zones in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// The ID of the NSX Segment. + /// The resource properties to be updated. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListDnsZones(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListDnsZonesRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateUpdateSegmentsRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsZonesList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + internal RequestUriBuilder CreateDeleteSegmentRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3192,17 +3194,17 @@ internal RequestUriBuilder CreateGetDnsZoneRequestUri(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + internal HttpMessage CreateDeleteSegmentRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3211,8 +3213,8 @@ internal HttpMessage CreateGetDnsZoneRequest(string subscriptionId, string resou uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/segments/", false); + uri.AppendPath(segmentId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -3220,73 +3222,63 @@ internal HttpMessage CreateGetDnsZoneRequest(string subscriptionId, string resou return message; } - /// Get a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteSegmentAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); - using var message = CreateGetDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); + using var message = CreateDeleteSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsZoneData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkDnsZoneData)null, message.Response); + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkSegment. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeleteSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); + Argument.AssertNotNullOrEmpty(segmentId, nameof(segmentId)); - using var message = CreateGetDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); + using var message = CreateDeleteSegmentRequest(subscriptionId, resourceGroupName, privateCloudName, segmentId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - WorkloadNetworkDnsZoneData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkDnsZoneData)null, message.Response); + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + internal RequestUriBuilder CreateListVirtualMachinesRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3296,17 +3288,16 @@ internal RequestUriBuilder CreateCreateDnsZoneRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + internal HttpMessage CreateListVirtualMachinesRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3315,78 +3306,73 @@ internal HttpMessage CreateCreateDnsZoneRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/virtualMachines", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListVirtualMachinesAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); + using var message = CreateListVirtualMachinesRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + WorkloadNetworkVirtualMachinesList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Create a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListVirtualMachines(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); + using var message = CreateListVirtualMachinesRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + WorkloadNetworkVirtualMachinesList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdateDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + internal RequestUriBuilder CreateGetVirtualMachineRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3396,17 +3382,17 @@ internal RequestUriBuilder CreateUpdateDnsZoneRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/virtualMachines/", false); + uri.AppendPath(virtualMachineId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateUpdateDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data) + internal HttpMessage CreateGetVirtualMachineRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3415,78 +3401,82 @@ internal HttpMessage CreateUpdateDnsZoneRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/virtualMachines/", false); + uri.AppendPath(virtualMachineId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; _userAgent.Apply(message); return message; } - /// Create or update a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVirtualMachine. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. + /// ID of the virtual machine. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpdateDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetVirtualMachineAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(virtualMachineId, nameof(virtualMachineId)); - using var message = CreateUpdateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); + using var message = CreateGetVirtualMachineRequest(subscriptionId, resourceGroupName, privateCloudName, virtualMachineId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkVirtualMachineData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkVirtualMachineData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Create or update a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVirtualMachine. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. + /// ID of the virtual machine. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetVirtualMachine(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(virtualMachineId, nameof(virtualMachineId)); - using var message = CreateUpdateDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId, data); + using var message = CreateGetVirtualMachineRequest(subscriptionId, resourceGroupName, privateCloudName, virtualMachineId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + WorkloadNetworkVirtualMachineData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((WorkloadNetworkVirtualMachineData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateDeleteDnsZoneRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + internal RequestUriBuilder CreateListVmGroupsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3496,17 +3486,16 @@ internal RequestUriBuilder CreateDeleteDnsZoneRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeleteDnsZoneRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId) + internal HttpMessage CreateListVmGroupsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3515,8 +3504,7 @@ internal HttpMessage CreateDeleteDnsZoneRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/dnsZones/", false); - uri.AppendPath(dnsZoneId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -3524,63 +3512,65 @@ internal HttpMessage CreateDeleteDnsZoneRequest(string subscriptionId, string re return message; } - /// Delete a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteDnsZoneAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListVmGroupsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateDeleteDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); + using var message = CreateListVmGroupsRequest(subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + WorkloadNetworkVmGroupsList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Delete a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeleteDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default) + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListVmGroups(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(dnsZoneId, nameof(dnsZoneId)); - using var message = CreateDeleteDnsZoneRequest(subscriptionId, resourceGroupName, privateCloudName, dnsZoneId); + using var message = CreateListVmGroupsRequest(subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + WorkloadNetworkVmGroupsList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateListPublicIPsRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateGetVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3590,12 +3580,13 @@ internal RequestUriBuilder CreateListPublicIPsRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs", false); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListPublicIPsRequest(string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateGetVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -3608,7 +3599,8 @@ internal HttpMessage CreateListPublicIPsRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs", false); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -3616,65 +3608,73 @@ internal HttpMessage CreateListPublicIPsRequest(string subscriptionId, string re return message; } - /// List of Public IP Blocks in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the VM group. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> ListPublicIPsAsync(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); - using var message = CreateListPublicIPsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateGetVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkPublicIPsList value = default; + WorkloadNetworkVmGroupData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); + value = WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WorkloadNetworkVmGroupData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// List of Public IP Blocks in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. + /// ID of the VM group. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response ListPublicIPs(string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); - using var message = CreateListPublicIPsRequest(subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateGetVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkPublicIPsList value = default; + WorkloadNetworkVmGroupData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); + value = WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((WorkloadNetworkVmGroupData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateGetPublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + internal RequestUriBuilder CreateCreateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3684,17 +3684,17 @@ internal RequestUriBuilder CreateGetPublicIPRequestUri(string subscriptionId, st uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateGetPublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + internal HttpMessage CreateCreateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3703,82 +3703,78 @@ internal HttpMessage CreateGetPublicIPRequest(string subscriptionId, string reso uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } - /// Get a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the VM group. + /// Resource create parameters. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetPublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetPublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); + using var message = CreateCreateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - WorkloadNetworkPublicIPData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkPublicIPData)null, message.Response); + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the VM group. + /// Resource create parameters. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response GetPublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateGetPublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - WorkloadNetworkPublicIPData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((WorkloadNetworkPublicIPData)null, message.Response); + using var message = CreateCreateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreatePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) + internal RequestUriBuilder CreateUpdateVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3788,17 +3784,17 @@ internal RequestUriBuilder CreateCreatePublicIPRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreatePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data) + internal HttpMessage CreateUpdateVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -3807,8 +3803,8 @@ internal HttpMessage CreateCreatePublicIPRequest(string subscriptionId, string r uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -3820,65 +3816,65 @@ internal HttpMessage CreateCreatePublicIPRequest(string subscriptionId, string r return message; } - /// Create a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. - /// NSX Public IP Block. + /// ID of the VM group. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreatePublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task UpdateVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreatePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId, data); + using var message = CreateUpdateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 201: + case 202: return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Create a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. - /// NSX Public IP Block. + /// ID of the VM group. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreatePublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response UpdateVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreatePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId, data); + using var message = CreateUpdateVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 201: + case 202: return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateDeletePublicIPRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + internal RequestUriBuilder CreateDeleteVmGroupRequestUri(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -3888,13 +3884,13 @@ internal RequestUriBuilder CreateDeletePublicIPRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateDeletePublicIPRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId) + internal HttpMessage CreateDeleteVmGroupRequest(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -3907,8 +3903,8 @@ internal HttpMessage CreateDeletePublicIPRequest(string subscriptionId, string r uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/Microsoft.AVS/privateClouds/", false); uri.AppendPath(privateCloudName, true); - uri.AppendPath("/workloadNetworks/default/publicIPs/", false); - uri.AppendPath(publicIPId, true); + uri.AppendPath("/workloadNetworks/default/vmGroups/", false); + uri.AppendPath(vmGroupId, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -3916,22 +3912,22 @@ internal HttpMessage CreateDeletePublicIPRequest(string subscriptionId, string r return message; } - /// Delete a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the VM group. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task DeletePublicIPAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteVmGroupAsync(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); - using var message = CreateDeletePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); + using var message = CreateDeleteVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -3944,22 +3940,22 @@ public async Task DeletePublicIPAsync(string subscriptionId, string re } } - /// Delete a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkVMGroup. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the VM group. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response DeletePublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response DeleteVmGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - Argument.AssertNotNullOrEmpty(publicIPId, nameof(publicIPId)); + Argument.AssertNotNullOrEmpty(vmGroupId, nameof(vmGroupId)); - using var message = CreateDeletePublicIPRequest(subscriptionId, resourceGroupName, privateCloudName, publicIPId); + using var message = CreateDeleteVmGroupRequest(subscriptionId, resourceGroupName, privateCloudName, vmGroupId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -3994,9 +3990,9 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List of workload networks in a private cloud. + /// List WorkloadNetwork resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -4025,9 +4021,9 @@ public async Task> ListNextPageAsync(string nextLi } } - /// List of workload networks in a private cloud. + /// List WorkloadNetwork resources by PrivateCloud. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. @@ -4056,7 +4052,7 @@ public Response ListNextPage(string nextLink, string subscr } } - internal RequestUriBuilder CreateListSegmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDhcpNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4064,7 +4060,7 @@ internal RequestUriBuilder CreateListSegmentsNextPageRequestUri(string nextLink, return uri; } - internal HttpMessage CreateListSegmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDhcpNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4078,30 +4074,30 @@ internal HttpMessage CreateListSegmentsNextPageRequest(string nextLink, string s return message; } - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListSegmentsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDhcpNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListSegmentsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDhcpNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentsList value = default; + WorkloadNetworkDhcpList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4109,30 +4105,30 @@ public async Task> ListSegmentsNextPageAsy } } - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListSegmentsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDhcpNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListSegmentsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDhcpNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkSegmentsList value = default; + WorkloadNetworkDhcpList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); + value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4140,7 +4136,7 @@ public Response ListSegmentsNextPage(string nextLin } } - internal RequestUriBuilder CreateListDhcpNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDnsServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4148,7 +4144,7 @@ internal RequestUriBuilder CreateListDhcpNextPageRequestUri(string nextLink, str return uri; } - internal HttpMessage CreateListDhcpNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDnsServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4162,30 +4158,30 @@ internal HttpMessage CreateListDhcpNextPageRequest(string nextLink, string subsc return message; } - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDhcpNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDnsServicesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDhcpNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsServicesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpList value = default; + WorkloadNetworkDnsServicesList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); + value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4193,30 +4189,30 @@ public async Task> ListDhcpNextPageAsync(strin } } - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListDhcpNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDnsServicesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDhcpNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsServicesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkDhcpList value = default; + WorkloadNetworkDnsServicesList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDhcpList.DeserializeWorkloadNetworkDhcpList(document.RootElement); + value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4224,7 +4220,7 @@ public Response ListDhcpNextPage(string nextLink, strin } } - internal RequestUriBuilder CreateListGatewaysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListDnsZonesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4232,7 +4228,7 @@ internal RequestUriBuilder CreateListGatewaysNextPageRequestUri(string nextLink, return uri; } - internal HttpMessage CreateListGatewaysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListDnsZonesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4246,30 +4242,30 @@ internal HttpMessage CreateListGatewaysNextPageRequest(string nextLink, string s return message; } - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListGatewaysNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListDnsZonesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListGatewaysNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsZonesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayList value = default; + WorkloadNetworkDnsZonesList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4277,30 +4273,30 @@ public async Task> ListGatewaysNextPageAsyn } } - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListGatewaysNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListDnsZonesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListGatewaysNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListDnsZonesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkGatewayList value = default; + WorkloadNetworkDnsZonesList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); + value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4308,7 +4304,7 @@ public Response ListGatewaysNextPage(string nextLink } } - internal RequestUriBuilder CreateListPortMirroringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListGatewaysNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4316,7 +4312,7 @@ internal RequestUriBuilder CreateListPortMirroringNextPageRequestUri(string next return uri; } - internal HttpMessage CreateListPortMirroringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListGatewaysNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4330,30 +4326,30 @@ internal HttpMessage CreateListPortMirroringNextPageRequest(string nextLink, str return message; } - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListPortMirroringNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListGatewaysNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListPortMirroringNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListGatewaysNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkPortMirroringList value = default; + WorkloadNetworkGatewayList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); + value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4361,30 +4357,30 @@ public async Task> ListPortMirroringN } } - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListPortMirroringNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListGatewaysNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListPortMirroringNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListGatewaysNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkPortMirroringList value = default; + WorkloadNetworkGatewayList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); + value = WorkloadNetworkGatewayList.DeserializeWorkloadNetworkGatewayList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4392,7 +4388,7 @@ public Response ListPortMirroringNextPage(stri } } - internal RequestUriBuilder CreateListVmGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListPortMirroringNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4400,7 +4396,7 @@ internal RequestUriBuilder CreateListVmGroupsNextPageRequestUri(string nextLink, return uri; } - internal HttpMessage CreateListVmGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListPortMirroringNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4414,30 +4410,30 @@ internal HttpMessage CreateListVmGroupsNextPageRequest(string nextLink, string s return message; } - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListVmGroupsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListPortMirroringNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVmGroupsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPortMirroringNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupsList value = default; + WorkloadNetworkPortMirroringList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4445,30 +4441,30 @@ public async Task> ListVmGroupsNextPageAsy } } - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListVmGroupsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListPortMirroringNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVmGroupsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPortMirroringNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVmGroupsList value = default; + WorkloadNetworkPortMirroringList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); + value = WorkloadNetworkPortMirroringList.DeserializeWorkloadNetworkPortMirroringList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4476,7 +4472,7 @@ public Response ListVmGroupsNextPage(string nextLin } } - internal RequestUriBuilder CreateListVirtualMachinesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListPublicIPsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4484,7 +4480,7 @@ internal RequestUriBuilder CreateListVirtualMachinesNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListVirtualMachinesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListPublicIPsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4498,30 +4494,30 @@ internal HttpMessage CreateListVirtualMachinesNextPageRequest(string nextLink, s return message; } - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListVirtualMachinesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListPublicIPsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVirtualMachinesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPublicIPsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachinesList value = default; + WorkloadNetworkPublicIPsList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4529,30 +4525,30 @@ public async Task> ListVirtualMachi } } - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListVirtualMachinesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListPublicIPsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListVirtualMachinesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListPublicIPsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkVirtualMachinesList value = default; + WorkloadNetworkPublicIPsList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); + value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4560,7 +4556,7 @@ public Response ListVirtualMachinesNextPage( } } - internal RequestUriBuilder CreateListDnsServicesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListSegmentsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4568,7 +4564,7 @@ internal RequestUriBuilder CreateListDnsServicesNextPageRequestUri(string nextLi return uri; } - internal HttpMessage CreateListDnsServicesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListSegmentsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4582,30 +4578,30 @@ internal HttpMessage CreateListDnsServicesNextPageRequest(string nextLink, strin return message; } - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDnsServicesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListSegmentsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDnsServicesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListSegmentsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkDnsServicesList value = default; + WorkloadNetworkSegmentsList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); + value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4613,30 +4609,30 @@ public async Task> ListDnsServicesNextP } } - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListDnsServicesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListSegmentsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDnsServicesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListSegmentsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkDnsServicesList value = default; + WorkloadNetworkSegmentsList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsServicesList.DeserializeWorkloadNetworkDnsServicesList(document.RootElement); + value = WorkloadNetworkSegmentsList.DeserializeWorkloadNetworkSegmentsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4644,7 +4640,7 @@ public Response ListDnsServicesNextPage(string n } } - internal RequestUriBuilder CreateListDnsZonesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListVirtualMachinesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4652,7 +4648,7 @@ internal RequestUriBuilder CreateListDnsZonesNextPageRequestUri(string nextLink, return uri; } - internal HttpMessage CreateListDnsZonesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListVirtualMachinesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4666,30 +4662,30 @@ internal HttpMessage CreateListDnsZonesNextPageRequest(string nextLink, string s return message; } - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListDnsZonesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListVirtualMachinesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDnsZonesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListVirtualMachinesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkDnsZonesList value = default; + WorkloadNetworkVirtualMachinesList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); + value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4697,30 +4693,30 @@ public async Task> ListDnsZonesNextPageAsy } } - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListDnsZonesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListVirtualMachinesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListDnsZonesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListVirtualMachinesNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkDnsZonesList value = default; + WorkloadNetworkVirtualMachinesList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkDnsZonesList.DeserializeWorkloadNetworkDnsZonesList(document.RootElement); + value = WorkloadNetworkVirtualMachinesList.DeserializeWorkloadNetworkVirtualMachinesList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4728,7 +4724,7 @@ public Response ListDnsZonesNextPage(string nextLin } } - internal RequestUriBuilder CreateListPublicIPsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal RequestUriBuilder CreateListVmGroupsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -4736,7 +4732,7 @@ internal RequestUriBuilder CreateListPublicIPsNextPageRequestUri(string nextLink return uri; } - internal HttpMessage CreateListPublicIPsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) + internal HttpMessage CreateListVmGroupsNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -4750,30 +4746,30 @@ internal HttpMessage CreateListPublicIPsNextPageRequest(string nextLink, string return message; } - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListPublicIPsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public async Task> ListVmGroupsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListPublicIPsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListVmGroupsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - WorkloadNetworkPublicIPsList value = default; + WorkloadNetworkVmGroupsList value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); + value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -4781,30 +4777,30 @@ public async Task> ListPublicIPsNextPageA } } - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork. /// The URL to the next page of results. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListPublicIPsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) + public Response ListVmGroupsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(privateCloudName, nameof(privateCloudName)); - using var message = CreateListPublicIPsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); + using var message = CreateListVmGroupsNextPageRequest(nextLink, subscriptionId, resourceGroupName, privateCloudName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - WorkloadNetworkPublicIPsList value = default; + WorkloadNetworkVmGroupsList value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WorkloadNetworkPublicIPsList.DeserializeWorkloadNetworkPublicIPsList(document.RootElement); + value = WorkloadNetworkVmGroupsList.DeserializeWorkloadNetworkVmGroupsList(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletCollection.cs index a738ad2902350..029db5de2e65c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -97,7 +97,7 @@ public virtual async Task> GetAsync(string script } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string script /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> GetAsync(string script /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -142,7 +142,7 @@ public virtual Response Get(string scriptCmdletName, Cance } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List ScriptCmdlet resources by ScriptPackage /// /// /// Request Path @@ -154,7 +154,7 @@ public virtual Response Get(string scriptCmdletName, Cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List ScriptCmdlet resources by ScriptPackage /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string scriptCmdletName, C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string scriptCmdletName, C /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -300,7 +300,7 @@ public virtual Response Exists(string scriptCmdletName, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string scriptCmdletName, CancellationToken /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.Serialization.cs index 553d934d43695..591388a2bfa0c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.Serialization.cs @@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); @@ -49,6 +54,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("timeout"u8); writer.WriteStringValue(Timeout.Value, "P"); } + if (options.Format != "W" && Optional.IsDefined(Audience)) + { + writer.WritePropertyName("audience"u8); + writer.WriteStringValue(Audience.Value.ToString()); + } if (options.Format != "W" && Optional.IsCollectionDefined(Parameters)) { writer.WritePropertyName("parameters"u8); @@ -86,8 +96,10 @@ internal static ScriptCmdletData DeserializeScriptCmdletData(JsonElement element string name = default; ResourceType type = default; SystemData systemData = default; + ScriptCmdletProvisioningState? provisioningState = default; string description = default; TimeSpan? timeout = default; + ScriptCmdletAudience? audience = default; IReadOnlyList parameters = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -126,6 +138,15 @@ internal static ScriptCmdletData DeserializeScriptCmdletData(JsonElement element } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ScriptCmdletProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("description"u8)) { description = property0.Value.GetString(); @@ -140,6 +161,15 @@ internal static ScriptCmdletData DeserializeScriptCmdletData(JsonElement element timeout = property0.Value.GetTimeSpan("P"); continue; } + if (property0.NameEquals("audience"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + audience = new ScriptCmdletAudience(property0.Value.GetString()); + continue; + } if (property0.NameEquals("parameters"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -168,8 +198,10 @@ internal static ScriptCmdletData DeserializeScriptCmdletData(JsonElement element name, type, systemData, + provisioningState, description, timeout, + audience, parameters ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.cs index 008e2a05511b8..c8c267ca66848 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletData.cs @@ -62,22 +62,30 @@ public ScriptCmdletData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// Description of the scripts functionality. /// Recommended time limit for execution. + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers. /// Parameters the script will accept. /// Keeps track of any properties unknown to the library. - internal ScriptCmdletData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, TimeSpan? timeout, IReadOnlyList parameters, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ScriptCmdletData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ScriptCmdletProvisioningState? provisioningState, string description, TimeSpan? timeout, ScriptCmdletAudience? audience, IReadOnlyList parameters, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; Description = description; Timeout = timeout; + Audience = audience; Parameters = parameters; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public ScriptCmdletProvisioningState? ProvisioningState { get; } /// Description of the scripts functionality. public string Description { get; } /// Recommended time limit for execution. public TimeSpan? Timeout { get; } + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers. + public ScriptCmdletAudience? Audience { get; } /// Parameters the script will accept. public IReadOnlyList Parameters { get; } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletResource.cs index b9aa74deecaec..04f541f294c40 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptCmdletResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -130,7 +130,7 @@ public virtual async Task> GetAsync(CancellationT } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionCollection.cs index 4bb035649547a..bf1e6f6869674 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create or update a script execution in a private cloud + /// Create a ScriptExecution /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the user-invoked script execution resource. - /// A script running in the private cloud. + /// Name of the script cmdlet. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -88,7 +88,7 @@ public virtual async Task> CreateOrUpdateA try { var response = await _scriptExecutionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrUpdateA } /// - /// Create or update a script execution in a private cloud + /// Create a ScriptExecution /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrUpdateA /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the user-invoked script execution resource. - /// A script running in the private cloud. + /// Name of the script cmdlet. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -137,7 +137,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa try { var response = _scriptExecutionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data, cancellationToken); - var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scriptExecutionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa } /// - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(string scr } /// - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string scr /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string scr /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -240,7 +240,7 @@ public virtual Response Get(string scriptExecutionName, } /// - /// List script executions in a private cloud + /// List ScriptExecution resources by PrivateCloud /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string scriptExecutionName, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo } /// - /// List script executions in a private cloud + /// List ScriptExecution resources by PrivateCloud /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string scriptExecutionName /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string scriptExecutionName /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -398,7 +398,7 @@ public virtual Response Exists(string scriptExecutionName, CancellationTok /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string scriptExecutionName, CancellationTok /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -443,7 +443,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExists /// /// /// - /// Name of the user-invoked script execution resource. + /// Name of the script cmdlet. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionData.cs index 7bbfcfb53d4c6..d79e13669bd73 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionData.cs @@ -74,11 +74,15 @@ public ScriptExecutionData() /// The available derived classes include , and . /// /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception. + /// + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception + /// /// Time limit for execution. /// Time to live for the resource. If not provided, will be available for 60 days. /// Time the script execution was submitted. @@ -120,12 +124,16 @@ internal ScriptExecutionData(ResourceIdentifier id, string name, ResourceType re /// public IList Parameters { get; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , and . /// public IList HiddenParameters { get; } - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception. + /// + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception + /// public string FailureReason { get; set; } /// Time limit for execution. public string Timeout { get; set; } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionResource.cs index d326be82f1891..b4f3e1847312b 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptExecutionResource.cs @@ -91,7 +91,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -131,7 +131,7 @@ public virtual async Task> GetAsync(Cancellati } /// - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// /// Request Path @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response Get(CancellationToken cancellat } /// - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// /// Request Path @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// /// Request Path @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a script execution in a private cloud + /// Create a ScriptExecution /// /// /// Request Path @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A script running in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, ScriptExecutionData data, CancellationToken cancellationToken = default) @@ -288,7 +288,7 @@ public virtual async Task> UpdateAsync(Wai try { var response = await _scriptExecutionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -301,7 +301,7 @@ public virtual async Task> UpdateAsync(Wai } /// - /// Create or update a script execution in a private cloud + /// Create a ScriptExecution /// /// /// Request Path @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// A script running in the private cloud. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, ScriptExecutionData data, CancellationToken cancellationToken = default) @@ -334,7 +334,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, try { var response = _scriptExecutionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new ScriptExecutionOperationSource(Client), _scriptExecutionClientDiagnostics, Pipeline, _scriptExecutionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task> GetExecutionLogsAsy /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageCollection.cs index 0e81d4be1e6dd..54962a641d314 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -97,7 +97,7 @@ public virtual async Task> GetAsync(string scrip } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string scrip /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> GetAsync(string scrip /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -142,7 +142,7 @@ public virtual Response Get(string scriptPackageName, Can } /// - /// List script packages available to run on the private cloud + /// List ScriptPackage resources by PrivateCloud /// /// /// Request Path @@ -154,7 +154,7 @@ public virtual Response Get(string scriptPackageName, Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke } /// - /// List script packages available to run on the private cloud + /// List ScriptPackage resources by PrivateCloud /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string scriptPackageName, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string scriptPackageName, /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -300,7 +300,7 @@ public virtual Response Exists(string scriptPackageName, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string scriptPackageName, CancellationToken /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> GetIfExistsAs /// /// /// - /// Name of the script package in the private cloud. + /// Name of the script package. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.Serialization.cs index cc254a63af387..ac9df0f842b49 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.Serialization.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -38,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); @@ -85,6 +91,7 @@ internal static ScriptPackageData DeserializeScriptPackageData(JsonElement eleme string name = default; ResourceType type = default; SystemData systemData = default; + ScriptPackageProvisioningState? provisioningState = default; string description = default; string version = default; string company = default; @@ -126,6 +133,15 @@ internal static ScriptPackageData DeserializeScriptPackageData(JsonElement eleme } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new ScriptPackageProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("description"u8)) { description = property0.Value.GetString(); @@ -164,6 +180,7 @@ internal static ScriptPackageData DeserializeScriptPackageData(JsonElement eleme name, type, systemData, + provisioningState, description, version, company, diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.cs index 17f0546e4d44b..821bec8c8a46a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -60,13 +61,15 @@ public ScriptPackageData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// User friendly description of the package. /// Module version. /// Company that created and supports the package. /// Link to support by the package vendor. /// Keeps track of any properties unknown to the library. - internal ScriptPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string version, string company, Uri uri, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal ScriptPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ScriptPackageProvisioningState? provisioningState, string description, string version, string company, Uri uri, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; Description = description; Version = version; Company = company; @@ -74,6 +77,8 @@ internal ScriptPackageData(ResourceIdentifier id, string name, ResourceType reso _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public ScriptPackageProvisioningState? ProvisioningState { get; } /// User friendly description of the package. public string Description { get; } /// Module version. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageResource.cs index cc3b6b14bff10..b286d5a1870d0 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/ScriptPackageResource.cs @@ -96,7 +96,7 @@ public virtual ScriptCmdletCollection GetScriptCmdlets() } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -108,7 +108,7 @@ public virtual ScriptCmdletCollection GetScriptCmdlets() /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual ScriptCmdletCollection GetScriptCmdlets() /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -127,7 +127,7 @@ public virtual async Task> GetScriptCmdletAsync(s } /// - /// Return information about a script cmdlet resource in a specific package on a private cloud + /// Get a ScriptCmdlet /// /// /// Request Path @@ -139,7 +139,7 @@ public virtual async Task> GetScriptCmdletAsync(s /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetScriptCmdletAsync(s /// /// /// - /// Name of the script cmdlet resource in the script package in the private cloud. + /// Name of the script cmdlet. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -158,7 +158,7 @@ public virtual Response GetScriptCmdlet(string scriptCmdle } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -170,7 +170,7 @@ public virtual Response GetScriptCmdlet(string scriptCmdle /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -198,7 +198,7 @@ public virtual async Task> GetAsync(Cancellation } /// - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// /// Request Path @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.Serialization.cs index c135a1c707fe9..2a3a0ec556ad1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.Serialization.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -36,6 +37,14 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + writer.WriteEndObject(); } WorkloadNetworkData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -62,6 +71,7 @@ internal static WorkloadNetworkData DeserializeWorkloadNetworkData(JsonElement e string name = default; ResourceType type = default; SystemData systemData = default; + WorkloadNetworkProvisioningState? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -90,13 +100,40 @@ internal static WorkloadNetworkData DeserializeWorkloadNetworkData(JsonElement e systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new WorkloadNetworkProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new WorkloadNetworkData(id, name, type, systemData, serializedAdditionalRawData); + return new WorkloadNetworkData( + id, + name, + type, + systemData, + provisioningState, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.cs index f222141cbd2bd..e3f690f0b28e2 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -60,10 +61,15 @@ public WorkloadNetworkData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal WorkloadNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, WorkloadNetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } + + /// The provisioning state of the resource. + public WorkloadNetworkProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpCollection.cs index 28fc0e5f227bb..d1568897514a6 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkDhcps method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkDhcps method from an instance of . /// public partial class WorkloadNetworkDhcpCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkDhcpCollection(ArmClient client, ResourceIdentifier id) internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// The ID of the DHCP configuration. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> CreateOrUpd scope.Start(); try { - var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.CreateDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkDhcpOperationSource(Client), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDhcpWorkloadNetworksRestClient.CreateCreateDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.CreateDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkDhcpOperationSource(Client), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDhcpWorkloadNetworksRestClient.CreateCreateDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOrUpd } /// - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOrUpd /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DHCP identifier. Generally the same as the DHCP display name. - /// NSX DHCP. + /// The ID of the DHCP configuration. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti scope.Start(); try { - var response = _workloadNetworkDhcpWorkloadNetworksRestClient.CreateDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkDhcpOperationSource(Client), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDhcpWorkloadNetworksRestClient.CreateCreateDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkDhcpWorkloadNetworksRestClient.CreateDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkDhcpOperationSource(Client), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDhcpWorkloadNetworksRestClient.CreateCreateDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti } /// - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync(string scope.Start(); try { - var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDhcpResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(string } /// - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string dhcpId, Cancella scope.Start(); try { - var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken); + var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDhcpResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string dhcpId, Cancella } /// - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string dhcpId, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string dhcpId, Cancella /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDhcpResource(Client, WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(e)), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDhcpCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDhcpWorkloadNetworksRestClient.CreateListDhcpNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDhcpResource(Client, WorkloadNetworkDhcpData.DeserializeWorkloadNetworkDhcpData(e)), _workloadNetworkDhcpWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDhcpCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string dhcpId, Cancellatio scope.Start(); try { - var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string dhcpId, Cancellatio /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string dhcpId, Cancellatio /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string dhcpId, CancellationToken cancellati scope.Start(); try { - var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken: cancellationToken); + var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string dhcpId, CancellationToken cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string dhcpId, CancellationToken cancellati /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> GetIfEx scope.Start(); try { - var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcpAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDhcpResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfEx /// /// /// - /// NSX DHCP identifier. Generally the same as the DHCP display name. + /// The ID of the DHCP configuration. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(string scope.Start(); try { - var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dhcpId, cancellationToken: cancellationToken); + var response = _workloadNetworkDhcpWorkloadNetworksRestClient.GetDhcp(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dhcpId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDhcpResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpData.cs index 5b4ebbb6f5e55..cc3dbd1aadead 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpData.cs @@ -62,7 +62,7 @@ public WorkloadNetworkDhcpData() /// The resourceType. /// The systemData. /// - /// DHCP properties. + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -74,7 +74,7 @@ internal WorkloadNetworkDhcpData(ResourceIdentifier id, string name, ResourceTyp } /// - /// DHCP properties. + /// The resource-specific properties for this resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpResource.cs index 8ad77bc0e9102..5054a8e50ccce 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDhcpResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkDhcp along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkDhcpResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDhcp method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDhcp method. /// public partial class WorkloadNetworkDhcpResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Cancel } /// - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken cance } /// - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DHCP. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task> UpdateAsync } /// - /// Create or update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsync /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DHCP. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkDhcpData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceCollection.cs index ebfce28dc63e0..b8a66464490d3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkDnsServices method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkDnsServices method from an instance of . /// public partial class WorkloadNetworkDnsServiceCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkDnsServiceCollection(ArmClient client, ResourceIdentifie internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. + /// ID of the DNS service. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> Creat scope.Start(); try { - var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkDnsServiceOperationSource(Client), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateCreateDnsServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkDnsServiceOperationSource(Client), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateCreateDnsServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> Creat } /// - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> Creat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. - /// NSX DNS Service. + /// ID of the DNS service. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(Wa scope.Start(); try { - var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkDnsServiceOperationSource(Client), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateCreateDnsServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkDnsServiceOperationSource(Client), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateCreateDnsServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wa } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync( scope.Start(); try { - var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsServiceResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync( } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync( /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string dnsService scope.Start(); try { - var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken); + var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsServiceResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string dnsService } /// - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string dnsService /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string dnsService /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDnsServiceResource(Client, WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(e)), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDnsServiceCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Canc /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsServiceWorkloadNetworksRestClient.CreateListDnsServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDnsServiceResource(Client, WorkloadNetworkDnsServiceData.DeserializeWorkloadNetworkDnsServiceData(e)), _workloadNetworkDnsServiceWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDnsServiceCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string dnsServiceId, Cance scope.Start(); try { - var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string dnsServiceId, Cance /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string dnsServiceId, Cance /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string dnsServiceId, CancellationToken canc scope.Start(); try { - var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken: cancellationToken); + var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string dnsServiceId, CancellationToken canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string dnsServiceId, CancellationToken canc /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> G scope.Start(); try { - var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsServiceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsServiceResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> G /// /// /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name. + /// ID of the DNS service. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(s scope.Start(); try { - var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsServiceId, cancellationToken: cancellationToken); + var response = _workloadNetworkDnsServiceWorkloadNetworksRestClient.GetDnsService(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsServiceId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsServiceResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceResource.cs index e34f4d3810316..fc324de77ca56 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsServiceResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkDnsService along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkDnsServiceResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDnsService method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDnsService method. /// public partial class WorkloadNetworkDnsServiceResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync( } /// - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken } /// - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Service. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task> Updat } /// - /// Create or update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> Updat /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Service. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkDnsServiceData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneCollection.cs index 5c565ecbd0336..e097d71a94805 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkDnsZones method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkDnsZones method from an instance of . /// public partial class WorkloadNetworkDnsZoneCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkDnsZoneCollection(ArmClient client, ResourceIdentifier i internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> CreateOr scope.Start(); try { - var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkDnsZoneOperationSource(Client), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateCreateDnsZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkDnsZoneOperationSource(Client), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateCreateDnsZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOr } /// - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOr /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. - /// NSX DNS Zone. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(WaitU scope.Start(); try { - var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkDnsZoneOperationSource(Client), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateCreateDnsZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkDnsZoneOperationSource(Client), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateCreateDnsZoneRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync(str scope.Start(); try { - var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsZoneResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(str } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string dnsZoneId, Ca scope.Start(); try { - var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken); + var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsZoneResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string dnsZoneId, Ca } /// - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string dnsZoneId, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string dnsZoneId, Ca /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDnsZoneResource(Client, WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(e)), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDnsZoneCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Cancell /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkDnsZoneWorkloadNetworksRestClient.CreateListDnsZonesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkDnsZoneResource(Client, WorkloadNetworkDnsZoneData.DeserializeWorkloadNetworkDnsZoneData(e)), _workloadNetworkDnsZoneWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkDnsZoneCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string dnsZoneId, Cancella scope.Start(); try { - var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string dnsZoneId, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string dnsZoneId, Cancella /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string dnsZoneId, CancellationToken cancell scope.Start(); try { - var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken: cancellationToken); + var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string dnsZoneId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string dnsZoneId, CancellationToken cancell /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> GetI scope.Start(); try { - var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZoneAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsZoneResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetI /// /// /// - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(stri scope.Start(); try { - var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, dnsZoneId, cancellationToken: cancellationToken); + var response = _workloadNetworkDnsZoneWorkloadNetworksRestClient.GetDnsZone(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, dnsZoneId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkDnsZoneResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneResource.cs index 52a965640d252..de14d200e3749 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkDnsZoneResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkDnsZone along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkDnsZoneResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDnsZone method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkDnsZone method. /// public partial class WorkloadNetworkDnsZoneResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Can } /// - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken ca } /// - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Zone. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task> UpdateAs } /// - /// Create or update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAs /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX DNS Zone. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkDnsZoneData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayCollection.cs index 1ef079f21637b..a4538dd746187 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkGateways method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkGateways method from an instance of . /// public partial class WorkloadNetworkGatewayCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkGatewayCollection(ArmClient client, ResourceIdentifier i internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -84,7 +84,7 @@ public virtual async Task> GetAsync(str scope.Start(); try { - var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkGatewayResource(Client, response.Value), response.GetRawResponse()); @@ -97,7 +97,7 @@ public virtual async Task> GetAsync(str } /// - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// /// Request Path @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -129,7 +129,7 @@ public virtual Response Get(string gatewayId, Ca scope.Start(); try { - var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken); + var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkGatewayResource(Client, response.Value), response.GetRawResponse()); @@ -142,7 +142,7 @@ public virtual Response Get(string gatewayId, Ca } /// - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork /// /// /// Request Path @@ -154,7 +154,7 @@ public virtual Response Get(string gatewayId, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -166,13 +166,13 @@ public virtual Response Get(string gatewayId, Ca /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkGatewayResource(Client, WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(e)), _workloadNetworkGatewayWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkGatewayCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -196,8 +196,8 @@ public virtual AsyncPageable GetAllAsync(Cancell /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkGatewayWorkloadNetworksRestClient.CreateListGatewaysNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkGatewayResource(Client, WorkloadNetworkGatewayData.DeserializeWorkloadNetworkGatewayData(e)), _workloadNetworkGatewayWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkGatewayCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -234,7 +234,7 @@ public virtual async Task> ExistsAsync(string gatewayId, Cancella scope.Start(); try { - var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string gatewayId, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string gatewayId, Cancella /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -277,7 +277,7 @@ public virtual Response Exists(string gatewayId, CancellationToken cancell scope.Start(); try { - var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken: cancellationToken); + var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -300,7 +300,7 @@ public virtual Response Exists(string gatewayId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string gatewayId, CancellationToken cancell /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -320,7 +320,7 @@ public virtual async Task> GetI scope.Start(); try { - var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkGatewayWorkloadNetworksRestClient.GetGatewayAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkGatewayResource(Client, response.Value), response.GetRawResponse()); @@ -345,7 +345,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> GetI /// /// /// - /// NSX Gateway identifier. Generally the same as the Gateway's display name. + /// The ID of the NSX Gateway. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -365,7 +365,7 @@ public virtual NullableResponse GetIfExists(stri scope.Start(); try { - var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, gatewayId, cancellationToken: cancellationToken); + var response = _workloadNetworkGatewayWorkloadNetworksRestClient.GetGateway(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, gatewayId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkGatewayResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.Serialization.cs index 70300ad5b6c9c..59cec15bfd75c 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.Serialization.cs @@ -10,6 +10,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -38,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (Optional.IsDefined(DisplayName)) { writer.WritePropertyName("displayName"u8); @@ -75,6 +81,7 @@ internal static WorkloadNetworkGatewayData DeserializeWorkloadNetworkGatewayData string name = default; ResourceType type = default; SystemData systemData = default; + WorkloadNetworkProvisioningState? provisioningState = default; string displayName = default; string path = default; IDictionary serializedAdditionalRawData = default; @@ -114,6 +121,15 @@ internal static WorkloadNetworkGatewayData DeserializeWorkloadNetworkGatewayData } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new WorkloadNetworkProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("displayName"u8)) { displayName = property0.Value.GetString(); @@ -138,6 +154,7 @@ internal static WorkloadNetworkGatewayData DeserializeWorkloadNetworkGatewayData name, type, systemData, + provisioningState, displayName, path, serializedAdditionalRawData); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.cs index df04351c67cd6..0fc7f4b046f77 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Avs.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Avs @@ -60,16 +61,20 @@ public WorkloadNetworkGatewayData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// Display name of the DHCP entity. /// NSX Gateway Path. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkGatewayData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string path, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal WorkloadNetworkGatewayData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, WorkloadNetworkProvisioningState? provisioningState, string displayName, string path, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; DisplayName = displayName; Path = path; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public WorkloadNetworkProvisioningState? ProvisioningState { get; } /// Display name of the DHCP entity. public string DisplayName { get; set; } /// NSX Gateway Path. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayResource.cs index 089727171f3c0..4934766c2503a 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkGatewayResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkGateway along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkGatewayResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkGateway method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkGateway method. /// public partial class WorkloadNetworkGatewayResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Can } /// - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileCollection.cs index eed7aa59f6df6..338c3c2d043a3 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkPortMirroringProfiles method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkPortMirroringProfiles method from an instance of . /// public partial class WorkloadNetworkPortMirroringProfileCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkPortMirroringProfileCollection(ArmClient client, Resourc internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task(new WorkloadNetworkPortMirroringProfileOperationSource(Client), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateCreatePortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreatePortMirroringAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkPortMirroringProfileOperationSource(Client), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateCreatePortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. - /// NSX port mirroring. + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateO scope.Start(); try { - var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreatePortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkPortMirroringProfileOperationSource(Client), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateCreatePortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreatePortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkPortMirroringProfileOperationSource(Client), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateCreatePortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateO } /// - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateO /// /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> scope.Start(); try { - var response = await _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroringAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroringAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPortMirroringProfileResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> } /// - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> /// /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string scope.Start(); try { - var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, cancellationToken); + var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPortMirroringProfileResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string } /// - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkPortMirroringProfileResource(Client, WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(e)), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkPortMirroringProfileCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAll /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.CreateListPortMirroringNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkPortMirroringProfileResource(Client, WorkloadNetworkPortMirroringProfileData.DeserializeWorkloadNetworkPortMirroringProfileData(e)), _workloadNetworkPortMirroringProfileWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkPortMirroringProfileCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(Canc /// /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string portMirroringId, Ca scope.Start(); try { - var response = await _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroringAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroringAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string portMirroringId, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string portMirroringId, Ca /// /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string portMirroringId, CancellationToken c scope.Start(); try { - var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, cancellationToken: cancellationToken); + var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string portMirroringId, CancellationToken c /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string portMirroringId, CancellationToken c /// /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPortMirroringProfileResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task /// /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name. + /// ID of the NSX port mirroring profile. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse Get scope.Start(); try { - var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, portMirroringId, cancellationToken: cancellationToken); + var response = _workloadNetworkPortMirroringProfileWorkloadNetworksRestClient.GetPortMirroring(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, portMirroringId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPortMirroringProfileResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileResource.cs index acd6875f1bd05..328efe9cb5223 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPortMirroringProfileResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkPortMirroringProfile along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkPortMirroringProfileResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkPortMirroringProfile method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkPortMirroringProfile method. /// public partial class WorkloadNetworkPortMirroringProfileResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> } /// - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(Cancell } /// - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX port mirroring. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task - /// Create or update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX port mirroring. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkPortMirroringProfileData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPCollection.cs index b9e53ec02c1f6..b93d183dc9529 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkPublicIPs method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkPublicIPs method from an instance of . /// public partial class WorkloadNetworkPublicIPCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkPublicIPCollection(ArmClient client, ResourceIdentifier internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. - /// NSX Public IP Block. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> CreateO scope.Start(); try { - var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateO } /// - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateO /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. - /// NSX Public IP Block. + /// ID of the DNS zone. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(Wait scope.Start(); try { - var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wait } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync(st scope.Start(); try { - var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPublicIPResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(st } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(st /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string publicIPId, scope.Start(); try { - var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken); + var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPublicIPResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string publicIPId, } /// - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string publicIPId, /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string publicIPId, /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkPublicIPResource(Client, WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(e)), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkPublicIPCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Cancel /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateListPublicIPsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkPublicIPResource(Client, WorkloadNetworkPublicIPData.DeserializeWorkloadNetworkPublicIPData(e)), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkPublicIPCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string publicIPId, Cancell scope.Start(); try { - var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string publicIPId, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string publicIPId, Cancell /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string publicIPId, CancellationToken cancel scope.Start(); try { - var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken: cancellationToken); + var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string publicIPId, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string publicIPId, CancellationToken cancel /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> Get scope.Start(); try { - var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPublicIPResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> Get /// /// /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name. + /// ID of the DNS zone. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(str scope.Start(); try { - var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, publicIPId, cancellationToken: cancellationToken); + var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.GetPublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, publicIPId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkPublicIPResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPResource.cs index 06b6bba3b170e..39b6edfcefd17 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkPublicIPResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkPublicIP along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkPublicIPResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkPublicIP method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkPublicIP method. /// public partial class WorkloadNetworkPublicIPResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Ca } /// - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken c } /// - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Public IP Block. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) @@ -286,7 +286,7 @@ public virtual async Task> UpdateA try { var response = await _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIPAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -299,7 +299,7 @@ public virtual async Task> UpdateA } /// - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateA /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Public IP Block. + /// Resource create parameters. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkPublicIPData data, CancellationToken cancellationToken = default) @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUntil wa try { var response = _workloadNetworkPublicIPWorkloadNetworksRestClient.CreatePublicIP(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var operation = new AvsArmOperation(new WorkloadNetworkPublicIPOperationSource(Client), _workloadNetworkPublicIPWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkPublicIPWorkloadNetworksRestClient.CreateCreatePublicIPRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkResource.cs index 354f02e345d68..c660592ea8b93 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkResource.cs @@ -11,7 +11,6 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager.Avs.Models; namespace Azure.ResourceManager.Avs { @@ -27,10 +26,9 @@ public partial class WorkloadNetworkResource : ArmResource /// The subscriptionId. /// The resourceGroupName. /// The privateCloudName. - /// The workloadNetworkName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName, WorkloadNetworkName workloadNetworkName) + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateCloudName) { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}"; + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default"; return new ResourceIdentifier(resourceId); } @@ -89,12 +87,633 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } + /// Gets a collection of WorkloadNetworkDhcpResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkDhcpResources and their operations over a WorkloadNetworkDhcpResource. + public virtual WorkloadNetworkDhcpCollection GetWorkloadNetworkDhcps() + { + return GetCachedClient(client => new WorkloadNetworkDhcpCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkDhcp + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDhcp + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the DHCP configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkDhcpAsync(string dhcpId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkDhcps().GetAsync(dhcpId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkDhcp + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDhcp + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the DHCP configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkDhcp(string dhcpId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkDhcps().Get(dhcpId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkDnsServiceResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkDnsServiceResources and their operations over a WorkloadNetworkDnsServiceResource. + public virtual WorkloadNetworkDnsServiceCollection GetWorkloadNetworkDnsServices() + { + return GetCachedClient(client => new WorkloadNetworkDnsServiceCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkDnsService + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsService + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS service. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkDnsServiceAsync(string dnsServiceId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkDnsServices().GetAsync(dnsServiceId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkDnsService + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsService + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS service. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkDnsService(string dnsServiceId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkDnsServices().Get(dnsServiceId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkDnsZoneResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkDnsZoneResources and their operations over a WorkloadNetworkDnsZoneResource. + public virtual WorkloadNetworkDnsZoneCollection GetWorkloadNetworkDnsZones() + { + return GetCachedClient(client => new WorkloadNetworkDnsZoneCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkDnsZone + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsZone + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS zone. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkDnsZoneAsync(string dnsZoneId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkDnsZones().GetAsync(dnsZoneId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkDnsZone + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetDnsZone + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS zone. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkDnsZone(string dnsZoneId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkDnsZones().Get(dnsZoneId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkGatewayResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkGatewayResources and their operations over a WorkloadNetworkGatewayResource. + public virtual WorkloadNetworkGatewayCollection GetWorkloadNetworkGateways() + { + return GetCachedClient(client => new WorkloadNetworkGatewayCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetGateway + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the NSX Gateway. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkGatewayAsync(string gatewayId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkGateways().GetAsync(gatewayId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkGateway + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetGateway + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the NSX Gateway. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkGateway(string gatewayId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkGateways().Get(gatewayId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkPortMirroringProfileResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkPortMirroringProfileResources and their operations over a WorkloadNetworkPortMirroringProfileResource. + public virtual WorkloadNetworkPortMirroringProfileCollection GetWorkloadNetworkPortMirroringProfiles() + { + return GetCachedClient(client => new WorkloadNetworkPortMirroringProfileCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkPortMirroring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPortMirroring + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the NSX port mirroring profile. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkPortMirroringProfileAsync(string portMirroringId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkPortMirroringProfiles().GetAsync(portMirroringId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkPortMirroring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPortMirroring + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the NSX port mirroring profile. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkPortMirroringProfile(string portMirroringId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkPortMirroringProfiles().Get(portMirroringId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkPublicIPResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkPublicIPResources and their operations over a WorkloadNetworkPublicIPResource. + public virtual WorkloadNetworkPublicIPCollection GetWorkloadNetworkPublicIPs() + { + return GetCachedClient(client => new WorkloadNetworkPublicIPCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkPublicIP + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPublicIP + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS zone. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkPublicIPAsync(string publicIPId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkPublicIPs().GetAsync(publicIPId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkPublicIP + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetPublicIP + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the DNS zone. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkPublicIP(string publicIPId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkPublicIPs().Get(publicIPId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkSegmentResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkSegmentResources and their operations over a WorkloadNetworkSegmentResource. + public virtual WorkloadNetworkSegmentCollection GetWorkloadNetworkSegments() + { + return GetCachedClient(client => new WorkloadNetworkSegmentCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkSegment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetSegment + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the NSX Segment. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkSegmentAsync(string segmentId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkSegments().GetAsync(segmentId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkSegment + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetSegment + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the NSX Segment. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkSegment(string segmentId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkSegments().Get(segmentId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkVirtualMachineResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkVirtualMachineResources and their operations over a WorkloadNetworkVirtualMachineResource. + public virtual WorkloadNetworkVirtualMachineCollection GetWorkloadNetworkVirtualMachines() + { + return GetCachedClient(client => new WorkloadNetworkVirtualMachineCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkVirtualMachine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVirtualMachine + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the virtual machine. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkVirtualMachineAsync(string virtualMachineId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkVirtualMachines().GetAsync(virtualMachineId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkVirtualMachine + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVirtualMachine + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the virtual machine. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkVirtualMachine(string virtualMachineId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkVirtualMachines().Get(virtualMachineId, cancellationToken); + } + + /// Gets a collection of WorkloadNetworkVmGroupResources in the WorkloadNetwork. + /// An object representing collection of WorkloadNetworkVmGroupResources and their operations over a WorkloadNetworkVmGroupResource. + public virtual WorkloadNetworkVmGroupCollection GetWorkloadNetworkVmGroups() + { + return GetCachedClient(client => new WorkloadNetworkVmGroupCollection(client, Id)); + } + + /// + /// Get a WorkloadNetworkVMGroup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVmGroup + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the VM group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetWorkloadNetworkVmGroupAsync(string vmGroupId, CancellationToken cancellationToken = default) + { + return await GetWorkloadNetworkVmGroups().GetAsync(vmGroupId, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a WorkloadNetworkVMGroup + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId} + /// + /// + /// Operation Id + /// WorkloadNetworks_GetVmGroup + /// + /// + /// Default Api Version + /// 2023-09-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// ID of the VM group. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetWorkloadNetworkVmGroup(string vmGroupId, CancellationToken cancellationToken = default) + { + return GetWorkloadNetworkVmGroups().Get(vmGroupId, cancellationToken); + } + /// - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default /// /// /// Operation Id @@ -102,7 +721,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +736,7 @@ public virtual async Task> GetAsync(Cancellati scope.Start(); try { - var response = await _workloadNetworkRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkResource(Client, response.Value), response.GetRawResponse()); @@ -130,11 +749,11 @@ public virtual async Task> GetAsync(Cancellati } /// - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default /// /// /// Operation Id @@ -142,7 +761,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -157,7 +776,7 @@ public virtual Response Get(CancellationToken cancellat scope.Start(); try { - var response = _workloadNetworkRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _workloadNetworkRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentCollection.cs index 652f8f6f7d8b3..709693035537e 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkSegments method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkSegments method from an instance of . /// public partial class WorkloadNetworkSegmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkSegmentCollection(ArmClient client, ResourceIdentifier i internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the NSX Segment. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> CreateOr scope.Start(); try { - var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.CreateSegmentsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkSegmentOperationSource(Client), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkSegmentWorkloadNetworksRestClient.CreateCreateSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.CreateSegmentsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkSegmentOperationSource(Client), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkSegmentWorkloadNetworksRestClient.CreateCreateSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOr } /// - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOr /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Segment identifier. Generally the same as the Segment's display name. - /// NSX Segment. + /// The ID of the NSX Segment. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(WaitU scope.Start(); try { - var response = _workloadNetworkSegmentWorkloadNetworksRestClient.CreateSegments(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkSegmentOperationSource(Client), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkSegmentWorkloadNetworksRestClient.CreateCreateSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkSegmentWorkloadNetworksRestClient.CreateSegments(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkSegmentOperationSource(Client), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkSegmentWorkloadNetworksRestClient.CreateCreateSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU } /// - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync(str scope.Start(); try { - var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkSegmentResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(str } /// - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string segmentId, Ca scope.Start(); try { - var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken); + var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkSegmentResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string segmentId, Ca } /// - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string segmentId, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string segmentId, Ca /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkSegmentResource(Client, WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(e)), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkSegmentCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Cancell /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkSegmentWorkloadNetworksRestClient.CreateListSegmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkSegmentResource(Client, WorkloadNetworkSegmentData.DeserializeWorkloadNetworkSegmentData(e)), _workloadNetworkSegmentWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkSegmentCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string segmentId, Cancella scope.Start(); try { - var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string segmentId, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string segmentId, Cancella /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string segmentId, CancellationToken cancell scope.Start(); try { - var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken: cancellationToken); + var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string segmentId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string segmentId, CancellationToken cancell /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> GetI scope.Start(); try { - var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegmentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkSegmentResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetI /// /// /// - /// NSX Segment identifier. Generally the same as the Segment's display name. + /// The ID of the NSX Segment. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(stri scope.Start(); try { - var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, segmentId, cancellationToken: cancellationToken); + var response = _workloadNetworkSegmentWorkloadNetworksRestClient.GetSegment(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, segmentId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkSegmentResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentResource.cs index 0c9106915a208..3c08f70048408 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkSegmentResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkSegment along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkSegmentResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkSegment method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkSegment method. /// public partial class WorkloadNetworkSegmentResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Can } /// - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken ca } /// - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Segment. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task> UpdateAs } /// - /// Create or update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAs /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX Segment. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkSegmentData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineCollection.cs index ae5e567a2deaf..9f56d645ced87 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkVirtualMachines method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkVirtualMachines method from an instance of . /// public partial class WorkloadNetworkVirtualMachineCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkVirtualMachineCollection(ArmClient client, ResourceIdent internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -84,7 +84,7 @@ public virtual async Task> GetAs scope.Start(); try { - var response = await _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachineAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualMachineId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachineAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, virtualMachineId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVirtualMachineResource(Client, response.Value), response.GetRawResponse()); @@ -97,7 +97,7 @@ public virtual async Task> GetAs } /// - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// /// Request Path @@ -109,7 +109,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> GetAs /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -129,7 +129,7 @@ public virtual Response Get(string virtua scope.Start(); try { - var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualMachineId, cancellationToken); + var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, virtualMachineId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVirtualMachineResource(Client, response.Value), response.GetRawResponse()); @@ -142,7 +142,7 @@ public virtual Response Get(string virtua } /// - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork /// /// /// Request Path @@ -154,7 +154,7 @@ public virtual Response Get(string virtua /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -166,13 +166,13 @@ public virtual Response Get(string virtua /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkVirtualMachineResource(Client, WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(e)), _workloadNetworkVirtualMachineWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkVirtualMachineCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -196,8 +196,8 @@ public virtual AsyncPageable GetAllAsync( /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVirtualMachineWorkloadNetworksRestClient.CreateListVirtualMachinesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkVirtualMachineResource(Client, WorkloadNetworkVirtualMachineData.DeserializeWorkloadNetworkVirtualMachineData(e)), _workloadNetworkVirtualMachineWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkVirtualMachineCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -234,7 +234,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C scope.Start(); try { - var response = await _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachineAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualMachineId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachineAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, virtualMachineId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual async Task> ExistsAsync(string virtualMachineId, C /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -277,7 +277,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken scope.Start(); try { - var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualMachineId, cancellationToken: cancellationToken); + var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, virtualMachineId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -300,7 +300,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Response Exists(string virtualMachineId, CancellationToken /// /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -320,7 +320,7 @@ public virtual async Task(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVirtualMachineResource(Client, response.Value), response.GetRawResponse()); @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task /// /// - /// Virtual Machine identifier. + /// ID of the virtual machine. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -365,7 +365,7 @@ public virtual NullableResponse GetIfExis scope.Start(); try { - var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, virtualMachineId, cancellationToken: cancellationToken); + var response = _workloadNetworkVirtualMachineWorkloadNetworksRestClient.GetVirtualMachine(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, virtualMachineId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVirtualMachineResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.Serialization.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.Serialization.cs index e38b007c5afda..f2eff888687f1 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.Serialization.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.Serialization.cs @@ -39,6 +39,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (Optional.IsDefined(DisplayName)) { writer.WritePropertyName("displayName"u8); @@ -76,6 +81,7 @@ internal static WorkloadNetworkVirtualMachineData DeserializeWorkloadNetworkVirt string name = default; ResourceType type = default; SystemData systemData = default; + WorkloadNetworkProvisioningState? provisioningState = default; string displayName = default; WorkloadNetworkVmType? vmType = default; IDictionary serializedAdditionalRawData = default; @@ -115,6 +121,15 @@ internal static WorkloadNetworkVirtualMachineData DeserializeWorkloadNetworkVirt } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new WorkloadNetworkProvisioningState(property0.Value.GetString()); + continue; + } if (property0.NameEquals("displayName"u8)) { displayName = property0.Value.GetString(); @@ -143,6 +158,7 @@ internal static WorkloadNetworkVirtualMachineData DeserializeWorkloadNetworkVirt name, type, systemData, + provisioningState, displayName, vmType, serializedAdditionalRawData); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.cs index f3336e9b2ccff..a5d4048fab6cd 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineData.cs @@ -61,16 +61,20 @@ public WorkloadNetworkVirtualMachineData() /// The name. /// The resourceType. /// The systemData. + /// The provisioning state of the resource. /// Display name of the VM. /// Virtual machine type. /// Keeps track of any properties unknown to the library. - internal WorkloadNetworkVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, WorkloadNetworkVmType? vmType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal WorkloadNetworkVirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, WorkloadNetworkProvisioningState? provisioningState, string displayName, WorkloadNetworkVmType? vmType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + ProvisioningState = provisioningState; DisplayName = displayName; VmType = vmType; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The provisioning state of the resource. + public WorkloadNetworkProvisioningState? ProvisioningState { get; } /// Display name of the VM. public string DisplayName { get; set; } /// Virtual machine type. diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineResource.cs index e11d9495f7d50..7415445af7496 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVirtualMachineResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkVirtualMachine along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkVirtualMachineResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkVirtualMachine method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkVirtualMachine method. /// public partial class WorkloadNetworkVirtualMachineResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAs } /// - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupCollection.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupCollection.cs index 0a752d93fba36..314428342cb95 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupCollection.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupCollection.cs @@ -19,8 +19,8 @@ namespace Azure.ResourceManager.Avs { /// /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWorkloadNetworkVmGroups method from an instance of . + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetWorkloadNetworkVmGroups method from an instance of . /// public partial class WorkloadNetworkVmGroupCollection : ArmCollection, IEnumerable, IAsyncEnumerable { @@ -47,12 +47,12 @@ internal WorkloadNetworkVmGroupCollection(ArmClient client, ResourceIdentifier i internal static void ValidateResourceId(ResourceIdentifier id) { - if (id.ResourceType != AvsPrivateCloudResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AvsPrivateCloudResource.ResourceType), nameof(id)); + if (id.ResourceType != WorkloadNetworkResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadNetworkResource.ResourceType), nameof(id)); } /// - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -73,8 +73,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the VM group. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -87,8 +87,8 @@ public virtual async Task> CreateOr scope.Start(); try { - var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, data, cancellationToken).ConfigureAwait(false); - var operation = new AvsArmOperation(new WorkloadNetworkVmGroupOperationSource(Client), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateCreateVmGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, data).Request, response, OperationFinalStateVia.Location); + var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, data, cancellationToken).ConfigureAwait(false); + var operation = new AvsArmOperation(new WorkloadNetworkVmGroupOperationSource(Client), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateCreateVmGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -101,7 +101,7 @@ public virtual async Task> CreateOr } /// - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -122,8 +122,8 @@ public virtual async Task> CreateOr /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX VM Group identifier. Generally the same as the VM Group's display name. - /// NSX VM Group. + /// ID of the VM group. + /// Resource create parameters. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -136,8 +136,8 @@ public virtual ArmOperation CreateOrUpdate(WaitU scope.Start(); try { - var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, data, cancellationToken); - var operation = new AvsArmOperation(new WorkloadNetworkVmGroupOperationSource(Client), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateCreateVmGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, data).Request, response, OperationFinalStateVia.Location); + var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, data, cancellationToken); + var operation = new AvsArmOperation(new WorkloadNetworkVmGroupOperationSource(Client), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateCreateVmGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU } /// - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -182,7 +182,7 @@ public virtual async Task> GetAsync(str scope.Start(); try { - var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVmGroupResource(Client, response.Value), response.GetRawResponse()); @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(str } /// - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -227,7 +227,7 @@ public virtual Response Get(string vmGroupId, Ca scope.Start(); try { - var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken); + var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVmGroupResource(Client, response.Value), response.GetRawResponse()); @@ -240,7 +240,7 @@ public virtual Response Get(string vmGroupId, Ca } /// - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string vmGroupId, Ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -264,13 +264,13 @@ public virtual Response Get(string vmGroupId, Ca /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkVmGroupResource(Client, WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(e)), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkVmGroupCollection.GetAll", "value", "nextLink", cancellationToken); } /// - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -294,8 +294,8 @@ public virtual AsyncPageable GetAllAsync(Cancell /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage FirstPageRequest(int? pageSizeHint) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workloadNetworkVmGroupWorkloadNetworksRestClient.CreateListVmGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new WorkloadNetworkVmGroupResource(Client, WorkloadNetworkVmGroupData.DeserializeWorkloadNetworkVmGroupData(e)), _workloadNetworkVmGroupWorkloadNetworksClientDiagnostics, Pipeline, "WorkloadNetworkVmGroupCollection.GetAll", "value", "nextLink", cancellationToken); } @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -332,7 +332,7 @@ public virtual async Task> ExistsAsync(string vmGroupId, Cancella scope.Start(); try { - var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string vmGroupId, Cancella /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string vmGroupId, Cancella /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -375,7 +375,7 @@ public virtual Response Exists(string vmGroupId, CancellationToken cancell scope.Start(); try { - var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken: cancellationToken); + var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -398,7 +398,7 @@ public virtual Response Exists(string vmGroupId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string vmGroupId, CancellationToken cancell /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -418,7 +418,7 @@ public virtual async Task> GetI scope.Start(); try { - var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroupAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVmGroupResource(Client, response.Value), response.GetRawResponse()); @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetI /// /// /// - /// NSX VM Group identifier. Generally the same as the VM Group's display name. + /// ID of the VM group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -463,7 +463,7 @@ public virtual NullableResponse GetIfExists(stri scope.Start(); try { - var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, vmGroupId, cancellationToken: cancellationToken); + var response = _workloadNetworkVmGroupWorkloadNetworksRestClient.GetVmGroup(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, vmGroupId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new WorkloadNetworkVmGroupResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupResource.cs b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupResource.cs index 045d1b227cef8..33a3c394eae20 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupResource.cs +++ b/sdk/avs/Azure.ResourceManager.Avs/src/Generated/WorkloadNetworkVmGroupResource.cs @@ -18,7 +18,7 @@ namespace Azure.ResourceManager.Avs /// A Class representing a WorkloadNetworkVmGroup along with the instance operations that can be performed on it. /// If you have a you can construct a /// from an instance of using the GetWorkloadNetworkVmGroupResource method. - /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkVmGroup method. + /// Otherwise you can get one from its parent resource using the GetWorkloadNetworkVmGroup method. /// public partial class WorkloadNetworkVmGroupResource : ArmResource { @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task> GetAsync(Can } /// - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(CancellationToken ca } /// - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Create or update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX VM Group. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) @@ -299,7 +299,7 @@ public virtual async Task> UpdateAs } /// - /// Create or update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-03-01 + /// 2023-09-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAs /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// NSX VM Group. + /// The resource properties to be updated. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, WorkloadNetworkVmGroupData data, CancellationToken cancellationToken = default) diff --git a/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md b/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md index d8f4cb3cec2c1..01f4017e3eb2d 100644 --- a/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md +++ b/sdk/avs/Azure.ResourceManager.Avs/src/autorest.md @@ -8,8 +8,8 @@ azure-arm: true csharp: true library-name: Avs namespace: Azure.ResourceManager.Avs -require: https://github.com/Azure/azure-rest-api-specs/blob/a032c2413b49d297196a0c64393e862433fccbb1/specification/vmware/resource-manager/readme.md -#tag: package-2023-03-01 +require: https://github.com/Azure/azure-rest-api-specs/blob/e19b5771846718774c0452800b9a42c251319f48/specification/vmware/resource-manager/readme.md +#tag: package-2023-09-01 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -117,6 +117,9 @@ rename-mapping: NsxPublicIPQuotaRaisedEnum: NsxPublicIPQuotaRaisedStatus AffinityStrength: VmHostPlacementPolicyAffinityStrength ClusterZone: AvsClusterZone + CloudLinkProvisioningState: AvsCloudLinkProvisioningState + DnsZoneType : AvsDnsZoneType + VirtualMachineProvisioningState : AvsVirtualMachineProvisioningState prepend-rp-prefix: - CloudLink