From 8f7c2c6884c9198dad0291255daff6f447345e04 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Aug 2021 17:27:20 +0000 Subject: [PATCH] CodeGen from PR 15779 in Azure/azure-rest-api-specs Merge 3dcc9fcc6e17f291fd211e59b2093a25b3c1c788 into 44017a20d8c022217b31e15643595fc7aff87926 --- .../azure-resourcemanager-avs/CHANGELOG.md | 3 +- sdk/avs/azure-resourcemanager-avs/README.md | 3 +- .../azure/resourcemanager/avs/AvsManager.java | 2 +- .../avs/fluent/models/QuotaInner.java | 2 + .../fluent/models/ScriptExecutionInner.java | 2 + .../avs/models/PrivateCloudUpdate.java | 2 + .../avs/AddonsCreateOrUpdateSamples.java | 54 ------------------- .../avs/AddonsDeleteSamples.java | 19 ------- .../resourcemanager/avs/AddonsGetSamples.java | 37 ------------- .../avs/AddonsListSamples.java | 19 ------- .../AuthorizationsCreateOrUpdateSamples.java | 17 ------ .../avs/AuthorizationsDeleteSamples.java | 19 ------- .../avs/AuthorizationsGetSamples.java | 19 ------- .../avs/AuthorizationsListSamples.java | 19 ------- .../avs/CloudLinksCreateOrUpdateSamples.java | 23 -------- .../avs/CloudLinksDeleteSamples.java | 19 ------- .../avs/CloudLinksGetSamples.java | 19 ------- .../avs/CloudLinksListSamples.java | 19 ------- .../avs/ClustersCreateOrUpdateSamples.java | 25 --------- .../avs/ClustersDeleteSamples.java | 19 ------- .../avs/ClustersGetSamples.java | 19 ------- .../avs/ClustersListSamples.java | 19 ------- .../avs/ClustersUpdateSamples.java | 22 -------- .../avs/DatastoresCreateOrUpdateSamples.java | 27 ---------- .../avs/DatastoresDeleteSamples.java | 19 ------- .../avs/DatastoresGetSamples.java | 19 ------- .../avs/DatastoresListSamples.java | 19 ------- ...ReachConnectionsCreateOrUpdateSamples.java | 24 --------- .../GlobalReachConnectionsDeleteSamples.java | 19 ------- .../avs/GlobalReachConnectionsGetSamples.java | 19 ------- .../GlobalReachConnectionsListSamples.java | 19 ------- ...xEnterpriseSitesCreateOrUpdateSamples.java | 17 ------ .../avs/HcxEnterpriseSitesDeleteSamples.java | 19 ------- .../avs/HcxEnterpriseSitesGetSamples.java | 19 ------- .../avs/HcxEnterpriseSitesListSamples.java | 19 ------- ...ocationsCheckQuotaAvailabilitySamples.java | 19 ------- ...ocationsCheckTrialAvailabilitySamples.java | 19 ------- .../avs/OperationsListSamples.java | 19 ------- .../PrivateCloudsCreateOrUpdateSamples.java | 42 --------------- .../avs/PrivateCloudsDeleteSamples.java | 19 ------- ...rivateCloudsGetByResourceGroupSamples.java | 19 ------- ...vateCloudsListAdminCredentialsSamples.java | 19 ------- ...ivateCloudsListByResourceGroupSamples.java | 19 ------- .../avs/PrivateCloudsListSamples.java | 19 ------- ...rivateCloudsRotateNsxtPasswordSamples.java | 19 ------- ...ateCloudsRotateVcenterPasswordSamples.java | 19 ------- .../avs/PrivateCloudsUpdateSamples.java | 23 -------- .../avs/ScriptCmdletsGetSamples.java | 22 -------- .../avs/ScriptCmdletsListSamples.java | 19 ------- ...ScriptExecutionsCreateOrUpdateSamples.java | 44 --------------- .../avs/ScriptExecutionsDeleteSamples.java | 19 ------- ...riptExecutionsGetExecutionLogsSamples.java | 33 ------------ .../avs/ScriptExecutionsGetSamples.java | 19 ------- .../avs/ScriptExecutionsListSamples.java | 19 ------- .../avs/ScriptPackagesGetSamples.java | 21 -------- .../avs/ScriptPackagesListSamples.java | 19 ------- .../WorkloadNetworksCreateDhcpSamples.java | 29 ---------- ...rkloadNetworksCreateDnsServiceSamples.java | 30 ----------- .../WorkloadNetworksCreateDnsZoneSamples.java | 28 ---------- ...oadNetworksCreatePortMirroringSamples.java | 28 ---------- ...WorkloadNetworksCreatePublicIpSamples.java | 23 -------- ...WorkloadNetworksCreateSegmentsSamples.java | 31 ----------- .../WorkloadNetworksCreateVMGroupSamples.java | 26 --------- .../WorkloadNetworksDeleteDhcpSamples.java | 19 ------- ...rkloadNetworksDeleteDnsServiceSamples.java | 19 ------- .../WorkloadNetworksDeleteDnsZoneSamples.java | 19 ------- ...oadNetworksDeletePortMirroringSamples.java | 19 ------- ...WorkloadNetworksDeletePublicIpSamples.java | 19 ------- .../WorkloadNetworksDeleteSegmentSamples.java | 19 ------- .../WorkloadNetworksDeleteVMGroupSamples.java | 19 ------- .../avs/WorkloadNetworksGetDhcpSamples.java | 19 ------- .../WorkloadNetworksGetDnsServiceSamples.java | 19 ------- .../WorkloadNetworksGetDnsZoneSamples.java | 19 ------- .../WorkloadNetworksGetGatewaySamples.java | 19 ------- ...rkloadNetworksGetPortMirroringSamples.java | 19 ------- .../WorkloadNetworksGetPublicIpSamples.java | 19 ------- .../WorkloadNetworksGetSegmentSamples.java | 19 ------- .../WorkloadNetworksGetVMGroupSamples.java | 19 ------- ...kloadNetworksGetVirtualMachineSamples.java | 19 ------- .../avs/WorkloadNetworksListDhcpSamples.java | 19 ------- ...orkloadNetworksListDnsServicesSamples.java | 19 ------- .../WorkloadNetworksListDnsZonesSamples.java | 19 ------- .../WorkloadNetworksListGatewaysSamples.java | 19 ------- ...kloadNetworksListPortMirroringSamples.java | 19 ------- .../WorkloadNetworksListPublicIPsSamples.java | 19 ------- .../WorkloadNetworksListSegmentsSamples.java | 19 ------- .../WorkloadNetworksListVMGroupsSamples.java | 19 ------- ...oadNetworksListVirtualMachinesSamples.java | 19 ------- .../WorkloadNetworksUpdateDhcpSamples.java | 27 ---------- ...rkloadNetworksUpdateDnsServiceSamples.java | 35 ------------ .../WorkloadNetworksUpdateDnsZoneSamples.java | 33 ------------ ...oadNetworksUpdatePortMirroringSamples.java | 32 ----------- ...WorkloadNetworksUpdateSegmentsSamples.java | 35 ------------ .../WorkloadNetworksUpdateVMGroupSamples.java | 26 --------- 94 files changed, 10 insertions(+), 1958 deletions(-) delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckQuotaAvailabilitySamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckTrialAvailabilitySamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/OperationsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsGetByResourceGroupSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListAdminCredentialsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListByResourceGroupSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateNsxtPasswordSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateVcenterPasswordSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsCreateOrUpdateSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsDeleteSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetExecutionLogsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesGetSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesListSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDhcpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsServiceSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsZoneSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePortMirroringSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePublicIpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateSegmentsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateVMGroupSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDhcpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsServiceSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsZoneSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePortMirroringSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePublicIpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteSegmentSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteVMGroupSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDhcpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsServiceSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsZoneSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetGatewaySamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPortMirroringSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPublicIpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetSegmentSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVMGroupSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVirtualMachineSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDhcpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsServicesSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsZonesSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListGatewaysSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPortMirroringSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPublicIPsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListSegmentsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVMGroupsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVirtualMachinesSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDhcpSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsServiceSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsZoneSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdatePortMirroringSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateSegmentsSamples.java delete mode 100644 sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateVMGroupSamples.java diff --git a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md index a4597a1c838e3..e028bbb438ce0 100644 --- a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md +++ b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2021-08-24) +- Azure Resource Manager Avs client library for Java. This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. Package tag package-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.2 (2021-07-15) diff --git a/sdk/avs/azure-resourcemanager-avs/README.md b/sdk/avs/azure-resourcemanager-avs/README.md index d7b0ecd7d0385..10797dd9a1b07 100644 --- a/sdk/avs/azure-resourcemanager-avs/README.md +++ b/sdk/avs/azure-resourcemanager-avs/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-avs - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on ## Examples -[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/avs/azure-resourcemanager-avs/SAMPLE.md) ## Troubleshooting diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java index 654a82b58d4d0..d120122eda13d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java @@ -222,7 +222,7 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile) .append("-") .append("com.azure.resourcemanager.avs") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java index 51892f2df3861..005c9374d9f3e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.avs.models.QuotaEnabled; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -20,6 +21,7 @@ public final class QuotaInner { * Remaining hosts quota by sku type */ @JsonProperty(value = "hostsRemaining", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map hostsRemaining; /* diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java index 29aab961d7145..24578b797cb11 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; import com.azure.resourcemanager.avs.models.ScriptExecutionProvisioningState; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -96,6 +97,7 @@ public class ScriptExecutionInner extends ProxyResource { * User-defined dictionary. */ @JsonProperty(value = "properties.namedOutputs") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map namedOutputs; /* diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudUpdate.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudUpdate.java index 16dc700121b54..82e5ddc690832 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudUpdate.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudUpdate.java @@ -8,6 +8,7 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -22,6 +23,7 @@ public class PrivateCloudUpdate { * Resource tags */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsCreateOrUpdateSamples.java deleted file mode 100644 index 1a013f9667f46..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsCreateOrUpdateSamples.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.AddonHcxProperties; -import com.azure.resourcemanager.avs.models.AddonSrmProperties; -import com.azure.resourcemanager.avs.models.AddonVrProperties; - -/** Samples for Addons CreateOrUpdate. */ -public final class AddonsCreateOrUpdateSamples { - /** - * Sample code: Addons_CreateOrUpdate_HCX. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsCreateOrUpdateHCX(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .addons() - .define("hcx") - .withExistingPrivateCloud("group1", "cloud1") - .withProperties(new AddonHcxProperties().withOffer("VMware MaaS Cloud Provider (Enterprise)")) - .create(); - } - - /** - * Sample code: Addons_CreateOrUpdate_SRM. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsCreateOrUpdateSRM(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .addons() - .define("srm") - .withExistingPrivateCloud("group1", "cloud1") - .withProperties(new AddonSrmProperties().withLicenseKey("41915178-A8FF-4A4D-B683-6D735AF5E3F5")) - .create(); - } - - /** - * Sample code: Addons_CreateOrUpdate_VR. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsCreateOrUpdateVR(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .addons() - .define("vr") - .withExistingPrivateCloud("group1", "cloud1") - .withProperties(new AddonVrProperties().withVrsCount(1)) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsDeleteSamples.java deleted file mode 100644 index 380ffd6fecbd0..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Addons Delete. */ -public final class AddonsDeleteSamples { - /** - * Sample code: Addons_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.addons().delete("group1", "cloud1", "srm", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsGetSamples.java deleted file mode 100644 index e1ce5b3d4b47a..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsGetSamples.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Addons Get. */ -public final class AddonsGetSamples { - /** - * Sample code: Addons_Get_SRM. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsGetSRM(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.addons().getWithResponse("group1", "cloud1", "srm", Context.NONE); - } - - /** - * Sample code: Addons_Get_VR. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsGetVR(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.addons().getWithResponse("group1", "cloud1", "vr", Context.NONE); - } - - /** - * Sample code: Addons_Get_HCX. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsGetHCX(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.addons().getWithResponse("group1", "cloud1", "hcx", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsListSamples.java deleted file mode 100644 index 9cc3b2e0b1b42..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AddonsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Addons List. */ -public final class AddonsListSamples { - /** - * Sample code: Addons_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void addonsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.addons().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsCreateOrUpdateSamples.java deleted file mode 100644 index b26985d7b9c67..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsCreateOrUpdateSamples.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -/** Samples for Authorizations CreateOrUpdate. */ -public final class AuthorizationsCreateOrUpdateSamples { - /** - * Sample code: Authorizations_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void authorizationsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.authorizations().define("authorization1").withExistingPrivateCloud("group1", "cloud1").create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsDeleteSamples.java deleted file mode 100644 index e870c610fc3d4..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Authorizations Delete. */ -public final class AuthorizationsDeleteSamples { - /** - * Sample code: Authorizations_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void authorizationsDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.authorizations().delete("group1", "cloud1", "authorization1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsGetSamples.java deleted file mode 100644 index f3ff0bcc45158..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Authorizations Get. */ -public final class AuthorizationsGetSamples { - /** - * Sample code: Authorizations_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void authorizationsGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.authorizations().getWithResponse("group1", "cloud1", "authorization1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsListSamples.java deleted file mode 100644 index 8530a8f3027b2..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/AuthorizationsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Authorizations List. */ -public final class AuthorizationsListSamples { - /** - * Sample code: Authorizations_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void authorizationsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.authorizations().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksCreateOrUpdateSamples.java deleted file mode 100644 index 94549f0e8f7c1..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksCreateOrUpdateSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -/** Samples for CloudLinks CreateOrUpdate. */ -public final class CloudLinksCreateOrUpdateSamples { - /** - * Sample code: CloudLinks_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void cloudLinksCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .cloudLinks() - .define("cloudLink1") - .withExistingPrivateCloud("group1", "cloud1") - .withLinkedCloud( - "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2") - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksDeleteSamples.java deleted file mode 100644 index 9aee3cb1f008a..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for CloudLinks Delete. */ -public final class CloudLinksDeleteSamples { - /** - * Sample code: CloudLinks_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void cloudLinksDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.cloudLinks().delete("group1", "cloud1", "cloudLink1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksGetSamples.java deleted file mode 100644 index 95ae86f052a53..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for CloudLinks Get. */ -public final class CloudLinksGetSamples { - /** - * Sample code: CloudLinks_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void cloudLinksGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.cloudLinks().getWithResponse("group1", "cloud1", "cloudLink1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksListSamples.java deleted file mode 100644 index c8ad2eff916d0..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/CloudLinksListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for CloudLinks List. */ -public final class CloudLinksListSamples { - /** - * Sample code: CloudLinks_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void cloudLinksList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.cloudLinks().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersCreateOrUpdateSamples.java deleted file mode 100644 index bf357732f19c7..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersCreateOrUpdateSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.Sku; - -/** Samples for Clusters CreateOrUpdate. */ -public final class ClustersCreateOrUpdateSamples { - /** - * Sample code: Clusters_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void clustersCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .clusters() - .define("cluster1") - .withExistingPrivateCloud("group1", "cloud1") - .withSku(new Sku().withName("AV20")) - .withClusterSize(3) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersDeleteSamples.java deleted file mode 100644 index 0fb7c12d720fb..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Clusters Delete. */ -public final class ClustersDeleteSamples { - /** - * Sample code: Clusters_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void clustersDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.clusters().delete("group1", "cloud1", "cluster1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersGetSamples.java deleted file mode 100644 index 14201def9f65d..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Clusters Get. */ -public final class ClustersGetSamples { - /** - * Sample code: Clusters_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void clustersGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.clusters().getWithResponse("group1", "cloud1", "cluster1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersListSamples.java deleted file mode 100644 index 592883d97338e..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Clusters List. */ -public final class ClustersListSamples { - /** - * Sample code: Clusters_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void clustersList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.clusters().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersUpdateSamples.java deleted file mode 100644 index 7f3e96b251407..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ClustersUpdateSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.Cluster; - -/** Samples for Clusters Update. */ -public final class ClustersUpdateSamples { - /** - * Sample code: Clusters_Update. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void clustersUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - Cluster resource = - avsManager.clusters().getWithResponse("group1", "cloud1", "cluster1", Context.NONE).getValue(); - resource.update().withClusterSize(4).apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresCreateOrUpdateSamples.java deleted file mode 100644 index 1e24ea3f534ee..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresCreateOrUpdateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.NetAppVolume; - -/** Samples for Datastores CreateOrUpdate. */ -public final class DatastoresCreateOrUpdateSamples { - /** - * Sample code: Datastores_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void datastoresCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .datastores() - .define("datastore1") - .withExistingCluster("group1", "cloud1", "cluster1") - .withNetAppVolume( - new NetAppVolume() - .withId( - "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1")) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresDeleteSamples.java deleted file mode 100644 index 6c944d0fb1671..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Datastores Delete. */ -public final class DatastoresDeleteSamples { - /** - * Sample code: Datastores_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void datastoresDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.datastores().delete("group1", "cloud1", "cluster1", "datastore1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresGetSamples.java deleted file mode 100644 index 03148220c57b5..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Datastores Get. */ -public final class DatastoresGetSamples { - /** - * Sample code: Datastores_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void datastoresGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.datastores().getWithResponse("group1", "cloud1", "cluster1", "datastore1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresListSamples.java deleted file mode 100644 index d3befad56a42c..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/DatastoresListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Datastores List. */ -public final class DatastoresListSamples { - /** - * Sample code: Datastores_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void datastoresList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.datastores().list("group1", "cloud1", "cluster1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsCreateOrUpdateSamples.java deleted file mode 100644 index 10c30a88a3fcf..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsCreateOrUpdateSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -/** Samples for GlobalReachConnections CreateOrUpdate. */ -public final class GlobalReachConnectionsCreateOrUpdateSamples { - /** - * Sample code: GlobalReachConnections_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void globalReachConnectionsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .globalReachConnections() - .define("connection1") - .withExistingPrivateCloud("group1", "cloud1") - .withAuthorizationKey("01010101-0101-0101-0101-010101010101") - .withPeerExpressRouteCircuit( - "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer") - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsDeleteSamples.java deleted file mode 100644 index fa9dcee07e191..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for GlobalReachConnections Delete. */ -public final class GlobalReachConnectionsDeleteSamples { - /** - * Sample code: GlobalReachConnections_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void globalReachConnectionsDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.globalReachConnections().delete("group1", "cloud1", "connection1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsGetSamples.java deleted file mode 100644 index 9fd97e9e0e118..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for GlobalReachConnections Get. */ -public final class GlobalReachConnectionsGetSamples { - /** - * Sample code: GlobalReachConnections_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void globalReachConnectionsGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.globalReachConnections().getWithResponse("group1", "cloud1", "connection1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsListSamples.java deleted file mode 100644 index 61b4253f442db..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/GlobalReachConnectionsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for GlobalReachConnections List. */ -public final class GlobalReachConnectionsListSamples { - /** - * Sample code: GlobalReachConnections_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void globalReachConnectionsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.globalReachConnections().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesCreateOrUpdateSamples.java deleted file mode 100644 index 2842662d3b3f0..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesCreateOrUpdateSamples.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -/** Samples for HcxEnterpriseSites CreateOrUpdate. */ -public final class HcxEnterpriseSitesCreateOrUpdateSamples { - /** - * Sample code: HcxEnterpriseSites_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void hcxEnterpriseSitesCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.hcxEnterpriseSites().define("site1").withExistingPrivateCloud("group1", "cloud1").create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesDeleteSamples.java deleted file mode 100644 index 5d9713bd23766..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for HcxEnterpriseSites Delete. */ -public final class HcxEnterpriseSitesDeleteSamples { - /** - * Sample code: HcxEnterpriseSites_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void hcxEnterpriseSitesDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.hcxEnterpriseSites().deleteWithResponse("group1", "cloud1", "site1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesGetSamples.java deleted file mode 100644 index e9f51770a388f..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for HcxEnterpriseSites Get. */ -public final class HcxEnterpriseSitesGetSamples { - /** - * Sample code: HcxEnterpriseSites_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void hcxEnterpriseSitesGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.hcxEnterpriseSites().getWithResponse("group1", "cloud1", "site1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesListSamples.java deleted file mode 100644 index 813c1f86aa35c..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/HcxEnterpriseSitesListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for HcxEnterpriseSites List. */ -public final class HcxEnterpriseSitesListSamples { - /** - * Sample code: HcxEnterpriseSites_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void hcxEnterpriseSitesList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.hcxEnterpriseSites().list("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckQuotaAvailabilitySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckQuotaAvailabilitySamples.java deleted file mode 100644 index b78b0adf3ea48..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckQuotaAvailabilitySamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Locations CheckQuotaAvailability. */ -public final class LocationsCheckQuotaAvailabilitySamples { - /** - * Sample code: Locations_CheckQuotaAvailability. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void locationsCheckQuotaAvailability(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.locations().checkQuotaAvailabilityWithResponse("eastus", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckTrialAvailabilitySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckTrialAvailabilitySamples.java deleted file mode 100644 index a5c811b951712..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/LocationsCheckTrialAvailabilitySamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Locations CheckTrialAvailability. */ -public final class LocationsCheckTrialAvailabilitySamples { - /** - * Sample code: Locations_CheckTrialAvailability. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void locationsCheckTrialAvailability(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.locations().checkTrialAvailabilityWithResponse("eastus", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/OperationsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/OperationsListSamples.java deleted file mode 100644 index 9e6f8d2602945..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/OperationsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for Operations List. */ -public final class OperationsListSamples { - /** - * Sample code: Operations_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void operationsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.operations().list(Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsCreateOrUpdateSamples.java deleted file mode 100644 index 34c7af7ff8a88..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsCreateOrUpdateSamples.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.ManagementCluster; -import com.azure.resourcemanager.avs.models.Sku; -import java.util.HashMap; -import java.util.Map; - -/** Samples for PrivateClouds CreateOrUpdate. */ -public final class PrivateCloudsCreateOrUpdateSamples { - /** - * Sample code: PrivateClouds_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .privateClouds() - .define("cloud1") - .withRegion("eastus2") - .withExistingResourceGroup("group1") - .withSku(new Sku().withName("AV36")) - .withTags(mapOf()) - .withManagementCluster(new ManagementCluster().withClusterSize(4)) - .withNetworkBlock("192.168.48.0/22") - .create(); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsDeleteSamples.java deleted file mode 100644 index 9b9a2eb168577..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds Delete. */ -public final class PrivateCloudsDeleteSamples { - /** - * Sample code: PrivateClouds_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().delete("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsGetByResourceGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsGetByResourceGroupSamples.java deleted file mode 100644 index 95426fc278d2d..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsGetByResourceGroupSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds GetByResourceGroup. */ -public final class PrivateCloudsGetByResourceGroupSamples { - /** - * Sample code: PrivateClouds_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListAdminCredentialsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListAdminCredentialsSamples.java deleted file mode 100644 index 90cd984f74f13..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListAdminCredentialsSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds ListAdminCredentials. */ -public final class PrivateCloudsListAdminCredentialsSamples { - /** - * Sample code: PrivateClouds_ListAdminCredentials. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsListAdminCredentials(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().listAdminCredentialsWithResponse("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListByResourceGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListByResourceGroupSamples.java deleted file mode 100644 index 0701ca5d1aed6..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListByResourceGroupSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds ListByResourceGroup. */ -public final class PrivateCloudsListByResourceGroupSamples { - /** - * Sample code: PrivateClouds_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().listByResourceGroup("group1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListSamples.java deleted file mode 100644 index f0fcd1a00530e..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds List. */ -public final class PrivateCloudsListSamples { - /** - * Sample code: PrivateClouds_ListInSubscription. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsListInSubscription(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().list(Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateNsxtPasswordSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateNsxtPasswordSamples.java deleted file mode 100644 index 4451f61218605..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateNsxtPasswordSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds RotateNsxtPassword. */ -public final class PrivateCloudsRotateNsxtPasswordSamples { - /** - * Sample code: PrivateClouds_RotateNsxtPassword. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsRotateNsxtPassword(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().rotateNsxtPassword("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateVcenterPasswordSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateVcenterPasswordSamples.java deleted file mode 100644 index 0bcc2fa7be316..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsRotateVcenterPasswordSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for PrivateClouds RotateVcenterPassword. */ -public final class PrivateCloudsRotateVcenterPasswordSamples { - /** - * Sample code: PrivateClouds_RotateVcenterPassword. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsRotateVcenterPassword(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.privateClouds().rotateVcenterPassword("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsUpdateSamples.java deleted file mode 100644 index c4ad7749dfd9f..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/PrivateCloudsUpdateSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.ManagementCluster; -import com.azure.resourcemanager.avs.models.PrivateCloud; - -/** Samples for PrivateClouds Update. */ -public final class PrivateCloudsUpdateSamples { - /** - * Sample code: PrivateClouds_Update. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void privateCloudsUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - PrivateCloud resource = - avsManager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", Context.NONE).getValue(); - resource.update().withManagementCluster(new ManagementCluster().withClusterSize(4)).apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsGetSamples.java deleted file mode 100644 index 7df1d7049b1cf..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsGetSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptCmdlets Get. */ -public final class ScriptCmdletsGetSamples { - /** - * Sample code: ScriptCmdlets_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptCmdletsGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .scriptCmdlets() - .getWithResponse( - "group1", "{privateCloudName}", "{scriptPackageName}", "New-ExternalSsoDomain", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsListSamples.java deleted file mode 100644 index 37c3eb8433eae..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptCmdletsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptCmdlets List. */ -public final class ScriptCmdletsListSamples { - /** - * Sample code: ScriptCmdlets_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptCmdletsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.scriptCmdlets().list("group1", "{privateCloudName}", "{scriptPackageName}", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsCreateOrUpdateSamples.java deleted file mode 100644 index c68e0ca4d9d40..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsCreateOrUpdateSamples.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.ScriptSecureStringExecutionParameter; -import com.azure.resourcemanager.avs.models.ScriptStringExecutionParameter; -import java.util.Arrays; - -/** Samples for ScriptExecutions CreateOrUpdate. */ -public final class ScriptExecutionsCreateOrUpdateSamples { - /** - * Sample code: ScriptExecutions_CreateOrUpdate. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptExecutionsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .scriptExecutions() - .define("addSsoServer") - .withExistingPrivateCloud("group1", "cloud1") - .withScriptCmdletId( - "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource") - .withParameters( - Arrays - .asList( - new ScriptStringExecutionParameter() - .withName("DomainName") - .withValue("placeholderDomain.local"), - new ScriptStringExecutionParameter() - .withName("BaseUserDN") - .withValue("DC=placeholder, DC=placeholder"))) - .withHiddenParameters( - Arrays - .asList( - new ScriptSecureStringExecutionParameter() - .withName("Password") - .withSecureValue("PlaceholderPassword"))) - .withTimeout("P0Y0M0DT0H60M60S") - .withRetention("P0Y0M60DT0H60M60S") - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsDeleteSamples.java deleted file mode 100644 index 1ede9d08545d3..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsDeleteSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptExecutions Delete. */ -public final class ScriptExecutionsDeleteSamples { - /** - * Sample code: ScriptExecutions_Delete. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptExecutionsDelete(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.scriptExecutions().delete("group1", "cloud1", "{scriptExecutionName}", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetExecutionLogsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetExecutionLogsSamples.java deleted file mode 100644 index b1ba8487bbe19..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetExecutionLogsSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.ScriptOutputStreamType; -import java.util.Arrays; - -/** Samples for ScriptExecutions GetExecutionLogs. */ -public final class ScriptExecutionsGetExecutionLogsSamples { - /** - * Sample code: ScriptExecutions_GetExecutionLogs. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptExecutionsGetExecutionLogs(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .scriptExecutions() - .getExecutionLogsWithResponse( - "group1", - "cloud1", - "addSsoServer", - Arrays - .asList( - ScriptOutputStreamType.INFORMATION, - ScriptOutputStreamType.fromString("Warnings"), - ScriptOutputStreamType.fromString("Errors"), - ScriptOutputStreamType.OUTPUT), - Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetSamples.java deleted file mode 100644 index f80996aabcc52..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsGetSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptExecutions Get. */ -public final class ScriptExecutionsGetSamples { - /** - * Sample code: ScriptExecutions_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptExecutionsGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.scriptExecutions().getWithResponse("group1", "cloud1", "addSsoServer", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsListSamples.java deleted file mode 100644 index 663756dd0665a..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptExecutionsListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptExecutions List. */ -public final class ScriptExecutionsListSamples { - /** - * Sample code: ScriptExecutions_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptExecutionsList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.scriptExecutions().list("group1", "{privateCloudName}", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesGetSamples.java deleted file mode 100644 index d63597747e4fe..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesGetSamples.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptPackages Get. */ -public final class ScriptPackagesGetSamples { - /** - * Sample code: ScriptPackages_Get. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptPackagesGet(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .scriptPackages() - .getWithResponse("group1", "{privateCloudName}", "{scriptPackageName}", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesListSamples.java deleted file mode 100644 index 7a89cb821433f..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/ScriptPackagesListSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for ScriptPackages List. */ -public final class ScriptPackagesListSamples { - /** - * Sample code: ScriptPackages_List. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void scriptPackagesList(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.scriptPackages().list("group1", "{privateCloudName}", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDhcpSamples.java deleted file mode 100644 index 93f05211269d5..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDhcpSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; - -/** Samples for WorkloadNetworks CreateDhcp. */ -public final class WorkloadNetworksCreateDhcpSamples { - /** - * Sample code: WorkloadNetworks_CreateDhcp. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreateDhcp(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .defineDhcp("dhcp1") - .withExistingPrivateCloud("group1", "cloud1") - .withProperties( - new WorkloadNetworkDhcpServer() - .withDisplayName("dhcpConfigurations1") - .withRevision(1L) - .withServerAddress("40.1.5.1/24") - .withLeaseTime(86400L)) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsServiceSamples.java deleted file mode 100644 index 12d4d59746ae8..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsServiceSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.DnsServiceLogLevelEnum; -import java.util.Arrays; - -/** Samples for WorkloadNetworks CreateDnsService. */ -public final class WorkloadNetworksCreateDnsServiceSamples { - /** - * Sample code: WorkloadNetworks_CreateDnsService. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreateDnsService(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .defineDnsService("dnsService1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("dnsService1") - .withDnsServiceIp("5.5.5.5") - .withDefaultDnsZone("defaultDnsZone1") - .withFqdnZones(Arrays.asList("fqdnZone1")) - .withLogLevel(DnsServiceLogLevelEnum.INFO) - .withRevision(1L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsZoneSamples.java deleted file mode 100644 index 843f6823f035d..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateDnsZoneSamples.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import java.util.Arrays; - -/** Samples for WorkloadNetworks CreateDnsZone. */ -public final class WorkloadNetworksCreateDnsZoneSamples { - /** - * Sample code: WorkloadNetworks_CreateDnsZone. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreateDnsZone(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .defineDnsZone("dnsZone1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("dnsZone1") - .withDomain(Arrays.asList()) - .withDnsServerIps(Arrays.asList("1.1.1.1")) - .withSourceIp("8.8.8.8") - .withRevision(1L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePortMirroringSamples.java deleted file mode 100644 index 8f7d3c517bdfc..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePortMirroringSamples.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum; - -/** Samples for WorkloadNetworks CreatePortMirroring. */ -public final class WorkloadNetworksCreatePortMirroringSamples { - /** - * Sample code: WorkloadNetworks_CreatePortMirroring. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreatePortMirroring(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .definePortMirroring("portMirroring1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("portMirroring1") - .withDirection(PortMirroringDirectionEnum.fromString("BIDIRECTIONAL")) - .withSource("vmGroup1") - .withDestination("vmGroup2") - .withRevision(1L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePublicIpSamples.java deleted file mode 100644 index 462a77f7f1d23..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreatePublicIpSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -/** Samples for WorkloadNetworks CreatePublicIp. */ -public final class WorkloadNetworksCreatePublicIpSamples { - /** - * Sample code: WorkloadNetworks_CreatePublicIP. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .definePublicIp("publicIP1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("publicIP1") - .withNumberOfPublicIPs(32L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateSegmentsSamples.java deleted file mode 100644 index f24864edcfbd5..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateSegmentsSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; -import java.util.Arrays; - -/** Samples for WorkloadNetworks CreateSegments. */ -public final class WorkloadNetworksCreateSegmentsSamples { - /** - * Sample code: WorkloadNetworks_CreateSegments. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .defineSegments("segment1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("segment1") - .withConnectedGateway("/infra/tier-1s/gateway") - .withSubnet( - new WorkloadNetworkSegmentSubnet() - .withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1")) - .withGatewayAddress("40.20.20.20/16")) - .withRevision(1L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateVMGroupSamples.java deleted file mode 100644 index ef3265b116f8a..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksCreateVMGroupSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import java.util.Arrays; - -/** Samples for WorkloadNetworks CreateVMGroup. */ -public final class WorkloadNetworksCreateVMGroupSamples { - /** - * Sample code: WorkloadNetworks_CreateVMGroup. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager - .workloadNetworks() - .defineVMGroup("vmGroup1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("vmGroup1") - .withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")) - .withRevision(1L) - .create(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDhcpSamples.java deleted file mode 100644 index 3f7c08f4a460c..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDhcpSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeleteDhcp. */ -public final class WorkloadNetworksDeleteDhcpSamples { - /** - * Sample code: WorkloadNetworks_DeleteDhcp. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeleteDhcp(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deleteDhcp("group1", "cloud1", "dhcp1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsServiceSamples.java deleted file mode 100644 index f7ece3f320297..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsServiceSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeleteDnsService. */ -public final class WorkloadNetworksDeleteDnsServiceSamples { - /** - * Sample code: WorkloadNetworks_DeleteDnsService. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeleteDnsService(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deleteDnsService("group1", "dnsService1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsZoneSamples.java deleted file mode 100644 index 4bb1f5e49e09e..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteDnsZoneSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeleteDnsZone. */ -public final class WorkloadNetworksDeleteDnsZoneSamples { - /** - * Sample code: WorkloadNetworks_DeleteDnsZone. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeleteDnsZone(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deleteDnsZone("group1", "dnsZone1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePortMirroringSamples.java deleted file mode 100644 index 844164b61a58d..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePortMirroringSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeletePortMirroring. */ -public final class WorkloadNetworksDeletePortMirroringSamples { - /** - * Sample code: WorkloadNetworks_DeletePortMirroring. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeletePortMirroring(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deletePortMirroring("group1", "portMirroring1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePublicIpSamples.java deleted file mode 100644 index 51599d2302756..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeletePublicIpSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeletePublicIp. */ -public final class WorkloadNetworksDeletePublicIpSamples { - /** - * Sample code: WorkloadNetworks_DeletePublicIP. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeletePublicIP(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deletePublicIp("group1", "publicIP1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteSegmentSamples.java deleted file mode 100644 index 078ba50896f2b..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteSegmentSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeleteSegment. */ -public final class WorkloadNetworksDeleteSegmentSamples { - /** - * Sample code: WorkloadNetworks_DeleteSegment. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeleteSegment(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deleteSegment("group1", "cloud1", "segment1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteVMGroupSamples.java deleted file mode 100644 index afa2a5ad92fd1..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksDeleteVMGroupSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks DeleteVMGroup. */ -public final class WorkloadNetworksDeleteVMGroupSamples { - /** - * Sample code: WorkloadNetworks_DeleteVMGroup. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksDeleteVMGroup(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().deleteVMGroup("group1", "vmGroup1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDhcpSamples.java deleted file mode 100644 index afdbb1b59c0b3..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDhcpSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetDhcp. */ -public final class WorkloadNetworksGetDhcpSamples { - /** - * Sample code: WorkloadNetworks_GetDhcp. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetDhcp(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getDhcpWithResponse("group1", "dhcp1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsServiceSamples.java deleted file mode 100644 index 7f10feeb92c55..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsServiceSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetDnsService. */ -public final class WorkloadNetworksGetDnsServiceSamples { - /** - * Sample code: WorkloadNetworks_GetDnsService. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetDnsService(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getDnsServiceWithResponse("group1", "cloud1", "dnsService1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsZoneSamples.java deleted file mode 100644 index e29bd0f6a046c..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetDnsZoneSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetDnsZone. */ -public final class WorkloadNetworksGetDnsZoneSamples { - /** - * Sample code: WorkloadNetworks_GetDnsZone. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetDnsZone(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetGatewaySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetGatewaySamples.java deleted file mode 100644 index b76d6ca42c25a..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetGatewaySamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetGateway. */ -public final class WorkloadNetworksGetGatewaySamples { - /** - * Sample code: WorkloadNetworks_GetGateway. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetGateway(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getGatewayWithResponse("group1", "cloud1", "gateway1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPortMirroringSamples.java deleted file mode 100644 index 31e1837d37d44..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPortMirroringSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetPortMirroring. */ -public final class WorkloadNetworksGetPortMirroringSamples { - /** - * Sample code: WorkloadNetworks_GetPortMirroring. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetPortMirroring(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPublicIpSamples.java deleted file mode 100644 index d04074509b9ba..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetPublicIpSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetPublicIp. */ -public final class WorkloadNetworksGetPublicIpSamples { - /** - * Sample code: WorkloadNetworks_GetPublicIP. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetPublicIP(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getPublicIpWithResponse("group1", "cloud1", "publicIP1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetSegmentSamples.java deleted file mode 100644 index 495521a7db7fe..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetSegmentSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetSegment. */ -public final class WorkloadNetworksGetSegmentSamples { - /** - * Sample code: WorkloadNetworks_GetSegment. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetSegment(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getSegmentWithResponse("group1", "cloud1", "segment1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVMGroupSamples.java deleted file mode 100644 index c78be673a78f9..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVMGroupSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetVMGroup. */ -public final class WorkloadNetworksGetVMGroupSamples { - /** - * Sample code: WorkloadNetworks_GetVMGroup. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetVMGroup(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getVMGroupWithResponse("group1", "cloud1", "vmGroup1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVirtualMachineSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVirtualMachineSamples.java deleted file mode 100644 index aa8fb28826234..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksGetVirtualMachineSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks GetVirtualMachine. */ -public final class WorkloadNetworksGetVirtualMachineSamples { - /** - * Sample code: WorkloadNetworks_GetVirtualMachine. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksGetVirtualMachine(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().getVirtualMachineWithResponse("group1", "cloud1", "vm1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDhcpSamples.java deleted file mode 100644 index 463520625fe28..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDhcpSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListDhcp. */ -public final class WorkloadNetworksListDhcpSamples { - /** - * Sample code: WorkloadNetworks_ListDhcp. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListDhcp(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listDhcp("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsServicesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsServicesSamples.java deleted file mode 100644 index f2eaec395b252..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsServicesSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListDnsServices. */ -public final class WorkloadNetworksListDnsServicesSamples { - /** - * Sample code: WorkloadNetworks_ListDnsServices. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListDnsServices(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listDnsServices("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsZonesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsZonesSamples.java deleted file mode 100644 index ef0111cbb6b6e..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListDnsZonesSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListDnsZones. */ -public final class WorkloadNetworksListDnsZonesSamples { - /** - * Sample code: WorkloadNetworks_ListDnsZones. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListDnsZones(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listDnsZones("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListGatewaysSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListGatewaysSamples.java deleted file mode 100644 index 41934a4a37ed7..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListGatewaysSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListGateways. */ -public final class WorkloadNetworksListGatewaysSamples { - /** - * Sample code: WorkloadNetworks_ListGateways. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListGateways(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listGateways("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPortMirroringSamples.java deleted file mode 100644 index 8d2bf6b0ee20b..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPortMirroringSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListPortMirroring. */ -public final class WorkloadNetworksListPortMirroringSamples { - /** - * Sample code: WorkloadNetworks_ListPortMirroring. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListPortMirroring(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listPortMirroring("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPublicIPsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPublicIPsSamples.java deleted file mode 100644 index 03e07a0ec4169..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListPublicIPsSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListPublicIPs. */ -public final class WorkloadNetworksListPublicIPsSamples { - /** - * Sample code: WorkloadNetworks_ListPublicIPs. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListPublicIPs(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listPublicIPs("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListSegmentsSamples.java deleted file mode 100644 index 7a170eb3cad11..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListSegmentsSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListSegments. */ -public final class WorkloadNetworksListSegmentsSamples { - /** - * Sample code: WorkloadNetworks_ListSegments. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListSegments(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listSegments("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVMGroupsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVMGroupsSamples.java deleted file mode 100644 index f3f920c331298..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVMGroupsSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListVMGroups. */ -public final class WorkloadNetworksListVMGroupsSamples { - /** - * Sample code: WorkloadNetworks_ListVMGroups. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListVMGroups(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listVMGroups("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVirtualMachinesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVirtualMachinesSamples.java deleted file mode 100644 index 45102213ed8dc..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksListVirtualMachinesSamples.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; - -/** Samples for WorkloadNetworks ListVirtualMachines. */ -public final class WorkloadNetworksListVirtualMachinesSamples { - /** - * Sample code: WorkloadNetworks_ListVirtualMachines. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksListVirtualMachines(com.azure.resourcemanager.avs.AvsManager avsManager) { - avsManager.workloadNetworks().listVirtualMachines("group1", "cloud1", Context.NONE); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDhcpSamples.java deleted file mode 100644 index 7664eec2ee7c4..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDhcpSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcp; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; - -/** Samples for WorkloadNetworks UpdateDhcp. */ -public final class WorkloadNetworksUpdateDhcpSamples { - /** - * Sample code: WorkloadNetworks_UpdateDhcp. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdateDhcp(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkDhcp resource = - avsManager.workloadNetworks().getDhcpWithResponse("group1", "dhcp1", "cloud1", Context.NONE).getValue(); - resource - .update() - .withProperties( - new WorkloadNetworkDhcpServer().withRevision(1L).withServerAddress("40.1.5.1/24").withLeaseTime(86400L)) - .apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsServiceSamples.java deleted file mode 100644 index 08c9b0421b5c8..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsServiceSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.DnsServiceLogLevelEnum; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsService; -import java.util.Arrays; - -/** Samples for WorkloadNetworks UpdateDnsService. */ -public final class WorkloadNetworksUpdateDnsServiceSamples { - /** - * Sample code: WorkloadNetworks_UpdateDnsService. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdateDnsService(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkDnsService resource = - avsManager - .workloadNetworks() - .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", Context.NONE) - .getValue(); - resource - .update() - .withDisplayName("dnsService1") - .withDnsServiceIp("5.5.5.5") - .withDefaultDnsZone("defaultDnsZone1") - .withFqdnZones(Arrays.asList("fqdnZone1")) - .withLogLevel(DnsServiceLogLevelEnum.INFO) - .withRevision(1L) - .apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsZoneSamples.java deleted file mode 100644 index acd7c6fe910ef..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateDnsZoneSamples.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsZone; -import java.util.Arrays; - -/** Samples for WorkloadNetworks UpdateDnsZone. */ -public final class WorkloadNetworksUpdateDnsZoneSamples { - /** - * Sample code: WorkloadNetworks_UpdateDnsZone. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdateDnsZone(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkDnsZone resource = - avsManager - .workloadNetworks() - .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", Context.NONE) - .getValue(); - resource - .update() - .withDisplayName("dnsZone1") - .withDomain(Arrays.asList()) - .withDnsServerIps(Arrays.asList("1.1.1.1")) - .withSourceIp("8.8.8.8") - .withRevision(1L) - .apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdatePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdatePortMirroringSamples.java deleted file mode 100644 index aaca5a04d7ef5..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdatePortMirroringSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum; -import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroring; - -/** Samples for WorkloadNetworks UpdatePortMirroring. */ -public final class WorkloadNetworksUpdatePortMirroringSamples { - /** - * Sample code: WorkloadNetworks_UpdatePortMirroring. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdatePortMirroring(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkPortMirroring resource = - avsManager - .workloadNetworks() - .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", Context.NONE) - .getValue(); - resource - .update() - .withDirection(PortMirroringDirectionEnum.fromString("BIDIRECTIONAL")) - .withSource("vmGroup1") - .withDestination("vmGroup2") - .withRevision(1L) - .apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateSegmentsSamples.java deleted file mode 100644 index 47b191fde8baa..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateSegmentsSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; -import java.util.Arrays; - -/** Samples for WorkloadNetworks UpdateSegments. */ -public final class WorkloadNetworksUpdateSegmentsSamples { - /** - * Sample code: WorkloadNetworks_UpdateSegments. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdateSegments(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkSegment resource = - avsManager - .workloadNetworks() - .getSegmentWithResponse("group1", "cloud1", "segment1", Context.NONE) - .getValue(); - resource - .update() - .withConnectedGateway("/infra/tier-1s/gateway") - .withSubnet( - new WorkloadNetworkSegmentSubnet() - .withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1")) - .withGatewayAddress("40.20.20.20/16")) - .withRevision(1L) - .apply(); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateVMGroupSamples.java deleted file mode 100644 index 4e551ddbbd8b7..0000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/WorkloadNetworksUpdateVMGroupSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.avs; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.models.WorkloadNetworkVMGroup; -import java.util.Arrays; - -/** Samples for WorkloadNetworks UpdateVMGroup. */ -public final class WorkloadNetworksUpdateVMGroupSamples { - /** - * Sample code: WorkloadNetworks_UpdateVMGroup. - * - * @param avsManager Entry point to AvsManager. Azure VMware Solution API. - */ - public static void workloadNetworksUpdateVMGroup(com.azure.resourcemanager.avs.AvsManager avsManager) { - WorkloadNetworkVMGroup resource = - avsManager - .workloadNetworks() - .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", Context.NONE) - .getValue(); - resource.update().withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")).withRevision(1L).apply(); - } -}