diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 1db80605f0e6..f37a3901ed7a 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -330,7 +330,7 @@ com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0-beta.7;1. com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6 -com.azure.resourcemanager:azure-resourcemanager-avs;1.1.0;1.2.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-avs;1.1.0;1.2.0 com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0-beta.3;1.0.0-beta.4 diff --git a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md index 10ee5adb4973..a46cdf75fb6b 100644 --- a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md +++ b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md @@ -1,14 +1,8 @@ # Release History -## 1.2.0-beta.2 (Unreleased) +## 1.2.0 (Unreleased) -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Azure Resource Manager Avs client library for Java. This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.2.0-beta.1 (2024-06-25) diff --git a/sdk/avs/azure-resourcemanager-avs/README.md b/sdk/avs/azure-resourcemanager-avs/README.md index 918077b00d36..5a84283b99c2 100644 --- a/sdk/avs/azure-resourcemanager-avs/README.md +++ b/sdk/avs/azure-resourcemanager-avs/README.md @@ -2,7 +2,7 @@ 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-2023-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-avs - 1.2.0-beta.1 + 1.2.0 ``` [//]: # ({x-version-update-end}) @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. -- `AZURE_CLIENT_ID` for Azure client ID. -- `AZURE_TENANT_ID` for Azure tenant ID. -- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. - -With above configuration, `azure` client can be authenticated using the following code: +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -74,17 +70,6 @@ See [API design][design] for general introduction on design and key concepts on ## Examples -```java -privateCloud = avsManager.privateClouds() - .define(privateCloudsName) - .withRegion(REGION) - .withExistingResourceGroup(resourceGroupName) - .withSku(new Sku().withName("av36p")) - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) - .withNetworkBlock("192.168.48.0/22") - .withManagementCluster(new ManagementCluster().withClusterSize(4)) - .create(); -``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/avs/azure-resourcemanager-avs/SAMPLE.md) @@ -108,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md diff --git a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md index 7cc376ef9f14..d6c3eb91c086 100644 --- a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md +++ b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md @@ -119,7 +119,7 @@ - [CreateDnsZone](#workloadnetworks_creatednszone) - [CreatePortMirroring](#workloadnetworks_createportmirroring) - [CreatePublicIp](#workloadnetworks_createpublicip) -- [CreateSegments](#workloadnetworks_createsegments) +- [CreateSegment](#workloadnetworks_createsegment) - [CreateVMGroup](#workloadnetworks_createvmgroup) - [DeleteDhcp](#workloadnetworks_deletedhcp) - [DeleteDnsService](#workloadnetworks_deletednsservice) @@ -144,15 +144,14 @@ - [ListDnsZones](#workloadnetworks_listdnszones) - [ListGateways](#workloadnetworks_listgateways) - [ListPortMirroring](#workloadnetworks_listportmirroring) -- [ListPublicIPs](#workloadnetworks_listpublicips) +- [ListPublicIps](#workloadnetworks_listpublicips) - [ListSegments](#workloadnetworks_listsegments) - [ListVMGroups](#workloadnetworks_listvmgroups) - [ListVirtualMachines](#workloadnetworks_listvirtualmachines) -- [UpdateDhcp](#workloadnetworks_updatedhcp) - [UpdateDnsService](#workloadnetworks_updatednsservice) - [UpdateDnsZone](#workloadnetworks_updatednszone) - [UpdatePortMirroring](#workloadnetworks_updateportmirroring) -- [UpdateSegments](#workloadnetworks_updatesegments) +- [UpdateSegment](#workloadnetworks_updatesegment) - [UpdateVMGroup](#workloadnetworks_updatevmgroup) ### Addons_CreateOrUpdate @@ -167,8 +166,7 @@ import com.azure.resourcemanager.avs.models.AddonVrProperties; */ public final class AddonsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_HCX.json */ /** * Sample code: Addons_CreateOrUpdate_HCX. @@ -184,8 +182,7 @@ public final class AddonsCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_SRM.json */ /** * Sample code: Addons_CreateOrUpdate_SRM. @@ -201,8 +198,7 @@ public final class AddonsCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_ArcReg.json */ /** * Sample code: Addons_CreateOrUpdate_ArcReg. @@ -219,8 +215,7 @@ public final class AddonsCreateOrUpdateSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_VR.json */ /** * Sample code: Addons_CreateOrUpdate_VR. @@ -245,8 +240,7 @@ public final class AddonsCreateOrUpdateSamples { */ public final class AddonsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Delete.json + * x-ms-original-file: 2023-09-01/Addons_Delete.json */ /** * Sample code: Addons_Delete. @@ -267,8 +261,7 @@ public final class AddonsDeleteSamples { */ public final class AddonsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json + * x-ms-original-file: 2023-09-01/Addons_Get_SRM.json */ /** * Sample code: Addons_Get_SRM. @@ -280,8 +273,7 @@ public final class AddonsGetSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json + * x-ms-original-file: 2023-09-01/Addons_Get_VR.json */ /** * Sample code: Addons_Get_VR. @@ -293,8 +285,7 @@ public final class AddonsGetSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json + * x-ms-original-file: 2023-09-01/Addons_Get_HCX.json */ /** * Sample code: Addons_Get_HCX. @@ -306,8 +297,7 @@ public final class AddonsGetSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_Get_ArcReg.json */ /** * Sample code: Addons_Get_ArcReg. @@ -328,8 +318,7 @@ public final class AddonsGetSamples { */ public final class AddonsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_List.json + * x-ms-original-file: 2023-09-01/Addons_List.json */ /** * Sample code: Addons_List. @@ -350,8 +339,7 @@ public final class AddonsListSamples { */ public final class AuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Authorizations_CreateOrUpdate.json */ /** * Sample code: Authorizations_CreateOrUpdate. @@ -372,8 +360,7 @@ public final class AuthorizationsCreateOrUpdateSamples { */ public final class AuthorizationsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Delete.json + * x-ms-original-file: 2023-09-01/Authorizations_Delete.json */ /** * Sample code: Authorizations_Delete. @@ -394,8 +381,7 @@ public final class AuthorizationsDeleteSamples { */ public final class AuthorizationsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json + * x-ms-original-file: 2023-09-01/Authorizations_Get.json */ /** * Sample code: Authorizations_Get. @@ -417,8 +403,7 @@ public final class AuthorizationsGetSamples { */ public final class AuthorizationsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_List.json + * x-ms-original-file: 2023-09-01/Authorizations_List.json */ /** * Sample code: Authorizations_List. @@ -439,8 +424,7 @@ public final class AuthorizationsListSamples { */ public final class CloudLinksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/CloudLinks_CreateOrUpdate.json */ /** * Sample code: CloudLinks_CreateOrUpdate. @@ -466,8 +450,7 @@ public final class CloudLinksCreateOrUpdateSamples { */ public final class CloudLinksDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Delete.json + * x-ms-original-file: 2023-09-01/CloudLinks_Delete.json */ /** * Sample code: CloudLinks_Delete. @@ -488,8 +471,7 @@ public final class CloudLinksDeleteSamples { */ public final class CloudLinksGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json + * x-ms-original-file: 2023-09-01/CloudLinks_Get.json */ /** * Sample code: CloudLinks_Get. @@ -510,8 +492,7 @@ public final class CloudLinksGetSamples { */ public final class CloudLinksListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_List.json + * x-ms-original-file: 2023-09-01/CloudLinks_List.json */ /** * Sample code: CloudLinks_List. @@ -534,8 +515,7 @@ import com.azure.resourcemanager.avs.models.Sku; */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Clusters_CreateOrUpdate.json */ /** * Sample code: Clusters_CreateOrUpdate. @@ -561,8 +541,7 @@ public final class ClustersCreateOrUpdateSamples { */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Delete.json + * x-ms-original-file: 2023-09-01/Clusters_Delete.json */ /** * Sample code: Clusters_Delete. @@ -583,8 +562,7 @@ public final class ClustersDeleteSamples { */ public final class ClustersGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json + * x-ms-original-file: 2023-09-01/Clusters_Get.json */ /** * Sample code: Clusters_Get. @@ -605,8 +583,7 @@ public final class ClustersGetSamples { */ public final class ClustersListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_List.json + * x-ms-original-file: 2023-09-01/Clusters_List.json */ /** * Sample code: Clusters_List. @@ -627,8 +604,7 @@ public final class ClustersListSamples { */ public final class ClustersListZonesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones.json */ /** * Sample code: Clusters_ListZones. @@ -640,8 +616,7 @@ public final class ClustersListZonesSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones_Stretched.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones_Stretched.json */ /** * Sample code: Clusters_ListZones_Stretched. @@ -664,8 +639,7 @@ import com.azure.resourcemanager.avs.models.Cluster; */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Update.json + * x-ms-original-file: 2023-09-01/Clusters_Update.json */ /** * Sample code: Clusters_Update. @@ -691,8 +665,7 @@ import com.azure.resourcemanager.avs.models.NetAppVolume; */ public final class DatastoresCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Datastores_CreateOrUpdate.json */ /** * Sample code: Datastores_CreateOrUpdate. @@ -718,8 +691,7 @@ public final class DatastoresCreateOrUpdateSamples { */ public final class DatastoresDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Delete.json + * x-ms-original-file: 2023-09-01/Datastores_Delete.json */ /** * Sample code: Datastores_Delete. @@ -740,8 +712,7 @@ public final class DatastoresDeleteSamples { */ public final class DatastoresGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json + * x-ms-original-file: 2023-09-01/Datastores_Get.json */ /** * Sample code: Datastores_Get. @@ -763,8 +734,7 @@ public final class DatastoresGetSamples { */ public final class DatastoresListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_List.json + * x-ms-original-file: 2023-09-01/Datastores_List.json */ /** * Sample code: Datastores_List. @@ -785,8 +755,7 @@ public final class DatastoresListSamples { */ public final class GlobalReachConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * GlobalReachConnections_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_CreateOrUpdate.json */ /** * Sample code: GlobalReachConnections_CreateOrUpdate. @@ -813,8 +782,7 @@ public final class GlobalReachConnectionsCreateOrUpdateSamples { */ public final class GlobalReachConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Delete.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Delete.json */ /** * Sample code: GlobalReachConnections_Delete. @@ -835,8 +803,7 @@ public final class GlobalReachConnectionsDeleteSamples { */ public final class GlobalReachConnectionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Get.json */ /** * Sample code: GlobalReachConnections_Get. @@ -858,8 +825,7 @@ public final class GlobalReachConnectionsGetSamples { */ public final class GlobalReachConnectionsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_List.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_List.json */ /** * Sample code: GlobalReachConnections_List. @@ -880,9 +846,7 @@ public final class GlobalReachConnectionsListSamples { */ public final class HcxEnterpriseSitesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_CreateOrUpdate.json */ /** * Sample code: HcxEnterpriseSites_CreateOrUpdate. @@ -903,8 +867,7 @@ public final class HcxEnterpriseSitesCreateOrUpdateSamples { */ public final class HcxEnterpriseSitesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Delete.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Delete.json */ /** * Sample code: HcxEnterpriseSites_Delete. @@ -925,8 +888,7 @@ public final class HcxEnterpriseSitesDeleteSamples { */ public final class HcxEnterpriseSitesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Get.json */ /** * Sample code: HcxEnterpriseSites_Get. @@ -947,8 +909,7 @@ public final class HcxEnterpriseSitesGetSamples { */ public final class HcxEnterpriseSitesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_List.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_List.json */ /** * Sample code: HcxEnterpriseSites_List. @@ -964,15 +925,12 @@ public final class HcxEnterpriseSitesListSamples { ### IscsiPaths_CreateOrUpdate ```java -import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; - /** * Samples for IscsiPaths CreateOrUpdate. */ public final class IscsiPathsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/IscsiPaths_CreateOrUpdate.json */ /** * Sample code: IscsiPaths_CreateOrUpdate. @@ -981,8 +939,10 @@ public final class IscsiPathsCreateOrUpdateSamples { */ public static void iscsiPathsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager manager) { manager.iscsiPaths() - .createOrUpdate("group1", "cloud1", new IscsiPathInner().withNetworkBlock("192.168.0.0/24"), - com.azure.core.util.Context.NONE); + .define("default") + .withExistingPrivateCloud("group1", "cloud1") + .withNetworkBlock("192.168.0.0/24") + .create(); } } ``` @@ -995,8 +955,7 @@ public final class IscsiPathsCreateOrUpdateSamples { */ public final class IscsiPathsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Delete.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Delete.json */ /** * Sample code: IscsiPaths_Delete. @@ -1004,7 +963,7 @@ public final class IscsiPathsDeleteSamples { * @param manager Entry point to AvsManager. */ public static void iscsiPathsDelete(com.azure.resourcemanager.avs.AvsManager manager) { - manager.iscsiPaths().delete("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.iscsiPaths().delete("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -1017,8 +976,7 @@ public final class IscsiPathsDeleteSamples { */ public final class IscsiPathsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Get.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Get.json */ /** * Sample code: IscsiPaths_Get. @@ -1026,7 +984,7 @@ public final class IscsiPathsGetSamples { * @param manager Entry point to AvsManager. */ public static void iscsiPathsGet(com.azure.resourcemanager.avs.AvsManager manager) { - manager.iscsiPaths().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.iscsiPaths().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -1039,8 +997,7 @@ public final class IscsiPathsGetSamples { */ public final class IscsiPathsListByPrivateCloudSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_List.json + * x-ms-original-file: 2023-09-01/IscsiPaths_List.json */ /** * Sample code: IscsiPaths_ListByPrivateCloud. @@ -1061,9 +1018,7 @@ public final class IscsiPathsListByPrivateCloudSamples { */ public final class LocationsCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckQuotaAvailability. - * json + * x-ms-original-file: 2023-09-01/Locations_CheckQuotaAvailability.json */ /** * Sample code: Locations_CheckQuotaAvailability. @@ -1086,9 +1041,7 @@ import com.azure.resourcemanager.avs.models.Sku; */ public final class LocationsCheckTrialAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailability. - * json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailability.json */ /** * Sample code: Locations_CheckTrialAvailability. @@ -1100,8 +1053,7 @@ public final class LocationsCheckTrialAvailabilitySamples { } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * Locations_CheckTrialAvailabilityWithSku.json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailabilityWithSku.json */ /** * Sample code: Locations_CheckTrialAvailabilityWithSku. @@ -1124,8 +1076,7 @@ public final class LocationsCheckTrialAvailabilitySamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Operations_List.json + * x-ms-original-file: 2023-09-01/Operations_List.json */ /** * Sample code: Operations_List. @@ -1152,9 +1103,7 @@ import java.util.Arrays; */ public final class PlacementPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/PlacementPolicies_CreateOrUpdate.json */ /** * Sample code: PlacementPolicies_CreateOrUpdate. @@ -1186,8 +1135,7 @@ public final class PlacementPoliciesCreateOrUpdateSamples { */ public final class PlacementPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Delete.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Delete.json */ /** * Sample code: PlacementPolicies_Delete. @@ -1208,8 +1156,7 @@ public final class PlacementPoliciesDeleteSamples { */ public final class PlacementPoliciesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Get.json */ /** * Sample code: PlacementPolicies_Get. @@ -1231,8 +1178,7 @@ public final class PlacementPoliciesGetSamples { */ public final class PlacementPoliciesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_List.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_List.json */ /** * Sample code: PlacementPolicies_List. @@ -1259,8 +1205,7 @@ import java.util.Arrays; */ public final class PlacementPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Update.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Update.json */ /** * Sample code: PlacementPolicies_Update. @@ -1292,8 +1237,8 @@ import com.azure.resourcemanager.avs.models.AvailabilityProperties; import com.azure.resourcemanager.avs.models.AvailabilityStrategy; import com.azure.resourcemanager.avs.models.ManagementCluster; import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; import com.azure.resourcemanager.avs.models.Sku; +import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; import java.util.HashMap; import java.util.Map; @@ -1302,8 +1247,7 @@ import java.util.Map; */ public final class PrivateCloudsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate.json */ /** * Sample code: PrivateClouds_CreateOrUpdate. @@ -1317,15 +1261,14 @@ public final class PrivateCloudsCreateOrUpdateSamples { .withExistingResourceGroup("group1") .withSku(new Sku().withName("AV36")) .withTags(mapOf()) - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) + .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED)) .withManagementCluster(new ManagementCluster().withClusterSize(4)) .withNetworkBlock("192.168.48.0/22") .create(); } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_CreateOrUpdate_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate_Stretched.json */ /** * Sample code: PrivateClouds_CreateOrUpdate_Stretched. @@ -1369,8 +1312,7 @@ public final class PrivateCloudsCreateOrUpdateSamples { */ public final class PrivateCloudsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Delete.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Delete.json */ /** * Sample code: PrivateClouds_Delete. @@ -1391,8 +1333,7 @@ public final class PrivateCloudsDeleteSamples { */ public final class PrivateCloudsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get.json */ /** * Sample code: PrivateClouds_Get. @@ -1404,8 +1345,7 @@ public final class PrivateCloudsGetByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get_Stretched.json */ /** * Sample code: PrivateClouds_Get_Stretched. @@ -1426,9 +1366,7 @@ public final class PrivateCloudsGetByResourceGroupSamples { */ public final class PrivateCloudsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription.json */ /** * Sample code: PrivateClouds_ListInSubscription. @@ -1440,8 +1378,7 @@ public final class PrivateCloudsListSamples { } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_ListInSubscription_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription_Stretched.json */ /** * Sample code: PrivateClouds_ListInSubscription_Stretched. @@ -1462,9 +1399,7 @@ public final class PrivateCloudsListSamples { */ public final class PrivateCloudsListAdminCredentialsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListAdminCredentials - * .json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListAdminCredentials.json */ /** * Sample code: PrivateClouds_ListAdminCredentials. @@ -1485,8 +1420,7 @@ public final class PrivateCloudsListAdminCredentialsSamples { */ public final class PrivateCloudsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List.json */ /** * Sample code: PrivateClouds_List. @@ -1498,8 +1432,7 @@ public final class PrivateCloudsListByResourceGroupSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List_Stretched.json */ /** * Sample code: PrivateClouds_List_Stretched. @@ -1520,9 +1453,7 @@ public final class PrivateCloudsListByResourceGroupSamples { */ public final class PrivateCloudsRotateNsxtPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateNsxtPassword. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateNsxtPassword.json */ /** * Sample code: PrivateClouds_RotateNsxtPassword. @@ -1543,8 +1474,7 @@ public final class PrivateCloudsRotateNsxtPasswordSamples { */ public final class PrivateCloudsRotateVcenterPasswordSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_RotateVcenterPassword.json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateVcenterPassword.json */ /** * Sample code: PrivateClouds_RotateVcenterPassword. @@ -1566,15 +1496,14 @@ import com.azure.resourcemanager.avs.models.EncryptionState; import com.azure.resourcemanager.avs.models.ManagementCluster; import com.azure.resourcemanager.avs.models.PrivateCloud; import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; +import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; /** * Samples for PrivateClouds Update. */ public final class PrivateCloudsUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update.json */ /** * Sample code: PrivateClouds_Update. @@ -1586,7 +1515,7 @@ public final class PrivateCloudsUpdateSamples { .getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.NONE)) + .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.NONE)) .withManagementCluster(new ManagementCluster().withClusterSize(4)) .withEncryption(new Encryption().withStatus(EncryptionState.ENABLED) .withKeyVaultProperties(new EncryptionKeyVaultProperties().withKeyName("fakeTokenPlaceholder") @@ -1596,9 +1525,7 @@ public final class PrivateCloudsUpdateSamples { } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update_Stretched. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update_Stretched.json */ /** * Sample code: PrivateClouds_Update_Stretched. @@ -1622,8 +1549,7 @@ public final class PrivateCloudsUpdateSamples { */ public final class ScriptCmdletsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_Get.json */ /** * Sample code: ScriptCmdlets_Get. @@ -1646,8 +1572,7 @@ public final class ScriptCmdletsGetSamples { */ public final class ScriptCmdletsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_List.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_List.json */ /** * Sample code: ScriptCmdlets_List. @@ -1672,9 +1597,7 @@ import java.util.Arrays; */ public final class ScriptExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/ScriptExecutions_CreateOrUpdate.json */ /** * Sample code: ScriptExecutions_CreateOrUpdate. @@ -1708,8 +1631,7 @@ public final class ScriptExecutionsCreateOrUpdateSamples { */ public final class ScriptExecutionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Delete.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Delete.json */ /** * Sample code: ScriptExecutions_Delete. @@ -1730,8 +1652,7 @@ public final class ScriptExecutionsDeleteSamples { */ public final class ScriptExecutionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Get.json */ /** * Sample code: ScriptExecutions_Get. @@ -1756,9 +1677,7 @@ import java.util.Arrays; */ public final class ScriptExecutionsGetExecutionLogsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_GetExecutionLogs. - * json + * x-ms-original-file: 2023-09-01/ScriptExecutions_GetExecutionLogs.json */ /** * Sample code: ScriptExecutions_GetExecutionLogs. @@ -1783,8 +1702,7 @@ public final class ScriptExecutionsGetExecutionLogsSamples { */ public final class ScriptExecutionsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_List.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_List.json */ /** * Sample code: ScriptExecutions_List. @@ -1805,8 +1723,7 @@ public final class ScriptExecutionsListSamples { */ public final class ScriptPackagesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json + * x-ms-original-file: 2023-09-01/ScriptPackages_Get.json */ /** * Sample code: ScriptPackages_Get. @@ -1828,8 +1745,7 @@ public final class ScriptPackagesGetSamples { */ public final class ScriptPackagesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_List.json + * x-ms-original-file: 2023-09-01/ScriptPackages_List.json */ /** * Sample code: ScriptPackages_List. @@ -1850,8 +1766,7 @@ public final class ScriptPackagesListSamples { */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json + * x-ms-original-file: 2023-09-01/VirtualMachines_Get.json */ /** * Sample code: VirtualMachines_Get. @@ -1873,8 +1788,7 @@ public final class VirtualMachinesGetSamples { */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_List.json + * x-ms-original-file: 2023-09-01/VirtualMachines_List.json */ /** * Sample code: VirtualMachines_List. @@ -1898,9 +1812,7 @@ import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovementState; */ public final class VirtualMachinesRestrictMovementSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_RestrictMovement. - * json + * x-ms-original-file: 2023-09-01/VirtualMachines_RestrictMovement.json */ /** * Sample code: VirtualMachines_RestrictMovement. @@ -1926,8 +1838,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; */ public final class WorkloadNetworksCreateDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDhcp.json */ /** * Sample code: WorkloadNetworks_CreateDhcp. @@ -1937,7 +1848,7 @@ public final class WorkloadNetworksCreateDhcpSamples { public static void workloadNetworksCreateDhcp(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDhcp("dhcp1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withProperties(new WorkloadNetworkDhcpServer().withDisplayName("dhcpConfigurations1") .withRevision(1L) .withServerAddress("40.1.5.1/24") @@ -1958,9 +1869,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksCreateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsService.json */ /** * Sample code: WorkloadNetworks_CreateDnsService. @@ -1970,7 +1879,7 @@ public final class WorkloadNetworksCreateDnsServiceSamples { public static void workloadNetworksCreateDnsService(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDnsService("dnsService1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("dnsService1") .withDnsServiceIp("5.5.5.5") .withDefaultDnsZone("defaultDnsZone1") @@ -1992,9 +1901,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksCreateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsZone.json */ /** * Sample code: WorkloadNetworks_CreateDnsZone. @@ -2004,7 +1911,7 @@ public final class WorkloadNetworksCreateDnsZoneSamples { public static void workloadNetworksCreateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDnsZone("dnsZone1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("dnsZone1") .withDomain(Arrays.asList()) .withDnsServerIps(Arrays.asList("1.1.1.1")) @@ -2025,8 +1932,7 @@ import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum; */ public final class WorkloadNetworksCreatePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_CreatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePortMirroring.json */ /** * Sample code: WorkloadNetworks_CreatePortMirroring. @@ -2036,7 +1942,7 @@ public final class WorkloadNetworksCreatePortMirroringSamples { public static void workloadNetworksCreatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .definePortMirroring("portMirroring1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("portMirroring1") .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) .withSource("vmGroup1") @@ -2055,9 +1961,7 @@ public final class WorkloadNetworksCreatePortMirroringSamples { */ public final class WorkloadNetworksCreatePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePublicIP.json */ /** * Sample code: WorkloadNetworks_CreatePublicIP. @@ -2067,7 +1971,7 @@ public final class WorkloadNetworksCreatePublicIpSamples { public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .definePublicIp("publicIP1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("publicIP1") .withNumberOfPublicIPs(32L) .create(); @@ -2075,20 +1979,18 @@ public final class WorkloadNetworksCreatePublicIpSamples { } ``` -### WorkloadNetworks_CreateSegments +### WorkloadNetworks_CreateSegment ```java import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; import java.util.Arrays; /** - * Samples for WorkloadNetworks CreateSegments. + * Samples for WorkloadNetworks CreateSegment. */ -public final class WorkloadNetworksCreateSegmentsSamples { +public final class WorkloadNetworksCreateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateSegments. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateSegments.json */ /** * Sample code: WorkloadNetworks_CreateSegments. @@ -2097,8 +1999,8 @@ public final class WorkloadNetworksCreateSegmentsSamples { */ public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .defineSegments("segment1") - .withExistingPrivateCloud("group1", "cloud1") + .defineSegment("segment1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("segment1") .withConnectedGateway("/infra/tier-1s/gateway") .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1")) @@ -2112,16 +2014,12 @@ public final class WorkloadNetworksCreateSegmentsSamples { ### WorkloadNetworks_CreateVMGroup ```java -import java.util.Arrays; - /** * Samples for WorkloadNetworks CreateVMGroup. */ public final class WorkloadNetworksCreateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateVMGroup.json */ /** * Sample code: WorkloadNetworks_CreateVMGroup. @@ -2131,10 +2029,7 @@ public final class WorkloadNetworksCreateVMGroupSamples { public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineVMGroup("vmGroup1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("vmGroup1") - .withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")) - .withRevision(1L) + .withExistingWorkloadNetwork("group1", "cloud1", null) .create(); } } @@ -2148,8 +2043,7 @@ public final class WorkloadNetworksCreateVMGroupSamples { */ public final class WorkloadNetworksDeleteDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDhcp.json */ /** * Sample code: WorkloadNetworks_DeleteDhcp. @@ -2157,7 +2051,7 @@ public final class WorkloadNetworksDeleteDhcpSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeleteDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deleteDhcp("group1", "cloud1", "dhcp1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deleteDhcp("group1", "cloud1", null, "dhcp1", com.azure.core.util.Context.NONE); } } ``` @@ -2170,9 +2064,7 @@ public final class WorkloadNetworksDeleteDhcpSamples { */ public final class WorkloadNetworksDeleteDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsService.json */ /** * Sample code: WorkloadNetworks_DeleteDnsService. @@ -2194,9 +2086,7 @@ public final class WorkloadNetworksDeleteDnsServiceSamples { */ public final class WorkloadNetworksDeleteDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsZone.json */ /** * Sample code: WorkloadNetworks_DeleteDnsZone. @@ -2217,8 +2107,7 @@ public final class WorkloadNetworksDeleteDnsZoneSamples { */ public final class WorkloadNetworksDeletePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_DeletePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePortMirroring.json */ /** * Sample code: WorkloadNetworks_DeletePortMirroring. @@ -2240,9 +2129,7 @@ public final class WorkloadNetworksDeletePortMirroringSamples { */ public final class WorkloadNetworksDeletePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePublicIP. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePublicIP.json */ /** * Sample code: WorkloadNetworks_DeletePublicIP. @@ -2263,9 +2150,7 @@ public final class WorkloadNetworksDeletePublicIpSamples { */ public final class WorkloadNetworksDeleteSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteSegment. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteSegment.json */ /** * Sample code: WorkloadNetworks_DeleteSegment. @@ -2273,7 +2158,8 @@ public final class WorkloadNetworksDeleteSegmentSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeleteSegment(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deleteSegment("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE); + manager.workloadNetworks() + .deleteSegment("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE); } } ``` @@ -2286,9 +2172,7 @@ public final class WorkloadNetworksDeleteSegmentSamples { */ public final class WorkloadNetworksDeleteVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteVMGroup.json */ /** * Sample code: WorkloadNetworks_DeleteVMGroup. @@ -2309,8 +2193,7 @@ public final class WorkloadNetworksDeleteVMGroupSamples { */ public final class WorkloadNetworksGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_Get.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_Get.json */ /** * Sample code: WorkloadNetworks_Get. @@ -2318,7 +2201,7 @@ public final class WorkloadNetworksGetSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksGet(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2331,8 +2214,7 @@ public final class WorkloadNetworksGetSamples { */ public final class WorkloadNetworksGetDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDhcp.json */ /** * Sample code: WorkloadNetworks_GetDhcp. @@ -2353,9 +2235,7 @@ public final class WorkloadNetworksGetDhcpSamples { */ public final class WorkloadNetworksGetDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsService.json */ /** * Sample code: WorkloadNetworks_GetDnsService. @@ -2364,7 +2244,7 @@ public final class WorkloadNetworksGetDnsServiceSamples { */ public static void workloadNetworksGetDnsService(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE); + .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE); } } ``` @@ -2377,8 +2257,7 @@ public final class WorkloadNetworksGetDnsServiceSamples { */ public final class WorkloadNetworksGetDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsZone.json */ /** * Sample code: WorkloadNetworks_GetDnsZone. @@ -2387,7 +2266,7 @@ public final class WorkloadNetworksGetDnsZoneSamples { */ public static void workloadNetworksGetDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE); + .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE); } } ``` @@ -2400,8 +2279,7 @@ public final class WorkloadNetworksGetDnsZoneSamples { */ public final class WorkloadNetworksGetGatewaySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetGateway.json */ /** * Sample code: WorkloadNetworks_GetGateway. @@ -2410,7 +2288,7 @@ public final class WorkloadNetworksGetGatewaySamples { */ public static void workloadNetworksGetGateway(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getGatewayWithResponse("group1", "cloud1", "gateway1", com.azure.core.util.Context.NONE); + .getGatewayWithResponse("group1", "cloud1", null, "gateway1", com.azure.core.util.Context.NONE); } } ``` @@ -2423,9 +2301,7 @@ public final class WorkloadNetworksGetGatewaySamples { */ public final class WorkloadNetworksGetPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPortMirroring.json */ /** * Sample code: WorkloadNetworks_GetPortMirroring. @@ -2434,7 +2310,7 @@ public final class WorkloadNetworksGetPortMirroringSamples { */ public static void workloadNetworksGetPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE); + .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE); } } ``` @@ -2447,8 +2323,7 @@ public final class WorkloadNetworksGetPortMirroringSamples { */ public final class WorkloadNetworksGetPublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPublicIP.json */ /** * Sample code: WorkloadNetworks_GetPublicIP. @@ -2457,7 +2332,7 @@ public final class WorkloadNetworksGetPublicIpSamples { */ public static void workloadNetworksGetPublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getPublicIpWithResponse("group1", "cloud1", "publicIP1", com.azure.core.util.Context.NONE); + .getPublicIpWithResponse("group1", "cloud1", null, "publicIP1", com.azure.core.util.Context.NONE); } } ``` @@ -2470,8 +2345,7 @@ public final class WorkloadNetworksGetPublicIpSamples { */ public final class WorkloadNetworksGetSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetSegment.json */ /** * Sample code: WorkloadNetworks_GetSegment. @@ -2480,7 +2354,7 @@ public final class WorkloadNetworksGetSegmentSamples { */ public static void workloadNetworksGetSegment(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE); + .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE); } } ``` @@ -2493,8 +2367,7 @@ public final class WorkloadNetworksGetSegmentSamples { */ public final class WorkloadNetworksGetVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVMGroup.json */ /** * Sample code: WorkloadNetworks_GetVMGroup. @@ -2503,7 +2376,7 @@ public final class WorkloadNetworksGetVMGroupSamples { */ public static void workloadNetworksGetVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE); + .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE); } } ``` @@ -2516,9 +2389,7 @@ public final class WorkloadNetworksGetVMGroupSamples { */ public final class WorkloadNetworksGetVirtualMachineSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine - * .json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVirtualMachine.json */ /** * Sample code: WorkloadNetworks_GetVirtualMachine. @@ -2527,7 +2398,7 @@ public final class WorkloadNetworksGetVirtualMachineSamples { */ public static void workloadNetworksGetVirtualMachine(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getVirtualMachineWithResponse("group1", "cloud1", "vm1", com.azure.core.util.Context.NONE); + .getVirtualMachineWithResponse("group1", "cloud1", null, "vm1", com.azure.core.util.Context.NONE); } } ``` @@ -2540,8 +2411,7 @@ public final class WorkloadNetworksGetVirtualMachineSamples { */ public final class WorkloadNetworksListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_List.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_List.json */ /** * Sample code: WorkloadNetworks_List. @@ -2562,8 +2432,7 @@ public final class WorkloadNetworksListSamples { */ public final class WorkloadNetworksListDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDhcp.json */ /** * Sample code: WorkloadNetworks_ListDhcp. @@ -2571,7 +2440,7 @@ public final class WorkloadNetworksListDhcpSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDhcp("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDhcp("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2584,9 +2453,7 @@ public final class WorkloadNetworksListDhcpSamples { */ public final class WorkloadNetworksListDnsServicesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsServices. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsServices.json */ /** * Sample code: WorkloadNetworks_ListDnsServices. @@ -2594,7 +2461,7 @@ public final class WorkloadNetworksListDnsServicesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDnsServices(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDnsServices("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDnsServices("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2607,8 +2474,7 @@ public final class WorkloadNetworksListDnsServicesSamples { */ public final class WorkloadNetworksListDnsZonesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsZones.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsZones.json */ /** * Sample code: WorkloadNetworks_ListDnsZones. @@ -2616,7 +2482,7 @@ public final class WorkloadNetworksListDnsZonesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDnsZones(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDnsZones("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDnsZones("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2629,8 +2495,7 @@ public final class WorkloadNetworksListDnsZonesSamples { */ public final class WorkloadNetworksListGatewaysSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListGateways.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListGateways.json */ /** * Sample code: WorkloadNetworks_ListGateways. @@ -2638,7 +2503,7 @@ public final class WorkloadNetworksListGatewaysSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListGateways(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listGateways("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listGateways("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2651,9 +2516,7 @@ public final class WorkloadNetworksListGatewaysSamples { */ public final class WorkloadNetworksListPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPortMirroring - * .json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPortMirroring.json */ /** * Sample code: WorkloadNetworks_ListPortMirroring. @@ -2661,22 +2524,20 @@ public final class WorkloadNetworksListPortMirroringSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listPortMirroring("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listPortMirroring("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` -### WorkloadNetworks_ListPublicIPs +### WorkloadNetworks_ListPublicIps ```java /** - * Samples for WorkloadNetworks ListPublicIPs. + * Samples for WorkloadNetworks ListPublicIps. */ -public final class WorkloadNetworksListPublicIPsSamples { +public final class WorkloadNetworksListPublicIpsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPublicIPs. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPublicIPs.json */ /** * Sample code: WorkloadNetworks_ListPublicIPs. @@ -2684,7 +2545,7 @@ public final class WorkloadNetworksListPublicIPsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListPublicIPs(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listPublicIPs("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listPublicIps("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2697,8 +2558,7 @@ public final class WorkloadNetworksListPublicIPsSamples { */ public final class WorkloadNetworksListSegmentsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListSegments.json */ /** * Sample code: WorkloadNetworks_ListSegments. @@ -2706,7 +2566,7 @@ public final class WorkloadNetworksListSegmentsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListSegments(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listSegments("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listSegments("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2719,8 +2579,7 @@ public final class WorkloadNetworksListSegmentsSamples { */ public final class WorkloadNetworksListVMGroupsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVMGroups.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVMGroups.json */ /** * Sample code: WorkloadNetworks_ListVMGroups. @@ -2728,7 +2587,7 @@ public final class WorkloadNetworksListVMGroupsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListVMGroups(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listVMGroups("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listVMGroups("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2741,8 +2600,7 @@ public final class WorkloadNetworksListVMGroupsSamples { */ public final class WorkloadNetworksListVirtualMachinesSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_ListVirtualMachines.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVirtualMachines.json */ /** * Sample code: WorkloadNetworks_ListVirtualMachines. @@ -2750,38 +2608,7 @@ public final class WorkloadNetworksListVirtualMachinesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListVirtualMachines(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listVirtualMachines("group1", "cloud1", com.azure.core.util.Context.NONE); - } -} -``` - -### WorkloadNetworks_UpdateDhcp - -```java -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcp; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; - -/** - * Samples for WorkloadNetworks UpdateDhcp. - */ -public final class WorkloadNetworksUpdateDhcpSamples { - /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDhcp.json - */ - /** - * Sample code: WorkloadNetworks_UpdateDhcp. - * - * @param manager Entry point to AvsManager. - */ - public static void workloadNetworksUpdateDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - WorkloadNetworkDhcp resource = manager.workloadNetworks() - .getDhcpWithResponse("group1", "dhcp1", "cloud1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties( - new WorkloadNetworkDhcpServer().withRevision(1L).withServerAddress("40.1.5.1/24").withLeaseTime(86400L)) - .apply(); + manager.workloadNetworks().listVirtualMachines("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } ``` @@ -2798,9 +2625,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsService.json */ /** * Sample code: WorkloadNetworks_UpdateDnsService. @@ -2809,7 +2634,7 @@ public final class WorkloadNetworksUpdateDnsServiceSamples { */ public static void workloadNetworksUpdateDnsService(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkDnsService resource = manager.workloadNetworks() - .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE) + .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDisplayName("dnsService1") @@ -2834,9 +2659,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsZone.json */ /** * Sample code: WorkloadNetworks_UpdateDnsZone. @@ -2845,7 +2668,7 @@ public final class WorkloadNetworksUpdateDnsZoneSamples { */ public static void workloadNetworksUpdateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkDnsZone resource = manager.workloadNetworks() - .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE) + .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDisplayName("dnsZone1") @@ -2869,8 +2692,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroring; */ public final class WorkloadNetworksUpdatePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_UpdatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdatePortMirroring.json */ /** * Sample code: WorkloadNetworks_UpdatePortMirroring. @@ -2879,7 +2701,7 @@ public final class WorkloadNetworksUpdatePortMirroringSamples { */ public static void workloadNetworksUpdatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkPortMirroring resource = manager.workloadNetworks() - .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE) + .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) @@ -2891,21 +2713,17 @@ public final class WorkloadNetworksUpdatePortMirroringSamples { } ``` -### WorkloadNetworks_UpdateSegments +### WorkloadNetworks_UpdateSegment ```java import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; -import java.util.Arrays; /** - * Samples for WorkloadNetworks UpdateSegments. + * Samples for WorkloadNetworks UpdateSegment. */ -public final class WorkloadNetworksUpdateSegmentsSamples { +public final class WorkloadNetworksUpdateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateSegments. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateSegments.json */ /** * Sample code: WorkloadNetworks_UpdateSegments. @@ -2914,14 +2732,9 @@ public final class WorkloadNetworksUpdateSegmentsSamples { */ public static void workloadNetworksUpdateSegments(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkSegment resource = manager.workloadNetworks() - .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE) + .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.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(); + resource.update().apply(); } } ``` @@ -2937,9 +2750,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateVMGroup.json */ /** * Sample code: WorkloadNetworks_UpdateVMGroup. @@ -2948,7 +2759,7 @@ public final class WorkloadNetworksUpdateVMGroupSamples { */ public static void workloadNetworksUpdateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkVMGroup resource = manager.workloadNetworks() - .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE) + .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")).withRevision(1L).apply(); } diff --git a/sdk/avs/azure-resourcemanager-avs/pom.xml b/sdk/avs/azure-resourcemanager-avs/pom.xml index 1a80bfe5eeec..47df8b338b9d 100644 --- a/sdk/avs/azure-resourcemanager-avs/pom.xml +++ b/sdk/avs/azure-resourcemanager-avs/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-avs - 1.2.0-beta.2 + 1.2.0 jar Microsoft Azure SDK for Avs Management - This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API. Package tag package-2023-09-01. + This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API. https://github.com/Azure/azure-sdk-for-java 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 f858dc2cdc60..085c3f9c42b6 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs; @@ -77,32 +77,32 @@ public final class AvsManager { private PrivateClouds privateClouds; - private Addons addons; - - private Authorizations authorizations; - - private CloudLinks cloudLinks; - private Clusters clusters; private Datastores datastores; - private PlacementPolicies placementPolicies; + private HcxEnterpriseSites hcxEnterpriseSites; - private VirtualMachines virtualMachines; + private Authorizations authorizations; private GlobalReachConnections globalReachConnections; - private HcxEnterpriseSites hcxEnterpriseSites; + private CloudLinks cloudLinks; - private IscsiPaths iscsiPaths; + private Addons addons; - private ScriptExecutions scriptExecutions; + private VirtualMachines virtualMachines; + + private PlacementPolicies placementPolicies; private ScriptPackages scriptPackages; private ScriptCmdlets scriptCmdlets; + private ScriptExecutions scriptExecutions; + + private IscsiPaths iscsiPaths; + private WorkloadNetworks workloadNetworks; private final AvsClient clientObject; @@ -269,7 +269,7 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile) .append("-") .append("com.azure.resourcemanager.avs") .append("/") - .append("1.2.0-beta.1"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -351,42 +351,6 @@ public PrivateClouds privateClouds() { return privateClouds; } - /** - * Gets the resource collection API of Addons. It manages Addon. - * - * @return Resource collection API of Addons. - */ - public Addons addons() { - if (this.addons == null) { - this.addons = new AddonsImpl(clientObject.getAddons(), this); - } - return addons; - } - - /** - * Gets the resource collection API of Authorizations. It manages ExpressRouteAuthorization. - * - * @return Resource collection API of Authorizations. - */ - public Authorizations authorizations() { - if (this.authorizations == null) { - this.authorizations = new AuthorizationsImpl(clientObject.getAuthorizations(), this); - } - return authorizations; - } - - /** - * Gets the resource collection API of CloudLinks. It manages CloudLink. - * - * @return Resource collection API of CloudLinks. - */ - public CloudLinks cloudLinks() { - if (this.cloudLinks == null) { - this.cloudLinks = new CloudLinksImpl(clientObject.getCloudLinks(), this); - } - return cloudLinks; - } - /** * Gets the resource collection API of Clusters. It manages Cluster. * @@ -412,27 +376,27 @@ public Datastores datastores() { } /** - * Gets the resource collection API of PlacementPolicies. It manages PlacementPolicy. + * Gets the resource collection API of HcxEnterpriseSites. It manages HcxEnterpriseSite. * - * @return Resource collection API of PlacementPolicies. + * @return Resource collection API of HcxEnterpriseSites. */ - public PlacementPolicies placementPolicies() { - if (this.placementPolicies == null) { - this.placementPolicies = new PlacementPoliciesImpl(clientObject.getPlacementPolicies(), this); + public HcxEnterpriseSites hcxEnterpriseSites() { + if (this.hcxEnterpriseSites == null) { + this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(clientObject.getHcxEnterpriseSites(), this); } - return placementPolicies; + return hcxEnterpriseSites; } /** - * Gets the resource collection API of VirtualMachines. + * Gets the resource collection API of Authorizations. It manages ExpressRouteAuthorization. * - * @return Resource collection API of VirtualMachines. + * @return Resource collection API of Authorizations. */ - public VirtualMachines virtualMachines() { - if (this.virtualMachines == null) { - this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this); + public Authorizations authorizations() { + if (this.authorizations == null) { + this.authorizations = new AuthorizationsImpl(clientObject.getAuthorizations(), this); } - return virtualMachines; + return authorizations; } /** @@ -449,39 +413,51 @@ public GlobalReachConnections globalReachConnections() { } /** - * Gets the resource collection API of HcxEnterpriseSites. It manages HcxEnterpriseSite. + * Gets the resource collection API of CloudLinks. It manages CloudLink. * - * @return Resource collection API of HcxEnterpriseSites. + * @return Resource collection API of CloudLinks. */ - public HcxEnterpriseSites hcxEnterpriseSites() { - if (this.hcxEnterpriseSites == null) { - this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(clientObject.getHcxEnterpriseSites(), this); + public CloudLinks cloudLinks() { + if (this.cloudLinks == null) { + this.cloudLinks = new CloudLinksImpl(clientObject.getCloudLinks(), this); } - return hcxEnterpriseSites; + return cloudLinks; } /** - * Gets the resource collection API of IscsiPaths. + * Gets the resource collection API of Addons. It manages Addon. * - * @return Resource collection API of IscsiPaths. + * @return Resource collection API of Addons. */ - public IscsiPaths iscsiPaths() { - if (this.iscsiPaths == null) { - this.iscsiPaths = new IscsiPathsImpl(clientObject.getIscsiPaths(), this); + public Addons addons() { + if (this.addons == null) { + this.addons = new AddonsImpl(clientObject.getAddons(), this); } - return iscsiPaths; + return addons; } /** - * Gets the resource collection API of ScriptExecutions. It manages ScriptExecution. + * Gets the resource collection API of VirtualMachines. * - * @return Resource collection API of ScriptExecutions. + * @return Resource collection API of VirtualMachines. */ - public ScriptExecutions scriptExecutions() { - if (this.scriptExecutions == null) { - this.scriptExecutions = new ScriptExecutionsImpl(clientObject.getScriptExecutions(), this); + public VirtualMachines virtualMachines() { + if (this.virtualMachines == null) { + this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this); } - return scriptExecutions; + return virtualMachines; + } + + /** + * Gets the resource collection API of PlacementPolicies. It manages PlacementPolicy. + * + * @return Resource collection API of PlacementPolicies. + */ + public PlacementPolicies placementPolicies() { + if (this.placementPolicies == null) { + this.placementPolicies = new PlacementPoliciesImpl(clientObject.getPlacementPolicies(), this); + } + return placementPolicies; } /** @@ -509,9 +485,33 @@ public ScriptCmdlets scriptCmdlets() { } /** - * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkDhcp, WorkloadNetworkDnsService, - * WorkloadNetworkDnsZone, WorkloadNetworkPortMirroring, WorkloadNetworkPublicIp, WorkloadNetworkSegment, - * WorkloadNetworkVMGroup. + * Gets the resource collection API of ScriptExecutions. It manages ScriptExecution. + * + * @return Resource collection API of ScriptExecutions. + */ + public ScriptExecutions scriptExecutions() { + if (this.scriptExecutions == null) { + this.scriptExecutions = new ScriptExecutionsImpl(clientObject.getScriptExecutions(), this); + } + return scriptExecutions; + } + + /** + * Gets the resource collection API of IscsiPaths. It manages IscsiPath. + * + * @return Resource collection API of IscsiPaths. + */ + public IscsiPaths iscsiPaths() { + if (this.iscsiPaths == null) { + this.iscsiPaths = new IscsiPathsImpl(clientObject.getIscsiPaths(), this); + } + return iscsiPaths; + } + + /** + * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkSegment, WorkloadNetworkDhcp, + * WorkloadNetworkPortMirroring, WorkloadNetworkVMGroup, WorkloadNetworkDnsService, WorkloadNetworkDnsZone, + * WorkloadNetworkPublicIp. * * @return Resource collection API of WorkloadNetworks. */ diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java index afdf1f6ba3ed..c7fcac6a3974 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java index a7e16f2f83b9..ff65cfeb48ae 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java index c21c292eb9e4..73c423f679dd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; @@ -12,26 +12,26 @@ */ public interface AvsClient { /** - * Gets The ID of the target subscription. The value must be an UUID. - * - * @return the subscriptionId value. - */ - String getSubscriptionId(); - - /** - * Gets server parameter. + * Gets Server parameter. * * @return the endpoint value. */ String getEndpoint(); /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ String getApiVersion(); + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + /** * Gets The HTTP pipeline to send requests through. * @@ -67,27 +67,6 @@ public interface AvsClient { */ PrivateCloudsClient getPrivateClouds(); - /** - * Gets the AddonsClient object to access its operations. - * - * @return the AddonsClient object. - */ - AddonsClient getAddons(); - - /** - * Gets the AuthorizationsClient object to access its operations. - * - * @return the AuthorizationsClient object. - */ - AuthorizationsClient getAuthorizations(); - - /** - * Gets the CloudLinksClient object to access its operations. - * - * @return the CloudLinksClient object. - */ - CloudLinksClient getCloudLinks(); - /** * Gets the ClustersClient object to access its operations. * @@ -103,18 +82,18 @@ public interface AvsClient { DatastoresClient getDatastores(); /** - * Gets the PlacementPoliciesClient object to access its operations. + * Gets the HcxEnterpriseSitesClient object to access its operations. * - * @return the PlacementPoliciesClient object. + * @return the HcxEnterpriseSitesClient object. */ - PlacementPoliciesClient getPlacementPolicies(); + HcxEnterpriseSitesClient getHcxEnterpriseSites(); /** - * Gets the VirtualMachinesClient object to access its operations. + * Gets the AuthorizationsClient object to access its operations. * - * @return the VirtualMachinesClient object. + * @return the AuthorizationsClient object. */ - VirtualMachinesClient getVirtualMachines(); + AuthorizationsClient getAuthorizations(); /** * Gets the GlobalReachConnectionsClient object to access its operations. @@ -124,25 +103,32 @@ public interface AvsClient { GlobalReachConnectionsClient getGlobalReachConnections(); /** - * Gets the HcxEnterpriseSitesClient object to access its operations. + * Gets the CloudLinksClient object to access its operations. * - * @return the HcxEnterpriseSitesClient object. + * @return the CloudLinksClient object. */ - HcxEnterpriseSitesClient getHcxEnterpriseSites(); + CloudLinksClient getCloudLinks(); /** - * Gets the IscsiPathsClient object to access its operations. + * Gets the AddonsClient object to access its operations. * - * @return the IscsiPathsClient object. + * @return the AddonsClient object. */ - IscsiPathsClient getIscsiPaths(); + AddonsClient getAddons(); /** - * Gets the ScriptExecutionsClient object to access its operations. + * Gets the VirtualMachinesClient object to access its operations. * - * @return the ScriptExecutionsClient object. + * @return the VirtualMachinesClient object. */ - ScriptExecutionsClient getScriptExecutions(); + VirtualMachinesClient getVirtualMachines(); + + /** + * Gets the PlacementPoliciesClient object to access its operations. + * + * @return the PlacementPoliciesClient object. + */ + PlacementPoliciesClient getPlacementPolicies(); /** * Gets the ScriptPackagesClient object to access its operations. @@ -158,6 +144,20 @@ public interface AvsClient { */ ScriptCmdletsClient getScriptCmdlets(); + /** + * Gets the ScriptExecutionsClient object to access its operations. + * + * @return the ScriptExecutionsClient object. + */ + ScriptExecutionsClient getScriptExecutions(); + + /** + * Gets the IscsiPathsClient object to access its operations. + * + * @return the IscsiPathsClient object. + */ + IscsiPathsClient getIscsiPaths(); + /** * Gets the WorkloadNetworksClient object to access its operations. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java index b8cb20adc8e1..c6a3a980d869 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java index 4dcbd4af4e20..647f1a6eabda 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java index 327061fc2d0c..0e7ccac05a54 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java index ce9a7351d72b..937d58ed9148 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java index 63409fe329fd..d9e88bc7c1d7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java index 43d5ec7ade27..b17dab94dbc9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; @@ -50,6 +50,7 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -57,26 +58,29 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin * @return a IscsiPath along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String privateCloudName, Context context); + Response getWithResponse(String resourceGroupName, String privateCloudName, String iscsiPathName, + Context context); /** * Get a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath. */ @ServiceMethod(returns = ReturnType.SINGLE) - IscsiPathInner get(String resourceGroupName, String privateCloudName); + IscsiPathInner get(String resourceGroupName, String privateCloudName, String iscsiPathName); /** * Create a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -85,13 +89,14 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName, - String privateCloudName, IscsiPathInner resource); + String privateCloudName, String iscsiPathName, IscsiPathInner resource); /** * Create a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -101,13 +106,14 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName, - String privateCloudName, IscsiPathInner resource, Context context); + String privateCloudName, String iscsiPathName, IscsiPathInner resource, Context context); /** * Create a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -115,13 +121,15 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin * @return an iSCSI path resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource); + IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName, + IscsiPathInner resource); /** * Create a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,27 +138,30 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin * @return an iSCSI path resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource, - Context context); + IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName, + IscsiPathInner resource, Context context); /** * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName); + SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, + String iscsiPathName); /** * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -158,30 +169,33 @@ IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, + String iscsiPathName, Context context); /** * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String privateCloudName); + void delete(String resourceGroupName, String privateCloudName, String iscsiPathName); /** * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String privateCloudName, Context context); + void delete(String resourceGroupName, String privateCloudName, String iscsiPathName, Context context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java index 387314e8244c..86fb94fb5162 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; @@ -17,53 +17,53 @@ */ public interface LocationsClient { /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. + * @param sku Optionally, check for a specific SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas along with {@link Response}. + * @return subscription trial availability along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkQuotaAvailabilityWithResponse(String location, Context context); + Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context); /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas. + * @return subscription trial availability. */ @ServiceMethod(returns = ReturnType.SINGLE) - QuotaInner checkQuotaAvailability(String location); + TrialInner checkTrialAvailability(String location); /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. - * @param sku Optionally, check for a specific SKU. + * @param location A location in a subscription. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability along with {@link Response}. + * @return subscription quotas along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context); + Response checkQuotaAvailabilityWithResponse(String location, Context context); /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability. + * @return subscription quotas. */ @ServiceMethod(returns = ReturnType.SINGLE) - TrialInner checkTrialAvailability(String location); + QuotaInner checkQuotaAvailability(String location); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java index 5cdf6176912b..87310fdf3ceb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java index 1053a2e7d306..4eceff239513 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java index 749f3460f4f5..b07cc200e8ff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; @@ -20,18 +20,21 @@ */ public interface PrivateCloudsClient { /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -39,24 +42,21 @@ public interface PrivateCloudsClient { * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable list(); /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -64,7 +64,7 @@ public interface PrivateCloudsClient { * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable list(Context context); /** * Get a PrivateCloud. @@ -269,48 +269,47 @@ PrivateCloudInner update(String resourceGroupName, String privateCloudName, Priv void delete(String resourceGroupName, String privateCloudName, Context context); /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName, - Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName); /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName, + Context context); /** - * Rotate the NSX-T Manager password. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.SINGLE) + void rotateVcenterPassword(String resourceGroupName, String privateCloudName); /** - * Rotate the NSX-T Manager password. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -318,11 +317,9 @@ Response listAdminCredentialsWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context); /** * Rotate the NSX-T Manager password. @@ -332,9 +329,10 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void rotateNsxtPassword(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName); /** * Rotate the NSX-T Manager password. @@ -345,25 +343,26 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName, + Context context); /** - * Rotate the vCenter password. + * Rotate the NSX-T Manager password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.SINGLE) + void rotateNsxtPassword(String resourceGroupName, String privateCloudName); /** - * Rotate the vCenter password. + * Rotate the NSX-T Manager password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -371,34 +370,35 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName, - Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void rotateVcenterPassword(String resourceGroupName, String privateCloudName); + Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName, + Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T. */ @ServiceMethod(returns = ReturnType.SINGLE) - void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context); + AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java index 1cd9ca32de8d..904c45b9afd4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java index f4776b2d7f70..063951a11565 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java index b5b2ef561f8e..cc7a294c98ef 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java index 3b7548a5c8ec..46aa47741da4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java index 54139e75dc3c..245f555ccf55 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent; @@ -58,6 +58,7 @@ public interface WorkloadNetworksClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -65,232 +66,255 @@ public interface WorkloadNetworksClient { * @return a WorkloadNetwork along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String privateCloudName, Context context); + Response getWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** * Get a WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetwork. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkInner get(String resourceGroupName, String privateCloudName); + WorkloadNetworkInner get(String resourceGroupName, String privateCloudName, String workloadNetworkName); /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDhcp(String resourceGroupName, String privateCloudName); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response}. + * @return a WorkloadNetworkSegment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDhcpWithResponse(String resourceGroupName, String dhcpId, - String privateCloudName, Context context); + Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, Context context); /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp. + * @return a WorkloadNetworkSegment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName); + WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId); /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); + SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment); /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp); + WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment); /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context); /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); + SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties); /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context); /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp); + WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties); /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context); /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, - String dhcpId); + SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId); /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -298,254 +322,267 @@ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, Str * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - Context context); + SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, Context context); /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId); /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + Context context); /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response}. + * @return a WorkloadNetworkDhcp along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context); + Response getDhcpWithResponse(String resourceGroupName, String dhcpId, + String privateCloudName, Context context); /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService. + * @return a WorkloadNetworkDhcp. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId); + WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName); /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp); /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp); /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, - String privateCloudName); + SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId); /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -553,306 +590,60 @@ SyncPoller, Void> beginDeleteDnsService(String resourceGroupNam * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, - String privateCloudName, Context context); + SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, Context context); /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName); + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId); /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context); - - /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName); - - /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, Context context); - /** - * Get a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, - String dnsZoneId, Context context); - - /** - * Get a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId); - - /** - * Create a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); - - /** - * Create a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); - - /** - * Create a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); - - /** - * Create a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); - - /** - * Update a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); - - /** - * Update a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); - - /** - * Update a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); - - /** - * Update a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); - - /** - * Delete a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, - String privateCloudName); - - /** - * Delete a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. - * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, - String privateCloudName, Context context); - - /** - * Delete a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName); - - /** - * Delete a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. - * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context); - /** * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listGateways(String resourceGroupName, String privateCloudName); + PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -861,13 +652,14 @@ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listGateways(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -877,13 +669,14 @@ PagedIterable listGateways(String resourceGroupName */ @ServiceMethod(returns = ReturnType.SINGLE) Response getGatewayWithResponse(String resourceGroupName, String privateCloudName, - String gatewayId, Context context); + String workloadNetworkName, String gatewayId, Context context); /** * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -891,13 +684,15 @@ Response getGatewayWithResponse(String resourceGrou * @return a WorkloadNetworkGateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, String gatewayId); + WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String gatewayId); /** * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -906,13 +701,14 @@ Response getGatewayWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName); + String privateCloudName, String workloadNetworkName); /** * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -922,13 +718,14 @@ PagedIterable listPortMirroring(String resour */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName, Context context); + String privateCloudName, String workloadNetworkName, Context context); /** * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -938,13 +735,14 @@ PagedIterable listPortMirroring(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) Response getPortMirroringWithResponse(String resourceGroupName, - String privateCloudName, String portMirroringId, Context context); + String privateCloudName, String workloadNetworkName, String portMirroringId, Context context); /** * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -953,13 +751,14 @@ Response getPortMirroringWithResponse(String */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId); + String workloadNetworkName, String portMirroringId); /** * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -969,14 +768,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); + beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); /** * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. @@ -987,14 +787,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); + beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); /** * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1004,13 +805,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); /** * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. @@ -1021,13 +824,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); /** * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1037,14 +842,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); + beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); /** * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. @@ -1055,14 +861,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); + beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); /** * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1072,13 +879,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring); /** * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. @@ -1089,7 +898,8 @@ WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); /** * Delete a WorkloadNetworkPortMirroring. @@ -1151,138 +961,219 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin Context context); /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response}. + * @return a WorkloadNetworkVMGroup along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, - String publicIpId, Context context); + Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, Context context); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP. + * @return a WorkloadNetworkVMGroup. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, String publicIpId); + WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId); /** - * Create a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Public IP Block. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp); + SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource); /** - * Create a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Public IP Block. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context); + SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context); /** - * Create a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp); + WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource); /** - * Create a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context); + WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context); /** - * Delete a WorkloadNetworkPublicIP. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSX VM Group. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + + /** + * Update a WorkloadNetworkVMGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSX VM Group. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + + /** + * Update a WorkloadNetworkVMGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX VM Group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + + /** + * Update a WorkloadNetworkVMGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX VM Group. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, + Context context); + + /** + * Delete a WorkloadNetworkVMGroup. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1290,14 +1181,14 @@ WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String pri * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId, + SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1306,27 +1197,27 @@ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId, + SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName); + void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1334,521 +1225,756 @@ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName, Context context); + void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context); /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSegments(String resourceGroupName, String privateCloudName); + PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName); /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSegments(String resourceGroupName, String privateCloudName, + PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context); + + /** + * Get a WorkloadNetworkVirtualMachine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkVirtualMachine along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getVirtualMachineWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context); + + /** + * Get a WorkloadNetworkVirtualMachine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkVirtualMachine. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String virtualMachineId); + + /** + * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName); + + /** + * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); + + /** + * Get a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getDnsServiceWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context); + + /** + * Get a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId); + + /** + * Create a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + + /** + * Create a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + + /** + * Create a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + + /** + * Create a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + + /** + * Update a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response}. + * @return the {@link SyncPoller} for polling of nSX DNS Service. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + + /** + * Update a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId); + WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context); /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment); + SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, + String privateCloudName); /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); + SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, + String privateCloudName, Context context); /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment); + void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName); /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); + void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context); /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. + * @return a WorkloadNetworkDnsZone along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment); + Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, Context context); /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. + * @return a WorkloadNetworkDnsZone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); + WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId); /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId); + SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId); + WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context); + WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context); /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine along with {@link Response}. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context); + WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId); + WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context); /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, + String privateCloudName); /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, + String privateCloudName, Context context); /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context); + void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName); /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId); + void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context); /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return a WorkloadNetworkPublicIP along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, Context context); /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return a WorkloadNetworkPublicIP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId); /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP); /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context); /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP); /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, + Context context); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1856,14 +1982,14 @@ WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String priva * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, + SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1872,27 +1998,27 @@ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, + SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName); + void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1900,5 +2026,5 @@ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context); + void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java index 792b3440ae93..b10182fc28ac 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class AddonInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class AddonInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AddonInner class. @@ -79,13 +79,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java index b0347fa58e48..900df918e115 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -39,7 +39,7 @@ public final class AdminCredentialsInner implements JsonSerializable { /* * Zone and associated hosts info @@ -26,7 +26,7 @@ public final class ClusterZoneListInner implements JsonSerializable zones() { return this.zones; } - /** - * Set the zones property: Zone and associated hosts info. - * - * @param zones the zones value to set. - * @return the ClusterZoneListInner object itself. - */ - public ClusterZoneListInner withZones(List zones) { - this.zones = zones; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java index 68f3c280b871..f3f342abacd5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -33,9 +33,9 @@ public final class DatastoreInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -43,9 +43,9 @@ public final class DatastoreInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DatastoreInner class. @@ -72,13 +72,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -92,13 +92,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java index 09cb698a3b50..14aa6103e2c3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java index c3f3108809a2..0bd4d8fd831c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class ExpressRouteAuthorizationInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class ExpressRouteAuthorizationInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ExpressRouteAuthorizationInner class. @@ -68,13 +68,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -88,13 +88,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java index 54d2511d9088..0264950dcd01 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java index 31f6f0f74044..bb9dd9b570e4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -30,9 +30,9 @@ public final class GlobalReachConnectionInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,9 +40,9 @@ public final class GlobalReachConnectionInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of GlobalReachConnectionInner class. @@ -69,13 +69,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -89,13 +89,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java index 4949f7dc282a..3d759a9817d2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java index ff9b36e91e33..983e7a7570c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -30,9 +30,9 @@ public final class HcxEnterpriseSiteInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,9 +40,9 @@ public final class HcxEnterpriseSiteInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of HcxEnterpriseSiteInner class. @@ -69,13 +69,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -89,13 +89,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java index 38bc426d6b6d..94feae234d74 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java index cf045d012ee9..2f1c23cd338f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class IscsiPathInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class IscsiPathInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of IscsiPathInner class. @@ -68,13 +68,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -88,13 +88,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java index 5d0f1edd87bb..5f333c4f4f36 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java index 5cf8f1364040..db823bff417b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,11 +15,9 @@ import java.io.IOException; /** - * REST API Operation - * * Details of a REST API operation, returned from the Resource Provider Operations API. */ -@Fluent +@Immutable public final class OperationInner implements JsonSerializable { /* * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -28,8 +26,8 @@ public final class OperationInner implements JsonSerializable { private String name; /* - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for - * ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure + * Resource Manager/control-plane operations. */ private Boolean isDataAction; @@ -45,14 +43,14 @@ public final class OperationInner implements JsonSerializable { private Origin origin; /* - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ private ActionType actionType; /** * Creates an instance of OperationInner class. */ - public OperationInner() { + private OperationInner() { } /** @@ -67,7 +65,7 @@ public String name() { /** * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -84,17 +82,6 @@ public OperationDisplay display() { return this.display; } - /** - * Set the display property: Localized display information for this particular operation. - * - * @param display the display value to set. - * @return the OperationInner object itself. - */ - public OperationInner withDisplay(OperationDisplay display) { - this.display = display; - return this; - } - /** * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and * audit logs UX. Default value is "user,system". @@ -106,8 +93,8 @@ public Origin origin() { } /** - * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ @@ -132,7 +119,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("display", this.display); + jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString()); return jsonWriter.writeEndObject(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java index 7dcb848c9115..39f303d8b7a5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class PlacementPolicyInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class PlacementPolicyInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PlacementPolicyInner class. @@ -79,13 +79,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java index 3438b388b03d..9e5937d64077 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java index 1fa39a194035..9f58ec30a682 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -53,9 +53,9 @@ public final class PrivateCloudInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -63,9 +63,9 @@ public final class PrivateCloudInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PrivateCloudInner class. @@ -132,13 +132,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -152,13 +152,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -593,6 +593,10 @@ public void validate() { if (identity() != null) { identity().validate(); } + if (location() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property location in model PrivateCloudInner")); + } } private static final ClientLogger LOGGER = new ClientLogger(PrivateCloudInner.class); diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java index 6fe562c650ee..9de94fbf4a15 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java index 3128314b749c..da1d4d2bbdbe 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; 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 60b0b840ade1..3cb22332a58a 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 @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -31,7 +31,7 @@ public final class QuotaInner implements JsonSerializable { /** * Creates an instance of QuotaInner class. */ - public QuotaInner() { + private QuotaInner() { } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java index c62ba5862ad9..dfa4dcbf8866 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -32,9 +32,9 @@ public final class ScriptCmdletInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -42,14 +42,14 @@ public final class ScriptCmdletInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ScriptCmdletInner class. */ - public ScriptCmdletInner() { + private ScriptCmdletInner() { } /** @@ -71,13 +71,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -91,13 +91,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java index 59edb9ad797a..64f1e523c7f6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -48,7 +48,7 @@ public final class ScriptCmdletProperties implements JsonSerializable output) { * * @return the namedOutputs value. */ - public Map namedOutputs() { + public Map namedOutputs() { return this.innerProperties() == null ? null : this.innerProperties().namedOutputs(); } @@ -317,7 +318,7 @@ public Map namedOutputs() { * @param namedOutputs the namedOutputs value to set. * @return the ScriptExecutionInner object itself. */ - public ScriptExecutionInner withNamedOutputs(Map namedOutputs) { + public ScriptExecutionInner withNamedOutputs(Map namedOutputs) { if (this.innerProperties() == null) { this.innerProperties = new ScriptExecutionProperties(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java index 02fc66dcb498..85990808d928 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -12,6 +12,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; import com.azure.resourcemanager.avs.models.ScriptExecutionProvisioningState; import java.io.IOException; import java.time.OffsetDateTime; @@ -83,7 +84,7 @@ public final class ScriptExecutionProperties implements JsonSerializable namedOutputs; + private Map namedOutputs; /* * Standard information out stream from the powershell execution @@ -291,7 +292,7 @@ public ScriptExecutionProperties withOutput(List output) { * * @return the namedOutputs value. */ - public Map namedOutputs() { + public Map namedOutputs() { return this.namedOutputs; } @@ -301,7 +302,7 @@ public Map namedOutputs() { * @param namedOutputs the namedOutputs value to set. * @return the ScriptExecutionProperties object itself. */ - public ScriptExecutionProperties withNamedOutputs(Map namedOutputs) { + public ScriptExecutionProperties withNamedOutputs(Map namedOutputs) { this.namedOutputs = namedOutputs; return this; } @@ -350,6 +351,13 @@ public void validate() { .log(new IllegalArgumentException( "Missing required property timeout in model ScriptExecutionProperties")); } + if (namedOutputs() != null) { + namedOutputs().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); + } } private static final ClientLogger LOGGER = new ClientLogger(ScriptExecutionProperties.class); @@ -368,7 +376,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("failureReason", this.failureReason); jsonWriter.writeStringField("retention", this.retention); jsonWriter.writeArrayField("output", this.output, (writer, element) -> writer.writeString(element)); - jsonWriter.writeMapField("namedOutputs", this.namedOutputs, (writer, element) -> writer.writeUntyped(element)); + jsonWriter.writeMapField("namedOutputs", this.namedOutputs, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -420,7 +428,8 @@ public static ScriptExecutionProperties fromJson(JsonReader jsonReader) throws I List output = reader.readArray(reader1 -> reader1.getString()); deserializedScriptExecutionProperties.output = output; } else if ("namedOutputs".equals(fieldName)) { - Map namedOutputs = reader.readMap(reader1 -> reader1.readUntyped()); + Map namedOutputs + = reader.readMap(reader1 -> ScriptExecutionPropertiesNamedOutput.fromJson(reader1)); deserializedScriptExecutionProperties.namedOutputs = namedOutputs; } else if ("information".equals(fieldName)) { List information = reader.readArray(reader1 -> reader1.getString()); diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java index ba29c22ec1a8..8c28fd56d560 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class ScriptPackageInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,14 +39,14 @@ public final class ScriptPackageInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ScriptPackageInner class. */ - public ScriptPackageInner() { + private ScriptPackageInner() { } /** @@ -68,13 +68,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -88,13 +88,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java index 09b4e16cac56..2102134fa1d9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -45,7 +45,7 @@ public final class ScriptPackageProperties implements JsonSerializable { /** * Creates an instance of TrialInner class. */ - public TrialInner() { + private TrialInner() { } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java index e62cf4649cea..fe2e97bc6daf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -30,9 +30,9 @@ public final class VirtualMachineInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,14 +40,14 @@ public final class VirtualMachineInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VirtualMachineInner class. */ - public VirtualMachineInner() { + private VirtualMachineInner() { } /** @@ -69,13 +69,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -89,13 +89,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java index 3a1994e2bc3e..9273133818c5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -46,7 +46,7 @@ public final class VirtualMachineProperties implements JsonSerializable { /* * The provisioning state of the resource. @@ -35,7 +35,7 @@ public final class WorkloadNetworkGatewayProperties implements JsonSerializable< /** * Creates an instance of WorkloadNetworkGatewayProperties class. */ - public WorkloadNetworkGatewayProperties() { + private WorkloadNetworkGatewayProperties() { } /** @@ -56,17 +56,6 @@ public String displayName() { return this.displayName; } - /** - * Set the displayName property: Display name of the DHCP entity. - * - * @param displayName the displayName value to set. - * @return the WorkloadNetworkGatewayProperties object itself. - */ - public WorkloadNetworkGatewayProperties withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - /** * Get the path property: NSX Gateway Path. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java index 37b29b53c663..a78db495a5f0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -29,9 +29,9 @@ public final class WorkloadNetworkInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,14 +39,14 @@ public final class WorkloadNetworkInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkloadNetworkInner class. */ - public WorkloadNetworkInner() { + private WorkloadNetworkInner() { } /** @@ -68,13 +68,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -88,13 +88,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java index c47350ee403c..f97cfbf6bef9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -31,9 +31,9 @@ public final class WorkloadNetworkPortMirroringInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -41,9 +41,9 @@ public final class WorkloadNetworkPortMirroringInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkloadNetworkPortMirroringInner class. @@ -70,13 +70,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -90,13 +90,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java index 68ae5d148f4c..2d6ebb2c99c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java index 027ce7b763e9..d05d7604eaee 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.fluent.models; @@ -25,7 +25,7 @@ public final class WorkloadNetworkProperties implements JsonSerializable { /* @@ -37,7 +37,7 @@ public final class WorkloadNetworkVirtualMachineProperties /** * Creates an instance of WorkloadNetworkVirtualMachineProperties class. */ - public WorkloadNetworkVirtualMachineProperties() { + private WorkloadNetworkVirtualMachineProperties() { } /** @@ -58,17 +58,6 @@ public String displayName() { return this.displayName; } - /** - * Set the displayName property: Display name of the VM. - * - * @param displayName the displayName value to set. - * @return the WorkloadNetworkVirtualMachineProperties object itself. - */ - public WorkloadNetworkVirtualMachineProperties withDisplayName(String displayName) { - this.displayName = displayName; - return this; - } - /** * Get the vmType property: Virtual machine type. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java index e4db28356c76..b69621f5a187 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the inner data models for AvsClient. + * Package containing the inner data models for Avs. * Azure VMware Solution API. */ package com.azure.resourcemanager.avs.fluent.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java index 8b4c79e23926..76ed4c3f53b0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the service clients for AvsClient. + * Package containing the service clients for Avs. * Azure VMware Solution API. */ package com.azure.resourcemanager.avs.fluent; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java index 25e3dc35424c..ce51c86b1356 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java index ad4adc964f47..d98200df74cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.AddonsClient; import com.azure.resourcemanager.avs.fluent.models.AddonInner; -import com.azure.resourcemanager.avs.models.AddonList; +import com.azure.resourcemanager.avs.implementation.models.AddonList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -66,55 +66,55 @@ public final class AddonsClientImpl implements AddonsClient { * The interface defining all the services for AvsClientAddons to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientAddons") public interface AddonsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName, - @BodyParam("application/json") AddonInner addon, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, @BodyParam("application/json") AddonInner addon, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -432,7 +432,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, addon, accept, + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, accept, addon, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -480,7 +480,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, addon, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, accept, addon, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java index cb695b25b924..9f24e290c0cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java index 72430f2f6c48..eb17c72e74b4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java index 7d2610cb9246..7259697452fb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.AuthorizationsClient; import com.azure.resourcemanager.avs.fluent.models.ExpressRouteAuthorizationInner; -import com.azure.resourcemanager.avs.models.ExpressRouteAuthorizationList; +import com.azure.resourcemanager.avs.implementation.models.ExpressRouteAuthorizationList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,51 +67,50 @@ public final class AuthorizationsClientImpl implements AuthorizationsClient { * The interface defining all the services for AvsClientAuthorizations to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientAuthorizati") public interface AuthorizationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept, + @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("authorizationName") String authorizationName, - @BodyParam("application/json") ExpressRouteAuthorizationInner authorization, - @HeaderParam("Accept") String accept, Context context); + @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept, + @BodyParam("application/json") ExpressRouteAuthorizationInner authorization, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept, + @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -119,8 +118,8 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** @@ -447,8 +446,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, authorization, - accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, accept, + authorization, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -497,8 +496,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, authorization, - accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, accept, + authorization, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java index 8c94f4de85a1..20d393d5a570 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java index 73199a2e75a0..72c78a4af843 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -20,34 +20,34 @@ @ServiceClientBuilder(serviceClients = { AvsClientImpl.class }) public final class AvsClientBuilder { /* - * The ID of the target subscription. The value must be an UUID. + * Server parameter */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. The value must be an UUID. + * Sets Server parameter. * - * @param subscriptionId the subscriptionId value. + * @param endpoint the endpoint value. * @return the AvsClientBuilder. */ - public AvsClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public AvsClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. + * @param subscriptionId the subscriptionId value. * @return the AvsClientBuilder. */ - public AvsClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public AvsClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -121,7 +121,6 @@ public AvsClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { * @return an instance of AvsClientImpl. */ public AvsClientImpl buildClient() { - String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) ? pipeline @@ -132,7 +131,7 @@ public AvsClientImpl buildClient() { ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); AvsClientImpl client = new AvsClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, - localEnvironment, this.subscriptionId, localEndpoint); + localEnvironment, this.endpoint, this.subscriptionId); return client; } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java index 57bbc45c1895..ddbc989cf253 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -56,26 +56,12 @@ @ServiceClient(builder = AvsClientBuilder.class) public final class AvsClientImpl implements AvsClient { /** - * The ID of the target subscription. The value must be an UUID. - */ - private final String subscriptionId; - - /** - * Gets The ID of the target subscription. The value must be an UUID. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * server parameter. + * Server parameter. */ private final String endpoint; /** - * Gets server parameter. + * Gets Server parameter. * * @return the endpoint value. */ @@ -84,12 +70,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -97,6 +83,20 @@ public String getApiVersion() { return this.apiVersion; } + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * The HTTP pipeline to send requests through. */ @@ -181,48 +181,6 @@ public PrivateCloudsClient getPrivateClouds() { return this.privateClouds; } - /** - * The AddonsClient object to access its operations. - */ - private final AddonsClient addons; - - /** - * Gets the AddonsClient object to access its operations. - * - * @return the AddonsClient object. - */ - public AddonsClient getAddons() { - return this.addons; - } - - /** - * The AuthorizationsClient object to access its operations. - */ - private final AuthorizationsClient authorizations; - - /** - * Gets the AuthorizationsClient object to access its operations. - * - * @return the AuthorizationsClient object. - */ - public AuthorizationsClient getAuthorizations() { - return this.authorizations; - } - - /** - * The CloudLinksClient object to access its operations. - */ - private final CloudLinksClient cloudLinks; - - /** - * Gets the CloudLinksClient object to access its operations. - * - * @return the CloudLinksClient object. - */ - public CloudLinksClient getCloudLinks() { - return this.cloudLinks; - } - /** * The ClustersClient object to access its operations. */ @@ -252,31 +210,31 @@ public DatastoresClient getDatastores() { } /** - * The PlacementPoliciesClient object to access its operations. + * The HcxEnterpriseSitesClient object to access its operations. */ - private final PlacementPoliciesClient placementPolicies; + private final HcxEnterpriseSitesClient hcxEnterpriseSites; /** - * Gets the PlacementPoliciesClient object to access its operations. + * Gets the HcxEnterpriseSitesClient object to access its operations. * - * @return the PlacementPoliciesClient object. + * @return the HcxEnterpriseSitesClient object. */ - public PlacementPoliciesClient getPlacementPolicies() { - return this.placementPolicies; + public HcxEnterpriseSitesClient getHcxEnterpriseSites() { + return this.hcxEnterpriseSites; } /** - * The VirtualMachinesClient object to access its operations. + * The AuthorizationsClient object to access its operations. */ - private final VirtualMachinesClient virtualMachines; + private final AuthorizationsClient authorizations; /** - * Gets the VirtualMachinesClient object to access its operations. + * Gets the AuthorizationsClient object to access its operations. * - * @return the VirtualMachinesClient object. + * @return the AuthorizationsClient object. */ - public VirtualMachinesClient getVirtualMachines() { - return this.virtualMachines; + public AuthorizationsClient getAuthorizations() { + return this.authorizations; } /** @@ -294,45 +252,59 @@ public GlobalReachConnectionsClient getGlobalReachConnections() { } /** - * The HcxEnterpriseSitesClient object to access its operations. + * The CloudLinksClient object to access its operations. */ - private final HcxEnterpriseSitesClient hcxEnterpriseSites; + private final CloudLinksClient cloudLinks; /** - * Gets the HcxEnterpriseSitesClient object to access its operations. + * Gets the CloudLinksClient object to access its operations. * - * @return the HcxEnterpriseSitesClient object. + * @return the CloudLinksClient object. */ - public HcxEnterpriseSitesClient getHcxEnterpriseSites() { - return this.hcxEnterpriseSites; + public CloudLinksClient getCloudLinks() { + return this.cloudLinks; } /** - * The IscsiPathsClient object to access its operations. + * The AddonsClient object to access its operations. */ - private final IscsiPathsClient iscsiPaths; + private final AddonsClient addons; /** - * Gets the IscsiPathsClient object to access its operations. + * Gets the AddonsClient object to access its operations. * - * @return the IscsiPathsClient object. + * @return the AddonsClient object. */ - public IscsiPathsClient getIscsiPaths() { - return this.iscsiPaths; + public AddonsClient getAddons() { + return this.addons; } /** - * The ScriptExecutionsClient object to access its operations. + * The VirtualMachinesClient object to access its operations. */ - private final ScriptExecutionsClient scriptExecutions; + private final VirtualMachinesClient virtualMachines; /** - * Gets the ScriptExecutionsClient object to access its operations. + * Gets the VirtualMachinesClient object to access its operations. * - * @return the ScriptExecutionsClient object. + * @return the VirtualMachinesClient object. */ - public ScriptExecutionsClient getScriptExecutions() { - return this.scriptExecutions; + public VirtualMachinesClient getVirtualMachines() { + return this.virtualMachines; + } + + /** + * The PlacementPoliciesClient object to access its operations. + */ + private final PlacementPoliciesClient placementPolicies; + + /** + * Gets the PlacementPoliciesClient object to access its operations. + * + * @return the PlacementPoliciesClient object. + */ + public PlacementPoliciesClient getPlacementPolicies() { + return this.placementPolicies; } /** @@ -363,6 +335,34 @@ public ScriptCmdletsClient getScriptCmdlets() { return this.scriptCmdlets; } + /** + * The ScriptExecutionsClient object to access its operations. + */ + private final ScriptExecutionsClient scriptExecutions; + + /** + * Gets the ScriptExecutionsClient object to access its operations. + * + * @return the ScriptExecutionsClient object. + */ + public ScriptExecutionsClient getScriptExecutions() { + return this.scriptExecutions; + } + + /** + * The IscsiPathsClient object to access its operations. + */ + private final IscsiPathsClient iscsiPaths; + + /** + * Gets the IscsiPathsClient object to access its operations. + * + * @return the IscsiPathsClient object. + */ + public IscsiPathsClient getIscsiPaths() { + return this.iscsiPaths; + } + /** * The WorkloadNetworksClient object to access its operations. */ @@ -384,33 +384,33 @@ public WorkloadNetworksClient getWorkloadNetworks() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. + * @param endpoint Server parameter. * @param subscriptionId The ID of the target subscription. The value must be an UUID. - * @param endpoint server parameter. */ AvsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, - AzureEnvironment environment, String subscriptionId, String endpoint) { + AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; + this.subscriptionId = subscriptionId; this.apiVersion = "2023-09-01"; this.operations = new OperationsClientImpl(this); this.locations = new LocationsClientImpl(this); this.privateClouds = new PrivateCloudsClientImpl(this); - this.addons = new AddonsClientImpl(this); - this.authorizations = new AuthorizationsClientImpl(this); - this.cloudLinks = new CloudLinksClientImpl(this); this.clusters = new ClustersClientImpl(this); this.datastores = new DatastoresClientImpl(this); - this.placementPolicies = new PlacementPoliciesClientImpl(this); - this.virtualMachines = new VirtualMachinesClientImpl(this); - this.globalReachConnections = new GlobalReachConnectionsClientImpl(this); this.hcxEnterpriseSites = new HcxEnterpriseSitesClientImpl(this); - this.iscsiPaths = new IscsiPathsClientImpl(this); - this.scriptExecutions = new ScriptExecutionsClientImpl(this); + this.authorizations = new AuthorizationsClientImpl(this); + this.globalReachConnections = new GlobalReachConnectionsClientImpl(this); + this.cloudLinks = new CloudLinksClientImpl(this); + this.addons = new AddonsClientImpl(this); + this.virtualMachines = new VirtualMachinesClientImpl(this); + this.placementPolicies = new PlacementPoliciesClientImpl(this); this.scriptPackages = new ScriptPackagesClientImpl(this); this.scriptCmdlets = new ScriptCmdletsClientImpl(this); + this.scriptExecutions = new ScriptExecutionsClientImpl(this); + this.iscsiPaths = new IscsiPathsClientImpl(this); this.workloadNetworks = new WorkloadNetworksClientImpl(this); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java index b67fe90ef706..4479dd7d9d4f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java index 46858d1e2888..ac2f1aa325dd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.CloudLinksClient; import com.azure.resourcemanager.avs.fluent.models.CloudLinkInner; -import com.azure.resourcemanager.avs.models.CloudLinkList; +import com.azure.resourcemanager.avs.implementation.models.CloudLinkList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,56 +67,56 @@ public final class CloudLinksClientImpl implements CloudLinksClient { * The interface defining all the services for AvsClientCloudLinks to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientCloudLinks") public interface CloudLinksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName, - @BodyParam("application/json") CloudLinkInner cloudLink, @HeaderParam("Accept") String accept, + @HeaderParam("accept") String accept, @BodyParam("application/json") CloudLinkInner cloudLink, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -434,7 +434,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, cloudLink, accept, + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, accept, cloudLink, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -482,7 +482,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, cloudLink, accept, + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, accept, cloudLink, context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java index 19d66b038bed..16f1190aa18e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java index da07764b672d..ed8f26fde32e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java index 7c77d52c280f..ce644b168f91 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java index 20a4cd159159..ea0b217f3868 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.avs.fluent.ClustersClient; import com.azure.resourcemanager.avs.fluent.models.ClusterInner; import com.azure.resourcemanager.avs.fluent.models.ClusterZoneListInner; -import com.azure.resourcemanager.avs.models.ClusterList; +import com.azure.resourcemanager.avs.implementation.models.ClusterList; import com.azure.resourcemanager.avs.models.ClusterUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -70,76 +70,76 @@ public final class ClustersClientImpl implements ClustersClient { * The interface defining all the services for AvsClientClusters to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientClusters") public interface ClustersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @BodyParam("application/json") ClusterInner cluster, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, @BodyParam("application/json") ClusterInner cluster, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @BodyParam("application/json") ClusterUpdate clusterUpdate, @HeaderParam("Accept") String accept, + @HeaderParam("accept") String accept, @BodyParam("application/json") ClusterUpdate clusterUpdate, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/listZones") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listZones(@HostParam("$host") String endpoint, + Mono> listZones(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -457,7 +457,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, cluster, accept, + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, accept, cluster, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -505,7 +505,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, cluster, accept, + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, accept, cluster, context); } @@ -709,8 +709,8 @@ private Mono>> updateWithResponseAsync(String resource final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, clusterUpdate, - accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, accept, + clusterUpdate, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -757,7 +757,7 @@ private Mono>> updateWithResponseAsync(String resource final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, clusterName, clusterUpdate, accept, context); + resourceGroupName, privateCloudName, clusterName, accept, clusterUpdate, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersImpl.java index 6f100e07c5e4..44a865f1d30c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoreImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoreImpl.java index 22da4af4da4d..2ec4ebb64c6d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoreImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoreImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresClientImpl.java index dde4fb55d9b5..038bf652471a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.DatastoresClient; import com.azure.resourcemanager.avs.fluent.models.DatastoreInner; -import com.azure.resourcemanager.avs.models.DatastoreList; +import com.azure.resourcemanager.avs.implementation.models.DatastoreList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,56 +67,56 @@ public final class DatastoresClientImpl implements DatastoresClient { * The interface defining all the services for AvsClientDatastores to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientDatastores") public interface DatastoresService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("datastoreName") String datastoreName, @HeaderParam("Accept") String accept, Context context); + @PathParam("datastoreName") String datastoreName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("datastoreName") String datastoreName, @BodyParam("application/json") DatastoreInner datastore, - @HeaderParam("Accept") String accept, Context context); + @PathParam("datastoreName") String datastoreName, @HeaderParam("accept") String accept, + @BodyParam("application/json") DatastoreInner datastore, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("datastoreName") String datastoreName, @HeaderParam("Accept") String accept, Context context); + @PathParam("datastoreName") String datastoreName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -469,7 +469,7 @@ private Mono>> createOrUpdateWithResponseAsync(String return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, datastoreName, - datastore, accept, context)) + accept, datastore, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -520,8 +520,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, datastoreName, datastore, - accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, datastoreName, accept, + datastore, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresImpl.java index 98056b46339f..8e80d9b6f8be 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/DatastoresImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ExpressRouteAuthorizationImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ExpressRouteAuthorizationImpl.java index 0f999a829817..17c32847ba5a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ExpressRouteAuthorizationImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ExpressRouteAuthorizationImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionImpl.java index 1d04e814aa58..87be690cffc5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsClientImpl.java index 542114ae0d9d..b2887e4e68ea 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.GlobalReachConnectionsClient; import com.azure.resourcemanager.avs.fluent.models.GlobalReachConnectionInner; -import com.azure.resourcemanager.avs.models.GlobalReachConnectionList; +import com.azure.resourcemanager.avs.implementation.models.GlobalReachConnectionList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,60 +67,60 @@ public final class GlobalReachConnectionsClientImpl implements GlobalReachConnec * The interface defining all the services for AvsClientGlobalReachConnections to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientGlobalReach") public interface GlobalReachConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("globalReachConnectionName") String globalReachConnectionName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("globalReachConnectionName") String globalReachConnectionName, - @BodyParam("application/json") GlobalReachConnectionInner globalReachConnection, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, + @BodyParam("application/json") GlobalReachConnectionInner globalReachConnection, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("globalReachConnectionName") String globalReachConnectionName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** @@ -448,8 +448,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, globalReachConnectionName, - globalReachConnection, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, globalReachConnectionName, accept, + globalReachConnection, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -499,8 +499,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, globalReachConnectionName, - globalReachConnection, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, globalReachConnectionName, accept, + globalReachConnection, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsImpl.java index 14d3a90821ce..8679a5ebc4b9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/GlobalReachConnectionsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSiteImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSiteImpl.java index 81b63f7735c0..9109973e4092 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSiteImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSiteImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesClientImpl.java index 12a5cdda84cb..a81c54343cb3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -30,7 +30,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.avs.fluent.HcxEnterpriseSitesClient; import com.azure.resourcemanager.avs.fluent.models.HcxEnterpriseSiteInner; -import com.azure.resourcemanager.avs.models.HcxEnterpriseSiteList; +import com.azure.resourcemanager.avs.implementation.models.HcxEnterpriseSiteList; import reactor.core.publisher.Mono; /** @@ -62,51 +62,50 @@ public final class HcxEnterpriseSitesClientImpl implements HcxEnterpriseSitesCli * The interface defining all the services for AvsClientHcxEnterpriseSites to be used by the proxy service to * perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientHcxEnterpri") public interface HcxEnterpriseSitesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, @HeaderParam("Accept") String accept, + @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, - @BodyParam("application/json") HcxEnterpriseSiteInner hcxEnterpriseSite, - @HeaderParam("Accept") String accept, Context context); + @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, @HeaderParam("accept") String accept, + @BodyParam("application/json") HcxEnterpriseSiteInner hcxEnterpriseSite, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites/{hcxEnterpriseSiteName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, @HeaderParam("Accept") String accept, + @PathParam("hcxEnterpriseSiteName") String hcxEnterpriseSiteName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -114,7 +113,7 @@ Mono> delete(@HostParam("$host") String endpoint, @QueryParam("ap @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -441,8 +440,8 @@ private Mono> createOrUpdateWithResponseAsync(S final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, hcxEnterpriseSiteName, - hcxEnterpriseSite, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, hcxEnterpriseSiteName, accept, + hcxEnterpriseSite, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -492,8 +491,8 @@ private Mono> createOrUpdateWithResponseAsync(S final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, hcxEnterpriseSiteName, - hcxEnterpriseSite, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, hcxEnterpriseSiteName, accept, + hcxEnterpriseSite, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesImpl.java index 42a7c39ca69e..519363e73a4b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/HcxEnterpriseSitesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathImpl.java index 5e900351c35b..822cf3e4851f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathImpl.java @@ -1,24 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; import com.azure.resourcemanager.avs.models.IscsiPath; import com.azure.resourcemanager.avs.models.IscsiPathProvisioningState; -public final class IscsiPathImpl implements IscsiPath { +public final class IscsiPathImpl implements IscsiPath, IscsiPath.Definition, IscsiPath.Update { private IscsiPathInner innerObject; private final com.azure.resourcemanager.avs.AvsManager serviceManager; - IscsiPathImpl(IscsiPathInner innerObject, com.azure.resourcemanager.avs.AvsManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - public String id() { return this.innerModel().id(); } @@ -43,6 +39,10 @@ public String networkBlock() { return this.innerModel().networkBlock(); } + public String resourceGroupName() { + return resourceGroupName; + } + public IscsiPathInner innerModel() { return this.innerObject; } @@ -50,4 +50,83 @@ public IscsiPathInner innerModel() { private com.azure.resourcemanager.avs.AvsManager manager() { return this.serviceManager; } + + private String resourceGroupName; + + private String privateCloudName; + + private String iscsiPathName; + + public IscsiPathImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + this.resourceGroupName = resourceGroupName; + this.privateCloudName = privateCloudName; + return this; + } + + public IscsiPath create() { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .createOrUpdate(resourceGroupName, privateCloudName, iscsiPathName, this.innerModel(), Context.NONE); + return this; + } + + public IscsiPath create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .createOrUpdate(resourceGroupName, privateCloudName, iscsiPathName, this.innerModel(), context); + return this; + } + + IscsiPathImpl(String name, com.azure.resourcemanager.avs.AvsManager serviceManager) { + this.innerObject = new IscsiPathInner(); + this.serviceManager = serviceManager; + this.iscsiPathName = name; + } + + public IscsiPathImpl update() { + return this; + } + + public IscsiPath apply() { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .createOrUpdate(resourceGroupName, privateCloudName, iscsiPathName, this.innerModel(), Context.NONE); + return this; + } + + public IscsiPath apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .createOrUpdate(resourceGroupName, privateCloudName, iscsiPathName, this.innerModel(), context); + return this; + } + + IscsiPathImpl(IscsiPathInner innerObject, com.azure.resourcemanager.avs.AvsManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.iscsiPathName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "iscsiPaths"); + } + + public IscsiPath refresh() { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, Context.NONE) + .getValue(); + return this; + } + + public IscsiPath refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIscsiPaths() + .getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, context) + .getValue(); + return this; + } + + public IscsiPathImpl withNetworkBlock(String networkBlock) { + this.innerModel().withNetworkBlock(networkBlock); + return this; + } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsClientImpl.java index e3415c8b9cc4..9ee79639c73f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -33,7 +33,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.IscsiPathsClient; import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; -import com.azure.resourcemanager.avs.models.IscsiPathListResult; +import com.azure.resourcemanager.avs.implementation.models.IscsiPathListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,57 +67,57 @@ public final class IscsiPathsClientImpl implements IscsiPathsClient { * The interface defining all the services for AvsClientIscsiPaths to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientIscsiPaths") public interface IscsiPathsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByPrivateCloud(@HostParam("$host") String endpoint, + Mono> listByPrivateCloud(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/{iscsiPathName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("privateCloudName") String privateCloudName, @PathParam("iscsiPathName") String iscsiPathName, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/{iscsiPathName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, - @BodyParam("application/json") IscsiPathInner resource, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @PathParam("iscsiPathName") String iscsiPathName, + @HeaderParam("accept") String accept, @BodyParam("application/json") IscsiPathInner resource, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/{iscsiPathName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("privateCloudName") String privateCloudName, @PathParam("iscsiPathName") String iscsiPathName, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByPrivateCloudNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** @@ -270,13 +270,15 @@ public PagedIterable listByPrivateCloud(String resourceGroupName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName) { + private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName, + String iscsiPathName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -293,10 +295,13 @@ private Mono> getWithResponseAsync(String resourceGroup return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -305,6 +310,7 @@ private Mono> getWithResponseAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -313,7 +319,7 @@ private Mono> getWithResponseAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName, - Context context) { + String iscsiPathName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -330,10 +336,13 @@ private Mono> getWithResponseAsync(String resourceGroup return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context); + resourceGroupName, privateCloudName, iscsiPathName, accept, context); } /** @@ -341,14 +350,15 @@ private Mono> getWithResponseAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String privateCloudName) { - return getWithResponseAsync(resourceGroupName, privateCloudName) + private Mono getAsync(String resourceGroupName, String privateCloudName, String iscsiPathName) { + return getWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -357,6 +367,7 @@ private Mono getAsync(String resourceGroupName, String privateCl * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -365,8 +376,8 @@ private Mono getAsync(String resourceGroupName, String privateCl */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String privateCloudName, - Context context) { - return getWithResponseAsync(resourceGroupName, privateCloudName, context).block(); + String iscsiPathName, Context context) { + return getWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName, context).block(); } /** @@ -374,14 +385,15 @@ public Response getWithResponse(String resourceGroupName, String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IscsiPathInner get(String resourceGroupName, String privateCloudName) { - return getWithResponse(resourceGroupName, privateCloudName, Context.NONE).getValue(); + public IscsiPathInner get(String resourceGroupName, String privateCloudName, String iscsiPathName) { + return getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, Context.NONE).getValue(); } /** @@ -389,6 +401,7 @@ public IscsiPathInner get(String resourceGroupName, String privateCloudName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -397,7 +410,7 @@ public IscsiPathInner get(String resourceGroupName, String privateCloudName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String privateCloudName, IscsiPathInner resource) { + String privateCloudName, String iscsiPathName, IscsiPathInner resource) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -414,6 +427,9 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } if (resource == null) { return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); } else { @@ -422,7 +438,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, resource, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -431,6 +448,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -440,7 +458,7 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String privateCloudName, IscsiPathInner resource, Context context) { + String privateCloudName, String iscsiPathName, IscsiPathInner resource, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -457,6 +475,9 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } if (resource == null) { return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); } else { @@ -465,7 +486,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, resource, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, resource, + context); } /** @@ -473,6 +495,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -481,9 +504,9 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IscsiPathInner> beginCreateOrUpdateAsync(String resourceGroupName, - String privateCloudName, IscsiPathInner resource) { + String privateCloudName, String iscsiPathName, IscsiPathInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, privateCloudName, resource); + = createOrUpdateWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName, resource); return this.client.getLroResult(mono, this.client.getHttpPipeline(), IscsiPathInner.class, IscsiPathInner.class, this.client.getContext()); } @@ -493,6 +516,7 @@ private PollerFlux, IscsiPathInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -502,10 +526,10 @@ private PollerFlux, IscsiPathInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IscsiPathInner> beginCreateOrUpdateAsync(String resourceGroupName, - String privateCloudName, IscsiPathInner resource, Context context) { + String privateCloudName, String iscsiPathName, IscsiPathInner resource, Context context) { context = this.client.mergeContext(context); Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, privateCloudName, resource, context); + = createOrUpdateWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName, resource, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), IscsiPathInner.class, IscsiPathInner.class, context); } @@ -515,6 +539,7 @@ private PollerFlux, IscsiPathInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -523,8 +548,9 @@ private PollerFlux, IscsiPathInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName, - String privateCloudName, IscsiPathInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, resource).getSyncPoller(); + String privateCloudName, String iscsiPathName, IscsiPathInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource) + .getSyncPoller(); } /** @@ -532,6 +558,7 @@ public SyncPoller, IscsiPathInner> beginCreateOrUpdat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -541,8 +568,9 @@ public SyncPoller, IscsiPathInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName, - String privateCloudName, IscsiPathInner resource, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, resource, context).getSyncPoller(); + String privateCloudName, String iscsiPathName, IscsiPathInner resource, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource, context) + .getSyncPoller(); } /** @@ -550,6 +578,7 @@ public SyncPoller, IscsiPathInner> beginCreateOrUpdat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -558,8 +587,8 @@ public SyncPoller, IscsiPathInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String privateCloudName, - IscsiPathInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, resource).last() + String iscsiPathName, IscsiPathInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -568,6 +597,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,8 +607,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String privateCloudName, - IscsiPathInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, resource, context).last() + String iscsiPathName, IscsiPathInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -587,6 +617,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -594,8 +625,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * @return an iSCSI path resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource) { - return createOrUpdateAsync(resourceGroupName, privateCloudName, resource).block(); + public IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName, + IscsiPathInner resource) { + return createOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource).block(); } /** @@ -603,6 +635,7 @@ public IscsiPathInner createOrUpdate(String resourceGroupName, String privateClo * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -611,9 +644,9 @@ public IscsiPathInner createOrUpdate(String resourceGroupName, String privateClo * @return an iSCSI path resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource, - Context context) { - return createOrUpdateAsync(resourceGroupName, privateCloudName, resource, context).block(); + public IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName, + IscsiPathInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, privateCloudName, iscsiPathName, resource, context).block(); } /** @@ -621,14 +654,15 @@ public IscsiPathInner createOrUpdate(String resourceGroupName, String privateClo * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, - String privateCloudName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String privateCloudName, + String iscsiPathName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -645,10 +679,13 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -657,6 +694,7 @@ private Mono>> deleteWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -665,7 +703,7 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String privateCloudName, - Context context) { + String iscsiPathName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -682,10 +720,13 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (iscsiPathName == null) { + return Mono.error(new IllegalArgumentException("Parameter iscsiPathName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context); + resourceGroupName, privateCloudName, iscsiPathName, accept, context); } /** @@ -693,14 +734,17 @@ private Mono>> deleteWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateCloudName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateCloudName); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateCloudName, + String iscsiPathName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -710,6 +754,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -718,9 +763,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateCloudName, - Context context) { + String iscsiPathName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateCloudName, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, privateCloudName, iscsiPathName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -730,14 +776,16 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName) { - return this.beginDeleteAsync(resourceGroupName, privateCloudName).getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, + String iscsiPathName) { + return this.beginDeleteAsync(resourceGroupName, privateCloudName, iscsiPathName).getSyncPoller(); } /** @@ -745,6 +793,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -753,8 +802,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, - Context context) { - return this.beginDeleteAsync(resourceGroupName, privateCloudName, context).getSyncPoller(); + String iscsiPathName, Context context) { + return this.beginDeleteAsync(resourceGroupName, privateCloudName, iscsiPathName, context).getSyncPoller(); } /** @@ -762,14 +811,15 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String privateCloudName) { - return beginDeleteAsync(resourceGroupName, privateCloudName).last() + private Mono deleteAsync(String resourceGroupName, String privateCloudName, String iscsiPathName) { + return beginDeleteAsync(resourceGroupName, privateCloudName, iscsiPathName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -778,6 +828,7 @@ private Mono deleteAsync(String resourceGroupName, String privateCloudName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -785,8 +836,9 @@ private Mono deleteAsync(String resourceGroupName, String privateCloudName * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String privateCloudName, Context context) { - return beginDeleteAsync(resourceGroupName, privateCloudName, context).last() + private Mono deleteAsync(String resourceGroupName, String privateCloudName, String iscsiPathName, + Context context) { + return beginDeleteAsync(resourceGroupName, privateCloudName, iscsiPathName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -795,13 +847,14 @@ private Mono deleteAsync(String resourceGroupName, String privateCloudName * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String privateCloudName) { - deleteAsync(resourceGroupName, privateCloudName).block(); + public void delete(String resourceGroupName, String privateCloudName, String iscsiPathName) { + deleteAsync(resourceGroupName, privateCloudName, iscsiPathName).block(); } /** @@ -809,14 +862,15 @@ public void delete(String resourceGroupName, String privateCloudName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String privateCloudName, Context context) { - deleteAsync(resourceGroupName, privateCloudName, context).block(); + public void delete(String resourceGroupName, String privateCloudName, String iscsiPathName, Context context) { + deleteAsync(resourceGroupName, privateCloudName, iscsiPathName, context).block(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsImpl.java index 08222a97bdde..4ea5e6c7b4b6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/IscsiPathsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -39,9 +39,10 @@ public PagedIterable listByPrivateCloud(String resourceGroupName, Str return ResourceManagerUtils.mapPage(inner, inner1 -> new IscsiPathImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceGroupName, String privateCloudName, Context context) { + public Response getWithResponse(String resourceGroupName, String privateCloudName, String iscsiPathName, + Context context) { Response inner - = this.serviceClient().getWithResponse(resourceGroupName, privateCloudName, context); + = this.serviceClient().getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IscsiPathImpl(inner.getValue(), this.manager())); @@ -50,8 +51,8 @@ public Response getWithResponse(String resourceGroupName, String priv } } - public IscsiPath get(String resourceGroupName, String privateCloudName) { - IscsiPathInner inner = this.serviceClient().get(resourceGroupName, privateCloudName); + public IscsiPath get(String resourceGroupName, String privateCloudName, String iscsiPathName) { + IscsiPathInner inner = this.serviceClient().get(resourceGroupName, privateCloudName, iscsiPathName); if (inner != null) { return new IscsiPathImpl(inner, this.manager()); } else { @@ -59,32 +60,88 @@ public IscsiPath get(String resourceGroupName, String privateCloudName) { } } - public IscsiPath createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource) { - IscsiPathInner inner = this.serviceClient().createOrUpdate(resourceGroupName, privateCloudName, resource); - if (inner != null) { - return new IscsiPathImpl(inner, this.manager()); - } else { - return null; + public void delete(String resourceGroupName, String privateCloudName, String iscsiPathName) { + this.serviceClient().delete(resourceGroupName, privateCloudName, iscsiPathName); + } + + public void delete(String resourceGroupName, String privateCloudName, String iscsiPathName, Context context) { + this.serviceClient().delete(resourceGroupName, privateCloudName, iscsiPathName, context); + } + + public IscsiPath getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); + if (privateCloudName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String iscsiPathName = ResourceManagerUtils.getValueFromIdByName(id, "iscsiPaths"); + if (iscsiPathName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'iscsiPaths'.", id))); + } + return this.getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, Context.NONE).getValue(); } - public IscsiPath createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource, - Context context) { - IscsiPathInner inner - = this.serviceClient().createOrUpdate(resourceGroupName, privateCloudName, resource, context); - if (inner != null) { - return new IscsiPathImpl(inner, this.manager()); - } else { - return null; + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); + if (privateCloudName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String iscsiPathName = ResourceManagerUtils.getValueFromIdByName(id, "iscsiPaths"); + if (iscsiPathName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'iscsiPaths'.", id))); + } + return this.getWithResponse(resourceGroupName, privateCloudName, iscsiPathName, context); } - public void deleteByResourceGroup(String resourceGroupName, String privateCloudName) { - this.serviceClient().delete(resourceGroupName, privateCloudName); + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); + if (privateCloudName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); + } + String iscsiPathName = ResourceManagerUtils.getValueFromIdByName(id, "iscsiPaths"); + if (iscsiPathName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'iscsiPaths'.", id))); + } + this.delete(resourceGroupName, privateCloudName, iscsiPathName, Context.NONE); } - public void delete(String resourceGroupName, String privateCloudName, Context context) { - this.serviceClient().delete(resourceGroupName, privateCloudName, context); + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); + if (privateCloudName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); + } + String iscsiPathName = ResourceManagerUtils.getValueFromIdByName(id, "iscsiPaths"); + if (iscsiPathName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'iscsiPaths'.", id))); + } + this.delete(resourceGroupName, privateCloudName, iscsiPathName, context); } private IscsiPathsClient serviceClient() { @@ -94,4 +151,8 @@ private IscsiPathsClient serviceClient() { private com.azure.resourcemanager.avs.AvsManager manager() { return this.serviceManager; } + + public IscsiPathImpl define(String name) { + return new IscsiPathImpl(name, this.manager()); + } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsClientImpl.java index aba40d6e6af4..7492fa79aaf5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -57,38 +57,39 @@ public final class LocationsClientImpl implements LocationsClient { * The interface defining all the services for AvsClientLocations to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientLocations") public interface LocationsService { @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability") + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkQuotaAvailability(@HostParam("$host") String endpoint, + Mono> checkTrialAvailability(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @PathParam("location") String location, @HeaderParam("accept") String accept, + @BodyParam("application/json") Sku sku, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability") + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkTrialAvailability(@HostParam("$host") String endpoint, + Mono> checkQuotaAvailability(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @BodyParam("application/json") Sku sku, - @HeaderParam("Accept") String accept, Context context); + @PathParam("location") String location, @HeaderParam("accept") String accept, Context context); } /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. + * @param sku Optionally, check for a specific SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas along with {@link Response} on successful completion of {@link Mono}. + * @return subscription trial availability along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkQuotaAvailabilityWithResponseAsync(String location) { + private Mono> checkTrialAvailabilityWithResponseAsync(String location, Sku sku) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -100,25 +101,30 @@ private Mono> checkQuotaAvailabilityWithResponseAsync(Strin if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } + if (sku != null) { + sku.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkQuotaAvailability(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .withContext(context -> service.checkTrialAvailability(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, sku, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. + * @param sku Optionally, check for a specific SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas along with {@link Response} on successful completion of {@link Mono}. + * @return subscription trial availability along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkQuotaAvailabilityWithResponseAsync(String location, Context context) { + private Mono> checkTrialAvailabilityWithResponseAsync(String location, Sku sku, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -130,67 +136,72 @@ private Mono> checkQuotaAvailabilityWithResponseAsync(Strin if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } + if (sku != null) { + sku.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkQuotaAvailability(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, accept, context); + return service.checkTrialAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, sku, context); } /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas on successful completion of {@link Mono}. + * @return subscription trial availability on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkQuotaAvailabilityAsync(String location) { - return checkQuotaAvailabilityWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono checkTrialAvailabilityAsync(String location) { + final Sku sku = null; + return checkTrialAvailabilityWithResponseAsync(location, sku).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. + * @param sku Optionally, check for a specific SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas along with {@link Response}. + * @return subscription trial availability along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkQuotaAvailabilityWithResponse(String location, Context context) { - return checkQuotaAvailabilityWithResponseAsync(location, context).block(); + public Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context) { + return checkTrialAvailabilityWithResponseAsync(location, sku, context).block(); } /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas. + * @return subscription trial availability. */ @ServiceMethod(returns = ReturnType.SINGLE) - public QuotaInner checkQuotaAvailability(String location) { - return checkQuotaAvailabilityWithResponse(location, Context.NONE).getValue(); + public TrialInner checkTrialAvailability(String location) { + final Sku sku = null; + return checkTrialAvailabilityWithResponse(location, sku, Context.NONE).getValue(); } /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. - * @param sku Optionally, check for a specific SKU. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability along with {@link Response} on successful completion of {@link Mono}. + * @return subscription quotas along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkTrialAvailabilityWithResponseAsync(String location, Sku sku) { + private Mono> checkQuotaAvailabilityWithResponseAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -202,30 +213,25 @@ private Mono> checkTrialAvailabilityWithResponseAsync(Strin if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (sku != null) { - sku.validate(); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.checkTrialAvailability(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, sku, accept, context)) + .withContext(context -> service.checkQuotaAvailability(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. - * @param sku Optionally, check for a specific SKU. + * @param location A location in a subscription. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability along with {@link Response} on successful completion of {@link Mono}. + * @return subscription quotas along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkTrialAvailabilityWithResponseAsync(String location, Sku sku, - Context context) { + private Mono> checkQuotaAvailabilityWithResponseAsync(String location, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -237,58 +243,52 @@ private Mono> checkTrialAvailabilityWithResponseAsync(Strin if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - if (sku != null) { - sku.validate(); - } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.checkTrialAvailability(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, sku, accept, context); + return service.checkQuotaAvailability(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); } /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability on successful completion of {@link Mono}. + * @return subscription quotas on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkTrialAvailabilityAsync(String location) { - final Sku sku = null; - return checkTrialAvailabilityWithResponseAsync(location, sku).flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono checkQuotaAvailabilityAsync(String location) { + return checkQuotaAvailabilityWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. - * @param sku Optionally, check for a specific SKU. + * @param location A location in a subscription. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability along with {@link Response}. + * @return subscription quotas along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context) { - return checkTrialAvailabilityWithResponseAsync(location, sku, context).block(); + public Response checkQuotaAvailabilityWithResponse(String location, Context context) { + return checkQuotaAvailabilityWithResponseAsync(location, context).block(); } /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability. + * @return subscription quotas. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TrialInner checkTrialAvailability(String location) { - final Sku sku = null; - return checkTrialAvailabilityWithResponse(location, sku, Context.NONE).getValue(); + public QuotaInner checkQuotaAvailability(String location) { + return checkQuotaAvailabilityWithResponse(location, Context.NONE).getValue(); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsImpl.java index 74c26507054d..cb4abf7f62df 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/LocationsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -28,39 +28,39 @@ public LocationsImpl(LocationsClient innerClient, com.azure.resourcemanager.avs. this.serviceManager = serviceManager; } - public Response checkQuotaAvailabilityWithResponse(String location, Context context) { - Response inner = this.serviceClient().checkQuotaAvailabilityWithResponse(location, context); + public Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context) { + Response inner = this.serviceClient().checkTrialAvailabilityWithResponse(location, sku, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new QuotaImpl(inner.getValue(), this.manager())); + new TrialImpl(inner.getValue(), this.manager())); } else { return null; } } - public Quota checkQuotaAvailability(String location) { - QuotaInner inner = this.serviceClient().checkQuotaAvailability(location); + public Trial checkTrialAvailability(String location) { + TrialInner inner = this.serviceClient().checkTrialAvailability(location); if (inner != null) { - return new QuotaImpl(inner, this.manager()); + return new TrialImpl(inner, this.manager()); } else { return null; } } - public Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context) { - Response inner = this.serviceClient().checkTrialAvailabilityWithResponse(location, sku, context); + public Response checkQuotaAvailabilityWithResponse(String location, Context context) { + Response inner = this.serviceClient().checkQuotaAvailabilityWithResponse(location, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new TrialImpl(inner.getValue(), this.manager())); + new QuotaImpl(inner.getValue(), this.manager())); } else { return null; } } - public Trial checkTrialAvailability(String location) { - TrialInner inner = this.serviceClient().checkTrialAvailability(location); + public Quota checkQuotaAvailability(String location) { + QuotaInner inner = this.serviceClient().checkQuotaAvailability(location); if (inner != null) { - return new TrialImpl(inner, this.manager()); + return new QuotaImpl(inner, this.manager()); } else { return null; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationImpl.java index 71b1ec5903a1..582b45fd69e1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsClientImpl.java index ab37aaed4fe1..c48bdb504b5f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.avs.fluent.OperationsClient; import com.azure.resourcemanager.avs.fluent.models.OperationInner; -import com.azure.resourcemanager.avs.models.OperationListResult; +import com.azure.resourcemanager.avs.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -59,22 +59,22 @@ public final class OperationsClientImpl implements OperationsClient { * The interface defining all the services for AvsClientOperations to be used by the proxy service to perform REST * calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.AVS/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsImpl.java index 18874dc0aeff..d95c138012a2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/OperationsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesClientImpl.java index 315221c4b5fb..8518d9a16dc0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.PlacementPoliciesClient; import com.azure.resourcemanager.avs.fluent.models.PlacementPolicyInner; -import com.azure.resourcemanager.avs.models.PlacementPoliciesList; +import com.azure.resourcemanager.avs.implementation.models.PlacementPoliciesList; import com.azure.resourcemanager.avs.models.PlacementPolicyUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -69,63 +69,61 @@ public final class PlacementPoliciesClientImpl implements PlacementPoliciesClien * The interface defining all the services for AvsClientPlacementPolicies to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientPlacementPo") public interface PlacementPoliciesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("Accept") String accept, + @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("placementPolicyName") String placementPolicyName, - @BodyParam("application/json") PlacementPolicyInner placementPolicy, @HeaderParam("Accept") String accept, - Context context); + @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("accept") String accept, + @BodyParam("application/json") PlacementPolicyInner placementPolicy, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("placementPolicyName") String placementPolicyName, - @BodyParam("application/json") PlacementPolicyUpdate placementPolicyUpdate, - @HeaderParam("Accept") String accept, Context context); + @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("accept") String accept, + @BodyParam("application/json") PlacementPolicyUpdate placementPolicyUpdate, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("Accept") String accept, + @PathParam("placementPolicyName") String placementPolicyName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -133,7 +131,7 @@ Mono>> delete(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -494,7 +492,7 @@ private Mono>> createOrUpdateWithResponseAsync(String return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, placementPolicyName, - placementPolicy, accept, context)) + accept, placementPolicy, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -550,7 +548,7 @@ private Mono>> createOrUpdateWithResponseAsync(String context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, placementPolicyName, - placementPolicy, accept, context); + accept, placementPolicy, context); } /** @@ -780,7 +778,7 @@ private Mono>> updateWithResponseAsync(String resource return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, placementPolicyName, - placementPolicyUpdate, accept, context)) + accept, placementPolicyUpdate, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -834,7 +832,7 @@ private Mono>> updateWithResponseAsync(String resource final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, clusterName, placementPolicyName, placementPolicyUpdate, accept, + resourceGroupName, privateCloudName, clusterName, placementPolicyName, accept, placementPolicyUpdate, context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java index f834360a33f7..b2053d8cf91c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPoliciesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPolicyImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPolicyImpl.java index 6f9a44ad744e..b569436390db 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPolicyImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PlacementPolicyImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudImpl.java index 5faa5fd4dc6c..aa7eabaff98f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -266,13 +266,12 @@ public PrivateCloud refresh(Context context) { return this; } - public Response listAdminCredentialsWithResponse(Context context) { - return serviceManager.privateClouds() - .listAdminCredentialsWithResponse(resourceGroupName, privateCloudName, context); + public void rotateVcenterPassword() { + serviceManager.privateClouds().rotateVcenterPassword(resourceGroupName, privateCloudName); } - public AdminCredentials listAdminCredentials() { - return serviceManager.privateClouds().listAdminCredentials(resourceGroupName, privateCloudName); + public void rotateVcenterPassword(Context context) { + serviceManager.privateClouds().rotateVcenterPassword(resourceGroupName, privateCloudName, context); } public void rotateNsxtPassword() { @@ -283,12 +282,13 @@ public void rotateNsxtPassword(Context context) { serviceManager.privateClouds().rotateNsxtPassword(resourceGroupName, privateCloudName, context); } - public void rotateVcenterPassword() { - serviceManager.privateClouds().rotateVcenterPassword(resourceGroupName, privateCloudName); + public Response listAdminCredentialsWithResponse(Context context) { + return serviceManager.privateClouds() + .listAdminCredentialsWithResponse(resourceGroupName, privateCloudName, context); } - public void rotateVcenterPassword(Context context) { - serviceManager.privateClouds().rotateVcenterPassword(resourceGroupName, privateCloudName, context); + public AdminCredentials listAdminCredentials() { + return serviceManager.privateClouds().listAdminCredentials(resourceGroupName, privateCloudName); } public PrivateCloudImpl withRegion(Region location) { diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java index 7e0ea1bb8cf7..436c9285d38d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -36,7 +36,7 @@ import com.azure.resourcemanager.avs.fluent.PrivateCloudsClient; import com.azure.resourcemanager.avs.fluent.models.AdminCredentialsInner; import com.azure.resourcemanager.avs.fluent.models.PrivateCloudInner; -import com.azure.resourcemanager.avs.models.PrivateCloudList; +import com.azure.resourcemanager.avs.implementation.models.PrivateCloudList; import com.azure.resourcemanager.avs.models.PrivateCloudUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -71,124 +71,124 @@ public final class PrivateCloudsClientImpl implements PrivateCloudsClient { * The interface defining all the services for AvsClientPrivateClouds to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientPrivateClou") public interface PrivateCloudsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, - @BodyParam("application/json") PrivateCloudInner privateCloud, @HeaderParam("Accept") String accept, - Context context); + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, + @BodyParam("application/json") PrivateCloudInner privateCloud, Context context); @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, + Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, - @BodyParam("application/json") PrivateCloudUpdate privateCloudUpdate, @HeaderParam("Accept") String accept, - Context context); + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, + @BodyParam("application/json") PrivateCloudUpdate privateCloudUpdate, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials") - @ExpectedResponses({ 200 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAdminCredentials(@HostParam("$host") String endpoint, + Mono>> rotateVcenterPassword(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> rotateNsxtPassword(@HostParam("$host") String endpoint, + Mono>> rotateNsxtPassword(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword") - @ExpectedResponses({ 202, 204 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> rotateVcenterPassword(@HostParam("$host") String endpoint, + Mono> listAdminCredentials(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listInSubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + Mono> listInSubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -197,18 +197,23 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -217,7 +222,8 @@ private Mono> listSinglePageAsync() { * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -226,31 +232,38 @@ private Mono> listSinglePageAsync(Context conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listInSubscriptionNextSinglePageAsync(nextLink)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -258,26 +271,29 @@ private PagedFlux listAsync() { * @return the response of a PrivateCloud list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listInSubscriptionNextSinglePageAsync(nextLink, context)); + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -285,22 +301,20 @@ public PagedIterable list() { * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation along with {@link PagedResponse} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -309,23 +323,18 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -334,8 +343,7 @@ private Mono> listByResourceGroupSinglePageAsyn * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, - Context context) { + private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -344,38 +352,31 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listNextSinglePageAsync(nextLink)); + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listInSubscriptionNextSinglePageAsync(nextLink)); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -383,29 +384,26 @@ private PagedFlux listByResourceGroupAsync(String resourceGro * @return the response of a PrivateCloud list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listInSubscriptionNextSinglePageAsync(nextLink, context)); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + public PagedIterable list() { + return new PagedIterable<>(listAsync()); } /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -413,8 +411,8 @@ public PagedIterable listByResourceGroup(String resourceGroup * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); } /** @@ -575,7 +573,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, privateCloud, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, privateCloud, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -618,7 +616,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, privateCloud, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, privateCloud, context); } /** @@ -809,7 +807,7 @@ private Mono>> updateWithResponseAsync(String resource } final String accept = "application/json"; return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, privateCloudUpdate, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, privateCloudUpdate, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -853,7 +851,7 @@ private Mono>> updateWithResponseAsync(String resource final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, privateCloudUpdate, accept, context); + resourceGroupName, privateCloudName, accept, privateCloudUpdate, context); } /** @@ -1209,18 +1207,17 @@ public void delete(String resourceGroupName, String privateCloudName, Context co } /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAdminCredentialsWithResponseAsync(String resourceGroupName, + private Mono>> rotateVcenterPasswordWithResponseAsync(String resourceGroupName, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -1240,13 +1237,14 @@ private Mono> listAdminCredentialsWithResponseAs } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listAdminCredentials(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + .withContext( + context -> service.rotateVcenterPassword(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -1254,11 +1252,10 @@ private Mono> listAdminCredentialsWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listAdminCredentialsWithResponseAsync(String resourceGroupName, + private Mono>> rotateVcenterPasswordWithResponseAsync(String resourceGroupName, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -1278,28 +1275,101 @@ private Mono> listAdminCredentialsWithResponseAs } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listAdminCredentials(this.client.getEndpoint(), this.client.getApiVersion(), + return service.rotateVcenterPassword(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context); } /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRotateVcenterPasswordAsync(String resourceGroupName, + String privateCloudName) { + Mono>> mono + = rotateVcenterPasswordWithResponseAsync(resourceGroupName, privateCloudName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Rotate the vCenter password. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRotateVcenterPasswordAsync(String resourceGroupName, + String privateCloudName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = rotateVcenterPasswordWithResponseAsync(resourceGroupName, privateCloudName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Rotate the vCenter password. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, + String privateCloudName) { + return this.beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName).getSyncPoller(); + } + + /** + * Rotate the vCenter password. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, + String privateCloudName, Context context) { + return this.beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).getSyncPoller(); + } + + /** + * Rotate the vCenter password. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAdminCredentialsAsync(String resourceGroupName, String privateCloudName) { - return listAdminCredentialsWithResponseAsync(resourceGroupName, privateCloudName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono rotateVcenterPasswordAsync(String resourceGroupName, String privateCloudName) { + return beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -1307,27 +1377,41 @@ private Mono listAdminCredentialsAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listAdminCredentialsWithResponse(String resourceGroupName, - String privateCloudName, Context context) { - return listAdminCredentialsWithResponseAsync(resourceGroupName, privateCloudName, context).block(); + private Mono rotateVcenterPasswordAsync(String resourceGroupName, String privateCloudName, Context context) { + return beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName) { - return listAdminCredentialsWithResponse(resourceGroupName, privateCloudName, Context.NONE).getValue(); + public void rotateVcenterPassword(String resourceGroupName, String privateCloudName) { + rotateVcenterPasswordAsync(resourceGroupName, privateCloudName).block(); + } + + /** + * Rotate the vCenter password. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context) { + rotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).block(); } /** @@ -1538,17 +1622,18 @@ public void rotateNsxtPassword(String resourceGroupName, String privateCloudName } /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> rotateVcenterPasswordWithResponseAsync(String resourceGroupName, + private Mono> listAdminCredentialsWithResponseAsync(String resourceGroupName, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -1568,14 +1653,13 @@ private Mono>> rotateVcenterPasswordWithResponseAsync( } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.rotateVcenterPassword(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + .withContext(context -> service.listAdminCredentials(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -1583,10 +1667,11 @@ private Mono>> rotateVcenterPasswordWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> rotateVcenterPasswordWithResponseAsync(String resourceGroupName, + private Mono> listAdminCredentialsWithResponseAsync(String resourceGroupName, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -1606,101 +1691,28 @@ private Mono>> rotateVcenterPasswordWithResponseAsync( } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.rotateVcenterPassword(this.client.getEndpoint(), this.client.getApiVersion(), + return service.listAdminCredentials(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context); } /** - * Rotate the vCenter password. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRotateVcenterPasswordAsync(String resourceGroupName, - String privateCloudName) { - Mono>> mono - = rotateVcenterPasswordWithResponseAsync(resourceGroupName, privateCloudName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Rotate the vCenter password. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRotateVcenterPasswordAsync(String resourceGroupName, - String privateCloudName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = rotateVcenterPasswordWithResponseAsync(resourceGroupName, privateCloudName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Rotate the vCenter password. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, - String privateCloudName) { - return this.beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName).getSyncPoller(); - } - - /** - * Rotate the vCenter password. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, - String privateCloudName, Context context) { - return this.beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).getSyncPoller(); - } - - /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return administrative credentials for accessing vCenter and NSX-T on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono rotateVcenterPasswordAsync(String resourceGroupName, String privateCloudName) { - return beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono listAdminCredentialsAsync(String resourceGroupName, String privateCloudName) { + return listAdminCredentialsWithResponseAsync(resourceGroupName, privateCloudName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -1708,41 +1720,27 @@ private Mono rotateVcenterPasswordAsync(String resourceGroupName, String p * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono rotateVcenterPasswordAsync(String resourceGroupName, String privateCloudName, Context context) { - return beginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Rotate the vCenter password. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rotateVcenterPassword(String resourceGroupName, String privateCloudName) { - rotateVcenterPasswordAsync(resourceGroupName, privateCloudName).block(); + public Response listAdminCredentialsWithResponse(String resourceGroupName, + String privateCloudName, Context context) { + return listAdminCredentialsWithResponseAsync(resourceGroupName, privateCloudName, context).block(); } /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context) { - rotateVcenterPasswordAsync(resourceGroupName, privateCloudName, context).block(); + public AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName) { + return listAdminCredentialsWithResponse(resourceGroupName, privateCloudName, Context.NONE).getValue(); } /** @@ -1756,7 +1754,7 @@ public void rotateVcenterPassword(String resourceGroupName, String privateCloudN * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listInSubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1765,9 +1763,7 @@ private Mono> listInSubscriptionNextSinglePageA new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listInSubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1785,8 +1781,7 @@ private Mono> listInSubscriptionNextSinglePageA * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listInSubscriptionNextSinglePageAsync(String nextLink, - Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1796,7 +1791,7 @@ private Mono> listInSubscriptionNextSinglePageA } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listInSubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1812,7 +1807,7 @@ private Mono> listInSubscriptionNextSinglePageA * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listInSubscriptionNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1821,7 +1816,9 @@ private Mono> listNextSinglePageAsync(String ne new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listInSubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1839,7 +1836,8 @@ private Mono> listNextSinglePageAsync(String ne * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listInSubscriptionNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1849,7 +1847,7 @@ private Mono> listNextSinglePageAsync(String ne } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listInSubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsImpl.java index 26069246d296..b06033b8fb3b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/PrivateCloudsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -28,23 +28,23 @@ public PrivateCloudsImpl(PrivateCloudsClient innerClient, com.azure.resourcemana this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateCloudImpl(inner1, this.manager())); } - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateCloudImpl(inner1, this.manager())); } - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateCloudImpl(inner1, this.manager())); } - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateCloudImpl(inner1, this.manager())); } @@ -77,6 +77,22 @@ public void delete(String resourceGroupName, String privateCloudName, Context co this.serviceClient().delete(resourceGroupName, privateCloudName, context); } + public void rotateVcenterPassword(String resourceGroupName, String privateCloudName) { + this.serviceClient().rotateVcenterPassword(resourceGroupName, privateCloudName); + } + + public void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context) { + this.serviceClient().rotateVcenterPassword(resourceGroupName, privateCloudName, context); + } + + public void rotateNsxtPassword(String resourceGroupName, String privateCloudName) { + this.serviceClient().rotateNsxtPassword(resourceGroupName, privateCloudName); + } + + public void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context) { + this.serviceClient().rotateNsxtPassword(resourceGroupName, privateCloudName, context); + } + public Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName, Context context) { Response inner @@ -98,22 +114,6 @@ public AdminCredentials listAdminCredentials(String resourceGroupName, String pr } } - public void rotateNsxtPassword(String resourceGroupName, String privateCloudName) { - this.serviceClient().rotateNsxtPassword(resourceGroupName, privateCloudName); - } - - public void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context) { - this.serviceClient().rotateNsxtPassword(resourceGroupName, privateCloudName, context); - } - - public void rotateVcenterPassword(String resourceGroupName, String privateCloudName) { - this.serviceClient().rotateVcenterPassword(resourceGroupName, privateCloudName); - } - - public void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context) { - this.serviceClient().rotateVcenterPassword(resourceGroupName, privateCloudName, context); - } - public PrivateCloud getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/QuotaImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/QuotaImpl.java index b36fd06002ea..0f23f297755a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/QuotaImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/QuotaImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ResourceManagerUtils.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ResourceManagerUtils.java index 502692ff6d0a..42a0bed0a6f7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ResourceManagerUtils.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ResourceManagerUtils.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletImpl.java index 5f05cd19ffd6..81981e12ba81 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsClientImpl.java index 7a41e65b04b3..1b612936bcf0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.avs.fluent.ScriptCmdletsClient; import com.azure.resourcemanager.avs.fluent.models.ScriptCmdletInner; -import com.azure.resourcemanager.avs.models.ScriptCmdletsList; +import com.azure.resourcemanager.avs.implementation.models.ScriptCmdletsList; import reactor.core.publisher.Mono; /** @@ -59,30 +59,30 @@ public final class ScriptCmdletsClientImpl implements ScriptCmdletsClient { * The interface defining all the services for AvsClientScriptCmdlets to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientScriptCmdle") public interface ScriptCmdletsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptPackageName") String scriptPackageName, @HeaderParam("Accept") String accept, + @PathParam("scriptPackageName") String scriptPackageName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("scriptPackageName") String scriptPackageName, - @PathParam("scriptCmdletName") String scriptCmdletName, @HeaderParam("Accept") String accept, + @PathParam("scriptCmdletName") String scriptCmdletName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -90,7 +90,7 @@ Mono> get(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsImpl.java index a935e62ffb64..6835222c336d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptCmdletsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionImpl.java index 06233fd7ea5e..0d09cad4a4cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -10,6 +10,7 @@ import com.azure.resourcemanager.avs.fluent.models.ScriptExecutionInner; import com.azure.resourcemanager.avs.models.ScriptExecution; import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; import com.azure.resourcemanager.avs.models.ScriptExecutionProvisioningState; import com.azure.resourcemanager.avs.models.ScriptOutputStreamType; import java.time.OffsetDateTime; @@ -97,8 +98,8 @@ public List output() { } } - public Map namedOutputs() { - Map inner = this.innerModel().namedOutputs(); + public Map namedOutputs() { + Map inner = this.innerModel().namedOutputs(); if (inner != null) { return Collections.unmodifiableMap(inner); } else { @@ -266,7 +267,7 @@ public ScriptExecutionImpl withOutput(List output) { return this; } - public ScriptExecutionImpl withNamedOutputs(Map namedOutputs) { + public ScriptExecutionImpl withNamedOutputs(Map namedOutputs) { this.innerModel().withNamedOutputs(namedOutputs); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsClientImpl.java index 8d400d3d99cf..7ebf69bdc28e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -34,7 +34,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.ScriptExecutionsClient; import com.azure.resourcemanager.avs.fluent.models.ScriptExecutionInner; -import com.azure.resourcemanager.avs.models.ScriptExecutionsList; +import com.azure.resourcemanager.avs.implementation.models.ScriptExecutionsList; import com.azure.resourcemanager.avs.models.ScriptOutputStreamType; import java.nio.ByteBuffer; import java.util.List; @@ -70,71 +70,69 @@ public final class ScriptExecutionsClientImpl implements ScriptExecutionsClient * The interface defining all the services for AvsClientScriptExecutions to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientScriptExecu") public interface ScriptExecutionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("Accept") String accept, + @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptExecutionName") String scriptExecutionName, - @BodyParam("application/json") ScriptExecutionInner scriptExecution, @HeaderParam("Accept") String accept, - Context context); + @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("accept") String accept, + @BodyParam("application/json") ScriptExecutionInner scriptExecution, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("Accept") String accept, + @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getExecutionLogs(@HostParam("$host") String endpoint, + Mono> getExecutionLogs(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptExecutionName") String scriptExecutionName, - @BodyParam("application/json") List scriptOutputStreamType, - @HeaderParam("Accept") String accept, Context context); + @PathParam("scriptExecutionName") String scriptExecutionName, @HeaderParam("accept") String accept, + @BodyParam("application/json") List scriptOutputStreamType, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -460,8 +458,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, - scriptExecution, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, accept, + scriptExecution, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -511,8 +509,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution, - accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, accept, + scriptExecution, context); } /** @@ -947,8 +945,8 @@ private Mono> getExecutionLogsWithResponseAsync(S final String accept = "application/json"; return FluxUtil .withContext(context -> service.getExecutionLogs(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, - scriptOutputStreamType, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, accept, + scriptOutputStreamType, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -994,8 +992,8 @@ private Mono> getExecutionLogsWithResponseAsync(S final String accept = "application/json"; context = this.client.mergeContext(context); return service.getExecutionLogs(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, - scriptOutputStreamType, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, scriptExecutionName, accept, + scriptOutputStreamType, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsImpl.java index 22a9eeb7535e..6815b319f0bd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptExecutionsImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackageImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackageImpl.java index 84b03be05d64..76e47a54ac5f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackageImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackageImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesClientImpl.java index e39f30b20756..6f7196cadc8e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -27,7 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.avs.fluent.ScriptPackagesClient; import com.azure.resourcemanager.avs.fluent.models.ScriptPackageInner; -import com.azure.resourcemanager.avs.models.ScriptPackagesList; +import com.azure.resourcemanager.avs.implementation.models.ScriptPackagesList; import reactor.core.publisher.Mono; /** @@ -59,28 +59,28 @@ public final class ScriptPackagesClientImpl implements ScriptPackagesClient { * The interface defining all the services for AvsClientScriptPackages to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientScriptPacka") public interface ScriptPackagesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("scriptPackageName") String scriptPackageName, @HeaderParam("Accept") String accept, + @PathParam("scriptPackageName") String scriptPackageName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -88,7 +88,7 @@ Mono> get(@HostParam("$host") String endpoint, @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesImpl.java index 7290241ccce6..952cb1c3a3d2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ScriptPackagesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/TrialImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/TrialImpl.java index f88b14d500e7..5879989614aa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/TrialImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/TrialImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachineImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachineImpl.java index d1a268fd18d5..eaae319fa0aa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachineImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachineImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesClientImpl.java index 0ab9572552ee..e66ab15ab59f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -32,8 +32,8 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.avs.fluent.VirtualMachinesClient; import com.azure.resourcemanager.avs.fluent.models.VirtualMachineInner; +import com.azure.resourcemanager.avs.implementation.models.VirtualMachinesList; import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovement; -import com.azure.resourcemanager.avs.models.VirtualMachinesList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -67,48 +67,47 @@ public final class VirtualMachinesClientImpl implements VirtualMachinesClient { * The interface defining all the services for AvsClientVirtualMachines to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientVirtualMach") public interface VirtualMachinesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("virtualMachineId") String virtualMachineId, @HeaderParam("Accept") String accept, + @PathParam("virtualMachineId") String virtualMachineId, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restrictMovement(@HostParam("$host") String endpoint, + Mono>> restrictMovement(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName, - @PathParam("virtualMachineId") String virtualMachineId, - @BodyParam("application/json") VirtualMachineRestrictMovement restrictMovement, - @HeaderParam("Accept") String accept, Context context); + @PathParam("virtualMachineId") String virtualMachineId, @HeaderParam("accept") String accept, + @BodyParam("application/json") VirtualMachineRestrictMovement restrictMovement, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** @@ -469,7 +468,7 @@ private Mono>> restrictMovementWithResponseAsync(Strin return FluxUtil .withContext(context -> service.restrictMovement(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, virtualMachineId, - restrictMovement, accept, context)) + accept, restrictMovement, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -523,8 +522,8 @@ private Mono>> restrictMovementWithResponseAsync(Strin final String accept = "application/json"; context = this.client.mergeContext(context); return service.restrictMovement(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, virtualMachineId, - restrictMovement, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, virtualMachineId, accept, + restrictMovement, context); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesImpl.java index 51aa0e3684b4..761b520d83dd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/VirtualMachinesImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDhcpImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDhcpImpl.java index 750f8d914f70..bd50b77cd1ce 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDhcpImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDhcpImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -52,25 +52,30 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String dhcpId; - public WorkloadNetworkDhcpImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + public WorkloadNetworkDhcpImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkDhcp create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDhcp(resourceGroupName, privateCloudName, dhcpId, this.innerModel(), Context.NONE); + .createDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDhcp create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDhcp(resourceGroupName, privateCloudName, dhcpId, this.innerModel(), context); + .createDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, this.innerModel(), context); return this; } @@ -87,14 +92,15 @@ public WorkloadNetworkDhcpImpl update() { public WorkloadNetworkDhcp apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDhcp(resourceGroupName, privateCloudName, dhcpId, this.innerModel(), Context.NONE); + .updateDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDhcp apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDhcp(resourceGroupName, privateCloudName, dhcpId, this.innerModel(), context); + .updateDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, this.innerModel(), context); return this; } @@ -104,25 +110,10 @@ public WorkloadNetworkDhcp apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.dhcpId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dhcpConfigurations"); } - public WorkloadNetworkDhcp refresh() { - this.innerObject = serviceManager.serviceClient() - .getWorkloadNetworks() - .getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, Context.NONE) - .getValue(); - return this; - } - - public WorkloadNetworkDhcp refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getWorkloadNetworks() - .getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, context) - .getValue(); - return this; - } - public WorkloadNetworkDhcpImpl withProperties(WorkloadNetworkDhcpEntity properties) { this.innerModel().withProperties(properties); return this; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsServiceImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsServiceImpl.java index 38bed7102c23..0ed5214d08bd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsServiceImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsServiceImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -89,25 +89,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String dnsServiceId; - public WorkloadNetworkDnsServiceImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + public WorkloadNetworkDnsServiceImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkDnsService create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDnsService(resourceGroupName, privateCloudName, dnsServiceId, this.innerModel(), Context.NONE); + .createDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDnsService create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDnsService(resourceGroupName, privateCloudName, dnsServiceId, this.innerModel(), context); + .createDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, this.innerModel(), + context); return this; } @@ -124,14 +130,16 @@ public WorkloadNetworkDnsServiceImpl update() { public WorkloadNetworkDnsService apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDnsService(resourceGroupName, privateCloudName, dnsServiceId, this.innerModel(), Context.NONE); + .updateDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDnsService apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDnsService(resourceGroupName, privateCloudName, dnsServiceId, this.innerModel(), context); + .updateDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, this.innerModel(), + context); return this; } @@ -141,13 +149,15 @@ public WorkloadNetworkDnsService apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.dnsServiceId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dnsServices"); } public WorkloadNetworkDnsService refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, Context.NONE) + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + Context.NONE) .getValue(); return this; } @@ -155,7 +165,7 @@ public WorkloadNetworkDnsService refresh() { public WorkloadNetworkDnsService refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, context) + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsZoneImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsZoneImpl.java index afe450f2ca42..68163d305011 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsZoneImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkDnsZoneImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -88,25 +88,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String dnsZoneId; - public WorkloadNetworkDnsZoneImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + public WorkloadNetworkDnsZoneImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkDnsZone create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDnsZone(resourceGroupName, privateCloudName, dnsZoneId, this.innerModel(), Context.NONE); + .createDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDnsZone create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createDnsZone(resourceGroupName, privateCloudName, dnsZoneId, this.innerModel(), context); + .createDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, this.innerModel(), + context); return this; } @@ -123,14 +129,16 @@ public WorkloadNetworkDnsZoneImpl update() { public WorkloadNetworkDnsZone apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, this.innerModel(), Context.NONE); + .updateDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkDnsZone apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, this.innerModel(), context); + .updateDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, this.innerModel(), + context); return this; } @@ -140,13 +148,14 @@ public WorkloadNetworkDnsZone apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.dnsZoneId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dnsZones"); } public WorkloadNetworkDnsZone refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, Context.NONE) + .getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, Context.NONE) .getValue(); return this; } @@ -154,7 +163,7 @@ public WorkloadNetworkDnsZone refresh() { public WorkloadNetworkDnsZone refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, context) + .getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkGatewayImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkGatewayImpl.java index 55de480046ca..3ad87e4e80a3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkGatewayImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkGatewayImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkImpl.java index fef141164276..dcd7f17db792 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPortMirroringImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPortMirroringImpl.java index d0bc64160ab3..b4b785887b02 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPortMirroringImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPortMirroringImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -78,26 +78,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String portMirroringId; - public WorkloadNetworkPortMirroringImpl withExistingPrivateCloud(String resourceGroupName, - String privateCloudName) { + public WorkloadNetworkPortMirroringImpl withExistingWorkloadNetwork(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkPortMirroring create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createPortMirroring(resourceGroupName, privateCloudName, portMirroringId, this.innerModel(), Context.NONE); + .createPortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + this.innerModel(), Context.NONE); return this; } public WorkloadNetworkPortMirroring create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createPortMirroring(resourceGroupName, privateCloudName, portMirroringId, this.innerModel(), context); + .createPortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + this.innerModel(), context); return this; } @@ -114,14 +119,16 @@ public WorkloadNetworkPortMirroringImpl update() { public WorkloadNetworkPortMirroring apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, this.innerModel(), Context.NONE); + .updatePortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + this.innerModel(), Context.NONE); return this; } public WorkloadNetworkPortMirroring apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, this.innerModel(), context); + .updatePortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + this.innerModel(), context); return this; } @@ -131,13 +138,15 @@ public WorkloadNetworkPortMirroring apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.portMirroringId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "portMirroringProfiles"); } public WorkloadNetworkPortMirroring refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, Context.NONE) + .getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + Context.NONE) .getValue(); return this; } @@ -145,7 +154,8 @@ public WorkloadNetworkPortMirroring refresh() { public WorkloadNetworkPortMirroring refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, context) + .getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPublicIpImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPublicIpImpl.java index e4b15ecc103e..5427d7447034 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPublicIpImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPublicIpImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -65,38 +65,44 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; - private String publicIpId; + private String workloadNetworkName; - public WorkloadNetworkPublicIpImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + private String publicIPId; + + public WorkloadNetworkPublicIpImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkPublicIp create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createPublicIp(resourceGroupName, privateCloudName, publicIpId, this.innerModel(), Context.NONE); + .createPublicIp(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkPublicIp create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createPublicIp(resourceGroupName, privateCloudName, publicIpId, this.innerModel(), context); + .createPublicIp(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, this.innerModel(), + context); return this; } WorkloadNetworkPublicIpImpl(String name, com.azure.resourcemanager.avs.AvsManager serviceManager) { this.innerObject = new WorkloadNetworkPublicIpInner(); this.serviceManager = serviceManager; - this.publicIpId = name; + this.publicIPId = name; } public WorkloadNetworkPublicIp refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, Context.NONE) + .getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, Context.NONE) .getValue(); return this; } @@ -104,7 +110,7 @@ public WorkloadNetworkPublicIp refresh() { public WorkloadNetworkPublicIp refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, context) + .getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkSegmentImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkSegmentImpl.java index 24b21c254e1e..bc4b4883f660 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkSegmentImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkSegmentImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -86,25 +86,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String segmentId; - public WorkloadNetworkSegmentImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + public WorkloadNetworkSegmentImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkSegment create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createSegments(resourceGroupName, privateCloudName, segmentId, this.innerModel(), Context.NONE); + .createSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkSegment create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createSegments(resourceGroupName, privateCloudName, segmentId, this.innerModel(), context); + .createSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, this.innerModel(), + context); return this; } @@ -121,14 +127,16 @@ public WorkloadNetworkSegmentImpl update() { public WorkloadNetworkSegment apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateSegments(resourceGroupName, privateCloudName, segmentId, this.innerModel(), Context.NONE); + .updateSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkSegment apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateSegments(resourceGroupName, privateCloudName, segmentId, this.innerModel(), context); + .updateSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, this.innerModel(), + context); return this; } @@ -138,13 +146,14 @@ public WorkloadNetworkSegment apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.segmentId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "segments"); } public WorkloadNetworkSegment refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, Context.NONE) + .getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE) .getValue(); return this; } @@ -152,7 +161,7 @@ public WorkloadNetworkSegment refresh() { public WorkloadNetworkSegment refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, context) + .getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVMGroupImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVMGroupImpl.java index b54099b813d7..ab9f001dd137 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVMGroupImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVMGroupImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -76,25 +76,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String vmGroupId; - public WorkloadNetworkVMGroupImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + public WorkloadNetworkVMGroupImpl withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { this.resourceGroupName = resourceGroupName; this.privateCloudName = privateCloudName; + this.workloadNetworkName = workloadNetworkName; return this; } public WorkloadNetworkVMGroup create() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createVMGroup(resourceGroupName, privateCloudName, vmGroupId, this.innerModel(), Context.NONE); + .createVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkVMGroup create(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .createVMGroup(resourceGroupName, privateCloudName, vmGroupId, this.innerModel(), context); + .createVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, this.innerModel(), + context); return this; } @@ -111,14 +117,16 @@ public WorkloadNetworkVMGroupImpl update() { public WorkloadNetworkVMGroup apply() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateVMGroup(resourceGroupName, privateCloudName, vmGroupId, this.innerModel(), Context.NONE); + .updateVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, this.innerModel(), + Context.NONE); return this; } public WorkloadNetworkVMGroup apply(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .updateVMGroup(resourceGroupName, privateCloudName, vmGroupId, this.innerModel(), context); + .updateVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, this.innerModel(), + context); return this; } @@ -128,13 +136,14 @@ public WorkloadNetworkVMGroup apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.privateCloudName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateClouds"); + this.workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadNetworks"); this.vmGroupId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vmGroups"); } public WorkloadNetworkVMGroup refresh() { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, Context.NONE) + .getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, Context.NONE) .getValue(); return this; } @@ -142,7 +151,7 @@ public WorkloadNetworkVMGroup refresh() { public WorkloadNetworkVMGroup refresh(Context context) { this.innerObject = serviceManager.serviceClient() .getWorkloadNetworks() - .getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, context) + .getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, context) .getValue(); return this; } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVirtualMachineImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVirtualMachineImpl.java index 14b6a9cdacef..181b6ba91d8a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVirtualMachineImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkVirtualMachineImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java index 81accb80eb4f..a1616ab280be 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -43,16 +43,16 @@ import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkSegmentInner; import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVirtualMachineInner; import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVMGroupInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsServicesList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsZonesList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkGatewayList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroringList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkPublicIPsList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentsList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkVirtualMachinesList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkVMGroupsList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDhcpList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDnsServicesList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDnsZonesList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkGatewayList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkPortMirroringList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkPublicIPsList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkSegmentsList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkVirtualMachinesList; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkVMGroupsList; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -86,425 +86,458 @@ public final class WorkloadNetworksClientImpl implements WorkloadNetworksClient * The interface defining all the services for AvsClientWorkloadNetworks to be used by the proxy service to perform * REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "AvsClientWorkloadNet") public interface WorkloadNetworksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDhcp(@HostParam("$host") String endpoint, + Mono> listSegments(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getDhcp(@HostParam("$host") String endpoint, + Mono> getSegment(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dhcpId") String dhcpId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("segmentId") String segmentId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createDhcp(@HostParam("$host") String endpoint, + Mono>> createSegment(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dhcpId") String dhcpId, - @BodyParam("application/json") WorkloadNetworkDhcpInner workloadNetworkDhcp, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("segmentId") String segmentId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateDhcp(@HostParam("$host") String endpoint, + Mono>> updateSegment(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dhcpId") String dhcpId, - @BodyParam("application/json") WorkloadNetworkDhcpInner workloadNetworkDhcp, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("segmentId") String segmentId, + @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkSegmentInner properties, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteDhcp(@HostParam("$host") String endpoint, + Mono>> deleteSegment(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dhcpId") String dhcpId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("segmentId") String segmentId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDnsServices(@HostParam("$host") String endpoint, + Mono> listDhcp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getDnsService(@HostParam("$host") String endpoint, + Mono> getDhcp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsServiceId") String dnsServiceId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dhcpId") String dhcpId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createDnsService(@HostParam("$host") String endpoint, + Mono>> createDhcp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsServiceId") String dnsServiceId, - @BodyParam("application/json") WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dhcpId") String dhcpId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateDnsService(@HostParam("$host") String endpoint, + Mono>> updateDhcp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsServiceId") String dnsServiceId, - @BodyParam("application/json") WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dhcpId") String dhcpId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteDnsService(@HostParam("$host") String endpoint, + Mono>> deleteDhcp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dnsServiceId") String dnsServiceId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dhcpId") String dhcpId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/gateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDnsZones(@HostParam("$host") String endpoint, + Mono> listGateways(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/gateways/{gatewayId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getDnsZone(@HostParam("$host") String endpoint, + Mono> getGateway(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsZoneId") String dnsZoneId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("gatewayId") String gatewayId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/portMirroringProfiles") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createDnsZone(@HostParam("$host") String endpoint, + Mono> listPortMirroring(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsZoneId") String dnsZoneId, - @BodyParam("application/json") WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}") - @ExpectedResponses({ 200, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/portMirroringProfiles/{portMirroringId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateDnsZone(@HostParam("$host") String endpoint, + Mono> getPortMirroring(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("dnsZoneId") String dnsZoneId, - @BodyParam("application/json") WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("portMirroringId") String portMirroringId, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}") - @ExpectedResponses({ 200, 202, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/portMirroringProfiles/{portMirroringId}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteDnsZone(@HostParam("$host") String endpoint, + Mono>> createPortMirroring(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dnsZoneId") String dnsZoneId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("portMirroringId") String portMirroringId, @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways") - @ExpectedResponses({ 200 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/portMirroringProfiles/{portMirroringId}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listGateways(@HostParam("$host") String endpoint, + Mono>> updatePortMirroring(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("portMirroringId") String portMirroringId, @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}") - @ExpectedResponses({ 200 }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getGateway(@HostParam("$host") String endpoint, + Mono>> deletePortMirroring(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("gatewayId") String gatewayId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("portMirroringId") String portMirroringId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPortMirroring(@HostParam("$host") String endpoint, + Mono> listVMGroups(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPortMirroring(@HostParam("$host") String endpoint, + Mono> getVMGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("portMirroringId") String portMirroringId, @HeaderParam("Accept") String accept, - Context context); + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("vmGroupId") String vmGroupId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createPortMirroring(@HostParam("$host") String endpoint, + Mono>> createVMGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("portMirroringId") String portMirroringId, - @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - @HeaderParam("Accept") String accept, Context context); + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("vmGroupId") String vmGroupId, + @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkVMGroupInner resource, + Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updatePortMirroring(@HostParam("$host") String endpoint, + Mono>> updateVMGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("portMirroringId") String portMirroringId, - @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - @HeaderParam("Accept") String accept, Context context); + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("vmGroupId") String vmGroupId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deletePortMirroring(@HostParam("$host") String endpoint, + Mono>> deleteVMGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("portMirroringId") String portMirroringId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmGroupId") String vmGroupId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/virtualMachines") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPublicIPs(@HostParam("$host") String endpoint, + Mono> listVirtualMachines(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/virtualMachines/{virtualMachineId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPublicIp(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("publicIPId") String publicIpId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createPublicIp(@HostParam("$host") String endpoint, + Mono> getVirtualMachine(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("publicIPId") String publicIpId, - @BodyParam("application/json") WorkloadNetworkPublicIpInner workloadNetworkPublicIp, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deletePublicIp(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("publicIPId") String publicIpId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("virtualMachineId") String virtualMachineId, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSegments(@HostParam("$host") String endpoint, + Mono> listDnsServices(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSegment(@HostParam("$host") String endpoint, + Mono> getDnsService(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("segmentId") String segmentId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("dnsServiceId") String dnsServiceId, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createSegments(@HostParam("$host") String endpoint, + Mono>> createDnsService(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("segmentId") String segmentId, - @BodyParam("application/json") WorkloadNetworkSegmentInner workloadNetworkSegment, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("dnsServiceId") String dnsServiceId, @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateSegments(@HostParam("$host") String endpoint, + Mono>> updateDnsService(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("segmentId") String segmentId, - @BodyParam("application/json") WorkloadNetworkSegmentInner workloadNetworkSegment, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, + @PathParam("dnsServiceId") String dnsServiceId, @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteSegment(@HostParam("$host") String endpoint, + Mono>> deleteDnsService(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("segmentId") String segmentId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dnsServiceId") String dnsServiceId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachines(@HostParam("$host") String endpoint, + Mono> listDnsZones(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones/{dnsZoneId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVirtualMachine(@HostParam("$host") String endpoint, + Mono> getDnsZone(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateCloudName") String privateCloudName, - @PathParam("virtualMachineId") String virtualMachineId, @HeaderParam("Accept") String accept, - Context context); + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dnsZoneId") String dnsZoneId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones/{dnsZoneId}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createDnsZone(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dnsZoneId") String dnsZoneId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones/{dnsZoneId}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVMGroups(@HostParam("$host") String endpoint, + Mono>> updateDnsZone(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dnsZoneId") String dnsZoneId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> deleteDnsZone(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dnsZoneId") String dnsZoneId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/publicIPs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getVMGroup(@HostParam("$host") String endpoint, + Mono> listPublicIps(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("vmGroupId") String vmGroupId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @HeaderParam("accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/publicIPs/{publicIPId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createVMGroup(@HostParam("$host") String endpoint, + Mono> getPublicIp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("vmGroupId") String vmGroupId, - @BodyParam("application/json") WorkloadNetworkVMGroupInner workloadNetworkVMGroup, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("publicIPId") String publicIPId, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}") - @ExpectedResponses({ 200, 202 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/publicIPs/{publicIPId}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> updateVMGroup(@HostParam("$host") String endpoint, + Mono>> createPublicIp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @PathParam("vmGroupId") String vmGroupId, - @BodyParam("application/json") WorkloadNetworkVMGroupInner workloadNetworkVMGroup, - @HeaderParam("Accept") String accept, Context context); + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("publicIPId") String publicIPId, + @HeaderParam("accept") String accept, + @BodyParam("application/json") WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deleteVMGroup(@HostParam("$host") String endpoint, + Mono>> deletePublicIp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmGroupId") String vmGroupId, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("publicIPId") String publicIPId, + @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -512,79 +545,79 @@ Mono>> deleteVMGroup(@HostParam("$host") String endpoi @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDhcpNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listSegmentsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDnsServicesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listDhcpNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listDnsZonesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listGatewaysNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listGatewaysNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listPortMirroringNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPortMirroringNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listVMGroupsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPublicIPsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listVirtualMachinesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSegmentsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listDnsServicesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVirtualMachinesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listDnsZonesNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVMGroupsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listPublicIpsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("accept") String accept, Context context); } /** @@ -737,14 +770,15 @@ public PagedIterable list(String resourceGroupName, String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetwork along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String privateCloudName) { + private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -761,10 +795,13 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -773,6 +810,7 @@ private Mono> getWithResponseAsync(String resourc * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -781,7 +819,7 @@ private Mono> getWithResponseAsync(String resourc */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -798,10 +836,14 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context); + resourceGroupName, privateCloudName, workloadNetworkName, accept, context); } /** @@ -809,14 +851,16 @@ private Mono> getWithResponseAsync(String resourc * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetwork on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String privateCloudName) { - return getWithResponseAsync(resourceGroupName, privateCloudName) + private Mono getAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return getWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -825,6 +869,7 @@ private Mono getAsync(String resourceGroupName, String pri * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -833,8 +878,8 @@ private Mono getAsync(String resourceGroupName, String pri */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String privateCloudName, - Context context) { - return getWithResponseAsync(resourceGroupName, privateCloudName, context).block(); + String workloadNetworkName, Context context) { + return getWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, context).block(); } /** @@ -842,30 +887,32 @@ public Response getWithResponse(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetwork. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkInner get(String resourceGroupName, String privateCloudName) { - return getWithResponse(resourceGroupName, privateCloudName, Context.NONE).getValue(); + public WorkloadNetworkInner get(String resourceGroupName, String privateCloudName, String workloadNetworkName) { + return getWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, Context.NONE).getValue(); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDhcpSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono> listSegmentsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -882,30 +929,36 @@ private Mono> listDhcpSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listSegments(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDhcpSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono> listSegmentsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -922,95 +975,109 @@ private Mono> listDhcpSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listDhcp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + .listSegments(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName) { - return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listDhcpNextSinglePageAsync(nextLink)); + private PagedFlux listSegmentsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listSegmentsNextSinglePageAsync(nextLink)); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listDhcpNextSinglePageAsync(nextLink, context)); + private PagedFlux listSegmentsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listSegmentsNextSinglePageAsync(nextLink, context)); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName)); + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listSegmentsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkSegment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDhcpWithResponseAsync(String resourceGroupName, String dhcpId, - String privateCloudName) { + private Mono> getSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1023,35 +1090,41 @@ private Mono> getDhcpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, dhcpId, privateCloudName, accept, context)) + .withContext(context -> service.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkSegment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDhcpWithResponseAsync(String resourceGroupName, String dhcpId, - String privateCloudName, Context context) { + private Mono> getSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1064,86 +1137,99 @@ private Mono> getDhcpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getDhcp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, dhcpId, privateCloudName, accept, context); + return service.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context); } /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp on successful completion of {@link Mono}. + * @return a WorkloadNetworkSegment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getDhcpAsync(String resourceGroupName, String dhcpId, - String privateCloudName) { - return getDhcpWithResponseAsync(resourceGroupName, dhcpId, privateCloudName) + private Mono getSegmentAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { + return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response}. + * @return a WorkloadNetworkSegment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDhcpWithResponse(String resourceGroupName, String dhcpId, - String privateCloudName, Context context) { - return getDhcpWithResponseAsync(resourceGroupName, dhcpId, privateCloudName, context).block(); + public Response getSegmentWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { + return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) + .block(); } /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp. + * @return a WorkloadNetworkSegment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName) { - return getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, Context.NONE).getValue(); + public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { + return getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE) + .getValue(); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + private Mono>> createSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1160,39 +1246,45 @@ private Mono>> createDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } - if (workloadNetworkDhcp == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } + if (workloadNetworkSegment == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); } else { - workloadNetworkDhcp.validate(); + workloadNetworkSegment.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, - accept, context)) + .withContext(context -> service.createSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, workloadNetworkSegment, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + private Mono>> createSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1209,201 +1301,223 @@ private Mono>> createDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } - if (workloadNetworkDhcp == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } + if (workloadNetworkSegment == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); } else { - workloadNetworkDhcp.validate(); + workloadNetworkSegment.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, accept, - context); + return service.createSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, workloadNetworkSegment, context); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DHCP. + * @return the {@link PollerFlux} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - Mono>> mono - = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, + private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment) { + Mono>> mono = createSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, workloadNetworkSegment); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, this.client.getContext()); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DHCP. + * @return the {@link PollerFlux} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { + private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); + Mono>> mono = createSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, workloadNetworkSegment, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, + context); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return this.beginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp) + public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment) { + return this + .beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment) .getSyncPoller(); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { - return this.beginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context) + public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { + return this + .beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context) .getSyncPoller(); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP on successful completion of {@link Mono}. + * @return nSX Segment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return beginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createSegmentAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + return beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP on successful completion of {@link Mono}. + * @return nSX Segment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { - return beginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createSegmentAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context) { + return beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return createDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).block(); + public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + return createSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment).block(); } /** - * Create a WorkloadNetworkDhcp. + * Create a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { - return createDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context).block(); + public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context) { + return createSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context).block(); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + private Mono>> updateSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1420,39 +1534,44 @@ private Mono>> updateDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } - if (workloadNetworkDhcp == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); } else { - workloadNetworkDhcp.validate(); + properties.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, - accept, context)) + .withContext(context -> service.updateSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + private Mono>> updateSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1469,200 +1588,219 @@ private Mono>> updateDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); - } - if (workloadNetworkDhcp == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); } else { - workloadNetworkDhcp.validate(); + properties.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, accept, - context); + return service.updateSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, properties, context); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DHCP. + * @return the {@link PollerFlux} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - Mono>> mono - = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, + private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties) { + Mono>> mono = updateSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, this.client.getContext()); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DHCP. + * @return the {@link PollerFlux} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { + private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); + Mono>> mono = updateSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, properties, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, + context); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return this.beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp) + public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties) { + return this + .beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) .getSyncPoller(); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DHCP. + * @return the {@link SyncPoller} for polling of nSX Segment. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { - return this.beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context) + public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context) { + return this + .beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context) .getSyncPoller(); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP on successful completion of {@link Mono}. + * @return nSX Segment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).last() + private Mono updateSegmentAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties) { + return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) + .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP on successful completion of {@link Mono}. + * @return nSX Segment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { - return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateSegmentAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context) { + return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return updateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).block(); + public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties) { + return updateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) + .block(); } /** - * Update a WorkloadNetworkDhcp. + * Update a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param workloadNetworkDhcp The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. + * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DHCP. + * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { - return updateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context).block(); + public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context) { + return updateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context).block(); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId) { + private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1679,22 +1817,28 @@ private Mono>> deleteDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, context)) + .withContext(context -> service.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1702,8 +1846,8 @@ private Mono>> deleteDhcpWithResponseAsync(String reso * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, Context context) { + private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1720,41 +1864,48 @@ private Mono>> deleteDhcpWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dhcpId == null) { - return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (segmentId == null) { + return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, context); + return service.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId) { + private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId) { Mono>> mono - = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId); + = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1762,38 +1913,41 @@ private PollerFlux, Void> beginDeleteDhcpAsync(String resourceG * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, Context context) { + private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, context); + Mono>> mono = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, - String dhcpId) { - return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).getSyncPoller(); + public SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { + return this.beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1801,34 +1955,39 @@ public SyncPoller, Void> beginDeleteDhcp(String resourceGroupNa * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, - String dhcpId, Context context) { - return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId, context).getSyncPoller(); + public SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, Context context) { + return this + .beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDhcpAsync(String resourceGroupName, String privateCloudName, String dhcpId) { - return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).last() + private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1836,57 +1995,63 @@ private Mono deleteDhcpAsync(String resourceGroupName, String privateCloud * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDhcpAsync(String resourceGroupName, String privateCloudName, String dhcpId, - Context context) { - return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId, context).last() + private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId, Context context) { + return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) + .last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId) { - deleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).block(); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + deleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId).block(); } /** - * Delete a WorkloadNetworkDhcp. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context) { - deleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId, context).block(); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId, Context context) { + deleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context).block(); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono> listDhcpSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1903,30 +2068,34 @@ private Mono> listDnsServicesSingl return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listDnsServices(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + return FluxUtil.withContext(context -> service.listDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono> listDhcpSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1943,99 +2112,106 @@ private Mono> listDnsServicesSingl return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listDnsServices(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + .listDhcp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDnsServicesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listDnsServicesNextSinglePageAsync(nextLink)); + private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listDhcpNextSinglePageAsync(nextLink)); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDnsServicesAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listDnsServicesNextSinglePageAsync(nextLink, context)); + private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listDhcpNextSinglePageAsync(nextLink, context)); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDnsServices(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName)); + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDnsServices(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkDhcp along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId) { + private Mono> getDhcpWithResponseAsync(String resourceGroupName, String dhcpId, + String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2048,35 +2224,35 @@ private Mono> getDnsServiceWithResponse return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, accept, context)) + .withContext(context -> service.getDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dhcpId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkDhcp along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { + private Mono> getDhcpWithResponseAsync(String resourceGroupName, String dhcpId, + String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2089,87 +2265,88 @@ private Mono> getDnsServiceWithResponse return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); - } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, accept, context); + return service.getDhcp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, dhcpId, privateCloudName, accept, context); } /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService on successful completion of {@link Mono}. + * @return a WorkloadNetworkDhcp on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getDnsServiceAsync(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, dnsServiceId) + private Mono getDhcpAsync(String resourceGroupName, String dhcpId, + String privateCloudName) { + return getDhcpWithResponseAsync(resourceGroupName, dhcpId, privateCloudName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response}. + * @return a WorkloadNetworkDhcp along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { - return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, dnsServiceId, context).block(); + public Response getDhcpWithResponse(String resourceGroupName, String dhcpId, + String privateCloudName, Context context) { + return getDhcpWithResponseAsync(resourceGroupName, dhcpId, privateCloudName, context).block(); } /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService. + * @return a WorkloadNetworkDhcp. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - return getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, Context.NONE).getValue(); + public WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName) { + return getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, Context.NONE).getValue(); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + private Mono>> createDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2186,40 +2363,45 @@ private Mono>> createDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsService == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } + if (workloadNetworkDhcp == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); } else { - workloadNetworkDnsService.validate(); + workloadNetworkDhcp.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, - workloadNetworkDnsService, accept, context)) + .withContext(context -> service.createDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, workloadNetworkDhcp, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { + private Mono>> createDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2236,209 +2418,220 @@ private Mono>> createDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsService == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } + if (workloadNetworkDhcp == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); } else { - workloadNetworkDnsService.validate(); + workloadNetworkDhcp.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, - workloadNetworkDnsService, accept, context); + return service.createDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + workloadNetworkDhcp, context); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Service. + * @return the {@link PollerFlux} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsServiceInner> - beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, + private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { + Mono>> mono = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, this.client.getContext()); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Service. + * @return the {@link PollerFlux} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsServiceInner> - beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, - context); + Mono>> mono = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + public SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { return this - .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + .beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .getSyncPoller(); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + public SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { return this - .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, + .beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, context) .getSyncPoller(); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service on successful completion of {@link Mono}. + * @return nSX DHCP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDnsServiceAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service on successful completion of {@link Mono}. + * @return nSX DHCP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDnsServiceAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { - return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono createDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return createDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return createDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .block(); } /** - * Create a WorkloadNetworkDnsService. + * Create a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { - return createDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, + public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return createDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, context).block(); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2455,40 +2648,45 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsService == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } + if (workloadNetworkDhcp == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); } else { - workloadNetworkDnsService.validate(); + workloadNetworkDhcp.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, - workloadNetworkDnsService, accept, context)) + .withContext(context -> service.updateDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, workloadNetworkDhcp, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DHCP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { + private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2505,208 +2703,218 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsService == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } + if (workloadNetworkDhcp == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkDhcp is required and cannot be null.")); } else { - workloadNetworkDnsService.validate(); + workloadNetworkDhcp.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, - workloadNetworkDnsService, accept, context); + return service.updateDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + workloadNetworkDhcp, context); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Service. + * @return the {@link PollerFlux} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsServiceInner> - beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, + private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { + Mono>> mono = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, this.client.getContext()); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Service. + * @return the {@link PollerFlux} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsServiceInner> - beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, - context); + Mono>> mono = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + public SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp) { return this - .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + .beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .getSyncPoller(); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Service. + * @return the {@link SyncPoller} for polling of nSX DHCP. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + public SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { return this - .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, + .beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, context) .getSyncPoller(); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service on successful completion of {@link Mono}. + * @return nSX DHCP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDnsServiceAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service on successful completion of {@link Mono}. + * @return nSX DHCP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDnsServiceAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { - return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono updateDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return updateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return updateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .block(); } /** - * Update a WorkloadNetworkDnsService. + * Update a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param workloadNetworkDnsService The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. + * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Service. + * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { - return updateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, + public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return updateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, context).block(); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDnsServiceWithResponseAsync(String resourceGroupName, - String dnsServiceId, String privateCloudName) { + private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2719,26 +2927,32 @@ private Mono>> deleteDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deleteDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, dnsServiceId, privateCloudName, accept, context)) + .withContext(context -> service.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2746,8 +2960,8 @@ private Mono>> deleteDnsServiceWithResponseAsync(Strin * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDnsServiceWithResponseAsync(String resourceGroupName, - String dnsServiceId, String privateCloudName, Context context) { + private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dhcpId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2760,45 +2974,52 @@ private Mono>> deleteDnsServiceWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dnsServiceId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dhcpId == null) { + return Mono.error(new IllegalArgumentException("Parameter dhcpId is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deleteDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, dnsServiceId, privateCloudName, accept, context); + return service.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + context); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, - String privateCloudName) { + private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId) { Mono>> mono - = deleteDnsServiceWithResponseAsync(resourceGroupName, dnsServiceId, privateCloudName); + = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2806,38 +3027,41 @@ private PollerFlux, Void> beginDeleteDnsServiceAsync(String res * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, - String privateCloudName, Context context) { + private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteDnsServiceWithResponseAsync(resourceGroupName, dnsServiceId, privateCloudName, context); + = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, - String privateCloudName) { - return this.beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).getSyncPoller(); + public SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId) { + return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2845,35 +3069,38 @@ public SyncPoller, Void> beginDeleteDnsService(String resourceG * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, - String privateCloudName, Context context) { - return this.beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context) + public SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, Context context) { + return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context) .getSyncPoller(); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, String privateCloudName) { - return beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).last() + private Mono deleteDhcpAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2881,58 +3108,62 @@ private Mono deleteDnsServiceAsync(String resourceGroupName, String dnsSer * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, String privateCloudName, - Context context) { - return beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context).last() + private Mono deleteDhcpAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, Context context) { + return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName) { - deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).block(); + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + deleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId).block(); } /** - * Delete a WorkloadNetworkDnsService. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, Context context) { - deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context).block(); + deleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context).block(); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono> listGatewaysSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2949,30 +3180,36 @@ private Mono> listDnsZonesSinglePageA return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listDnsZones(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listGateways(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono> listGatewaysSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2989,96 +3226,109 @@ private Mono> listDnsZonesSinglePageA return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listDnsZones(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + .listGateways(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDnsZonesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listDnsZonesNextSinglePageAsync(nextLink)); + private PagedFlux listGatewaysAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listGatewaysNextSinglePageAsync(nextLink)); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDnsZonesAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listDnsZonesNextSinglePageAsync(nextLink, context)); + private PagedFlux listGatewaysAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listGatewaysNextSinglePageAsync(nextLink, context)); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName)); + public PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listGatewaysAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkGateway along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId) { + private Mono> getGatewayWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String gatewayId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3095,31 +3345,37 @@ private Mono> getDnsZoneWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (gatewayId == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, accept, context)) + .withContext(context -> service.getGateway(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkGateway along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, Context context) { + private Mono> getGatewayWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String gatewayId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3136,82 +3392,93 @@ private Mono> getDnsZoneWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (gatewayId == null) { + return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, accept, context); + return service.getGateway(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, + accept, context); } /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone on successful completion of {@link Mono}. + * @return a WorkloadNetworkGateway on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId) { - return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId) + private Mono getGatewayAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String gatewayId) { + return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response}. + * @return a WorkloadNetworkGateway along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDnsZoneWithResponse(String resourceGroupName, - String privateCloudName, String dnsZoneId, Context context) { - return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, context).block(); + public Response getGatewayWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String gatewayId, Context context) { + return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, context) + .block(); } /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone. + * @return a WorkloadNetworkGateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId) { - return getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, Context.NONE).getValue(); + public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String gatewayId) { + return getGatewayWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, Context.NONE) + .getValue(); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + private Mono> listPortMirroringSinglePageAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3228,40 +3495,36 @@ private Mono>> createDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); - } - if (workloadNetworkDnsZone == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); - } else { - workloadNetworkDnsZone.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, - accept, context)) + .withContext(context -> service.listPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - Context context) { + private Mono> listPortMirroringSinglePageAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3278,205 +3541,268 @@ private Mono>> createDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); - } - if (workloadNetworkDnsZone == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); - } else { - workloadNetworkDnsZone.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, - accept, context); + return service + .listPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Zone. + * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - Mono>> mono - = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listPortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listPortMirroringNextSinglePageAsync(nextLink)); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Zone. + * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, - dnsZoneId, workloadNetworkDnsZone, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listPortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listPortMirroringNextSinglePageAsync(nextLink, context)); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. + * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return this.beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPortMirroring(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * Create a WorkloadNetworkDnsZone. + * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. + * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return this - .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPortMirroring(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Create a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone on successful completion of {@link Mono}. + * @return a WorkloadNetworkPortMirroring along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getPortMirroringWithResponseAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String portMirroringId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone on successful completion of {@link Mono}. + * @return a WorkloadNetworkPortMirroring along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getPortMirroringWithResponseAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String portMirroringId, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, context); } /** - * Create a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. + * @return a WorkloadNetworkPortMirroring on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return createDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).block(); + private Mono getPortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId) { + return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. + * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return createDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) - .block(); + public Response getPortMirroringWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, Context context) { + return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, context).block(); } /** - * Update a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkPortMirroring. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + public WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String portMirroringId) { + return getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + Context.NONE).getValue(); + } + + /** + * Create a WorkloadNetworkPortMirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3493,40 +3819,46 @@ private Mono>> updateDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsZone == null) { + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + if (workloadNetworkPortMirroring == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); } else { - workloadNetworkDnsZone.validate(); + workloadNetworkPortMirroring.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, - accept, context)) + .withContext(context -> service.createPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, workloadNetworkPortMirroring, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - Context context) { + private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3543,204 +3875,227 @@ private Mono>> updateDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkDnsZone == null) { + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + if (workloadNetworkPortMirroring == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); } else { - workloadNetworkDnsZone.validate(); + workloadNetworkPortMirroring.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, - accept, context); + return service.createPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, workloadNetworkPortMirroring, context); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Zone. + * @return the {@link PollerFlux} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - Mono>> mono - = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, - this.client.getContext()); + private PollerFlux, WorkloadNetworkPortMirroringInner> + beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, + WorkloadNetworkPortMirroringInner.class, this.client.getContext()); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX DNS Zone. + * @return the {@link PollerFlux} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { + private PollerFlux, WorkloadNetworkPortMirroringInner> + beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, - dnsZoneId, workloadNetworkDnsZone, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, - context); + Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, + WorkloadNetworkPortMirroringInner.class, context); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. + * @return the {@link SyncPoller} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return this.beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone) + public SyncPoller, WorkloadNetworkPortMirroringInner> + beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return this + .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring) .getSyncPoller(); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX DNS Zone. + * @return the {@link SyncPoller} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { + public SyncPoller, WorkloadNetworkPortMirroringInner> + beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { return this - .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) + .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context) .getSyncPoller(); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone on successful completion of {@link Mono}. + * @return nSX Port Mirroring on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createPortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone on successful completion of {@link Mono}. + * @return nSX Port Mirroring on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createPortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. + * @return nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return updateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).block(); + public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return createPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring).block(); } /** - * Update a WorkloadNetworkDnsZone. + * Create a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param workloadNetworkDnsZone The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX DNS Zone. + * @return nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return updateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) - .block(); + public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return createPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context).block(); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDnsZoneWithResponseAsync(String resourceGroupName, String dnsZoneId, - String privateCloudName) { + private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3753,35 +4108,50 @@ private Mono>> deleteDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + if (workloadNetworkPortMirroring == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + } else { + workloadNetworkPortMirroring.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deleteDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, dnsZoneId, privateCloudName, accept, context)) + .withContext(context -> service.updatePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, workloadNetworkPortMirroring, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteDnsZoneWithResponseAsync(String resourceGroupName, String dnsZoneId, - String privateCloudName, Context context) { + private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3794,177 +4164,228 @@ private Mono>> deleteDnsZoneWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (dnsZoneId == null) { - return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } + if (workloadNetworkPortMirroring == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + } else { + workloadNetworkPortMirroring.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deleteDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, dnsZoneId, privateCloudName, accept, context); + return service.updatePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, workloadNetworkPortMirroring, context); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, - String privateCloudName) { - Mono>> mono - = deleteDnsZoneWithResponseAsync(resourceGroupName, dnsZoneId, privateCloudName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + private PollerFlux, WorkloadNetworkPortMirroringInner> + beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, + WorkloadNetworkPortMirroringInner.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, - String privateCloudName, Context context) { + private PollerFlux, WorkloadNetworkPortMirroringInner> + beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteDnsZoneWithResponseAsync(resourceGroupName, dnsZoneId, privateCloudName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, + WorkloadNetworkPortMirroringInner.class, context); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, - String privateCloudName) { - return this.beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).getSyncPoller(); + public SyncPoller, WorkloadNetworkPortMirroringInner> + beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return this + .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, - String privateCloudName, Context context) { - return this.beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).getSyncPoller(); + public SyncPoller, WorkloadNetworkPortMirroringInner> + beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return this + .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX Port Mirroring on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, String privateCloudName) { - return beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updatePortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX Port Mirroring on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, String privateCloudName, - Context context) { - return beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updatePortMirroringAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName) { - deleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).block(); + public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return updatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring).block(); } /** - * Delete a WorkloadNetworkDnsZone. + * Update a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkPortMirroring The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX Port Mirroring. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context) { - deleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).block(); + public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return updatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + workloadNetworkPortMirroring, context).block(); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listGatewaysSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono>> deletePortMirroringWithResponseAsync(String resourceGroupName, + String portMirroringId, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -3977,34 +4398,36 @@ private Mono> listGatewaysSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listGateways(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.deletePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, portMirroringId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listGatewaysSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono>> deletePortMirroringWithResponseAsync(String resourceGroupName, + String portMirroringId, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4017,232 +4440,182 @@ private Mono> listGatewaysSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (portMirroringId == null) { + return Mono + .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listGateways(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.deletePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, portMirroringId, privateCloudName, accept, context); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listGatewaysAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listGatewaysNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeletePortMirroringAsync(String resourceGroupName, + String portMirroringId, String privateCloudName) { + Mono>> mono + = deletePortMirroringWithResponseAsync(resourceGroupName, portMirroringId, privateCloudName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listGatewaysAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listGatewaysNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeletePortMirroringAsync(String resourceGroupName, + String portMirroringId, String privateCloudName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deletePortMirroringWithResponseAsync(resourceGroupName, portMirroringId, privateCloudName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGateways(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDeletePortMirroring(String resourceGroupName, String portMirroringId, + String privateCloudName) { + return this.beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).getSyncPoller(); } /** - * List WorkloadNetworkGateway resources by WorkloadNetwork. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGateways(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDeletePortMirroring(String resourceGroupName, String portMirroringId, + String privateCloudName, Context context) { + return this.beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context) + .getSyncPoller(); } /** - * Get a WorkloadNetworkGateway. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. - * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkGateway along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGatewayWithResponseAsync(String resourceGroupName, - String privateCloudName, String gatewayId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (gatewayId == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getGateway(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, gatewayId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + private Mono deletePortMirroringAsync(String resourceGroupName, String portMirroringId, + String privateCloudName) { + return beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkGateway. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. - * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkGateway along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getGatewayWithResponseAsync(String resourceGroupName, - String privateCloudName, String gatewayId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (gatewayId == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getGateway(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, gatewayId, accept, context); + private Mono deletePortMirroringAsync(String resourceGroupName, String portMirroringId, + String privateCloudName, Context context) { + return beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkGateway. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. - * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkGateway on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getGatewayAsync(String resourceGroupName, String privateCloudName, - String gatewayId) { - return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, gatewayId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public void deletePortMirroring(String resourceGroupName, String portMirroringId, String privateCloudName) { + deletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).block(); } /** - * Get a WorkloadNetworkGateway. + * Delete a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId ID of the NSX port mirroring profile. * @param privateCloudName Name of the private cloud. - * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkGateway along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getGatewayWithResponse(String resourceGroupName, - String privateCloudName, String gatewayId, Context context) { - return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, gatewayId, context).block(); - } - - /** - * Get a WorkloadNetworkGateway. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param gatewayId The ID of the NSX Gateway. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkGateway. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, String gatewayId) { - return getGatewayWithResponse(resourceGroupName, privateCloudName, gatewayId, Context.NONE).getValue(); + public void deletePortMirroring(String resourceGroupName, String portMirroringId, String privateCloudName, + Context context) { + deletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context).block(); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listPortMirroringSinglePageAsync(String resourceGroupName, String privateCloudName) { + private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4259,30 +4632,36 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listPortMirroringSinglePageAsync(String resourceGroupName, String privateCloudName, Context context) { + private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4297,103 +4676,111 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p } if (privateCloudName == null) { return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + .listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with - * {@link PagedFlux}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listPortMirroringAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listPortMirroringNextSinglePageAsync(nextLink)); + private PagedFlux listVMGroupsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listVMGroupsNextSinglePageAsync(nextLink)); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with - * {@link PagedFlux}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listPortMirroringAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listPortMirroringNextSinglePageAsync(nextLink, context)); + private PagedFlux listVMGroupsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listVMGroupsNextSinglePageAsync(nextLink, context)); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName)); + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listVMGroupsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Get a WorkloadNetworkPortMirroring. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkVMGroup along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getPortMirroringWithResponseAsync(String resourceGroupName, String privateCloudName, String portMirroringId) { + private Mono> getVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4410,32 +4797,37 @@ public PagedIterable listPortMirroring(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, accept, context)) + .withContext(context -> service.getVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetworkPortMirroring. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkVMGroup along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getPortMirroringWithResponseAsync( - String resourceGroupName, String privateCloudName, String portMirroringId, Context context) { + private Mono> getVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4452,86 +4844,94 @@ private Mono> getPortMirroringWithRe return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, accept, context); + return service.getVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, context); } /** - * Get a WorkloadNetworkPortMirroring. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring on successful completion of {@link Mono}. + * @return a WorkloadNetworkVMGroup on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId) { - return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, portMirroringId) + private Mono getVMGroupAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId) { + return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a WorkloadNetworkPortMirroring. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring along with {@link Response}. + * @return a WorkloadNetworkVMGroup along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPortMirroringWithResponse(String resourceGroupName, - String privateCloudName, String portMirroringId, Context context) { - return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, portMirroringId, context).block(); + public Response getVMGroupWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, Context context) { + return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, context) + .block(); } /** - * Get a WorkloadNetworkPortMirroring. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring. + * @return a WorkloadNetworkVMGroup. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId) { - return getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, Context.NONE) + public WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId) { + return getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, Context.NONE) .getValue(); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. + * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4548,40 +4948,43 @@ private Mono>> createPortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkPortMirroring == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); } else { - workloadNetworkPortMirroring.validate(); + resource.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, accept, context)) + .withContext(context -> service.createVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. + * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, + private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -4599,212 +5002,221 @@ private Mono>> createPortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkPortMirroring == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); } else { - workloadNetworkPortMirroring.validate(); + resource.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, accept, context); + return service.createVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, resource, context); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Port Mirroring. + * @return the {@link PollerFlux} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, - WorkloadNetworkPortMirroringInner.class, this.client.getContext()); + private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource) { + Mono>> mono = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + this.client.getContext()); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Port Mirroring. + * @return the {@link PollerFlux} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, - WorkloadNetworkPortMirroringInner.class, context); + Mono>> mono = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + context); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Port Mirroring. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource) { return this - .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring) + .beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) .getSyncPoller(); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Port Mirroring. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context) { return this - .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context) + .beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context) .getSyncPoller(); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring on successful completion of {@link Mono}. + * @return nSX VM Group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); + private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { + return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring on successful completion of {@link Mono}. + * @return nSX VM Group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { - return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); + private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { + return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return createPortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring).block(); + public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { + return createVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) + .block(); } /** - * Create a WorkloadNetworkPortMirroring. + * Create a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { - return createPortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context).block(); + public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { + return createVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context).block(); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. + * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4821,41 +5233,45 @@ private Mono>> updatePortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkPortMirroring == null) { + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + } + if (workloadNetworkVMGroup == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); } else { - workloadNetworkPortMirroring.validate(); + workloadNetworkVMGroup.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updatePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, accept, context)) + .withContext(context -> service.updateVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, workloadNetworkVMGroup, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring along with {@link Response} on successful completion of {@link Mono}. + * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { + private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4872,201 +5288,212 @@ private Mono>> updatePortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (portMirroringId == null) { + if (workloadNetworkName == null) { return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkPortMirroring == null) { + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + } + if (workloadNetworkVMGroup == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPortMirroring is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); } else { - workloadNetworkPortMirroring.validate(); + workloadNetworkVMGroup.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updatePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, accept, context); + return service.updateVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, workloadNetworkVMGroup, context); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Port Mirroring. + * @return the {@link PollerFlux} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, - WorkloadNetworkPortMirroringInner.class, this.client.getContext()); + private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + Mono>> mono = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, workloadNetworkVMGroup); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + this.client.getContext()); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Port Mirroring. + * @return the {@link PollerFlux} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, - WorkloadNetworkPortMirroringInner.class, context); + Mono>> mono = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, workloadNetworkVMGroup, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + context); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Port Mirroring. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { return this - .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring) + .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup) .getSyncPoller(); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Port Mirroring. + * @return the {@link SyncPoller} for polling of nSX VM Group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { return this - .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context) + .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context) .getSyncPoller(); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring on successful completion of {@link Mono}. + * @return nSX VM Group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updatePortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); + private Mono updateVMGroupAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring on successful completion of {@link Mono}. + * @return nSX VM Group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updatePortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, + private Mono updateVMGroupAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); + return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return updatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring).block(); + public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + return updateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup).block(); } /** - * Update a WorkloadNetworkPortMirroring. + * Update a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param portMirroringId ID of the NSX port mirroring profile. - * @param workloadNetworkPortMirroring The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. + * @param workloadNetworkVMGroup The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Port Mirroring. + * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { - return updatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, - workloadNetworkPortMirroring, context).block(); + public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, + Context context) { + return updateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context).block(); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5074,8 +5501,8 @@ public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGrou * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePortMirroringWithResponseAsync(String resourceGroupName, - String portMirroringId, String privateCloudName) { + private Mono>> deleteVMGroupWithResponseAsync(String resourceGroupName, String vmGroupId, + String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5088,9 +5515,8 @@ private Mono>> deletePortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (portMirroringId == null) { - return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } if (privateCloudName == null) { return Mono @@ -5098,16 +5524,16 @@ private Mono>> deletePortMirroringWithResponseAsync(St } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deletePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, portMirroringId, privateCloudName, accept, context)) + .withContext(context -> service.deleteVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vmGroupId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5116,8 +5542,8 @@ private Mono>> deletePortMirroringWithResponseAsync(St * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePortMirroringWithResponseAsync(String resourceGroupName, - String portMirroringId, String privateCloudName, Context context) { + private Mono>> deleteVMGroupWithResponseAsync(String resourceGroupName, String vmGroupId, + String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5130,9 +5556,8 @@ private Mono>> deletePortMirroringWithResponseAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (portMirroringId == null) { - return Mono - .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); + if (vmGroupId == null) { + return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } if (privateCloudName == null) { return Mono @@ -5140,15 +5565,15 @@ private Mono>> deletePortMirroringWithResponseAsync(St } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deletePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, portMirroringId, privateCloudName, accept, context); + return service.deleteVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vmGroupId, privateCloudName, accept, context); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5156,19 +5581,19 @@ private Mono>> deletePortMirroringWithResponseAsync(St * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePortMirroringAsync(String resourceGroupName, - String portMirroringId, String privateCloudName) { + private PollerFlux, Void> beginDeleteVMGroupAsync(String resourceGroupName, String vmGroupId, + String privateCloudName) { Mono>> mono - = deletePortMirroringWithResponseAsync(resourceGroupName, portMirroringId, privateCloudName); + = deleteVMGroupWithResponseAsync(resourceGroupName, vmGroupId, privateCloudName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5177,20 +5602,20 @@ private PollerFlux, Void> beginDeletePortMirroringAsync(String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePortMirroringAsync(String resourceGroupName, - String portMirroringId, String privateCloudName, Context context) { + private PollerFlux, Void> beginDeleteVMGroupAsync(String resourceGroupName, String vmGroupId, + String privateCloudName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deletePortMirroringWithResponseAsync(resourceGroupName, portMirroringId, privateCloudName, context); + = deleteVMGroupWithResponseAsync(resourceGroupName, vmGroupId, privateCloudName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5198,16 +5623,16 @@ private PollerFlux, Void> beginDeletePortMirroringAsync(String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePortMirroring(String resourceGroupName, String portMirroringId, + public SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName) { - return this.beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).getSyncPoller(); + return this.beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).getSyncPoller(); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5216,17 +5641,16 @@ public SyncPoller, Void> beginDeletePortMirroring(String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePortMirroring(String resourceGroupName, String portMirroringId, + public SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context) { - return this.beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context) - .getSyncPoller(); + return this.beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).getSyncPoller(); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5234,17 +5658,16 @@ public SyncPoller, Void> beginDeletePortMirroring(String resour * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePortMirroringAsync(String resourceGroupName, String portMirroringId, - String privateCloudName) { - return beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).last() + private Mono deleteVMGroupAsync(String resourceGroupName, String vmGroupId, String privateCloudName) { + return beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5253,32 +5676,32 @@ private Mono deletePortMirroringAsync(String resourceGroupName, String por * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePortMirroringAsync(String resourceGroupName, String portMirroringId, - String privateCloudName, Context context) { - return beginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context).last() + private Mono deleteVMGroupAsync(String resourceGroupName, String vmGroupId, String privateCloudName, + Context context) { + return beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePortMirroring(String resourceGroupName, String portMirroringId, String privateCloudName) { - deletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).block(); + public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName) { + deleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).block(); } /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param portMirroringId ID of the NSX port mirroring profile. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -5286,25 +5709,25 @@ public void deletePortMirroring(String resourceGroupName, String portMirroringId * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePortMirroring(String resourceGroupName, String portMirroringId, String privateCloudName, - Context context) { - deletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName, context).block(); + public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context) { + deleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).block(); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono> listVirtualMachinesSinglePageAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5321,30 +5744,36 @@ private Mono> listPublicIPsSinglePag return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPublicIPs(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono> listVirtualMachinesSinglePageAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5361,99 +5790,112 @@ private Mono> listPublicIPsSinglePag return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listPublicIPs(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + return service.listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listPublicIPsAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listPublicIPsSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listPublicIPsNextSinglePageAsync(nextLink)); + private PagedFlux listVirtualMachinesAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink)); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with {@link PagedFlux}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listPublicIPsAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listPublicIPsSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listPublicIPsNextSinglePageAsync(nextLink, context)); + private PagedFlux listVirtualMachinesAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink, context)); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPublicIPs(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listPublicIPsAsync(resourceGroupName, privateCloudName)); + public PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listPublicIPsAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listVirtualMachinesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkVirtualMachine along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getPublicIpWithResponseAsync(String resourceGroupName, - String privateCloudName, String publicIpId) { + private Mono> getVirtualMachineWithResponseAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String virtualMachineId) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5470,31 +5912,39 @@ private Mono> getPublicIpWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (virtualMachineId == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, publicIpId, accept, context)) + .withContext(context -> service.getVirtualMachine(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkVirtualMachine along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getPublicIpWithResponseAsync(String resourceGroupName, - String privateCloudName, String publicIpId, Context context) { + private Mono> getVirtualMachineWithResponseAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String virtualMachineId, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5511,83 +5961,94 @@ private Mono> getPublicIpWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (virtualMachineId == null) { + return Mono + .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, publicIpId, accept, context); + return service.getVirtualMachine(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + accept, context); } /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP on successful completion of {@link Mono}. + * @return a WorkloadNetworkVirtualMachine on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getPublicIpAsync(String resourceGroupName, String privateCloudName, - String publicIpId) { - return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, publicIpId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getVirtualMachineAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String virtualMachineId) { + return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response}. + * @return a WorkloadNetworkVirtualMachine along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPublicIpWithResponse(String resourceGroupName, - String privateCloudName, String publicIpId, Context context) { - return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, publicIpId, context).block(); + public Response getVirtualMachineWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context) { + return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId, context).block(); } /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP. + * @return a WorkloadNetworkVirtualMachine. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, - String publicIpId) { - return getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, Context.NONE).getValue(); + public WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String virtualMachineId) { + return getVirtualMachineWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + Context.NONE).getValue(); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createPublicIpWithResponseAsync(String resourceGroupName, - String privateCloudName, String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp) { + private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5604,40 +6065,36 @@ private Mono>> createPublicIpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); - } - if (workloadNetworkPublicIp == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPublicIp is required and cannot be null.")); - } else { - workloadNetworkPublicIp.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, publicIpId, - workloadNetworkPublicIp, accept, context)) + .withContext(context -> service.listDnsServices(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createPublicIpWithResponseAsync(String resourceGroupName, - String privateCloudName, String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp, - Context context) { + private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5654,203 +6111,263 @@ private Mono>> createPublicIpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); - } - if (workloadNetworkPublicIp == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkPublicIp is required and cannot be null.")); - } else { - workloadNetworkPublicIp.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp, - accept, context); + return service + .listDnsServices(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Public IP Block. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp) { - Mono>> mono - = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listDnsServicesAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listDnsServicesNextSinglePageAsync(nextLink)); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Public IP Block. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, - publicIpId, workloadNetworkPublicIp, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listDnsServicesAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listDnsServicesNextSinglePageAsync(nextLink, context)); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Public IP Block. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp) { - return this.beginCreatePublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listDnsServices(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * Create a WorkloadNetworkPublicIP. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Public IP Block. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( - String resourceGroupName, String privateCloudName, String publicIpId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context) { - return this - .beginCreatePublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listDnsServices(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listDnsServicesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); + } + + /** + * Get a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a WorkloadNetworkDnsService. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, context); } /** - * Create a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block on successful completion of {@link Mono}. + * @return a WorkloadNetworkDnsService on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createPublicIpAsync(String resourceGroupName, String privateCloudName, - String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp) { - return beginCreatePublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono getDnsServiceAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId) { + return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createPublicIpAsync(String resourceGroupName, String privateCloudName, - String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context) { - return beginCreatePublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp, - context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create a WorkloadNetworkPublicIP. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block. + * @return a WorkloadNetworkDnsService along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, - String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp) { - return createPublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp).block(); + public Response getDnsServiceWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context) { + return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + context).block(); } /** - * Create a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. - * @param workloadNetworkPublicIp Resource create parameters. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Public IP Block. + * @return a WorkloadNetworkDnsService. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, - String publicIpId, WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context) { - return createPublicIpAsync(resourceGroupName, privateCloudName, publicIpId, workloadNetworkPublicIp, context) - .block(); + public WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId) { + return getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + Context.NONE).getValue(); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, - String publicIpId, String privateCloudName) { + private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5863,35 +6380,49 @@ private Mono>> deletePublicIpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + if (workloadNetworkDnsService == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + } else { + workloadNetworkDnsService.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deletePublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, publicIpId, privateCloudName, accept, context)) + .withContext(context -> service.createDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, - String publicIpId, String privateCloudName, Context context) { + private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5904,177 +6435,229 @@ private Mono>> deletePublicIpWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (publicIpId == null) { - return Mono.error(new IllegalArgumentException("Parameter publicIpId is required and cannot be null.")); - } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + if (workloadNetworkDnsService == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + } else { + workloadNetworkDnsService.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deletePublicIp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, publicIpId, privateCloudName, accept, context); + return service.createDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX DNS Service. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIpId, - String privateCloudName) { - Mono>> mono - = deletePublicIpWithResponseAsync(resourceGroupName, publicIpId, privateCloudName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + private PollerFlux, WorkloadNetworkDnsServiceInner> + beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsServiceId, workloadNetworkDnsService); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX DNS Service. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIpId, - String privateCloudName, Context context) { + private PollerFlux, WorkloadNetworkDnsServiceInner> + beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deletePublicIpWithResponseAsync(resourceGroupName, publicIpId, privateCloudName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsServiceId, workloadNetworkDnsService, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, context); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Service. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId, - String privateCloudName) { - return this.beginDeletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName).getSyncPoller(); + public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return this + .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Service. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId, - String privateCloudName, Context context) { - return this.beginDeletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName, context).getSyncPoller(); + public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return this + .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX DNS Service on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePublicIpAsync(String resourceGroupName, String publicIpId, String privateCloudName) { - return beginDeletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createDnsServiceAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX DNS Service on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePublicIpAsync(String resourceGroupName, String publicIpId, String privateCloudName, - Context context) { - return beginDeletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName, context).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createDnsServiceAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName) { - deletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName).block(); + public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return createDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).block(); } /** - * Delete a WorkloadNetworkPublicIP. + * Create a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName, Context context) { - deletePublicIpAsync(resourceGroupName, publicIpId, privateCloudName, context).block(); + public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context) { + return createDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).block(); } /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSegmentsSinglePageAsync(String resourceGroupName, - String privateCloudName) { + private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6091,30 +6674,45 @@ private Mono> listSegmentsSinglePageA return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + if (workloadNetworkDnsService == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + } else { + workloadNetworkDnsService.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.updateDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return nSX DNS Service along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSegmentsSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6131,229 +6729,222 @@ private Mono> listSegmentsSinglePageA return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } + if (workloadNetworkDnsService == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsService is required and cannot be null.")); + } else { + workloadNetworkDnsService.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listSegments(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSegmentsAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listSegmentsNextSinglePageAsync(nextLink)); + return service.updateDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context); } /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of nSX DNS Service. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSegmentsAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listSegmentsNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkloadNetworkDnsServiceInner> + beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsServiceId, workloadNetworkDnsService); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, + this.client.getContext()); } /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of nSX DNS Service. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSegments(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkloadNetworkDnsServiceInner> + beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsServiceId, workloadNetworkDnsService, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, + context); } /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of nSX DNS Service. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return this + .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService) + .getSyncPoller(); } /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of nSX DNS Service. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return this + .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context) + .getSyncPoller(); } /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DNS Service on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context); + private Mono updateDnsServiceAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment on successful completion of {@link Mono}. + * @return nSX DNS Service on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId) { - return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono updateDnsServiceAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response}. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getSegmentWithResponse(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { - return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, context).block(); + public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return updateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).block(); } /** - * Get a WorkloadNetworkSegment. + * Update a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param workloadNetworkDnsService The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment. + * @return nSX DNS Service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId) { - return getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, Context.NONE).getValue(); + public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context) { + return updateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).block(); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createSegmentsWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + private Mono>> deleteDnsServiceWithResponseAsync(String resourceGroupName, + String dnsServiceId, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6366,44 +6957,35 @@ private Mono>> createSegmentsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - if (workloadNetworkSegment == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); - } else { - workloadNetworkSegment.validate(); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, - accept, context)) + .withContext(context -> service.deleteDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dnsServiceId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createSegmentsWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, - Context context) { + private Mono>> deleteDnsServiceWithResponseAsync(String resourceGroupName, + String dnsServiceId, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6416,209 +6998,180 @@ private Mono>> createSegmentsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dnsServiceId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsServiceId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - if (workloadNetworkSegment == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); - } else { - workloadNetworkSegment.validate(); - } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, - accept, context); + return service.deleteDnsService(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dnsServiceId, privateCloudName, accept, context); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Segment. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentsAsync( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment) { + private PollerFlux, Void> beginDeleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, + String privateCloudName) { Mono>> mono - = createSegmentsWithResponseAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, + = deleteDnsServiceWithResponseAsync(resourceGroupName, dnsServiceId, privateCloudName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Segment. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentsAsync( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { + private PollerFlux, Void> beginDeleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, + String privateCloudName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createSegmentsWithResponseAsync(resourceGroupName, privateCloudName, - segmentId, workloadNetworkSegment, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, + Mono>> mono + = deleteDnsServiceWithResponseAsync(resourceGroupName, dnsServiceId, privateCloudName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment) { - return this.beginCreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment) - .getSyncPoller(); + public SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, + String privateCloudName) { + return this.beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).getSyncPoller(); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return this - .beginCreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) + public SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId, + String privateCloudName, Context context) { + return this.beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context) .getSyncPoller(); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createSegmentsAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return beginCreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).last() + private Mono deleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, String privateCloudName) { + return beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createSegmentsAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return beginCreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .last() + private Mono deleteDnsServiceAsync(String resourceGroupName, String dnsServiceId, String privateCloudName, + Context context) { + return beginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return createSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).block(); + public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName) { + deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).block(); } /** - * Create a WorkloadNetworkSegment. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return createSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .block(); + public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, + Context context) { + deleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName, context).block(); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateSegmentsWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6635,40 +7188,36 @@ private Mono>> updateSegmentsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - if (workloadNetworkSegment == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); - } else { - workloadNetworkSegment.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, - accept, context)) + .withContext(context -> service.listDnsZones(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateSegmentsWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, - Context context) { + private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6685,204 +7234,261 @@ private Mono>> updateSegmentsWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); - } - if (workloadNetworkSegment == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkSegment is required and cannot be null.")); - } else { - workloadNetworkSegment.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, - accept, context); + return service + .listDnsZones(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentsAsync( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment) { - Mono>> mono - = updateSegmentsWithResponseAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listDnsZonesAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listDnsZonesNextSinglePageAsync(nextLink)); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentsAsync( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = updateSegmentsWithResponseAsync(resourceGroupName, privateCloudName, - segmentId, workloadNetworkSegment, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listDnsZonesAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listDnsZonesNextSinglePageAsync(nextLink, context)); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment) { - return this.beginUpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * Update a WorkloadNetworkSegment. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX Segment. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments( - String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return this - .beginUpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listDnsZonesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment on successful completion of {@link Mono}. + * @return a WorkloadNetworkDnsZone along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateSegmentsAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return beginUpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment on successful completion of {@link Mono}. + * @return a WorkloadNetworkDnsZone along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateSegmentsAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return beginUpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, context); } /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. + * @return a WorkloadNetworkDnsZone on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return updateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).block(); + private Mono getDnsZoneAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId) { + return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Update a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. - * @param workloadNetworkSegment The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX Segment. + * @return a WorkloadNetworkDnsZone along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return updateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) + public Response getDnsZoneWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, Context context) { + return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, context) .block(); } /** - * Delete a WorkloadNetworkSegment. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkDnsZone. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId) { + public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId) { + return getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, Context.NONE) + .getValue(); + } + + /** + * Create a WorkloadNetworkDnsZone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6899,31 +7505,45 @@ private Mono>> deleteSegmentWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + if (workloadNetworkDnsZone == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + } else { + workloadNetworkDnsZone.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context)) + .withContext(context -> service.createDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { + private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6940,173 +7560,224 @@ private Mono>> deleteSegmentWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (segmentId == null) { - return Mono.error(new IllegalArgumentException("Parameter segmentId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + if (workloadNetworkDnsZone == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + } else { + workloadNetworkDnsZone.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context); + return service.createDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, - String privateCloudName, String segmentId) { - Mono>> mono - = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + Mono>> mono = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { + private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + Mono>> mono = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, context); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId) { - return this.beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).getSyncPoller(); + public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return this + .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId, Context context) { - return this.beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId, context).getSyncPoller(); + public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { + return this + .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context) + .getSyncPoller(); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX DNS Zone on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String segmentId) { - return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createDnsZoneAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return nSX DNS Zone on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String segmentId, + private Mono createDnsZoneAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { - return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId, context).last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId) { - deleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).block(); + public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return createDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).block(); } /** - * Delete a WorkloadNetworkSegment. + * Create a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context) { - deleteSegmentAsync(resourceGroupName, privateCloudName, segmentId, context).block(); + public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return createDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).block(); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesSinglePageAsync(String resourceGroupName, String privateCloudName) { + private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -7123,30 +7794,45 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + if (workloadNetworkDnsZone == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + } else { + workloadNetworkDnsZone.validate(); + } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.updateDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return nSX DNS Zone along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesSinglePageAsync(String resourceGroupName, String privateCloudName, Context context) { + private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -7163,238 +7849,220 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } + if (workloadNetworkDnsZone == null) { + return Mono.error( + new IllegalArgumentException("Parameter workloadNetworkDnsZone is required and cannot be null.")); + } else { + workloadNetworkDnsZone.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.updateDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVirtualMachinesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + Mono>> mono = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, + this.client.getContext()); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVirtualMachinesAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, + context); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return this + .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone) + .getSyncPoller(); } /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName, context)); - } - - /** - * Get a WorkloadNetworkVirtualMachine. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of nSX DNS Zone. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getVirtualMachineWithResponseAsync(String resourceGroupName, String privateCloudName, String virtualMachineId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (virtualMachineId == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getVirtualMachine(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, virtualMachineId, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, + WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { + return this + .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context) + .getSyncPoller(); } /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine along with {@link Response} on successful completion of {@link Mono}. + * @return nSX DNS Zone on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVirtualMachineWithResponseAsync( - String resourceGroupName, String privateCloudName, String virtualMachineId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (virtualMachineId == null) { - return Mono - .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getVirtualMachine(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, virtualMachineId, accept, context); + private Mono updateDnsZoneAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine on successful completion of {@link Mono}. + * @return nSX DNS Zone on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getVirtualMachineAsync(String resourceGroupName, - String privateCloudName, String virtualMachineId) { - return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, virtualMachineId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono updateDnsZoneAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine along with {@link Response}. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context) { - return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, virtualMachineId, context) - .block(); + public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return updateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).block(); } /** - * Get a WorkloadNetworkVirtualMachine. + * Update a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. + * @param workloadNetworkDnsZone The resource properties to be updated. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine. + * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId) { - return getVirtualMachineWithResponse(resourceGroupName, privateCloudName, virtualMachineId, Context.NONE) - .getValue(); + public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return updateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).block(); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, + private Mono>> deleteDnsZoneWithResponseAsync(String resourceGroupName, String dnsZoneId, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -7408,33 +8076,34 @@ private Mono> listVMGroupsSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.deleteDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dnsZoneId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, + private Mono>> deleteDnsZoneWithResponseAsync(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -7448,233 +8117,178 @@ private Mono> listVMGroupsSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + if (dnsZoneId == null) { + return Mono.error(new IllegalArgumentException("Parameter dnsZoneId is required and cannot be null.")); + } if (privateCloudName == null) { return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); + return service.deleteDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dnsZoneId, privateCloudName, accept, context); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVMGroupsAsync(String resourceGroupName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, String privateCloudName) { - return new PagedFlux<>(() -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listVMGroupsNextSinglePageAsync(nextLink)); + Mono>> mono + = deleteDnsZoneWithResponseAsync(resourceGroupName, dnsZoneId, privateCloudName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVMGroupsAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listVMGroupsNextSinglePageAsync(nextLink, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, + String privateCloudName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteDnsZoneWithResponseAsync(resourceGroupName, dnsZoneId, privateCloudName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, + String privateCloudName) { + return this.beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).getSyncPoller(); } /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId, + String privateCloudName, Context context) { + return this.beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).getSyncPoller(); } /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + private Mono deleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, String privateCloudName) { + return beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup along with {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, accept, context); + private Mono deleteDnsZoneAsync(String resourceGroupName, String dnsZoneId, String privateCloudName, + Context context) { + return beginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId) { - return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName) { + deleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).block(); } /** - * Get a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getVMGroupWithResponse(String resourceGroupName, - String privateCloudName, String vmGroupId, Context context) { - return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, context).block(); - } - - /** - * Get a WorkloadNetworkVMGroup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId) { - return getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, Context.NONE).getValue(); + public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context) { + deleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName, context).block(); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + private Mono> listPublicIpsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -7688,43 +8302,39 @@ private Mono>> createVMGroupWithResponseAsync(String r .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (privateCloudName == null) { - return Mono - .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); - } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (workloadNetworkVMGroup == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); - } else { - workloadNetworkVMGroup.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, - accept, context)) + .withContext(context -> service.listPublicIps(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, - Context context) { + private Mono> listPublicIpsSinglePageAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -7741,205 +8351,263 @@ private Mono>> createVMGroupWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); - } - if (workloadNetworkVMGroup == null) { - return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); - } else { - workloadNetworkVMGroup.validate(); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.createVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, - accept, context); + return service + .listPublicIps(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - Mono>> mono - = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listPublicIpsAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listPublicIpsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listPublicIpsNextSinglePageAsync(nextLink)); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, - vmGroupId, workloadNetworkVMGroup, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, - context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listPublicIpsAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listPublicIpsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listPublicIpsNextSinglePageAsync(nextLink, context)); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return this.beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listPublicIpsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** - * Create a WorkloadNetworkVMGroup. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return this - .beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) - .getSyncPoller(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listPublicIpsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group on successful completion of {@link Mono}. + * @return a WorkloadNetworkPublicIP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getPublicIpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group on successful completion of {@link Mono}. + * @return a WorkloadNetworkPublicIP along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono> getPublicIpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (privateCloudName == null) { + return Mono + .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); + } + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); + } + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, context); } /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return a WorkloadNetworkPublicIP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return createVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).block(); + private Mono getPublicIpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { + return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup Resource create parameters. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return a WorkloadNetworkPublicIP along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return createVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) - .block(); + public Response getPublicIpWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId, Context context) { + return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + context).block(); } /** - * Update a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. + * @return a WorkloadNetworkPublicIP. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + public WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { + return getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + Context.NONE).getValue(); + } + + /** + * Create a WorkloadNetworkPublicIP. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSX Public IP Block along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createPublicIpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -7956,40 +8624,45 @@ private Mono>> updateVMGroupWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkVMGroup == null) { + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); + } + if (workloadNetworkPublicIP == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkPublicIP is required and cannot be null.")); } else { - workloadNetworkVMGroup.validate(); + workloadNetworkPublicIP.validate(); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, - accept, context)) + .withContext(context -> service.createPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, workloadNetworkPublicIP, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group along with {@link Response} on successful completion of {@link Mono}. + * @return nSX Public IP Block along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, - Context context) { + private Mono>> createPublicIpWithResponseAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -8006,195 +8679,212 @@ private Mono>> updateVMGroupWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter privateCloudName is required and cannot be null.")); } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + if (workloadNetworkName == null) { + return Mono + .error(new IllegalArgumentException("Parameter workloadNetworkName is required and cannot be null.")); } - if (workloadNetworkVMGroup == null) { + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); + } + if (workloadNetworkPublicIP == null) { return Mono.error( - new IllegalArgumentException("Parameter workloadNetworkVMGroup is required and cannot be null.")); + new IllegalArgumentException("Parameter workloadNetworkPublicIP is required and cannot be null.")); } else { - workloadNetworkVMGroup.validate(); + workloadNetworkPublicIP.validate(); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.updateVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, - accept, context); + return service.createPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, workloadNetworkPublicIP, context); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX VM Group. + * @return the {@link PollerFlux} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - Mono>> mono - = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + Mono>> mono = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, publicIPId, workloadNetworkPublicIP); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, this.client.getContext()); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of nSX VM Group. + * @return the {@link PollerFlux} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { + private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context) { context = this.client.mergeContext(context); - Mono>> mono = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, - vmGroupId, workloadNetworkVMGroup, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, + Mono>> mono = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, publicIPId, workloadNetworkPublicIP, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, context); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return this.beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + return this + .beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP) .getSyncPoller(); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of nSX VM Group. + * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { + public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, + WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context) { return this - .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) + .beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP, context) .getSyncPoller(); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group on successful completion of {@link Mono}. + * @return nSX Public IP Block on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createPublicIpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + return beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group on successful completion of {@link Mono}. + * @return nSX Public IP Block on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createPublicIpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, + Context context) { + return beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP, context).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return updateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).block(); + public WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + return createPublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP).block(); } /** - * Update a WorkloadNetworkVMGroup. + * Create a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. - * @param workloadNetworkVMGroup The resource properties to be updated. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. + * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return nSX VM Group. + * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { - return updateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) - .block(); + public WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, + Context context) { + return createPublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP, context).block(); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -8202,8 +8892,8 @@ public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, Strin * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteVMGroupWithResponseAsync(String resourceGroupName, String vmGroupId, - String privateCloudName) { + private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, + String publicIPId, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -8216,8 +8906,8 @@ private Mono>> deleteVMGroupWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); } if (privateCloudName == null) { return Mono @@ -8225,16 +8915,16 @@ private Mono>> deleteVMGroupWithResponseAsync(String r } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deleteVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, vmGroupId, privateCloudName, accept, context)) + .withContext(context -> service.deletePublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, publicIPId, privateCloudName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8243,8 +8933,8 @@ private Mono>> deleteVMGroupWithResponseAsync(String r * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteVMGroupWithResponseAsync(String resourceGroupName, String vmGroupId, - String privateCloudName, Context context) { + private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, + String publicIPId, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -8257,8 +8947,8 @@ private Mono>> deleteVMGroupWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (vmGroupId == null) { - return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); + if (publicIPId == null) { + return Mono.error(new IllegalArgumentException("Parameter publicIPId is required and cannot be null.")); } if (privateCloudName == null) { return Mono @@ -8266,15 +8956,15 @@ private Mono>> deleteVMGroupWithResponseAsync(String r } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deleteVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, vmGroupId, privateCloudName, accept, context); + return service.deletePublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, publicIPId, privateCloudName, accept, context); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -8282,19 +8972,19 @@ private Mono>> deleteVMGroupWithResponseAsync(String r * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteVMGroupAsync(String resourceGroupName, String vmGroupId, + private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName) { Mono>> mono - = deleteVMGroupWithResponseAsync(resourceGroupName, vmGroupId, privateCloudName); + = deletePublicIpWithResponseAsync(resourceGroupName, publicIPId, privateCloudName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8303,20 +8993,20 @@ private PollerFlux, Void> beginDeleteVMGroupAsync(String resour * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteVMGroupAsync(String resourceGroupName, String vmGroupId, + private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteVMGroupWithResponseAsync(resourceGroupName, vmGroupId, privateCloudName, context); + = deletePublicIpWithResponseAsync(resourceGroupName, publicIPId, privateCloudName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -8324,16 +9014,16 @@ private PollerFlux, Void> beginDeleteVMGroupAsync(String resour * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, + public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName) { - return this.beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).getSyncPoller(); + return this.beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).getSyncPoller(); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8342,16 +9032,16 @@ public SyncPoller, Void> beginDeleteVMGroup(String resourceGrou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId, + public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { - return this.beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).getSyncPoller(); + return this.beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).getSyncPoller(); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -8359,16 +9049,16 @@ public SyncPoller, Void> beginDeleteVMGroup(String resourceGrou * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteVMGroupAsync(String resourceGroupName, String vmGroupId, String privateCloudName) { - return beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).last() + private Mono deletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName) { + return beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8377,32 +9067,32 @@ private Mono deleteVMGroupAsync(String resourceGroupName, String vmGroupId * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteVMGroupAsync(String resourceGroupName, String vmGroupId, String privateCloudName, + private Mono deletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { - return beginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).last() + return beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName) { - deleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).block(); + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName) { + deletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).block(); } /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkPublicIP. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param publicIPId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8410,8 +9100,8 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context) { - deleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName, context).block(); + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { + deletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).block(); } /** @@ -8474,11 +9164,11 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDhcpNextSinglePageAsync(String nextLink) { + private Mono> listSegmentsNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8488,8 +9178,8 @@ private Mono> listDhcpNextSinglePageAsyn } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listDhcpNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listSegmentsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8502,11 +9192,11 @@ private Mono> listDhcpNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDhcpNextSinglePageAsync(String nextLink, + private Mono> listSegmentsNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8517,7 +9207,7 @@ private Mono> listDhcpNextSinglePageAsyn } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listDhcpNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listSegmentsNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8529,11 +9219,11 @@ private Mono> listDhcpNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsServicesNextSinglePageAsync(String nextLink) { + private Mono> listDhcpNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8543,8 +9233,8 @@ private Mono> listDnsServicesNextS } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listDnsServicesNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listDhcpNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8557,11 +9247,11 @@ private Mono> listDnsServicesNextS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDhcp list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsServicesNextSinglePageAsync(String nextLink, + private Mono> listDhcpNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8572,7 +9262,7 @@ private Mono> listDnsServicesNextS } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listDnsServicesNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listDhcpNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8584,11 +9274,11 @@ private Mono> listDnsServicesNextS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsZonesNextSinglePageAsync(String nextLink) { + private Mono> listGatewaysNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8598,8 +9288,8 @@ private Mono> listDnsZonesNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listDnsZonesNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listGatewaysNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8612,11 +9302,11 @@ private Mono> listDnsZonesNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listDnsZonesNextSinglePageAsync(String nextLink, + private Mono> listGatewaysNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8627,7 +9317,7 @@ private Mono> listDnsZonesNextSingleP } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listDnsZonesNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listGatewaysNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8639,11 +9329,12 @@ private Mono> listDnsZonesNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listGatewaysNextSinglePageAsync(String nextLink) { + private Mono> + listPortMirroringNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8653,8 +9344,8 @@ private Mono> listGatewaysNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listGatewaysNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listPortMirroringNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8667,11 +9358,11 @@ private Mono> listGatewaysNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkGateway list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listGatewaysNextSinglePageAsync(String nextLink, + private Mono> listPortMirroringNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8682,7 +9373,7 @@ private Mono> listGatewaysNextSingleP } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listGatewaysNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listPortMirroringNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8694,12 +9385,11 @@ private Mono> listGatewaysNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listPortMirroringNextSinglePageAsync(String nextLink) { + private Mono> listVMGroupsNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8709,8 +9399,8 @@ private Mono> listGatewaysNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPortMirroringNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listVMGroupsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8723,11 +9413,11 @@ private Mono> listGatewaysNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPortMirroring list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPortMirroringNextSinglePageAsync(String nextLink, + private Mono> listVMGroupsNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8738,7 +9428,7 @@ private Mono> listPortMirroring } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listPortMirroringNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listVMGroupsNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8750,11 +9440,12 @@ private Mono> listPortMirroring * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsNextSinglePageAsync(String nextLink) { + private Mono> + listVirtualMachinesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8764,8 +9455,9 @@ private Mono> listPublicIPsNextSingl } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPublicIPsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext( + context -> service.listVirtualMachinesNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8778,12 +9470,12 @@ private Mono> listPublicIPsNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsNextSinglePageAsync(String nextLink, - Context context) { + private Mono> + listVirtualMachinesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8793,7 +9485,7 @@ private Mono> listPublicIPsNextSingl } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listPublicIPsNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listVirtualMachinesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8805,11 +9497,11 @@ private Mono> listPublicIPsNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSegmentsNextSinglePageAsync(String nextLink) { + private Mono> listDnsServicesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8819,8 +9511,8 @@ private Mono> listSegmentsNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listSegmentsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listDnsServicesNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8833,11 +9525,11 @@ private Mono> listSegmentsNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkDnsService list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSegmentsNextSinglePageAsync(String nextLink, + private Mono> listDnsServicesNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8848,7 +9540,7 @@ private Mono> listSegmentsNextSingleP } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listSegmentsNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listDnsServicesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8860,12 +9552,11 @@ private Mono> listSegmentsNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesNextSinglePageAsync(String nextLink) { + private Mono> listDnsZonesNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8875,9 +9566,8 @@ private Mono> listSegmentsNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.listVirtualMachinesNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listDnsZonesNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8890,12 +9580,12 @@ private Mono> listSegmentsNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a WorkloadNetworkDnsZone list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesNextSinglePageAsync(String nextLink, Context context) { + private Mono> listDnsZonesNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8905,7 +9595,7 @@ private Mono> listSegmentsNextSingleP } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listVirtualMachinesNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listDnsZonesNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -8917,11 +9607,11 @@ private Mono> listSegmentsNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVMGroupsNextSinglePageAsync(String nextLink) { + private Mono> listPublicIpsNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8931,8 +9621,8 @@ private Mono> listVMGroupsNextSingleP } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVMGroupsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .withContext(context -> service.listPublicIpsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -8945,11 +9635,11 @@ private Mono> listVMGroupsNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation along with {@link PagedResponse} on successful + * @return the response of a WorkloadNetworkPublicIP list operation along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVMGroupsNextSinglePageAsync(String nextLink, + private Mono> listPublicIpsNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); @@ -8960,7 +9650,7 @@ private Mono> listVMGroupsNextSingleP } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listVMGroupsNext(nextLink, this.client.getEndpoint(), accept, context) + return service.listPublicIpsNext(nextLink, this.client.getEndpoint(), accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksImpl.java index 1a23eb382cd5..f546d44d1f41 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksImpl.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksImpl.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.implementation; @@ -57,9 +57,9 @@ public PagedIterable list(String resourceGroupName, String priv } public Response getWithResponse(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { Response inner - = this.serviceClient().getWithResponse(resourceGroupName, privateCloudName, context); + = this.serviceClient().getWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadNetworkImpl(inner.getValue(), this.manager())); @@ -68,8 +68,8 @@ public Response getWithResponse(String resourceGroupName, Strin } } - public WorkloadNetwork get(String resourceGroupName, String privateCloudName) { - WorkloadNetworkInner inner = this.serviceClient().get(resourceGroupName, privateCloudName); + public WorkloadNetwork get(String resourceGroupName, String privateCloudName, String workloadNetworkName) { + WorkloadNetworkInner inner = this.serviceClient().get(resourceGroupName, privateCloudName, workloadNetworkName); if (inner != null) { return new WorkloadNetworkImpl(inner, this.manager()); } else { @@ -77,153 +77,117 @@ public WorkloadNetwork get(String resourceGroupName, String privateCloudName) { } } - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listDhcp(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listSegments(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); } - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context) { - PagedIterable inner - = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listSegments(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); } - public Response getDhcpWithResponse(String resourceGroupName, String dhcpId, - String privateCloudName, Context context) { - Response inner - = this.serviceClient().getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, context); + public Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, Context context) { + Response inner = this.serviceClient() + .getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkDhcpImpl(inner.getValue(), this.manager())); + new WorkloadNetworkSegmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkDhcp getDhcp(String resourceGroupName, String dhcpId, String privateCloudName) { - WorkloadNetworkDhcpInner inner = this.serviceClient().getDhcp(resourceGroupName, dhcpId, privateCloudName); + public WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { + WorkloadNetworkSegmentInner inner + = this.serviceClient().getSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); if (inner != null) { - return new WorkloadNetworkDhcpImpl(inner, this.manager()); + return new WorkloadNetworkSegmentImpl(inner, this.manager()); } else { return null; } } - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId) { - this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, dhcpId); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); } - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context) { - this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, dhcpId, context); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId, Context context) { + this.serviceClient() + .deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context); } - public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); } - public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, - Context context) { - PagedIterable inner - = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); } - public Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { - Response inner = this.serviceClient() - .getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, context); + public Response getDhcpWithResponse(String resourceGroupName, String dhcpId, + String privateCloudName, Context context) { + Response inner + = this.serviceClient().getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkDnsServiceImpl(inner.getValue(), this.manager())); + new WorkloadNetworkDhcpImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - WorkloadNetworkDnsServiceInner inner - = this.serviceClient().getDnsService(resourceGroupName, privateCloudName, dnsServiceId); + public WorkloadNetworkDhcp getDhcp(String resourceGroupName, String dhcpId, String privateCloudName) { + WorkloadNetworkDhcpInner inner = this.serviceClient().getDhcp(resourceGroupName, dhcpId, privateCloudName); if (inner != null) { - return new WorkloadNetworkDnsServiceImpl(inner, this.manager()); + return new WorkloadNetworkDhcpImpl(inner, this.manager()); } else { return null; } } - public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName) { - this.serviceClient().deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName); + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId); } - public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, Context context) { - this.serviceClient().deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, context); - } - - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsZoneImpl(inner1, this.manager())); - } - - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context) { - PagedIterable inner - = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsZoneImpl(inner1, this.manager())); - } - - public Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, - String dnsZoneId, Context context) { - Response inner - = this.serviceClient().getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkDnsZoneImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId) { - WorkloadNetworkDnsZoneInner inner - = this.serviceClient().getDnsZone(resourceGroupName, privateCloudName, dnsZoneId); - if (inner != null) { - return new WorkloadNetworkDnsZoneImpl(inner, this.manager()); - } else { - return null; - } - } - - public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName) { - this.serviceClient().deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName); - } - - public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context) { - this.serviceClient().deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, context); + this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context); } - public PagedIterable listGateways(String resourceGroupName, String privateCloudName) { + public PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listGateways(resourceGroupName, privateCloudName); + = this.serviceClient().listGateways(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkGatewayImpl(inner1, this.manager())); } public PagedIterable listGateways(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listGateways(resourceGroupName, privateCloudName, context); + = this.serviceClient().listGateways(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkGatewayImpl(inner1, this.manager())); } public Response getGatewayWithResponse(String resourceGroupName, String privateCloudName, - String gatewayId, Context context) { - Response inner - = this.serviceClient().getGatewayWithResponse(resourceGroupName, privateCloudName, gatewayId, context); + String workloadNetworkName, String gatewayId, Context context) { + Response inner = this.serviceClient() + .getGatewayWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadNetworkGatewayImpl(inner.getValue(), this.manager())); @@ -232,9 +196,10 @@ public Response getGatewayWithResponse(String resourceGr } } - public WorkloadNetworkGateway getGateway(String resourceGroupName, String privateCloudName, String gatewayId) { + public WorkloadNetworkGateway getGateway(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String gatewayId) { WorkloadNetworkGatewayInner inner - = this.serviceClient().getGateway(resourceGroupName, privateCloudName, gatewayId); + = this.serviceClient().getGateway(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId); if (inner != null) { return new WorkloadNetworkGatewayImpl(inner, this.manager()); } else { @@ -243,25 +208,26 @@ public WorkloadNetworkGateway getGateway(String resourceGroupName, String privat } public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listPortMirroring(resourceGroupName, privateCloudName); + = this.serviceClient().listPortMirroring(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPortMirroringImpl(inner1, this.manager())); } public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName, Context context) { + String privateCloudName, String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listPortMirroring(resourceGroupName, privateCloudName, context); + = this.serviceClient().listPortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPortMirroringImpl(inner1, this.manager())); } public Response getPortMirroringWithResponse(String resourceGroupName, - String privateCloudName, String portMirroringId, Context context) { + String privateCloudName, String workloadNetworkName, String portMirroringId, Context context) { Response inner = this.serviceClient() - .getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, context); + .getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadNetworkPortMirroringImpl(inner.getValue(), this.manager())); @@ -271,9 +237,9 @@ public Response getPortMirroringWithResponse(Strin } public WorkloadNetworkPortMirroring getPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId) { - WorkloadNetworkPortMirroringInner inner - = this.serviceClient().getPortMirroring(resourceGroupName, privateCloudName, portMirroringId); + String workloadNetworkName, String portMirroringId) { + WorkloadNetworkPortMirroringInner inner = this.serviceClient() + .getPortMirroring(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId); if (inner != null) { return new WorkloadNetworkPortMirroringImpl(inner, this.manager()); } else { @@ -290,252 +256,228 @@ public void deletePortMirroring(String resourceGroupName, String portMirroringId this.serviceClient().deletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, context); } - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listPublicIPs(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(inner1, this.manager())); + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); } - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context) { - PagedIterable inner - = this.serviceClient().listPublicIPs(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(inner1, this.manager())); + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); } - public Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, - String publicIpId, Context context) { - Response inner - = this.serviceClient().getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, context); + public Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, Context context) { + Response inner = this.serviceClient() + .getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkPublicIpImpl(inner.getValue(), this.manager())); + new WorkloadNetworkVMGroupImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, String publicIpId) { - WorkloadNetworkPublicIpInner inner - = this.serviceClient().getPublicIp(resourceGroupName, privateCloudName, publicIpId); + public WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId) { + WorkloadNetworkVMGroupInner inner + = this.serviceClient().getVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId); if (inner != null) { - return new WorkloadNetworkPublicIpImpl(inner, this.manager()); + return new WorkloadNetworkVMGroupImpl(inner, this.manager()); } else { return null; } } - public void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName) { - this.serviceClient().deletePublicIp(resourceGroupName, publicIpId, privateCloudName); + public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName) { + this.serviceClient().deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName); } - public void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName, Context context) { - this.serviceClient().deletePublicIp(resourceGroupName, publicIpId, privateCloudName, context); + public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context) { + this.serviceClient().deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, context); } - public PagedIterable listSegments(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listSegments(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); + public PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new WorkloadNetworkVirtualMachineImpl(inner1, this.manager())); } - public PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context) { - PagedIterable inner - = this.serviceClient().listSegments(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); + public PagedIterable listVirtualMachines(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + PagedIterable inner = this.serviceClient() + .listVirtualMachines(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new WorkloadNetworkVirtualMachineImpl(inner1, this.manager())); } - public Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context) { - Response inner - = this.serviceClient().getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, context); + public Response getVirtualMachineWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context) { + Response inner = this.serviceClient() + .getVirtualMachineWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkSegmentImpl(inner.getValue(), this.manager())); + new WorkloadNetworkVirtualMachineImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String segmentId) { - WorkloadNetworkSegmentInner inner - = this.serviceClient().getSegment(resourceGroupName, privateCloudName, segmentId); + public WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String virtualMachineId) { + WorkloadNetworkVirtualMachineInner inner = this.serviceClient() + .getVirtualMachine(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId); if (inner != null) { - return new WorkloadNetworkSegmentImpl(inner, this.manager()); + return new WorkloadNetworkVirtualMachineImpl(inner, this.manager()); } else { return null; } } - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId) { - this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, segmentId); - } - - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context) { - this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, segmentId, context); - } - - public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName) { - PagedIterable inner - = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new WorkloadNetworkVirtualMachineImpl(inner1, this.manager())); + public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); } - public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context) { - PagedIterable inner - = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new WorkloadNetworkVirtualMachineImpl(inner1, this.manager())); + public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); } - public Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context) { - Response inner = this.serviceClient() - .getVirtualMachineWithResponse(resourceGroupName, privateCloudName, virtualMachineId, context); + public Response getDnsServiceWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context) { + Response inner = this.serviceClient() + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkVirtualMachineImpl(inner.getValue(), this.manager())); + new WorkloadNetworkDnsServiceImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId) { - WorkloadNetworkVirtualMachineInner inner - = this.serviceClient().getVirtualMachine(resourceGroupName, privateCloudName, virtualMachineId); + public WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId) { + WorkloadNetworkDnsServiceInner inner = this.serviceClient() + .getDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId); if (inner != null) { - return new WorkloadNetworkVirtualMachineImpl(inner, this.manager()); + return new WorkloadNetworkDnsServiceImpl(inner, this.manager()); } else { return null; } } - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName) { - PagedIterable inner - = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); + public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName) { + this.serviceClient().deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName); } - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + public void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context) { - PagedIterable inner - = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); + this.serviceClient().deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, context); } - public Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context) { - Response inner - = this.serviceClient().getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, context); + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsZoneImpl(inner1, this.manager())); + } + + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsZoneImpl(inner1, this.manager())); + } + + public Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, Context context) { + Response inner = this.serviceClient() + .getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkloadNetworkVMGroupImpl(inner.getValue(), this.manager())); + new WorkloadNetworkDnsZoneImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId) { - WorkloadNetworkVMGroupInner inner - = this.serviceClient().getVMGroup(resourceGroupName, privateCloudName, vmGroupId); + public WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId) { + WorkloadNetworkDnsZoneInner inner + = this.serviceClient().getDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId); if (inner != null) { - return new WorkloadNetworkVMGroupImpl(inner, this.manager()); + return new WorkloadNetworkDnsZoneImpl(inner, this.manager()); } else { return null; } } - public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName) { - this.serviceClient().deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName); - } - - public void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context) { - this.serviceClient().deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, context); + public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName) { + this.serviceClient().deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName); } - public WorkloadNetworkDhcp getDhcpById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); - if (dhcpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - return this.getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, Context.NONE).getValue(); + public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context) { + this.serviceClient().deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, context); } - public Response getDhcpByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); - if (dhcpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - return this.getDhcpWithResponse(resourceGroupName, dhcpId, privateCloudName, context); + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + PagedIterable inner + = this.serviceClient().listPublicIps(resourceGroupName, privateCloudName, workloadNetworkName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(inner1, this.manager())); } - public WorkloadNetworkDnsService getDnsServiceById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - String dnsServiceId = ResourceManagerUtils.getValueFromIdByName(id, "dnsServices"); - if (dnsServiceId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsServices'.", id))); - } - return this.getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, Context.NONE) - .getValue(); + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + PagedIterable inner + = this.serviceClient().listPublicIps(resourceGroupName, privateCloudName, workloadNetworkName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(inner1, this.manager())); } - public Response getDnsServiceByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); + public Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, Context context) { + Response inner = this.serviceClient() + .getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new WorkloadNetworkPublicIpImpl(inner.getValue(), this.manager())); + } else { + return null; } - String dnsServiceId = ResourceManagerUtils.getValueFromIdByName(id, "dnsServices"); - if (dnsServiceId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsServices'.", id))); + } + + public WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { + WorkloadNetworkPublicIpInner inner + = this.serviceClient().getPublicIp(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId); + if (inner != null) { + return new WorkloadNetworkPublicIpImpl(inner, this.manager()); + } else { + return null; } - return this.getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, context); } - public WorkloadNetworkDnsZone getDnsZoneById(String id) { + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName) { + this.serviceClient().deletePublicIp(resourceGroupName, publicIPId, privateCloudName); + } + + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { + this.serviceClient().deletePublicIp(resourceGroupName, publicIPId, privateCloudName, context); + } + + public WorkloadNetworkSegment getSegmentById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -546,15 +488,22 @@ public WorkloadNetworkDnsZone getDnsZoneById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - String dnsZoneId = ResourceManagerUtils.getValueFromIdByName(id, "dnsZones"); - if (dnsZoneId == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsZones'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); + if (segmentId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); } - return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, Context.NONE).getValue(); + return this + .getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE) + .getValue(); } - public Response getDnsZoneByIdWithResponse(String id, Context context) { + public Response getSegmentByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -565,12 +514,18 @@ public Response getDnsZoneByIdWithResponse(String id, Co throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - String dnsZoneId = ResourceManagerUtils.getValueFromIdByName(id, "dnsZones"); - if (dnsZoneId == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsZones'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); + if (segmentId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); } - return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, context); + return this.getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + context); } public WorkloadNetworkPortMirroring getPortMirroringById(String id) { @@ -584,12 +539,19 @@ public WorkloadNetworkPortMirroring getPortMirroringById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } String portMirroringId = ResourceManagerUtils.getValueFromIdByName(id, "portMirroringProfiles"); if (portMirroringId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'portMirroringProfiles'.", id))); } - return this.getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, Context.NONE) + return this + .getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + Context.NONE) .getValue(); } @@ -604,72 +566,21 @@ public Response getPortMirroringByIdWithResponse(S throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } String portMirroringId = ResourceManagerUtils.getValueFromIdByName(id, "portMirroringProfiles"); if (portMirroringId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'portMirroringProfiles'.", id))); } - return this.getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, context); - } - - public WorkloadNetworkPublicIp getPublicIpById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - String publicIpId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); - if (publicIpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'publicIPs'.", id))); - } - return this.getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, Context.NONE).getValue(); - } - - public Response getPublicIpByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - String publicIpId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); - if (publicIpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'publicIPs'.", id))); - } - return this.getPublicIpWithResponse(resourceGroupName, privateCloudName, publicIpId, context); - } - - public WorkloadNetworkSegment getSegmentById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); - if (segmentId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); - } - return this.getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, Context.NONE).getValue(); + return this.getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, context); } - public Response getSegmentByIdWithResponse(String id, Context context) { + public WorkloadNetworkVMGroup getVMGroupById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -680,31 +591,19 @@ public Response getSegmentByIdWithResponse(String id, Co throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); - if (segmentId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); - } - return this.getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, context); - } - - public WorkloadNetworkVMGroup getVMGroupById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); } String vmGroupId = ResourceManagerUtils.getValueFromIdByName(id, "vmGroups"); if (vmGroupId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'vmGroups'.", id))); } - return this.getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, Context.NONE).getValue(); + return this + .getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, Context.NONE) + .getValue(); } public Response getVMGroupByIdWithResponse(String id, Context context) { @@ -718,15 +617,21 @@ public Response getVMGroupByIdWithResponse(String id, Co throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } String vmGroupId = ResourceManagerUtils.getValueFromIdByName(id, "vmGroups"); if (vmGroupId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'vmGroups'.", id))); } - return this.getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, context); + return this.getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + context); } - public void deleteDhcpById(String id) { + public WorkloadNetworkDnsService getDnsServiceById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -737,15 +642,23 @@ public void deleteDhcpById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); - if (dhcpId == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String dnsServiceId = ResourceManagerUtils.getValueFromIdByName(id, "dnsServices"); + if (dnsServiceId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dnsServices'.", id))); } - this.deleteDhcp(resourceGroupName, privateCloudName, dhcpId, Context.NONE); + return this + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + Context.NONE) + .getValue(); } - public void deleteDhcpByIdWithResponse(String id, Context context) { + public Response getDnsServiceByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -756,164 +669,120 @@ public void deleteDhcpByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); - if (dhcpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); - } - this.deleteDhcp(resourceGroupName, privateCloudName, dhcpId, context); - } - - public void deleteDnsServiceById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); } String dnsServiceId = ResourceManagerUtils.getValueFromIdByName(id, "dnsServices"); if (dnsServiceId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dnsServices'.", id))); } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - this.deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, Context.NONE); + return this.getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + context); } - public void deleteDnsServiceByIdWithResponse(String id, Context context) { + public WorkloadNetworkDnsZone getDnsZoneById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String dnsServiceId = ResourceManagerUtils.getValueFromIdByName(id, "dnsServices"); - if (dnsServiceId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsServices'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, context); - } - - public void deleteDnsZoneById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); } String dnsZoneId = ResourceManagerUtils.getValueFromIdByName(id, "dnsZones"); if (dnsZoneId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'dnsZones'.", id))); } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - this.deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, Context.NONE); + return this + .getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, Context.NONE) + .getValue(); } - public void deleteDnsZoneByIdWithResponse(String id, Context context) { + public Response getDnsZoneByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String dnsZoneId = ResourceManagerUtils.getValueFromIdByName(id, "dnsZones"); - if (dnsZoneId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'dnsZones'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, context); - } - - public void deletePortMirroringById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String portMirroringId = ResourceManagerUtils.getValueFromIdByName(id, "portMirroringProfiles"); - if (portMirroringId == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'portMirroringProfiles'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { + String dnsZoneId = ResourceManagerUtils.getValueFromIdByName(id, "dnsZones"); + if (dnsZoneId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'dnsZones'.", id))); } - this.deletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, Context.NONE); + return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + context); } - public void deletePortMirroringByIdWithResponse(String id, Context context) { + public WorkloadNetworkPublicIp getPublicIpById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String portMirroringId = ResourceManagerUtils.getValueFromIdByName(id, "portMirroringProfiles"); - if (portMirroringId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'portMirroringProfiles'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, context); - } - - public void deletePublicIpById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); } - String publicIpId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); - if (publicIpId == null) { + String publicIPId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); + if (publicIPId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'publicIPs'.", id))); } - String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); - if (privateCloudName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); - } - this.deletePublicIp(resourceGroupName, publicIpId, privateCloudName, Context.NONE); + return this + .getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, Context.NONE) + .getValue(); } - public void deletePublicIpByIdWithResponse(String id, Context context) { + public Response getPublicIpByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String publicIpId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); - if (publicIpId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'publicIPs'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deletePublicIp(resourceGroupName, publicIpId, privateCloudName, context); + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String publicIPId = ResourceManagerUtils.getValueFromIdByName(id, "publicIPs"); + if (publicIPId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'publicIPs'.", id))); + } + return this.getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + context); } public void deleteSegmentById(String id) { @@ -927,12 +796,17 @@ public void deleteSegmentById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); if (segmentId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); } - this.deleteSegment(resourceGroupName, privateCloudName, segmentId, Context.NONE); + this.deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE); } public void deleteSegmentByIdWithResponse(String id, Context context) { @@ -946,50 +820,65 @@ public void deleteSegmentByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } String segmentId = ResourceManagerUtils.getValueFromIdByName(id, "segments"); if (segmentId == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'segments'.", id))); } - this.deleteSegment(resourceGroupName, privateCloudName, segmentId, context); + this.deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context); } - public void deleteVMGroupById(String id) { + public void deleteDhcpById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String vmGroupId = ResourceManagerUtils.getValueFromIdByName(id, "vmGroups"); - if (vmGroupId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vmGroups'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, Context.NONE); + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); + if (dhcpId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); + } + this.deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, Context.NONE); } - public void deleteVMGroupByIdWithResponse(String id, Context context) { + public void deleteDhcpByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String vmGroupId = ResourceManagerUtils.getValueFromIdByName(id, "vmGroups"); - if (vmGroupId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'vmGroups'.", id))); - } String privateCloudName = ResourceManagerUtils.getValueFromIdByName(id, "privateClouds"); if (privateCloudName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'privateClouds'.", id))); } - this.deleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, context); + String workloadNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "workloadNetworks"); + if (workloadNetworkName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadNetworks'.", id))); + } + String dhcpId = ResourceManagerUtils.getValueFromIdByName(id, "dhcpConfigurations"); + if (dhcpId == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); + } + this.deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context); } private WorkloadNetworksClient serviceClient() { @@ -1000,10 +889,22 @@ private com.azure.resourcemanager.avs.AvsManager manager() { return this.serviceManager; } + public WorkloadNetworkSegmentImpl defineSegment(String name) { + return new WorkloadNetworkSegmentImpl(name, this.manager()); + } + public WorkloadNetworkDhcpImpl defineDhcp(String name) { return new WorkloadNetworkDhcpImpl(name, this.manager()); } + public WorkloadNetworkPortMirroringImpl definePortMirroring(String name) { + return new WorkloadNetworkPortMirroringImpl(name, this.manager()); + } + + public WorkloadNetworkVMGroupImpl defineVMGroup(String name) { + return new WorkloadNetworkVMGroupImpl(name, this.manager()); + } + public WorkloadNetworkDnsServiceImpl defineDnsService(String name) { return new WorkloadNetworkDnsServiceImpl(name, this.manager()); } @@ -1012,19 +913,7 @@ public WorkloadNetworkDnsZoneImpl defineDnsZone(String name) { return new WorkloadNetworkDnsZoneImpl(name, this.manager()); } - public WorkloadNetworkPortMirroringImpl definePortMirroring(String name) { - return new WorkloadNetworkPortMirroringImpl(name, this.manager()); - } - public WorkloadNetworkPublicIpImpl definePublicIp(String name) { return new WorkloadNetworkPublicIpImpl(name, this.manager()); } - - public WorkloadNetworkSegmentImpl defineSegments(String name) { - return new WorkloadNetworkSegmentImpl(name, this.manager()); - } - - public WorkloadNetworkVMGroupImpl defineVMGroup(String name) { - return new WorkloadNetworkVMGroupImpl(name, this.manager()); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/AddonList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/AddonList.java index 664ccfb68dfa..34ae80e952df 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/AddonList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a Addon list operation. */ -@Fluent +@Immutable public final class AddonList implements JsonSerializable { /* * The Addon items on this page @@ -32,7 +32,7 @@ public final class AddonList implements JsonSerializable { /** * Creates an instance of AddonList class. */ - public AddonList() { + private AddonList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The Addon items on this page. - * - * @param value the value value to set. - * @return the AddonList object itself. - */ - public AddonList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the AddonList object itself. - */ - public AddonList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/CloudLinkList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/CloudLinkList.java index 5758b9565f79..d2bdeceb5fbc 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/CloudLinkList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a CloudLink list operation. */ -@Fluent +@Immutable public final class CloudLinkList implements JsonSerializable { /* * The CloudLink items on this page @@ -32,7 +32,7 @@ public final class CloudLinkList implements JsonSerializable { /** * Creates an instance of CloudLinkList class. */ - public CloudLinkList() { + private CloudLinkList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The CloudLink items on this page. - * - * @param value the value value to set. - * @return the CloudLinkList object itself. - */ - public CloudLinkList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the CloudLinkList object itself. - */ - public CloudLinkList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ClusterList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ClusterList.java index c596ae22f3c5..c58f69412216 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ClusterList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a Cluster list operation. */ -@Fluent +@Immutable public final class ClusterList implements JsonSerializable { /* * The Cluster items on this page @@ -32,7 +32,7 @@ public final class ClusterList implements JsonSerializable { /** * Creates an instance of ClusterList class. */ - public ClusterList() { + private ClusterList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The Cluster items on this page. - * - * @param value the value value to set. - * @return the ClusterList object itself. - */ - public ClusterList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the ClusterList object itself. - */ - public ClusterList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/DatastoreList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/DatastoreList.java index 6ba8a2510db6..e0878d6f1b61 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/DatastoreList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a Datastore list operation. */ -@Fluent +@Immutable public final class DatastoreList implements JsonSerializable { /* * The Datastore items on this page @@ -32,7 +32,7 @@ public final class DatastoreList implements JsonSerializable { /** * Creates an instance of DatastoreList class. */ - public DatastoreList() { + private DatastoreList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The Datastore items on this page. - * - * @param value the value value to set. - * @return the DatastoreList object itself. - */ - public DatastoreList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the DatastoreList object itself. - */ - public DatastoreList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ExpressRouteAuthorizationList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ExpressRouteAuthorizationList.java index 0bdaba9f8198..e88d80801ea5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ExpressRouteAuthorizationList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a ExpressRouteAuthorization list operation. */ -@Fluent +@Immutable public final class ExpressRouteAuthorizationList implements JsonSerializable { /* * The ExpressRouteAuthorization items on this page @@ -32,7 +32,7 @@ public final class ExpressRouteAuthorizationList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The ExpressRouteAuthorization items on this page. - * - * @param value the value value to set. - * @return the ExpressRouteAuthorizationList object itself. - */ - public ExpressRouteAuthorizationList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the ExpressRouteAuthorizationList object itself. - */ - public ExpressRouteAuthorizationList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/GlobalReachConnectionList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/GlobalReachConnectionList.java index c46a1064b490..b0a04317d7a1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/GlobalReachConnectionList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a GlobalReachConnection list operation. */ -@Fluent +@Immutable public final class GlobalReachConnectionList implements JsonSerializable { /* * The GlobalReachConnection items on this page @@ -32,7 +32,7 @@ public final class GlobalReachConnectionList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The GlobalReachConnection items on this page. - * - * @param value the value value to set. - * @return the GlobalReachConnectionList object itself. - */ - public GlobalReachConnectionList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the GlobalReachConnectionList object itself. - */ - public GlobalReachConnectionList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/HcxEnterpriseSiteList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/HcxEnterpriseSiteList.java index cc15c75060da..de7232d25a29 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/HcxEnterpriseSiteList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a HcxEnterpriseSite list operation. */ -@Fluent +@Immutable public final class HcxEnterpriseSiteList implements JsonSerializable { /* * The HcxEnterpriseSite items on this page @@ -32,7 +32,7 @@ public final class HcxEnterpriseSiteList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The HcxEnterpriseSite items on this page. - * - * @param value the value value to set. - * @return the HcxEnterpriseSiteList object itself. - */ - public HcxEnterpriseSiteList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the HcxEnterpriseSiteList object itself. - */ - public HcxEnterpriseSiteList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathListResult.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/IscsiPathListResult.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathListResult.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/IscsiPathListResult.java index c404b450ab5d..a321ab85959f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathListResult.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/IscsiPathListResult.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a IscsiPath list operation. */ -@Fluent +@Immutable public final class IscsiPathListResult implements JsonSerializable { /* * The IscsiPath items on this page @@ -32,7 +32,7 @@ public final class IscsiPathListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The IscsiPath items on this page. - * - * @param value the value value to set. - * @return the IscsiPathListResult object itself. - */ - public IscsiPathListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the IscsiPathListResult object itself. - */ - public IscsiPathListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationListResult.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/OperationListResult.java similarity index 74% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationListResult.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/OperationListResult.java index bc3307e45e4b..2b1d16cf79ab 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationListResult.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/OperationListResult.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -20,23 +21,23 @@ @Immutable public final class OperationListResult implements JsonSerializable { /* - * List of operations supported by the resource provider + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results (if there are any). + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of operations supported by the resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -45,7 +46,7 @@ public List value() { } /** - * Get the nextLink property: URL to get the next set of operation list results (if there are any). + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -59,17 +60,24 @@ public String nextLink() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() != null) { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { value().forEach(e -> e.validate()); } } + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + /** * {@inheritDoc} */ @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -79,6 +87,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PlacementPoliciesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PlacementPoliciesList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PlacementPoliciesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PlacementPoliciesList.java index dad43d0f936b..bc967e4fcaeb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PlacementPoliciesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PlacementPoliciesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a PlacementPolicy list operation. */ -@Fluent +@Immutable public final class PlacementPoliciesList implements JsonSerializable { /* * The PlacementPolicy items on this page @@ -32,7 +32,7 @@ public final class PlacementPoliciesList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The PlacementPolicy items on this page. - * - * @param value the value value to set. - * @return the PlacementPoliciesList object itself. - */ - public PlacementPoliciesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PlacementPoliciesList object itself. - */ - public PlacementPoliciesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PrivateCloudList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PrivateCloudList.java index 593200bf1f3d..5c2d798b7957 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/PrivateCloudList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a PrivateCloud list operation. */ -@Fluent +@Immutable public final class PrivateCloudList implements JsonSerializable { /* * The PrivateCloud items on this page @@ -32,7 +32,7 @@ public final class PrivateCloudList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The PrivateCloud items on this page. - * - * @param value the value value to set. - * @return the PrivateCloudList object itself. - */ - public PrivateCloudList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the PrivateCloudList object itself. - */ - public PrivateCloudList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletsList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptCmdletsList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletsList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptCmdletsList.java index 29a79e836cd4..df760524584c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletsList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptCmdletsList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a ScriptCmdlet list operation. */ -@Fluent +@Immutable public final class ScriptCmdletsList implements JsonSerializable { /* * The ScriptCmdlet items on this page @@ -32,7 +32,7 @@ public final class ScriptCmdletsList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The ScriptCmdlet items on this page. - * - * @param value the value value to set. - * @return the ScriptCmdletsList object itself. - */ - public ScriptCmdletsList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the ScriptCmdletsList object itself. - */ - public ScriptCmdletsList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionsList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptExecutionsList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionsList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptExecutionsList.java index 0751c5b94cc3..221a2d7d4c1b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionsList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptExecutionsList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a ScriptExecution list operation. */ -@Fluent +@Immutable public final class ScriptExecutionsList implements JsonSerializable { /* * The ScriptExecution items on this page @@ -32,7 +32,7 @@ public final class ScriptExecutionsList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The ScriptExecution items on this page. - * - * @param value the value value to set. - * @return the ScriptExecutionsList object itself. - */ - public ScriptExecutionsList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the ScriptExecutionsList object itself. - */ - public ScriptExecutionsList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackagesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptPackagesList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackagesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptPackagesList.java index 6cc1e86a6d66..4b6b8b48c29f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackagesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/ScriptPackagesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a ScriptPackage list operation. */ -@Fluent +@Immutable public final class ScriptPackagesList implements JsonSerializable { /* * The ScriptPackage items on this page @@ -32,7 +32,7 @@ public final class ScriptPackagesList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The ScriptPackage items on this page. - * - * @param value the value value to set. - * @return the ScriptPackagesList object itself. - */ - public ScriptPackagesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the ScriptPackagesList object itself. - */ - public ScriptPackagesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachinesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/VirtualMachinesList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachinesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/VirtualMachinesList.java index 5a49cbbd58aa..db88c30ef7c8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachinesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/VirtualMachinesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a VirtualMachine list operation. */ -@Fluent +@Immutable public final class VirtualMachinesList implements JsonSerializable { /* * The VirtualMachine items on this page @@ -32,7 +32,7 @@ public final class VirtualMachinesList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The VirtualMachine items on this page. - * - * @param value the value value to set. - * @return the VirtualMachinesList object itself. - */ - public VirtualMachinesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the VirtualMachinesList object itself. - */ - public VirtualMachinesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDhcpList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDhcpList.java index f46b706dce34..fef946cd0a77 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDhcpList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkDhcp list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkDhcpList implements JsonSerializable { /* * The WorkloadNetworkDhcp items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkDhcpList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkDhcp items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkDhcpList object itself. - */ - public WorkloadNetworkDhcpList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkDhcpList object itself. - */ - public WorkloadNetworkDhcpList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServicesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsServicesList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServicesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsServicesList.java index 76d2e07988e0..292d21034031 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServicesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsServicesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkDnsService list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkDnsServicesList implements JsonSerializable { /* * The WorkloadNetworkDnsService items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkDnsServicesList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkDnsService items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkDnsServicesList object itself. - */ - public WorkloadNetworkDnsServicesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkDnsServicesList object itself. - */ - public WorkloadNetworkDnsServicesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZonesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsZonesList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZonesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsZonesList.java index c930e295bb71..930c54561a18 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZonesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkDnsZonesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkDnsZone list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkDnsZonesList implements JsonSerializable { /* * The WorkloadNetworkDnsZone items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkDnsZonesList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkDnsZone items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkDnsZonesList object itself. - */ - public WorkloadNetworkDnsZonesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkDnsZonesList object itself. - */ - public WorkloadNetworkDnsZonesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGatewayList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkGatewayList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGatewayList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkGatewayList.java index e9ab6559ca7c..770af19950ac 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGatewayList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkGatewayList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkGateway list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkGatewayList implements JsonSerializable { /* * The WorkloadNetworkGateway items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkGatewayList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkGateway items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkGatewayList object itself. - */ - public WorkloadNetworkGatewayList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkGatewayList object itself. - */ - public WorkloadNetworkGatewayList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkList.java similarity index 81% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkList.java index 15fca9048b20..655ce3573c94 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetwork list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkList implements JsonSerializable { /* * The WorkloadNetwork items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetwork items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkList object itself. - */ - public WorkloadNetworkList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkList object itself. - */ - public WorkloadNetworkList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPortMirroringList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPortMirroringList.java index 4c8386b42953..8bee83c796c6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPortMirroringList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkPortMirroring list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkPortMirroringList implements JsonSerializable { /* * The WorkloadNetworkPortMirroring items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkPortMirroringList implements JsonSerializable< /** * Creates an instance of WorkloadNetworkPortMirroringList class. */ - public WorkloadNetworkPortMirroringList() { + private WorkloadNetworkPortMirroringList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkPortMirroring items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkPortMirroringList object itself. - */ - public WorkloadNetworkPortMirroringList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkPortMirroringList object itself. - */ - public WorkloadNetworkPortMirroringList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIPsList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPublicIPsList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIPsList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPublicIPsList.java index db09fea2cf4f..79339df90f44 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIPsList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkPublicIPsList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkPublicIP list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkPublicIPsList implements JsonSerializable { /* * The WorkloadNetworkPublicIP items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkPublicIPsList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkPublicIP items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkPublicIPsList object itself. - */ - public WorkloadNetworkPublicIPsList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkPublicIPsList object itself. - */ - public WorkloadNetworkPublicIPsList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentsList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkSegmentsList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentsList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkSegmentsList.java index 46a9b41e5875..e066949e7b83 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentsList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkSegmentsList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkSegment list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkSegmentsList implements JsonSerializable { /* * The WorkloadNetworkSegment items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkSegmentsList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkSegment items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkSegmentsList object itself. - */ - public WorkloadNetworkSegmentsList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkSegmentsList object itself. - */ - public WorkloadNetworkSegmentsList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroupsList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVMGroupsList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroupsList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVMGroupsList.java index 41ecea0e666a..529bacfa504a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroupsList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVMGroupsList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkVMGroup list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkVMGroupsList implements JsonSerializable { /* * The WorkloadNetworkVMGroup items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkVMGroupsList implements JsonSerializable value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkVMGroup items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkVMGroupsList object itself. - */ - public WorkloadNetworkVMGroupsList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkVMGroupsList object itself. - */ - public WorkloadNetworkVMGroupsList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVirtualMachinesList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVirtualMachinesList.java similarity index 80% rename from sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVirtualMachinesList.java rename to sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVirtualMachinesList.java index e1640e396d99..573d4ffa5d70 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVirtualMachinesList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/models/WorkloadNetworkVirtualMachinesList.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. -package com.azure.resourcemanager.avs.models; +package com.azure.resourcemanager.avs.implementation.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -17,7 +17,7 @@ /** * The response of a WorkloadNetworkVirtualMachine list operation. */ -@Fluent +@Immutable public final class WorkloadNetworkVirtualMachinesList implements JsonSerializable { /* * The WorkloadNetworkVirtualMachine items on this page @@ -32,7 +32,7 @@ public final class WorkloadNetworkVirtualMachinesList implements JsonSerializabl /** * Creates an instance of WorkloadNetworkVirtualMachinesList class. */ - public WorkloadNetworkVirtualMachinesList() { + private WorkloadNetworkVirtualMachinesList() { } /** @@ -44,17 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: The WorkloadNetworkVirtualMachine items on this page. - * - * @param value the value value to set. - * @return the WorkloadNetworkVirtualMachinesList object itself. - */ - public WorkloadNetworkVirtualMachinesList withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link to the next page of items. * @@ -64,17 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link to the next page of items. - * - * @param nextLink the nextLink value to set. - * @return the WorkloadNetworkVirtualMachinesList object itself. - */ - public WorkloadNetworkVirtualMachinesList withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - /** * Validates the instance. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/package-info.java index f4a0631101b9..6b06533a637d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/package-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the implementations for AvsClient. + * Package containing the implementations for Avs. * Azure VMware Solution API. */ package com.azure.resourcemanager.avs.implementation; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ActionType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ActionType.java index c50b3f136050..0322f0e300dd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ActionType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ActionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -8,7 +8,7 @@ import java.util.Collection; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addon.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addon.java index 21fad4eca030..22ecde52de54 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addon.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addon.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonArcProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonArcProperties.java index ab68e31e8fdf..be3c45e47abb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonArcProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonArcProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -83,7 +83,6 @@ public AddonProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonHcxProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonHcxProperties.java index 4a2f29e00385..31ecea957332 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonHcxProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonHcxProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -84,7 +84,6 @@ public AddonProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); if (offer() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property offer in model AddonHcxProperties")); diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProperties.java index 2664de5116cb..67e3aaa9b2ff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -103,14 +103,14 @@ public static AddonProperties fromJson(JsonReader jsonReader) throws IOException } } // Use the discriminator value to determine which subtype should be deserialized. - if ("Arc".equals(discriminatorValue)) { - return AddonArcProperties.fromJson(readerToUse.reset()); - } else if ("HCX".equals(discriminatorValue)) { - return AddonHcxProperties.fromJson(readerToUse.reset()); - } else if ("SRM".equals(discriminatorValue)) { + if ("SRM".equals(discriminatorValue)) { return AddonSrmProperties.fromJson(readerToUse.reset()); } else if ("VR".equals(discriminatorValue)) { return AddonVrProperties.fromJson(readerToUse.reset()); + } else if ("HCX".equals(discriminatorValue)) { + return AddonHcxProperties.fromJson(readerToUse.reset()); + } else if ("Arc".equals(discriminatorValue)) { + return AddonArcProperties.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProvisioningState.java index a2eca422d988..c4ec6d2f2812 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonSrmProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonSrmProperties.java index 677a9afa50a6..ae9697f2c089 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonSrmProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonSrmProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -83,7 +83,6 @@ public AddonProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonType.java index 784a393692c5..57b25f50ac57 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonVrProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonVrProperties.java index e7080961c7ba..7bbaeffd48e3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonVrProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonVrProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -83,7 +83,6 @@ public AddonProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addons.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addons.java index a0b40291f2e8..dc501f68a62f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addons.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Addons.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AdminCredentials.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AdminCredentials.java index 7abe7069e343..265d685b159a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AdminCredentials.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AdminCredentials.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityStrength.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityStrength.java index 40d4de828602..5c3f77a76ce9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityStrength.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityStrength.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityType.java index 4f7b2466f097..59f40dc8ec3a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AffinityType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Authorizations.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Authorizations.java index 94608027c3b7..715c100724cb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Authorizations.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Authorizations.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityProperties.java index d75426481193..3bab7b0d484d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityStrategy.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityStrategy.java index d5066977f255..ca114ccc65bf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityStrategy.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AvailabilityStrategy.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AzureHybridBenefitType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AzureHybridBenefitType.java index 4c81c8e93053..932f814d293f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AzureHybridBenefitType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AzureHybridBenefitType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Circuit.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Circuit.java index 517d52a6c6d7..42484381f02e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Circuit.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Circuit.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLink.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLink.java index 13eae37964b9..be1b1f75fd0e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLink.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLink.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkProvisioningState.java index 92557e85729e..c6487cf29f40 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkStatus.java index a04e1c6765b2..06efb216419a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinkStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinks.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinks.java index 6f5c96ad6b27..f7a0d33b5543 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinks.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/CloudLinks.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Cluster.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Cluster.java index a925e2ab724f..c3599367fd31 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Cluster.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Cluster.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterProvisioningState.java index d532ca0623bd..770cb04a1698 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterUpdate.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterUpdate.java index fa53aa374903..f770db686fd9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterUpdate.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterUpdate.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZone.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZone.java index dc971cba1ac1..70605586268b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZone.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZone.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -30,7 +30,7 @@ public final class ClusterZone implements JsonSerializable { /** * Creates an instance of ClusterZone class. */ - public ClusterZone() { + private ClusterZone() { } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZoneList.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZoneList.java index 350233c2ef30..ee23460ef211 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZoneList.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ClusterZoneList.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Clusters.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Clusters.java index aa02399e9eb4..43a52f8d6d0a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Clusters.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Clusters.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastore.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastore.java index b98856d88579..1c81e4a61a83 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastore.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastore.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreProvisioningState.java index ef7c7c3d151f..de253632494a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreStatus.java index 847e414bb9fb..a2849634fc1f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DatastoreStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastores.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastores.java index b0670e79c727..cf0dad4336d8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastores.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Datastores.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DhcpTypeEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DhcpTypeEnum.java index 8cb238579180..1874d6e10800 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DhcpTypeEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DhcpTypeEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DiskPoolVolume.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DiskPoolVolume.java index 71df8e977bd8..3036ea8f8890 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DiskPoolVolume.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DiskPoolVolume.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceLogLevelEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceLogLevelEnum.java index 5d348be233b8..be0c1b8e7c49 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceLogLevelEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceLogLevelEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceStatusEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceStatusEnum.java index 1bb83421c398..98f414d9f9e6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceStatusEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsServiceStatusEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsZoneType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsZoneType.java index 58ca5b042bd0..8b4261d15578 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsZoneType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/DnsZoneType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ElasticSanVolume.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ElasticSanVolume.java index d91ad9f8b36e..ecf6eef6c96a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ElasticSanVolume.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ElasticSanVolume.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Encryption.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Encryption.java index 8e2b1d391500..2485edf71ae5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Encryption.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Encryption.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyStatus.java index bdda450e865e..9d80df038059 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyVaultProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyVaultProperties.java index cc23a75c3a83..b6279d7d0007 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyVaultProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionKeyVaultProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionState.java index 2474d4779731..2ed252ea0e5c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionVersionType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionVersionType.java index b3248fcfb900..6f92d45a843b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionVersionType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/EncryptionVersionType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Endpoints.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Endpoints.java index c766d2d35c69..1ec6012f38fa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Endpoints.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Endpoints.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -49,7 +49,7 @@ public final class Endpoints implements JsonSerializable { /** * Creates an instance of Endpoints class. */ - public Endpoints() { + private Endpoints() { } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorization.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorization.java index 04c550c0e92a..c0e51c102048 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorization.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorization.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationProvisioningState.java index 7cff83c66b16..ea9d641b9779 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ExpressRouteAuthorizationProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnection.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnection.java index 12d6133eecad..455f3b860742 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnection.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnection.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionProvisioningState.java index c89e5d04333c..f0e4505b4631 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionStatus.java index 197a290c4323..4ddf3fb31ab4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnectionStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnections.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnections.java index aff4eaf20196..239a15c3bfd2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnections.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/GlobalReachConnections.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSite.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSite.java index d215efe368cc..dd8e9f165fe3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSite.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSite.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteProvisioningState.java index 5ee517a3ecce..d0fe69e15a2f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteStatus.java index fe37c6d9d69c..6bb9fde8e7ef 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSiteStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSites.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSites.java index 4b7f89f923ac..6ef2570b0d28 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSites.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/HcxEnterpriseSites.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IdentitySource.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IdentitySource.java index 234c6af94168..8351a2adcc28 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IdentitySource.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IdentitySource.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/InternetEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/InternetEnum.java index 76d4420f91d0..738d033591a7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/InternetEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/InternetEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPath.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPath.java index dbaa6e5efb25..dcf8ca9ba205 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPath.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPath.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; /** @@ -53,10 +54,131 @@ public interface IscsiPath { */ String networkBlock(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.avs.fluent.models.IscsiPathInner object. * * @return the inner object. */ IscsiPathInner innerModel(); + + /** + * The entirety of the IscsiPath definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The IscsiPath definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the IscsiPath definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the IscsiPath definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, privateCloudName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @return the next definition stage. + */ + WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + } + + /** + * The stage of the IscsiPath definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithNetworkBlock { + /** + * Executes the create request. + * + * @return the created resource. + */ + IscsiPath create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IscsiPath create(Context context); + } + + /** + * The stage of the IscsiPath definition allowing to specify networkBlock. + */ + interface WithNetworkBlock { + /** + * Specifies the networkBlock property: CIDR Block for iSCSI path.. + * + * @param networkBlock CIDR Block for iSCSI path. + * @return the next definition stage. + */ + WithCreate withNetworkBlock(String networkBlock); + } + } + + /** + * Begins update for the IscsiPath resource. + * + * @return the stage of resource update. + */ + IscsiPath.Update update(); + + /** + * The template for IscsiPath update. + */ + interface Update { + /** + * Executes the update request. + * + * @return the updated resource. + */ + IscsiPath apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + IscsiPath apply(Context context); + } + + /** + * The IscsiPath update stages. + */ + interface UpdateStages { + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IscsiPath refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IscsiPath refresh(Context context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathProvisioningState.java index 85e5901ae8ca..373c75411ac2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPathProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPaths.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPaths.java index c4cb34ba241c..99731a7191ff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPaths.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPaths.java @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; /** * Resource collection API of IscsiPaths. @@ -43,74 +42,103 @@ public interface IscsiPaths { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String privateCloudName, Context context); + Response getWithResponse(String resourceGroupName, String privateCloudName, String iscsiPathName, + Context context); /** * Get a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a IscsiPath. */ - IscsiPath get(String resourceGroupName, String privateCloudName); + IscsiPath get(String resourceGroupName, String privateCloudName, String iscsiPathName); /** - * Create a IscsiPath. + * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param resource Resource create parameters. + * @param iscsiPathName Name of the iSCSI path resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an iSCSI path resource. */ - IscsiPath createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource); + void delete(String resourceGroupName, String privateCloudName, String iscsiPathName); /** - * Create a IscsiPath. + * Delete a IscsiPath. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param resource Resource create parameters. + * @param iscsiPathName Name of the iSCSI path resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an iSCSI path resource. */ - IscsiPath createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource, - Context context); + void delete(String resourceGroupName, String privateCloudName, String iscsiPathName, Context context); + + /** + * Get a IscsiPath. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a IscsiPath along with {@link Response}. + */ + IscsiPath getById(String id); + + /** + * Get a IscsiPath. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a IscsiPath along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); /** * Delete a IscsiPath. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByResourceGroup(String resourceGroupName, String privateCloudName); + void deleteById(String id); /** * Delete a IscsiPath. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. + * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String privateCloudName, Context context); + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new IscsiPath resource. + * + * @param name resource name. + * @return the first stage of the new IscsiPath definition. + */ + IscsiPath.DefinitionStages.Blank define(String name); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Locations.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Locations.java index 1fdd347f62d2..c3a58e0e221d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Locations.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Locations.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -12,49 +12,49 @@ */ public interface Locations { /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. + * @param sku Optionally, check for a specific SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas along with {@link Response}. + * @return subscription trial availability along with {@link Response}. */ - Response checkQuotaAvailabilityWithResponse(String location, Context context); + Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context); /** - * Return quota for subscription by region. + * Return trial status for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription quotas. + * @return subscription trial availability. */ - Quota checkQuotaAvailability(String location); + Trial checkTrialAvailability(String location); /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. - * @param sku Optionally, check for a specific SKU. + * @param location A location in a subscription. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability along with {@link Response}. + * @return subscription quotas along with {@link Response}. */ - Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context); + Response checkQuotaAvailabilityWithResponse(String location, Context context); /** - * Return trial status for subscription by region. + * Return quota for subscription by region. * - * @param location The name of the Azure region. + * @param location A location in a subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return subscription trial availability. + * @return subscription quotas. */ - Trial checkTrialAvailability(String location); + Quota checkQuotaAvailability(String location); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ManagementCluster.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ManagementCluster.java index bd7ec5e775ad..b0e733323159 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ManagementCluster.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ManagementCluster.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/MountOptionEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/MountOptionEnum.java index 3e70266ef897..7f2adc3ba5e7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/MountOptionEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/MountOptionEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -8,8 +8,7 @@ import java.util.Collection; /** - * Mode that describes whether the LUN has to be mounted as a datastore or - * attached as a LUN. + * mount option. */ public final class MountOptionEnum extends ExpandableStringEnum { /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NetAppVolume.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NetAppVolume.java index 5c95e4bc5a16..7565084f5305 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NetAppVolume.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NetAppVolume.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NsxPublicIpQuotaRaisedEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NsxPublicIpQuotaRaisedEnum.java index b78ba037eee1..dfa9b8bd44fd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NsxPublicIpQuotaRaisedEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/NsxPublicIpQuotaRaisedEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Operation.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Operation.java index 2fc37eedfbca..31958ed9fe51 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Operation.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Operation.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -20,7 +20,7 @@ public interface Operation { /** * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane - * operations and "false" for ARM/control-plane operations. + * operations and "false" for Azure Resource Manager/control-plane operations. * * @return the isDataAction value. */ @@ -42,8 +42,8 @@ public interface Operation { Origin origin(); /** - * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal - * only APIs. + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. * * @return the actionType value. */ diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationDisplay.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationDisplay.java index 5ca4a2fb5397..26a189b906e4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationDisplay.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/OperationDisplay.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Localized display information for this particular operation. + * Localized display information for and operation. */ @Immutable public final class OperationDisplay implements JsonSerializable { @@ -42,7 +42,7 @@ public final class OperationDisplay implements JsonSerializable listAdminCredentialsWithResponse(Context context); + void rotateVcenterPassword(); /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T. */ - AdminCredentials listAdminCredentials(); + void rotateVcenterPassword(Context context); /** * Rotate the NSX-T Manager password. @@ -782,20 +780,22 @@ interface WithDnsZoneType { void rotateNsxtPassword(Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. */ - void rotateVcenterPassword(); + Response listAdminCredentialsWithResponse(Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T. */ - void rotateVcenterPassword(Context context); + AdminCredentials listAdminCredentials(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudIdentity.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudIdentity.java index 465e1fc66bb5..ee11984302f2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudIdentity.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloudIdentity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -30,9 +30,9 @@ public final class PrivateCloudIdentity implements JsonSerializable list(); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * List PrivateCloud resources by subscription ID. + * List PrivateCloud resources by resource group. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable list(); /** - * List PrivateCloud resources by resource group. + * List PrivateCloud resources by subscription ID. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable list(Context context); /** * Get a PrivateCloud. @@ -105,30 +105,27 @@ Response getByResourceGroupWithResponse(String resourceGroupName, void delete(String resourceGroupName, String privateCloudName, Context context); /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. */ - Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName, - Context context); + void rotateVcenterPassword(String resourceGroupName, String privateCloudName); /** - * List the admin credentials for the private cloud. + * Rotate the vCenter password. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return administrative credentials for accessing vCenter and NSX-T. */ - AdminCredentials listAdminCredentials(String resourceGroupName, String privateCloudName); + void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context); /** * Rotate the NSX-T Manager password. @@ -154,27 +151,30 @@ Response listAdminCredentialsWithResponse(String resourceGroup void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}. */ - void rotateVcenterPassword(String resourceGroupName, String privateCloudName); + Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName, + Context context); /** - * Rotate the vCenter password. + * List the admin credentials for the private cloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return administrative credentials for accessing vCenter and NSX-T. */ - void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context); + AdminCredentials listAdminCredentials(String resourceGroupName, String privateCloudName); /** * Get a PrivateCloud. diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Quota.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Quota.java index 94130208877f..af821a066aff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Quota.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Quota.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/QuotaEnabled.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/QuotaEnabled.java index a042b39d46fa..168d0eed1f08 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/QuotaEnabled.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/QuotaEnabled.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ResourceIdentityType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ResourceIdentityType.java deleted file mode 100644 index 2d09e96f51e4..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ResourceIdentityType.java +++ /dev/null @@ -1,51 +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.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Type of managed service identity (either system assigned, or none). - */ -public final class ResourceIdentityType extends ExpandableStringEnum { - /** - * Static value None for ResourceIdentityType. - */ - public static final ResourceIdentityType NONE = fromString("None"); - - /** - * Static value SystemAssigned for ResourceIdentityType. - */ - public static final ResourceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - - /** - * Creates a new instance of ResourceIdentityType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ResourceIdentityType() { - } - - /** - * Creates or finds a ResourceIdentityType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ResourceIdentityType. - */ - public static ResourceIdentityType fromString(String name) { - return fromString(name, ResourceIdentityType.class); - } - - /** - * Gets known ResourceIdentityType values. - * - * @return known ResourceIdentityType values. - */ - public static Collection values() { - return values(ResourceIdentityType.class); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlet.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlet.java index f6758052b6f9..8c33d7dae39a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlet.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlet.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletAudience.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletAudience.java index 83d394dcb7a2..ac9d8473d4b4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletAudience.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletAudience.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletProvisioningState.java index e43a7bb082de..dc17da2760d1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdletProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlets.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlets.java index 7f8d7b4b433f..d1d79be5c463 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlets.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptCmdlets.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecution.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecution.java index ae7e11eca9be..163581df2e14 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecution.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecution.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -128,7 +128,7 @@ public interface ScriptExecution { * * @return the namedOutputs value. */ - Map namedOutputs(); + Map namedOutputs(); /** * Gets the information property: Standard information out stream from the powershell execution. @@ -328,7 +328,7 @@ interface WithNamedOutputs { * @param namedOutputs User-defined dictionary. * @return the next definition stage. */ - WithCreate withNamedOutputs(Map namedOutputs); + WithCreate withNamedOutputs(Map namedOutputs); } } @@ -474,7 +474,7 @@ interface WithNamedOutputs { * @param namedOutputs User-defined dictionary. * @return the next definition stage. */ - Update withNamedOutputs(Map namedOutputs); + Update withNamedOutputs(Map namedOutputs); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameter.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameter.java index 00e76a4968a6..2767375ab487 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameter.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameter.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -112,12 +112,12 @@ public static ScriptExecutionParameter fromJson(JsonReader jsonReader) throws IO } } // Use the discriminator value to determine which subtype should be deserialized. - if ("Credential".equals(discriminatorValue)) { - return PSCredentialExecutionParameter.fromJson(readerToUse.reset()); - } else if ("SecureValue".equals(discriminatorValue)) { + if ("SecureValue".equals(discriminatorValue)) { return ScriptSecureStringExecutionParameter.fromJson(readerToUse.reset()); } else if ("Value".equals(discriminatorValue)) { return ScriptStringExecutionParameter.fromJson(readerToUse.reset()); + } else if ("Credential".equals(discriminatorValue)) { + return PSCredentialExecutionParameter.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameterType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameterType.java index 0dd85491426a..73e9dbf342a4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameterType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionParameterType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionPropertiesNamedOutput.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionPropertiesNamedOutput.java new file mode 100644 index 000000000000..c700a8c83809 --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionPropertiesNamedOutput.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.avs.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The ScriptExecutionPropertiesNamedOutput model. + */ +@Immutable +public final class ScriptExecutionPropertiesNamedOutput + implements JsonSerializable { + /** + * Creates an instance of ScriptExecutionPropertiesNamedOutput class. + */ + public ScriptExecutionPropertiesNamedOutput() { + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScriptExecutionPropertiesNamedOutput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScriptExecutionPropertiesNamedOutput if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ScriptExecutionPropertiesNamedOutput. + */ + public static ScriptExecutionPropertiesNamedOutput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScriptExecutionPropertiesNamedOutput deserializedScriptExecutionPropertiesNamedOutput + = new ScriptExecutionPropertiesNamedOutput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + reader.skipChildren(); + } + + return deserializedScriptExecutionPropertiesNamedOutput; + }); + } +} diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionProvisioningState.java index 7fe0d7c8bb45..fdba11f21f35 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutionProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutions.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutions.java index 5d1e4330c70a..751fd80070b2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutions.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptExecutions.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptOutputStreamType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptOutputStreamType.java index 493208fd5e84..4407420e71ae 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptOutputStreamType.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptOutputStreamType.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackage.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackage.java index 33cedd0592b9..33ba11e89d2c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackage.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackage.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackageProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackageProvisioningState.java index 76503c40236b..adf53658781f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackageProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackageProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackages.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackages.java index 457f32d3e0dd..0c3e2f0101f5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackages.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptPackages.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameter.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameter.java index a7b577ca91a9..cce96969e8c8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameter.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameter.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * An parameter that the script will accept. */ -@Fluent +@Immutable public final class ScriptParameter implements JsonSerializable { /* * The type of parameter the script is expecting. psCredential is a @@ -46,7 +46,7 @@ public final class ScriptParameter implements JsonSerializable /** * Creates an instance of ScriptParameter class. */ - public ScriptParameter() { + private ScriptParameter() { } /** @@ -68,17 +68,6 @@ public String name() { return this.name; } - /** - * Set the name property: The parameter name that the script will expect a parameter value for. - * - * @param name the name value to set. - * @return the ScriptParameter object itself. - */ - public ScriptParameter withName(String name) { - this.name = name; - return this; - } - /** * Get the description property: User friendly description of the parameter. * diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameterTypes.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameterTypes.java index dc5232cd21a3..76280b7a49fa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameterTypes.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptParameterTypes.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptSecureStringExecutionParameter.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptSecureStringExecutionParameter.java index 962644118515..107e3af02698 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptSecureStringExecutionParameter.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptSecureStringExecutionParameter.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -77,9 +78,15 @@ public ScriptSecureStringExecutionParameter withName(String name) { */ @Override public void validate() { - super.validate(); + if (name() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model ScriptSecureStringExecutionParameter")); + } } + private static final ClientLogger LOGGER = new ClientLogger(ScriptSecureStringExecutionParameter.class); + /** * {@inheritDoc} */ diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptStringExecutionParameter.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptStringExecutionParameter.java index 9b55a67f26d4..ff4a7444e24f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptStringExecutionParameter.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/ScriptStringExecutionParameter.java @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -77,9 +78,15 @@ public ScriptStringExecutionParameter withName(String name) { */ @Override public void validate() { - super.validate(); + if (name() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model ScriptStringExecutionParameter")); + } } + private static final ClientLogger LOGGER = new ClientLogger(ScriptStringExecutionParameter.class); + /** * {@inheritDoc} */ diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SegmentStatusEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SegmentStatusEnum.java index 03d45f61c809..6bac7ce67eb3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SegmentStatusEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SegmentStatusEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Sku.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Sku.java index b527649da328..f06fe022b873 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Sku.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Sku.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -18,7 +18,7 @@ @Fluent public final class Sku implements JsonSerializable { /* - * The name of the SKU. E.g. P3. It is typically a letter+number code + * The name of the SKU. Ex - P3. It is typically a letter+number code */ private String name; @@ -52,7 +52,7 @@ public Sku() { } /** - * Get the name property: The name of the SKU. E.g. P3. It is typically a letter+number code. + * Get the name property: The name of the SKU. Ex - P3. It is typically a letter+number code. * * @return the name value. */ @@ -61,7 +61,7 @@ public String name() { } /** - * Set the name property: The name of the SKU. E.g. P3. It is typically a letter+number code. + * Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code. * * @param name the name value to set. * @return the Sku object itself. diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SkuTier.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SkuTier.java index 6be884faf689..4858dbe09df9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SkuTier.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SkuTier.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SslEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SslEnum.java index f45b038c9c10..274252d6381e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SslEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SslEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SystemAssignedServiceIdentityType.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SystemAssignedServiceIdentityType.java new file mode 100644 index 000000000000..cd7fe1d6d48c --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/SystemAssignedServiceIdentityType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.avs.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of managed service identity (either system assigned, or none). + */ +public final class SystemAssignedServiceIdentityType extends ExpandableStringEnum { + /** + * Static value None for SystemAssignedServiceIdentityType. + */ + public static final SystemAssignedServiceIdentityType NONE = fromString("None"); + + /** + * Static value SystemAssigned for SystemAssignedServiceIdentityType. + */ + public static final SystemAssignedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** + * Creates a new instance of SystemAssignedServiceIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SystemAssignedServiceIdentityType() { + } + + /** + * Creates or finds a SystemAssignedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding SystemAssignedServiceIdentityType. + */ + public static SystemAssignedServiceIdentityType fromString(String name) { + return fromString(name, SystemAssignedServiceIdentityType.class); + } + + /** + * Gets known SystemAssignedServiceIdentityType values. + * + * @return known SystemAssignedServiceIdentityType values. + */ + public static Collection values() { + return values(SystemAssignedServiceIdentityType.class); + } +} diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Trial.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Trial.java index f65dae8db654..d80e79d348d9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Trial.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/Trial.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/TrialStatus.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/TrialStatus.java index 4b651f7724c0..3d27e4979bc4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/TrialStatus.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/TrialStatus.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMGroupStatusEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMGroupStatusEnum.java index c5aa668dc4c8..2c74336ccfa3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMGroupStatusEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMGroupStatusEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMTypeEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMTypeEnum.java index ad9c0334ea14..ebb9d42543da 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMTypeEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VMTypeEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachine.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachine.java index d471b5290870..db76aa997186 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachine.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachine.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineProvisioningState.java index 6d256db38306..d644f3eb2f13 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovement.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovement.java index c9d45cb67602..705cde62c1b7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovement.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovement.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovementState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovementState.java index aafb82a07a72..3e11b6b9ac70 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovementState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovementState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachines.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachines.java index 3f358eca9c42..d103ab57954c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachines.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachines.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VisibilityParameterEnum.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VisibilityParameterEnum.java index ad2ea2724459..7eb8550e7e6b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VisibilityParameterEnum.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VisibilityParameterEnum.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmHostPlacementPolicyProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmHostPlacementPolicyProperties.java index d3df6f34c36e..bb5e56a0366a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmHostPlacementPolicyProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmHostPlacementPolicyProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -203,7 +203,6 @@ public VmHostPlacementPolicyProperties withDisplayName(String displayName) { */ @Override public void validate() { - super.validate(); if (vmMembers() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmPlacementPolicyProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmPlacementPolicyProperties.java index f5dcdc84b92e..9a3967299e16 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmPlacementPolicyProperties.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmPlacementPolicyProperties.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -128,7 +128,6 @@ public VmPlacementPolicyProperties withDisplayName(String displayName) { */ @Override public void validate() { - super.validate(); if (vmMembers() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetwork.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetwork.java index be59cf3574dc..81b07270a4ff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetwork.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetwork.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcp.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcp.java index a205f5ad95ca..c3b35ecd53f8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcp.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcp.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -83,13 +83,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** @@ -171,19 +173,4 @@ interface WithProperties { Update withProperties(WorkloadNetworkDhcpEntity properties); } } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - WorkloadNetworkDhcp refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - WorkloadNetworkDhcp refresh(Context context); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpEntity.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpEntity.java index 9aba7bfb0a91..eb71f9e61f71 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpEntity.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpEntity.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -182,10 +182,10 @@ public static WorkloadNetworkDhcpEntity fromJson(JsonReader jsonReader) throws I } } // Use the discriminator value to determine which subtype should be deserialized. - if ("RELAY".equals(discriminatorValue)) { - return WorkloadNetworkDhcpRelay.fromJson(readerToUse.reset()); - } else if ("SERVER".equals(discriminatorValue)) { + if ("SERVER".equals(discriminatorValue)) { return WorkloadNetworkDhcpServer.fromJson(readerToUse.reset()); + } else if ("RELAY".equals(discriminatorValue)) { + return WorkloadNetworkDhcpRelay.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpProvisioningState.java index 7c5edf4a9e68..3dfc8c88508f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpRelay.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpRelay.java index 958c6001d469..3464adc06543 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpRelay.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpRelay.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -27,14 +27,14 @@ public final class WorkloadNetworkDhcpRelay extends WorkloadNetworkDhcpEntity { private List serverAddresses; /* - * NSX Segments consuming DHCP. + * The provisioning state */ - private List segments; + private WorkloadNetworkDhcpProvisioningState provisioningState; /* - * The provisioning state + * NSX Segments consuming DHCP. */ - private WorkloadNetworkDhcpProvisioningState provisioningState; + private List segments; /** * Creates an instance of WorkloadNetworkDhcpRelay class. @@ -73,23 +73,23 @@ public WorkloadNetworkDhcpRelay withServerAddresses(List serverAddresses } /** - * Get the segments property: NSX Segments consuming DHCP. + * Get the provisioningState property: The provisioning state. * - * @return the segments value. + * @return the provisioningState value. */ @Override - public List segments() { - return this.segments; + public WorkloadNetworkDhcpProvisioningState provisioningState() { + return this.provisioningState; } /** - * Get the provisioningState property: The provisioning state. + * Get the segments property: NSX Segments consuming DHCP. * - * @return the provisioningState value. + * @return the segments value. */ @Override - public WorkloadNetworkDhcpProvisioningState provisioningState() { - return this.provisioningState; + public List segments() { + return this.segments; } /** @@ -117,7 +117,6 @@ public WorkloadNetworkDhcpRelay withRevision(Long revision) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpServer.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpServer.java index f04a5c39e18e..1cb4a0e847f2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpServer.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpServer.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -32,14 +32,14 @@ public final class WorkloadNetworkDhcpServer extends WorkloadNetworkDhcpEntity { private Long leaseTime; /* - * NSX Segments consuming DHCP. + * The provisioning state */ - private List segments; + private WorkloadNetworkDhcpProvisioningState provisioningState; /* - * The provisioning state + * NSX Segments consuming DHCP. */ - private WorkloadNetworkDhcpProvisioningState provisioningState; + private List segments; /** * Creates an instance of WorkloadNetworkDhcpServer class. @@ -98,23 +98,23 @@ public WorkloadNetworkDhcpServer withLeaseTime(Long leaseTime) { } /** - * Get the segments property: NSX Segments consuming DHCP. + * Get the provisioningState property: The provisioning state. * - * @return the segments value. + * @return the provisioningState value. */ @Override - public List segments() { - return this.segments; + public WorkloadNetworkDhcpProvisioningState provisioningState() { + return this.provisioningState; } /** - * Get the provisioningState property: The provisioning state. + * Get the segments property: NSX Segments consuming DHCP. * - * @return the provisioningState value. + * @return the segments value. */ @Override - public WorkloadNetworkDhcpProvisioningState provisioningState() { - return this.provisioningState; + public List segments() { + return this.segments; } /** @@ -142,7 +142,6 @@ public WorkloadNetworkDhcpServer withRevision(Long revision) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsService.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsService.java index c6e4c0ae7327..ba1164bea099 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsService.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsService.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -133,13 +133,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServiceProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServiceProvisioningState.java index 3a7245b6d274..aab884016c35 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServiceProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsServiceProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZone.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZone.java index b141ff0bbb33..e10c06df311e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZone.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZone.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -126,13 +126,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZoneProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZoneProvisioningState.java index 86f1440591dc..9b52b89012d0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZoneProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZoneProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGateway.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGateway.java index fc5f23c15a90..8c1dc832c9cf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGateway.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkGateway.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroring.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroring.java index a446ad3bb381..d6e9cbc05a43 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroring.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroring.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -125,13 +125,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringProvisioningState.java index f68e65097b5b..763c52eb9412 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroringProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkProvisioningState.java index 932c4604a7db..ff21560fd002 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIp.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIp.java index fada5305c0ad..e78c192d7198 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIp.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIp.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -97,13 +97,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIpProvisioningState.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIpProvisioningState.java index 0e264a22523d..8ada4ce7c9ca 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIpProvisioningState.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIpProvisioningState.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegment.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegment.java index 47bcaa0510d6..03d139ad909d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegment.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegment.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; @@ -126,13 +126,15 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, privateCloudName. + * Specifies resourceGroupName, privateCloudName, workloadNetworkName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @return the next definition stage. */ - WithCreate withExistingPrivateCloud(String resourceGroupName, String privateCloudName); + WithCreate withExistingWorkloadNetwork(String resourceGroupName, String privateCloudName, + String workloadNetworkName); } /** diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentPortVif.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentPortVif.java index 7083990dc7b5..32c5a4e85f31 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentPortVif.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegmentPortVif.java @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,7 +14,7 @@ /** * Ports and any VIF attached to segment. */ -@Fluent +@Immutable public final class WorkloadNetworkSegmentPortVif implements JsonSerializable { /* * Name of port or VIF attached to segment. @@ -24,7 +24,7 @@ public final class WorkloadNetworkSegmentPortVif implements JsonSerializable getWithResponse(String resourceGroupName, String privateCloudName, Context context); + Response getWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** * Get a WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetwork. */ - WorkloadNetwork get(String resourceGroupName, String privateCloudName); + WorkloadNetwork get(String resourceGroupName, String privateCloudName, String workloadNetworkName); /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listDhcp(String resourceGroupName, String privateCloudName); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkDhcp resources by WorkloadNetwork. + * List WorkloadNetworkSegment resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listDhcp(String resourceGroupName, String privateCloudName, Context context); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response}. - */ - Response getDhcpWithResponse(String resourceGroupName, String dhcpId, String privateCloudName, - Context context); - - /** - * Get a WorkloadNetworkDhcp. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dhcpId The ID of the DHCP configuration. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp. - */ - WorkloadNetworkDhcp getDhcp(String resourceGroupName, String dhcpId, String privateCloudName); - - /** - * Delete a WorkloadNetworkDhcp. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkSegment along with {@link Response}. */ - void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId); + Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, Context context); /** - * Delete a WorkloadNetworkDhcp. + * Get a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param dhcpId The ID of the DHCP configuration. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkSegment. */ - void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context); + WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId); /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. */ - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId); /** - * List WorkloadNetworkDnsService resources by WorkloadNetwork. + * Delete a WorkloadNetworkSegment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param segmentId The ID of the NSX Segment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsService list operation as paginated response with - * {@link PagedIterable}. */ - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, Context context); /** - * Get a WorkloadNetworkDnsService. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response}. - */ - Response getDnsServiceWithResponse(String resourceGroupName, String privateCloudName, - String dnsServiceId, Context context); - - /** - * Get a WorkloadNetworkDnsService. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsServiceId ID of the DNS service. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService. - */ - WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, String dnsServiceId); - - /** - * Delete a WorkloadNetworkDnsService. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ - void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * Delete a WorkloadNetworkDnsService. + * List WorkloadNetworkDhcp resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ - void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context); - - /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * List WorkloadNetworkDnsZone resources by WorkloadNetwork. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetworkDhcp along with {@link Response}. */ - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + Response getDhcpWithResponse(String resourceGroupName, String dhcpId, String privateCloudName, Context context); /** - * Get a WorkloadNetworkDnsZone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response}. - */ - Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, - String dnsZoneId, Context context); - - /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId The ID of the DHCP configuration. * @param privateCloudName Name of the private cloud. - * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone. + * @return a WorkloadNetworkDhcp. */ - WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId); + WorkloadNetworkDhcp getDhcp(String resourceGroupName, String dhcpId, String privateCloudName); /** - * Delete a WorkloadNetworkDnsZone. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName); + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId); /** - * Delete a WorkloadNetworkDnsZone. + * Delete a WorkloadNetworkDhcp. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context); + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + Context context); /** * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listGateways(String resourceGroupName, String privateCloudName); + PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * List WorkloadNetworkGateway resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -324,13 +265,14 @@ Response getDnsZoneWithResponse(String resourceGroupName * @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ PagedIterable listGateways(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param gatewayId The ID of the NSX Gateway. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -339,39 +281,44 @@ PagedIterable listGateways(String resourceGroupName, Str * @return a WorkloadNetworkGateway along with {@link Response}. */ Response getGatewayWithResponse(String resourceGroupName, String privateCloudName, - String gatewayId, Context context); + String workloadNetworkName, String gatewayId, Context context); /** * Get a WorkloadNetworkGateway. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param gatewayId The ID of the NSX Gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetworkGateway. */ - WorkloadNetworkGateway getGateway(String resourceGroupName, String privateCloudName, String gatewayId); + WorkloadNetworkGateway getGateway(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String gatewayId); /** * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a WorkloadNetworkPortMirroring list operation as paginated response with * {@link PagedIterable}. */ - PagedIterable listPortMirroring(String resourceGroupName, String privateCloudName); + PagedIterable listPortMirroring(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * List WorkloadNetworkPortMirroring resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -380,13 +327,14 @@ Response getGatewayWithResponse(String resourceGroupName * {@link PagedIterable}. */ PagedIterable listPortMirroring(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -395,13 +343,14 @@ PagedIterable listPortMirroring(String resourceGro * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ Response getPortMirroringWithResponse(String resourceGroupName, - String privateCloudName, String portMirroringId, Context context); + String privateCloudName, String workloadNetworkName, String portMirroringId, Context context); /** * Get a WorkloadNetworkPortMirroring. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param portMirroringId ID of the NSX port mirroring profile. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -409,7 +358,7 @@ Response getPortMirroringWithResponse(String resou * @return a WorkloadNetworkPortMirroring. */ WorkloadNetworkPortMirroring getPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId); + String workloadNetworkName, String portMirroringId); /** * Delete a WorkloadNetworkPortMirroring. @@ -438,438 +387,456 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin Context context); /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkPublicIP resources by WorkloadNetwork. + * List WorkloadNetworkVMGroup resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response}. + * @return a WorkloadNetworkVMGroup along with {@link Response}. */ - Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, - String publicIpId, Context context); + Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, Context context); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param publicIpId ID of the DNS zone. + * @param workloadNetworkName Name of the global reach connection. + * @param vmGroupId ID of the VM group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP. + * @return a WorkloadNetworkVMGroup. */ - WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, String publicIpId); + WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String vmGroupId); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName); + void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkVMGroup. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param publicIpId ID of the DNS zone. + * @param vmGroupId ID of the VM group. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName, Context context); + void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context); /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedIterable}. */ - PagedIterable listSegments(String resourceGroupName, String privateCloudName); + PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkSegment resources by WorkloadNetwork. + * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with + * {@link PagedIterable}. */ - PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkSegment. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response}. + * @return a WorkloadNetworkVirtualMachine along with {@link Response}. */ - Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + Response getVirtualMachineWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context); /** - * Get a WorkloadNetworkSegment. + * Get a WorkloadNetworkVirtualMachine. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. + * @param virtualMachineId ID of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment. + * @return a WorkloadNetworkVirtualMachine. */ - WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String segmentId); + WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String virtualMachineId); /** - * Delete a WorkloadNetworkSegment. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. */ - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId); + PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * Delete a WorkloadNetworkSegment. + * List WorkloadNetworkDnsService resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param segmentId The ID of the NSX Segment. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a WorkloadNetworkDnsService list operation as paginated response with + * {@link PagedIterable}. */ - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context); + PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Get a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. + * @return a WorkloadNetworkDnsService along with {@link Response}. */ - PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName); + Response getDnsServiceWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId, Context context); /** - * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork. + * Get a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param context The context to associate with this operation. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsServiceId ID of the DNS service. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with - * {@link PagedIterable}. + * @return a WorkloadNetworkDnsService. */ - PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName, - Context context); + WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId); /** - * Get a WorkloadNetworkVirtualMachine. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine along with {@link Response}. */ - Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context); + void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName); /** - * Get a WorkloadNetworkVirtualMachine. + * Delete a WorkloadNetworkDnsService. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId ID of the DNS service. * @param privateCloudName Name of the private cloud. - * @param virtualMachineId ID of the virtual machine. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVirtualMachine. */ - WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId); + void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context); /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName); + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * List WorkloadNetworkVMGroup resources by WorkloadNetwork. + * List WorkloadNetworkDnsZone resources by WorkloadNetwork. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. + * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup along with {@link Response}. + * @return a WorkloadNetworkDnsZone along with {@link Response}. */ - Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context); + Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, Context context); /** - * Get a WorkloadNetworkVMGroup. + * Get a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. - * @param vmGroupId ID of the VM group. + * @param workloadNetworkName Name of the global reach connection. + * @param dnsZoneId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkVMGroup. + * @return a WorkloadNetworkDnsZone. */ - WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId); + WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsZoneId); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName); + void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName); /** - * Delete a WorkloadNetworkVMGroup. + * Delete a WorkloadNetworkDnsZone. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param vmGroupId ID of the VM group. + * @param dnsZoneId ID of the DNS zone. * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context); + void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context); /** - * Get a WorkloadNetworkDhcp. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response}. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - WorkloadNetworkDhcp getDhcpById(String id); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** - * Get a WorkloadNetworkDhcp. + * List WorkloadNetworkPublicIP resources by WorkloadNetwork. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDhcp along with {@link Response}. - */ - Response getDhcpByIdWithResponse(String id, Context context); - - /** - * Get a WorkloadNetworkDnsService. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response}. + * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with + * {@link PagedIterable}. */ - WorkloadNetworkDnsService getDnsServiceById(String id); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * Get a WorkloadNetworkDnsService. + * Get a WorkloadNetworkPublicIP. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsService along with {@link Response}. - */ - Response getDnsServiceByIdWithResponse(String id, Context context); - - /** - * Get a WorkloadNetworkDnsZone. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response}. + * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - WorkloadNetworkDnsZone getDnsZoneById(String id); + Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, Context context); /** - * Get a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPublicIP. * - * @param id the resource ID. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud. + * @param workloadNetworkName Name of the global reach connection. + * @param publicIPId ID of the DNS zone. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkDnsZone along with {@link Response}. + * @return a WorkloadNetworkPublicIP. */ - Response getDnsZoneByIdWithResponse(String id, Context context); + WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String publicIPId); /** - * Get a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkPublicIP. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIPId ID of the DNS zone. + * @param privateCloudName Name of the private cloud. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ - WorkloadNetworkPortMirroring getPortMirroringById(String id); + void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** - * Get a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkPublicIP. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param publicIPId ID of the DNS zone. + * @param privateCloudName Name of the private cloud. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ - Response getPortMirroringByIdWithResponse(String id, Context context); + void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkSegment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response}. + * @return a WorkloadNetworkSegment along with {@link Response}. */ - WorkloadNetworkPublicIp getPublicIpById(String id); + WorkloadNetworkSegment getSegmentById(String id); /** - * Get a WorkloadNetworkPublicIP. + * Get a WorkloadNetworkSegment. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkPublicIP along with {@link Response}. + * @return a WorkloadNetworkSegment along with {@link Response}. */ - Response getPublicIpByIdWithResponse(String id, Context context); + Response getSegmentByIdWithResponse(String id, Context context); /** - * Get a WorkloadNetworkSegment. + * Get a WorkloadNetworkPortMirroring. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response}. + * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ - WorkloadNetworkSegment getSegmentById(String id); + WorkloadNetworkPortMirroring getPortMirroringById(String id); /** - * Get a WorkloadNetworkSegment. + * Get a WorkloadNetworkPortMirroring. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a WorkloadNetworkSegment along with {@link Response}. + * @return a WorkloadNetworkPortMirroring along with {@link Response}. */ - Response getSegmentByIdWithResponse(String id, Context context); + Response getPortMirroringByIdWithResponse(String id, Context context); /** * Get a WorkloadNetworkVMGroup. @@ -895,80 +862,86 @@ Response getVMGroupWithResponse(String resourceGroupName Response getVMGroupByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkDhcp. + * Get a WorkloadNetworkDnsService. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService along with {@link Response}. */ - void deleteDhcpById(String id); + WorkloadNetworkDnsService getDnsServiceById(String id); /** - * Delete a WorkloadNetworkDhcp. + * Get a WorkloadNetworkDnsService. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsService along with {@link Response}. */ - void deleteDhcpByIdWithResponse(String id, Context context); + Response getDnsServiceByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDnsZone. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsZone along with {@link Response}. */ - void deleteDnsServiceById(String id); + WorkloadNetworkDnsZone getDnsZoneById(String id); /** - * Delete a WorkloadNetworkDnsService. + * Get a WorkloadNetworkDnsZone. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkDnsZone along with {@link Response}. */ - void deleteDnsServiceByIdWithResponse(String id, Context context); + Response getDnsZoneByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPublicIP. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - void deleteDnsZoneById(String id); + WorkloadNetworkPublicIp getPublicIpById(String id); /** - * Delete a WorkloadNetworkDnsZone. + * Get a WorkloadNetworkPublicIP. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - void deleteDnsZoneByIdWithResponse(String id, Context context); + Response getPublicIpByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkSegment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePortMirroringById(String id); + void deleteSegmentById(String id); /** - * Delete a WorkloadNetworkPortMirroring. + * Delete a WorkloadNetworkSegment. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -976,20 +949,20 @@ Response getVMGroupWithResponse(String resourceGroupName * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePortMirroringByIdWithResponse(String id, Context context); + void deleteSegmentByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkDhcp. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePublicIpById(String id); + void deleteDhcpById(String id); /** - * Delete a WorkloadNetworkPublicIP. + * Delete a WorkloadNetworkDhcp. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -997,57 +970,39 @@ Response getVMGroupWithResponse(String resourceGroupName * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deletePublicIpByIdWithResponse(String id, Context context); - - /** - * Delete a WorkloadNetworkSegment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteSegmentById(String id); + void deleteDhcpByIdWithResponse(String id, Context context); /** - * Delete a WorkloadNetworkSegment. + * Begins definition for a new WorkloadNetworkSegment resource. * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @param name resource name. + * @return the first stage of the new WorkloadNetworkSegment definition. */ - void deleteSegmentByIdWithResponse(String id, Context context); + WorkloadNetworkSegment.DefinitionStages.Blank defineSegment(String name); /** - * Delete a WorkloadNetworkVMGroup. + * Begins definition for a new WorkloadNetworkDhcp resource. * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @param name resource name. + * @return the first stage of the new WorkloadNetworkDhcp definition. */ - void deleteVMGroupById(String id); + WorkloadNetworkDhcp.DefinitionStages.Blank defineDhcp(String name); /** - * Delete a WorkloadNetworkVMGroup. + * Begins definition for a new WorkloadNetworkPortMirroring resource. * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @param name resource name. + * @return the first stage of the new WorkloadNetworkPortMirroring definition. */ - void deleteVMGroupByIdWithResponse(String id, Context context); + WorkloadNetworkPortMirroring.DefinitionStages.Blank definePortMirroring(String name); /** - * Begins definition for a new WorkloadNetworkDhcp resource. + * Begins definition for a new WorkloadNetworkVMGroup resource. * * @param name resource name. - * @return the first stage of the new WorkloadNetworkDhcp definition. + * @return the first stage of the new WorkloadNetworkVMGroup definition. */ - WorkloadNetworkDhcp.DefinitionStages.Blank defineDhcp(String name); + WorkloadNetworkVMGroup.DefinitionStages.Blank defineVMGroup(String name); /** * Begins definition for a new WorkloadNetworkDnsService resource. @@ -1065,14 +1020,6 @@ Response getVMGroupWithResponse(String resourceGroupName */ WorkloadNetworkDnsZone.DefinitionStages.Blank defineDnsZone(String name); - /** - * Begins definition for a new WorkloadNetworkPortMirroring resource. - * - * @param name resource name. - * @return the first stage of the new WorkloadNetworkPortMirroring definition. - */ - WorkloadNetworkPortMirroring.DefinitionStages.Blank definePortMirroring(String name); - /** * Begins definition for a new WorkloadNetworkPublicIp resource. * @@ -1080,20 +1027,4 @@ Response getVMGroupWithResponse(String resourceGroupName * @return the first stage of the new WorkloadNetworkPublicIp definition. */ WorkloadNetworkPublicIp.DefinitionStages.Blank definePublicIp(String name); - - /** - * Begins definition for a new WorkloadNetworkSegment resource. - * - * @param name resource name. - * @return the first stage of the new WorkloadNetworkSegment definition. - */ - WorkloadNetworkSegment.DefinitionStages.Blank defineSegments(String name); - - /** - * Begins definition for a new WorkloadNetworkVMGroup resource. - * - * @param name resource name. - * @return the first stage of the new WorkloadNetworkVMGroup definition. - */ - WorkloadNetworkVMGroup.DefinitionStages.Blank defineVMGroup(String name); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/package-info.java index 6324b6c91578..5861083294c4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/package-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the data models for AvsClient. + * Package containing the data models for Avs. * Azure VMware Solution API. */ package com.azure.resourcemanager.avs.models; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/package-info.java index 5c45a9ed54e5..b6b9d1926f20 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/package-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/package-info.java @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. /** - * Package containing the classes for AvsClient. + * Package containing the classes for Avs. * Azure VMware Solution API. */ package com.azure.resourcemanager.avs; diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/module-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/module-info.java index 9c0edc9ab226..a5eaabf8dc15 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/module-info.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/module-info.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. module com.azure.resourcemanager.avs { requires transitive com.azure.core.management; @@ -8,6 +8,7 @@ exports com.azure.resourcemanager.avs.fluent; exports com.azure.resourcemanager.avs.fluent.models; exports com.azure.resourcemanager.avs.models; - opens com.azure.resourcemanager.avs.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.avs.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.avs.fluent.models to com.azure.core; + opens com.azure.resourcemanager.avs.models to com.azure.core; + opens com.azure.resourcemanager.avs.implementation.models to com.azure.core; } \ No newline at end of file diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/proxy-config.json b/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/proxy-config.json index b92f135b8da2..4c04471a4cd3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/proxy-config.json +++ b/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.avs.implementation.AddonsClientImpl$AddonsService" ], [ "com.azure.resourcemanager.avs.implementation.AuthorizationsClientImpl$AuthorizationsService" ], [ "com.azure.resourcemanager.avs.implementation.CloudLinksClientImpl$CloudLinksService" ], [ "com.azure.resourcemanager.avs.implementation.ClustersClientImpl$ClustersService" ], [ "com.azure.resourcemanager.avs.implementation.DatastoresClientImpl$DatastoresService" ], [ "com.azure.resourcemanager.avs.implementation.GlobalReachConnectionsClientImpl$GlobalReachConnectionsService" ], [ "com.azure.resourcemanager.avs.implementation.HcxEnterpriseSitesClientImpl$HcxEnterpriseSitesService" ], [ "com.azure.resourcemanager.avs.implementation.IscsiPathsClientImpl$IscsiPathsService" ], [ "com.azure.resourcemanager.avs.implementation.LocationsClientImpl$LocationsService" ], [ "com.azure.resourcemanager.avs.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.avs.implementation.PlacementPoliciesClientImpl$PlacementPoliciesService" ], [ "com.azure.resourcemanager.avs.implementation.PrivateCloudsClientImpl$PrivateCloudsService" ], [ "com.azure.resourcemanager.avs.implementation.ScriptCmdletsClientImpl$ScriptCmdletsService" ], [ "com.azure.resourcemanager.avs.implementation.ScriptExecutionsClientImpl$ScriptExecutionsService" ], [ "com.azure.resourcemanager.avs.implementation.ScriptPackagesClientImpl$ScriptPackagesService" ], [ "com.azure.resourcemanager.avs.implementation.VirtualMachinesClientImpl$VirtualMachinesService" ], [ "com.azure.resourcemanager.avs.implementation.WorkloadNetworksClientImpl$WorkloadNetworksService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.avs.implementation.AddonsClientImpl$AddonsService"],["com.azure.resourcemanager.avs.implementation.AuthorizationsClientImpl$AuthorizationsService"],["com.azure.resourcemanager.avs.implementation.CloudLinksClientImpl$CloudLinksService"],["com.azure.resourcemanager.avs.implementation.ClustersClientImpl$ClustersService"],["com.azure.resourcemanager.avs.implementation.DatastoresClientImpl$DatastoresService"],["com.azure.resourcemanager.avs.implementation.GlobalReachConnectionsClientImpl$GlobalReachConnectionsService"],["com.azure.resourcemanager.avs.implementation.HcxEnterpriseSitesClientImpl$HcxEnterpriseSitesService"],["com.azure.resourcemanager.avs.implementation.IscsiPathsClientImpl$IscsiPathsService"],["com.azure.resourcemanager.avs.implementation.LocationsClientImpl$LocationsService"],["com.azure.resourcemanager.avs.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.avs.implementation.PlacementPoliciesClientImpl$PlacementPoliciesService"],["com.azure.resourcemanager.avs.implementation.PrivateCloudsClientImpl$PrivateCloudsService"],["com.azure.resourcemanager.avs.implementation.ScriptCmdletsClientImpl$ScriptCmdletsService"],["com.azure.resourcemanager.avs.implementation.ScriptExecutionsClientImpl$ScriptExecutionsService"],["com.azure.resourcemanager.avs.implementation.ScriptPackagesClientImpl$ScriptPackagesService"],["com.azure.resourcemanager.avs.implementation.VirtualMachinesClientImpl$VirtualMachinesService"],["com.azure.resourcemanager.avs.implementation.WorkloadNetworksClientImpl$WorkloadNetworksService"]] \ No newline at end of file diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/reflect-config.json b/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/reflect-config.json index 8878e547a798..0637a088a01e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/reflect-config.json +++ b/sdk/avs/azure-resourcemanager-avs/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-avs/reflect-config.json @@ -1 +1 @@ -[ ] \ No newline at end of file +[] \ No newline at end of file diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateSamples.java index 14808360094a..99c218d7df9a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,8 +14,7 @@ */ public final class AddonsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_HCX.json */ /** * Sample code: Addons_CreateOrUpdate_HCX. @@ -31,8 +30,7 @@ public static void addonsCreateOrUpdateHCX(com.azure.resourcemanager.avs.AvsMana } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_SRM.json */ /** * Sample code: Addons_CreateOrUpdate_SRM. @@ -48,8 +46,7 @@ public static void addonsCreateOrUpdateSRM(com.azure.resourcemanager.avs.AvsMana } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_ArcReg.json */ /** * Sample code: Addons_CreateOrUpdate_ArcReg. @@ -66,8 +63,7 @@ public static void addonsCreateOrUpdateArcReg(com.azure.resourcemanager.avs.AvsM } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_VR.json */ /** * Sample code: Addons_CreateOrUpdate_VR. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java index f349917d9e7f..38af8a525e77 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AddonsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Delete.json + * x-ms-original-file: 2023-09-01/Addons_Delete.json */ /** * Sample code: Addons_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsGetSamples.java index 56796ee7a6ac..4b36e1f78c2b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AddonsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json + * x-ms-original-file: 2023-09-01/Addons_Get_SRM.json */ /** * Sample code: Addons_Get_SRM. @@ -22,8 +21,7 @@ public static void addonsGetSRM(com.azure.resourcemanager.avs.AvsManager manager } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json + * x-ms-original-file: 2023-09-01/Addons_Get_VR.json */ /** * Sample code: Addons_Get_VR. @@ -35,8 +33,7 @@ public static void addonsGetVR(com.azure.resourcemanager.avs.AvsManager manager) } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json + * x-ms-original-file: 2023-09-01/Addons_Get_HCX.json */ /** * Sample code: Addons_Get_HCX. @@ -48,8 +45,7 @@ public static void addonsGetHCX(com.azure.resourcemanager.avs.AvsManager manager } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_Get_ArcReg.json */ /** * Sample code: Addons_Get_ArcReg. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsListSamples.java index 7a0ae9b4749f..4fe53707f4b8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AddonsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_List.json + * x-ms-original-file: 2023-09-01/Addons_List.json */ /** * Sample code: Addons_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsCreateOrUpdateSamples.java index 63126d910ffd..d855c150654f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Authorizations_CreateOrUpdate.json */ /** * Sample code: Authorizations_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteSamples.java index f8bbe20e72a2..826a796e7f51 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AuthorizationsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Delete.json + * x-ms-original-file: 2023-09-01/Authorizations_Delete.json */ /** * Sample code: Authorizations_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsGetSamples.java index 7feb82c8d993..48e6cbd2d695 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AuthorizationsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json + * x-ms-original-file: 2023-09-01/Authorizations_Get.json */ /** * Sample code: Authorizations_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsListSamples.java index 755f8e2f5628..4fe1f0ce8c4a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AuthorizationsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class AuthorizationsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_List.json + * x-ms-original-file: 2023-09-01/Authorizations_List.json */ /** * Sample code: Authorizations_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateSamples.java index f6e45e40b639..5b441269bdfb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class CloudLinksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/CloudLinks_CreateOrUpdate.json */ /** * Sample code: CloudLinks_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteSamples.java index 31bf24f15c4a..dd290f68a12a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class CloudLinksDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Delete.json + * x-ms-original-file: 2023-09-01/CloudLinks_Delete.json */ /** * Sample code: CloudLinks_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksGetSamples.java index 177850fb751e..119cdccaba23 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class CloudLinksGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json + * x-ms-original-file: 2023-09-01/CloudLinks_Get.json */ /** * Sample code: CloudLinks_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksListSamples.java index d913adaf9ca0..8218784c8d91 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/CloudLinksListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class CloudLinksListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_List.json + * x-ms-original-file: 2023-09-01/CloudLinks_List.json */ /** * Sample code: CloudLinks_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateSamples.java index 9d93bd1df9cd..3bdb04e22c85 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,8 +11,7 @@ */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Clusters_CreateOrUpdate.json */ /** * Sample code: Clusters_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersDeleteSamples.java index 0b557c7795d3..447d846b4dd2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Delete.json + * x-ms-original-file: 2023-09-01/Clusters_Delete.json */ /** * Sample code: Clusters_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersGetSamples.java index de560b3c5f44..d9978e9ada05 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ClustersGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json + * x-ms-original-file: 2023-09-01/Clusters_Get.json */ /** * Sample code: Clusters_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListSamples.java index 0e4975687763..152dbdfe4dbb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ClustersListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_List.json + * x-ms-original-file: 2023-09-01/Clusters_List.json */ /** * Sample code: Clusters_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListZonesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListZonesSamples.java index 5b57800e6215..1a3d4971d678 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListZonesSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersListZonesSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ClustersListZonesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones.json */ /** * Sample code: Clusters_ListZones. @@ -22,8 +21,7 @@ public static void clustersListZones(com.azure.resourcemanager.avs.AvsManager ma } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones_Stretched.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones_Stretched.json */ /** * Sample code: Clusters_ListZones_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersUpdateSamples.java index 97129bcee76e..3a35b645dc5a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ClustersUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,8 +11,7 @@ */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Update.json + * x-ms-original-file: 2023-09-01/Clusters_Update.json */ /** * Sample code: Clusters_Update. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateSamples.java index 66ed7169d9ae..fdcd7cb681b7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,8 +11,7 @@ */ public final class DatastoresCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Datastores_CreateOrUpdate.json */ /** * Sample code: Datastores_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteSamples.java index c22c6754286e..d4bdc9b39397 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class DatastoresDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Delete.json + * x-ms-original-file: 2023-09-01/Datastores_Delete.json */ /** * Sample code: Datastores_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresGetSamples.java index b0c624a7609b..cdedc047a169 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class DatastoresGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json + * x-ms-original-file: 2023-09-01/Datastores_Get.json */ /** * Sample code: Datastores_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresListSamples.java index 441a855fe062..e4f593ee080d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/DatastoresListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class DatastoresListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_List.json + * x-ms-original-file: 2023-09-01/Datastores_List.json */ /** * Sample code: Datastores_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsCreateOrUpdateSamples.java index 83749f5e17a7..af9bdab17c9d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * GlobalReachConnections_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_CreateOrUpdate.json */ /** * Sample code: GlobalReachConnections_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteSamples.java index 599f2ffaf2a2..d0d32f674d7a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Delete.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Delete.json */ /** * Sample code: GlobalReachConnections_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsGetSamples.java index b1e02991c662..244ae79e617c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Get.json */ /** * Sample code: GlobalReachConnections_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsListSamples.java index 3cb609a06eaa..526bcf1dc6c8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_List.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_List.json */ /** * Sample code: GlobalReachConnections_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesCreateOrUpdateSamples.java index 376bfde12df7..54b2916e32c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class HcxEnterpriseSitesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_CreateOrUpdate.json */ /** * Sample code: HcxEnterpriseSites_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteSamples.java index 2e2bf093711b..e1775f255ed3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Delete.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Delete.json */ /** * Sample code: HcxEnterpriseSites_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesGetSamples.java index eaa84e987a75..4bbba06b1c95 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Get.json */ /** * Sample code: HcxEnterpriseSites_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesListSamples.java index d5144b06bc09..236196999859 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_List.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_List.json */ /** * Sample code: HcxEnterpriseSites_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateSamples.java index 6692612b50b0..42811d10f568 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateSamples.java @@ -1,18 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; -import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; - /** * Samples for IscsiPaths CreateOrUpdate. */ public final class IscsiPathsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/IscsiPaths_CreateOrUpdate.json */ /** * Sample code: IscsiPaths_CreateOrUpdate. @@ -21,7 +18,9 @@ public final class IscsiPathsCreateOrUpdateSamples { */ public static void iscsiPathsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager manager) { manager.iscsiPaths() - .createOrUpdate("group1", "cloud1", new IscsiPathInner().withNetworkBlock("192.168.0.0/24"), - com.azure.core.util.Context.NONE); + .define("default") + .withExistingPrivateCloud("group1", "cloud1") + .withNetworkBlock("192.168.0.0/24") + .create(); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteSamples.java index 8fbfd8f8ec0e..c58d0df671c7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class IscsiPathsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Delete.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Delete.json */ /** * Sample code: IscsiPaths_Delete. @@ -18,6 +17,6 @@ public final class IscsiPathsDeleteSamples { * @param manager Entry point to AvsManager. */ public static void iscsiPathsDelete(com.azure.resourcemanager.avs.AvsManager manager) { - manager.iscsiPaths().delete("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.iscsiPaths().delete("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetSamples.java index b29e1a44475e..ada3aaca2eb4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class IscsiPathsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Get.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Get.json */ /** * Sample code: IscsiPaths_Get. @@ -18,6 +17,6 @@ public final class IscsiPathsGetSamples { * @param manager Entry point to AvsManager. */ public static void iscsiPathsGet(com.azure.resourcemanager.avs.AvsManager manager) { - manager.iscsiPaths().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.iscsiPaths().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudSamples.java index 0d70ce515a6d..615d3491ee53 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class IscsiPathsListByPrivateCloudSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_List.json + * x-ms-original-file: 2023-09-01/IscsiPaths_List.json */ /** * Sample code: IscsiPaths_ListByPrivateCloud. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilitySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilitySamples.java index 9333ca14d8f0..859d6a7a24e1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilitySamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilitySamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class LocationsCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckQuotaAvailability. - * json + * x-ms-original-file: 2023-09-01/Locations_CheckQuotaAvailability.json */ /** * Sample code: Locations_CheckQuotaAvailability. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilitySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilitySamples.java index d7d946e4f59c..33afcb0f6e12 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilitySamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilitySamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,9 +11,7 @@ */ public final class LocationsCheckTrialAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailability. - * json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailability.json */ /** * Sample code: Locations_CheckTrialAvailability. @@ -25,8 +23,7 @@ public static void locationsCheckTrialAvailability(com.azure.resourcemanager.avs } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * Locations_CheckTrialAvailabilityWithSku.json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailabilityWithSku.json */ /** * Sample code: Locations_CheckTrialAvailabilityWithSku. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/OperationsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/OperationsListSamples.java index 62dcbfe849ea..0de704a24466 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/OperationsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/OperationsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Operations_List.json + * x-ms-original-file: 2023-09-01/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateSamples.java index ab3c50e72903..9852dd85c61c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -15,9 +15,7 @@ */ public final class PlacementPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/PlacementPolicies_CreateOrUpdate.json */ /** * Sample code: PlacementPolicies_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteSamples.java index d4f1a53e00ce..4c3650a02edc 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PlacementPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Delete.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Delete.json */ /** * Sample code: PlacementPolicies_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetSamples.java index f04e376a3462..2c7bd809c49b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PlacementPoliciesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Get.json */ /** * Sample code: PlacementPolicies_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListSamples.java index 16419e451921..2e9840f7ba7b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PlacementPoliciesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_List.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_List.json */ /** * Sample code: PlacementPolicies_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesUpdateSamples.java index 7baf5fa7fd95..36fb4cbcd554 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -15,8 +15,7 @@ */ public final class PlacementPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Update.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Update.json */ /** * Sample code: PlacementPolicies_Update. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsCreateOrUpdateSamples.java index 3f10163d6eda..1f408cf05228 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -8,8 +8,8 @@ import com.azure.resourcemanager.avs.models.AvailabilityStrategy; import com.azure.resourcemanager.avs.models.ManagementCluster; import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; import com.azure.resourcemanager.avs.models.Sku; +import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; import java.util.HashMap; import java.util.Map; @@ -18,8 +18,7 @@ */ public final class PrivateCloudsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate.json */ /** * Sample code: PrivateClouds_CreateOrUpdate. @@ -33,15 +32,14 @@ public static void privateCloudsCreateOrUpdate(com.azure.resourcemanager.avs.Avs .withExistingResourceGroup("group1") .withSku(new Sku().withName("AV36")) .withTags(mapOf()) - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) + .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED)) .withManagementCluster(new ManagementCluster().withClusterSize(4)) .withNetworkBlock("192.168.48.0/22") .create(); } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_CreateOrUpdate_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate_Stretched.json */ /** * Sample code: PrivateClouds_CreateOrUpdate_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteSamples.java index c868ab66c3de..f74012d57571 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PrivateCloudsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Delete.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Delete.json */ /** * Sample code: PrivateClouds_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsGetByResourceGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsGetByResourceGroupSamples.java index 202da6f22009..422068808cd7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsGetByResourceGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsGetByResourceGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PrivateCloudsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get.json */ /** * Sample code: PrivateClouds_Get. @@ -22,8 +21,7 @@ public static void privateCloudsGet(com.azure.resourcemanager.avs.AvsManager man } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get_Stretched.json */ /** * Sample code: PrivateClouds_Get_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListAdminCredentialsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListAdminCredentialsSamples.java index 7270369f7aaa..912647f5371c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListAdminCredentialsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListAdminCredentialsSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class PrivateCloudsListAdminCredentialsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListAdminCredentials - * .json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListAdminCredentials.json */ /** * Sample code: PrivateClouds_ListAdminCredentials. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListByResourceGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListByResourceGroupSamples.java index fbc4172d4db3..f4888704a40e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListByResourceGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListByResourceGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PrivateCloudsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List.json */ /** * Sample code: PrivateClouds_List. @@ -22,8 +21,7 @@ public static void privateCloudsList(com.azure.resourcemanager.avs.AvsManager ma } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List_Stretched.json */ /** * Sample code: PrivateClouds_List_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListSamples.java index 27e74043fc55..fe504809a978 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class PrivateCloudsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription.json */ /** * Sample code: PrivateClouds_ListInSubscription. @@ -23,8 +21,7 @@ public static void privateCloudsListInSubscription(com.azure.resourcemanager.avs } /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_ListInSubscription_Stretched.json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription_Stretched.json */ /** * Sample code: PrivateClouds_ListInSubscription_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateNsxtPasswordSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateNsxtPasswordSamples.java index 2462a08fd927..8164f1b0e498 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateNsxtPasswordSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateNsxtPasswordSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class PrivateCloudsRotateNsxtPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateNsxtPassword. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateNsxtPassword.json */ /** * Sample code: PrivateClouds_RotateNsxtPassword. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateVcenterPasswordSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateVcenterPasswordSamples.java index cbefff7a2923..0bf05f7fb4ba 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateVcenterPasswordSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsRotateVcenterPasswordSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class PrivateCloudsRotateVcenterPasswordSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * PrivateClouds_RotateVcenterPassword.json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateVcenterPassword.json */ /** * Sample code: PrivateClouds_RotateVcenterPassword. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsUpdateSamples.java index 12e8a6390f63..3ef6fdf94d56 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -10,15 +10,14 @@ import com.azure.resourcemanager.avs.models.ManagementCluster; import com.azure.resourcemanager.avs.models.PrivateCloud; import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; +import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; /** * Samples for PrivateClouds Update. */ public final class PrivateCloudsUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update.json */ /** * Sample code: PrivateClouds_Update. @@ -30,7 +29,7 @@ public static void privateCloudsUpdate(com.azure.resourcemanager.avs.AvsManager .getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.NONE)) + .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.NONE)) .withManagementCluster(new ManagementCluster().withClusterSize(4)) .withEncryption(new Encryption().withStatus(EncryptionState.ENABLED) .withKeyVaultProperties(new EncryptionKeyVaultProperties().withKeyName("fakeTokenPlaceholder") @@ -40,9 +39,7 @@ public static void privateCloudsUpdate(com.azure.resourcemanager.avs.AvsManager } /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update_Stretched. - * json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update_Stretched.json */ /** * Sample code: PrivateClouds_Update_Stretched. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java index 7085f9340ff2..679e1ee08e02 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptCmdletsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_Get.json */ /** * Sample code: ScriptCmdlets_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListSamples.java index 957a11dc2138..94aa48e6ec44 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptCmdletsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_List.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_List.json */ /** * Sample code: ScriptCmdlets_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateSamples.java index 42b8d0c621b9..02ca2420899f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,9 +13,7 @@ */ public final class ScriptExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate. - * json + * x-ms-original-file: 2023-09-01/ScriptExecutions_CreateOrUpdate.json */ /** * Sample code: ScriptExecutions_CreateOrUpdate. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteSamples.java index e263d2c4fe39..e93310ceaaa2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptExecutionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Delete.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Delete.json */ /** * Sample code: ScriptExecutions_Delete. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsSamples.java index 858d244c467d..7af4f8aab76f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,9 +12,7 @@ */ public final class ScriptExecutionsGetExecutionLogsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_GetExecutionLogs. - * json + * x-ms-original-file: 2023-09-01/ScriptExecutions_GetExecutionLogs.json */ /** * Sample code: ScriptExecutions_GetExecutionLogs. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetSamples.java index c21f63f849cc..1c73dbbf1658 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptExecutionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Get.json */ /** * Sample code: ScriptExecutions_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListSamples.java index 5a5942f94752..62fee2a96ac7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptExecutionsListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_List.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_List.json */ /** * Sample code: ScriptExecutions_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetSamples.java index 09291ebf89e3..19d3459e5928 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptPackagesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json + * x-ms-original-file: 2023-09-01/ScriptPackages_Get.json */ /** * Sample code: ScriptPackages_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListSamples.java index e2c896b5e958..27c0b803c92a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class ScriptPackagesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_List.json + * x-ms-original-file: 2023-09-01/ScriptPackages_List.json */ /** * Sample code: ScriptPackages_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetSamples.java index db8eb3d2b557..6f445a890827 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json + * x-ms-original-file: 2023-09-01/VirtualMachines_Get.json */ /** * Sample code: VirtualMachines_Get. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListSamples.java index 8150b0f0502b..1f75c5c89e6a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_List.json + * x-ms-original-file: 2023-09-01/VirtualMachines_List.json */ /** * Sample code: VirtualMachines_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesRestrictMovementSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesRestrictMovementSamples.java index 532bd590087e..390fd2255871 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesRestrictMovementSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/VirtualMachinesRestrictMovementSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,9 +12,7 @@ */ public final class VirtualMachinesRestrictMovementSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_RestrictMovement. - * json + * x-ms-original-file: 2023-09-01/VirtualMachines_RestrictMovement.json */ /** * Sample code: VirtualMachines_RestrictMovement. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpSamples.java index a7f2f3481545..5318f3540c7f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksCreateDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDhcp.json */ /** * Sample code: WorkloadNetworks_CreateDhcp. @@ -22,7 +21,7 @@ public final class WorkloadNetworksCreateDhcpSamples { public static void workloadNetworksCreateDhcp(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDhcp("dhcp1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withProperties(new WorkloadNetworkDhcpServer().withDisplayName("dhcpConfigurations1") .withRevision(1L) .withServerAddress("40.1.5.1/24") diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceSamples.java index a879ef1a29b9..3bca1c2055ae 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,9 +12,7 @@ */ public final class WorkloadNetworksCreateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsService.json */ /** * Sample code: WorkloadNetworks_CreateDnsService. @@ -24,7 +22,7 @@ public final class WorkloadNetworksCreateDnsServiceSamples { public static void workloadNetworksCreateDnsService(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDnsService("dnsService1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("dnsService1") .withDnsServiceIp("5.5.5.5") .withDefaultDnsZone("defaultDnsZone1") diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneSamples.java index ed2723863ceb..a692751dce4c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,9 +11,7 @@ */ public final class WorkloadNetworksCreateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsZone.json */ /** * Sample code: WorkloadNetworks_CreateDnsZone. @@ -23,7 +21,7 @@ public final class WorkloadNetworksCreateDnsZoneSamples { public static void workloadNetworksCreateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineDnsZone("dnsZone1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("dnsZone1") .withDomain(Arrays.asList()) .withDnsServerIps(Arrays.asList("1.1.1.1")) diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringSamples.java index f7e36c56893b..6cf645277cc9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksCreatePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_CreatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePortMirroring.json */ /** * Sample code: WorkloadNetworks_CreatePortMirroring. @@ -22,7 +21,7 @@ public final class WorkloadNetworksCreatePortMirroringSamples { public static void workloadNetworksCreatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .definePortMirroring("portMirroring1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("portMirroring1") .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) .withSource("vmGroup1") diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPSamples.java similarity index 71% rename from sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpSamples.java rename to sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPSamples.java index f92d63b19b59..1e628f38e4b7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksCreatePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePublicIP.json */ /** * Sample code: WorkloadNetworks_CreatePublicIP. @@ -21,7 +19,7 @@ public final class WorkloadNetworksCreatePublicIpSamples { public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .definePublicIp("publicIP1") - .withExistingPrivateCloud("group1", "cloud1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("publicIP1") .withNumberOfPublicIPs(32L) .create(); diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java similarity index 67% rename from sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsSamples.java rename to sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java index 7577ae0ffc74..fd24142bf8e2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -8,13 +8,11 @@ import java.util.Arrays; /** - * Samples for WorkloadNetworks CreateSegments. + * Samples for WorkloadNetworks CreateSegment. */ -public final class WorkloadNetworksCreateSegmentsSamples { +public final class WorkloadNetworksCreateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateSegments. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateSegments.json */ /** * Sample code: WorkloadNetworks_CreateSegments. @@ -23,8 +21,8 @@ public final class WorkloadNetworksCreateSegmentsSamples { */ public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .defineSegments("segment1") - .withExistingPrivateCloud("group1", "cloud1") + .defineSegment("segment1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("segment1") .withConnectedGateway("/infra/tier-1s/gateway") .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1")) diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupSamples.java index e01895921c80..d680ee269e27 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupSamples.java @@ -1,19 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; -import java.util.Arrays; - /** * Samples for WorkloadNetworks CreateVMGroup. */ public final class WorkloadNetworksCreateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateVMGroup.json */ /** * Sample code: WorkloadNetworks_CreateVMGroup. @@ -23,10 +19,7 @@ public final class WorkloadNetworksCreateVMGroupSamples { public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineVMGroup("vmGroup1") - .withExistingPrivateCloud("group1", "cloud1") - .withDisplayName("vmGroup1") - .withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")) - .withRevision(1L) + .withExistingWorkloadNetwork("group1", "cloud1", null) .create(); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpSamples.java index 780de3a30f30..55f0964ae215 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDhcp.json */ /** * Sample code: WorkloadNetworks_DeleteDhcp. @@ -18,6 +17,6 @@ public final class WorkloadNetworksDeleteDhcpSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeleteDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deleteDhcp("group1", "cloud1", "dhcp1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deleteDhcp("group1", "cloud1", null, "dhcp1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceSamples.java index 9a4349156f10..80f911798e29 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksDeleteDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsService.json */ /** * Sample code: WorkloadNetworks_DeleteDnsService. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneSamples.java index ce11038d50ab..3aac62c89d40 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksDeleteDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsZone.json */ /** * Sample code: WorkloadNetworks_DeleteDnsZone. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringSamples.java index 81ff664a078d..27d4638ac918 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeletePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_DeletePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePortMirroring.json */ /** * Sample code: WorkloadNetworks_DeletePortMirroring. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPSamples.java similarity index 74% rename from sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpSamples.java rename to sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPSamples.java index 4e06022c3d80..de590aaf117c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksDeletePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePublicIP. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePublicIP.json */ /** * Sample code: WorkloadNetworks_DeletePublicIP. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentSamples.java index dfe14529d014..6157b021ff2e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksDeleteSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteSegment. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteSegment.json */ /** * Sample code: WorkloadNetworks_DeleteSegment. @@ -19,6 +17,7 @@ public final class WorkloadNetworksDeleteSegmentSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeleteSegment(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deleteSegment("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE); + manager.workloadNetworks() + .deleteSegment("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupSamples.java index ae56319d52b7..33e96f4a784c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksDeleteVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteVMGroup.json */ /** * Sample code: WorkloadNetworks_DeleteVMGroup. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpSamples.java index 9de666b36391..af258ade33e7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDhcp.json */ /** * Sample code: WorkloadNetworks_GetDhcp. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceSamples.java index 0cc858bd9c10..dc96930cd906 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksGetDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsService.json */ /** * Sample code: WorkloadNetworks_GetDnsService. @@ -20,6 +18,6 @@ public final class WorkloadNetworksGetDnsServiceSamples { */ public static void workloadNetworksGetDnsService(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE); + .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneSamples.java index c2815fcbc12e..9119dde3a2e3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsZone.json */ /** * Sample code: WorkloadNetworks_GetDnsZone. @@ -19,6 +18,6 @@ public final class WorkloadNetworksGetDnsZoneSamples { */ public static void workloadNetworksGetDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE); + .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewaySamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewaySamples.java index f3486b81b19d..6ca4de6b65b9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewaySamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewaySamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetGatewaySamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetGateway.json */ /** * Sample code: WorkloadNetworks_GetGateway. @@ -19,6 +18,6 @@ public final class WorkloadNetworksGetGatewaySamples { */ public static void workloadNetworksGetGateway(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getGatewayWithResponse("group1", "cloud1", "gateway1", com.azure.core.util.Context.NONE); + .getGatewayWithResponse("group1", "cloud1", null, "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringSamples.java index 7df72bd5cdd6..a4b30f8df574 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksGetPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPortMirroring.json */ /** * Sample code: WorkloadNetworks_GetPortMirroring. @@ -20,6 +18,6 @@ public final class WorkloadNetworksGetPortMirroringSamples { */ public static void workloadNetworksGetPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE); + .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPSamples.java similarity index 63% rename from sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpSamples.java rename to sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPSamples.java index afec46a6e605..513b3818d75f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetPublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPublicIP.json */ /** * Sample code: WorkloadNetworks_GetPublicIP. @@ -19,6 +18,6 @@ public final class WorkloadNetworksGetPublicIpSamples { */ public static void workloadNetworksGetPublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getPublicIpWithResponse("group1", "cloud1", "publicIP1", com.azure.core.util.Context.NONE); + .getPublicIpWithResponse("group1", "cloud1", null, "publicIP1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSamples.java index 31a9a042420e..0618a3ec89de 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_Get.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_Get.json */ /** * Sample code: WorkloadNetworks_Get. @@ -18,6 +17,6 @@ public final class WorkloadNetworksGetSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksGet(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentSamples.java index 2ba3e5817545..e1d5deff8e16 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetSegment.json */ /** * Sample code: WorkloadNetworks_GetSegment. @@ -19,6 +18,6 @@ public final class WorkloadNetworksGetSegmentSamples { */ public static void workloadNetworksGetSegment(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE); + .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupSamples.java index d48a6294e819..ce403e012b26 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVMGroup.json */ /** * Sample code: WorkloadNetworks_GetVMGroup. @@ -19,6 +18,6 @@ public final class WorkloadNetworksGetVMGroupSamples { */ public static void workloadNetworksGetVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE); + .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineSamples.java index d09cfb5bda60..704ecf6f0627 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksGetVirtualMachineSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine - * .json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVirtualMachine.json */ /** * Sample code: WorkloadNetworks_GetVirtualMachine. @@ -20,6 +18,6 @@ public final class WorkloadNetworksGetVirtualMachineSamples { */ public static void workloadNetworksGetVirtualMachine(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .getVirtualMachineWithResponse("group1", "cloud1", "vm1", com.azure.core.util.Context.NONE); + .getVirtualMachineWithResponse("group1", "cloud1", null, "vm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpSamples.java index 4c8a87521a6d..c6df4c634fd5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDhcp.json */ /** * Sample code: WorkloadNetworks_ListDhcp. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListDhcpSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDhcp("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDhcp("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesSamples.java index 60a4bc737357..24d16711729f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksListDnsServicesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsServices. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsServices.json */ /** * Sample code: WorkloadNetworks_ListDnsServices. @@ -19,6 +17,6 @@ public final class WorkloadNetworksListDnsServicesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDnsServices(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDnsServices("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDnsServices("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesSamples.java index f9764ac62cc2..c74950bf5231 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListDnsZonesSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsZones.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsZones.json */ /** * Sample code: WorkloadNetworks_ListDnsZones. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListDnsZonesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListDnsZones(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listDnsZones("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listDnsZones("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysSamples.java index c403f2db1160..4a45358671a1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListGatewaysSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListGateways.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListGateways.json */ /** * Sample code: WorkloadNetworks_ListGateways. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListGatewaysSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListGateways(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listGateways("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listGateways("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringSamples.java index e3f773675e00..e928f321298a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,9 +9,7 @@ */ public final class WorkloadNetworksListPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPortMirroring - * .json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPortMirroring.json */ /** * Sample code: WorkloadNetworks_ListPortMirroring. @@ -19,6 +17,6 @@ public final class WorkloadNetworksListPortMirroringSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listPortMirroring("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listPortMirroring("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsSamples.java index e6e186c759ae..7ebdc21f49d5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsSamples.java @@ -1,17 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; /** - * Samples for WorkloadNetworks ListPublicIPs. + * Samples for WorkloadNetworks ListPublicIps. */ -public final class WorkloadNetworksListPublicIPsSamples { +public final class WorkloadNetworksListPublicIpsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPublicIPs. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPublicIPs.json */ /** * Sample code: WorkloadNetworks_ListPublicIPs. @@ -19,6 +17,6 @@ public final class WorkloadNetworksListPublicIPsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListPublicIPs(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listPublicIPs("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listPublicIps("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSamples.java index d22de3e3f03e..06cd2407ed04 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_List.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_List.json */ /** * Sample code: WorkloadNetworks_List. diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsSamples.java index d7a18c67ed24..7eb9313d40e9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListSegmentsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListSegments.json */ /** * Sample code: WorkloadNetworks_ListSegments. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListSegmentsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListSegments(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listSegments("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listSegments("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsSamples.java index 4f2dfa22f588..b833e19e6e19 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListVMGroupsSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVMGroups.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVMGroups.json */ /** * Sample code: WorkloadNetworks_ListVMGroups. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListVMGroupsSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListVMGroups(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listVMGroups("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listVMGroups("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesSamples.java index bc01084c6c1d..d9602593cb7d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListVirtualMachinesSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_ListVirtualMachines.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVirtualMachines.json */ /** * Sample code: WorkloadNetworks_ListVirtualMachines. @@ -18,6 +17,6 @@ public final class WorkloadNetworksListVirtualMachinesSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksListVirtualMachines(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().listVirtualMachines("group1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().listVirtualMachines("group1", "cloud1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDhcpSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDhcpSamples.java deleted file mode 100644 index 7b51cb0dd66a..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDhcpSamples.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.generated; - -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcp; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; - -/** - * Samples for WorkloadNetworks UpdateDhcp. - */ -public final class WorkloadNetworksUpdateDhcpSamples { - /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDhcp.json - */ - /** - * Sample code: WorkloadNetworks_UpdateDhcp. - * - * @param manager Entry point to AvsManager. - */ - public static void workloadNetworksUpdateDhcp(com.azure.resourcemanager.avs.AvsManager manager) { - WorkloadNetworkDhcp resource = manager.workloadNetworks() - .getDhcpWithResponse("group1", "dhcp1", "cloud1", com.azure.core.util.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/generated/WorkloadNetworksUpdateDnsServiceSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsServiceSamples.java index a0cefc025c24..1eef1c4a98e3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsServiceSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsServiceSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,9 +13,7 @@ */ public final class WorkloadNetworksUpdateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsService. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsService.json */ /** * Sample code: WorkloadNetworks_UpdateDnsService. @@ -24,7 +22,7 @@ public final class WorkloadNetworksUpdateDnsServiceSamples { */ public static void workloadNetworksUpdateDnsService(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkDnsService resource = manager.workloadNetworks() - .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE) + .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDisplayName("dnsService1") diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsZoneSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsZoneSamples.java index a965cdc801c9..fec2f14848de 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsZoneSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateDnsZoneSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,9 +12,7 @@ */ public final class WorkloadNetworksUpdateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsZone. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsZone.json */ /** * Sample code: WorkloadNetworks_UpdateDnsZone. @@ -23,7 +21,7 @@ public final class WorkloadNetworksUpdateDnsZoneSamples { */ public static void workloadNetworksUpdateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkDnsZone resource = manager.workloadNetworks() - .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE) + .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDisplayName("dnsZone1") diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdatePortMirroringSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdatePortMirroringSamples.java index 476b91caecee..b86335da2b02 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdatePortMirroringSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdatePortMirroringSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksUpdatePortMirroringSamples { /* - * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ - * WorkloadNetworks_UpdatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdatePortMirroring.json */ /** * Sample code: WorkloadNetworks_UpdatePortMirroring. @@ -22,7 +21,7 @@ public final class WorkloadNetworksUpdatePortMirroringSamples { */ public static void workloadNetworksUpdatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkPortMirroring resource = manager.workloadNetworks() - .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE) + .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE) .getValue(); resource.update() .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentSamples.java new file mode 100644 index 000000000000..c8c5809dba24 --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.avs.generated; + +import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; + +/** + * Samples for WorkloadNetworks UpdateSegment. + */ +public final class WorkloadNetworksUpdateSegmentSamples { + /* + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateSegments.json + */ + /** + * Sample code: WorkloadNetworks_UpdateSegments. + * + * @param manager Entry point to AvsManager. + */ + public static void workloadNetworksUpdateSegments(com.azure.resourcemanager.avs.AvsManager manager) { + WorkloadNetworkSegment resource = manager.workloadNetworks() + .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } +} diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentsSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentsSamples.java deleted file mode 100644 index 6a0c67fff5dc..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateSegmentsSamples.java +++ /dev/null @@ -1,36 +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.generated; - -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 { - /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateSegments. - * json - */ - /** - * Sample code: WorkloadNetworks_UpdateSegments. - * - * @param manager Entry point to AvsManager. - */ - public static void workloadNetworksUpdateSegments(com.azure.resourcemanager.avs.AvsManager manager) { - WorkloadNetworkSegment resource = manager.workloadNetworks() - .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.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/generated/WorkloadNetworksUpdateVMGroupSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateVMGroupSamples.java index a0b31ee0c370..6ebdd5eb0d04 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateVMGroupSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksUpdateVMGroupSamples.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,9 +12,7 @@ */ public final class WorkloadNetworksUpdateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateVMGroup. - * json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateVMGroup.json */ /** * Sample code: WorkloadNetworks_UpdateVMGroup. @@ -23,7 +21,7 @@ public final class WorkloadNetworksUpdateVMGroupSamples { */ public static void workloadNetworksUpdateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { WorkloadNetworkVMGroup resource = manager.workloadNetworks() - .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE) + .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")).withRevision(1L).apply(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/AvsManagerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/AvsManagerTests.java deleted file mode 100644 index 6ce4e3c2ca82..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/AvsManagerTests.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.resourcemanager.avs; - -import com.azure.core.credential.TokenCredential; -import com.azure.core.http.policy.HttpLogDetailLevel; -import com.azure.core.http.policy.HttpLogOptions; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.Region; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.TestBase; -import com.azure.core.test.annotation.LiveOnly; -import com.azure.core.util.Configuration; -import com.azure.core.util.CoreUtils; -import com.azure.identity.AzurePowerShellCredentialBuilder; -import com.azure.resourcemanager.avs.models.ManagementCluster; -import com.azure.resourcemanager.avs.models.PrivateCloud; -import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; -import com.azure.resourcemanager.avs.models.Sku; -import com.azure.resourcemanager.resources.ResourceManager; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.Random; - -public class AvsManagerTests extends TestBase { - private static final Random RANDOM = new Random(); - private static final Region REGION = Region.US_WEST3; - private String resourceGroupName = "rg" + randomPadding(); - private AvsManager avsManager; - private ResourceManager resourceManager; - private boolean testEnv; - - @Override - public void beforeTest() { - final TokenCredential credential = new AzurePowerShellCredentialBuilder().build(); - final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); - - avsManager = AvsManager - .configure() - .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) - .authenticate(credential, profile); - - resourceManager = ResourceManager - .configure() - .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) - .authenticate(credential, profile) - .withDefaultSubscription(); - - // use AZURE_RESOURCE_GROUP_NAME if run in LIVE CI - String testResourceGroup = Configuration.getGlobalConfiguration().get("AZURE_RESOURCE_GROUP_NAME"); - testEnv = !CoreUtils.isNullOrEmpty(testResourceGroup); - if (testEnv) { - resourceGroupName = testResourceGroup; - } else { - resourceManager.resourceGroups() - .define(resourceGroupName) - .withRegion(REGION) - .create(); - } - } - - @Override - protected void afterTest() { - if (!testEnv) { - resourceManager.resourceGroups().beginDeleteByName(resourceGroupName); - } - } - - @Disabled("No quota in our test subscription for avs instances.") - @Test - @LiveOnly - public void testPrivateCloud() { - PrivateCloud privateCloud = null; - try { - String privateCloudsName = "privateCloud" + randomPadding(); - // @embedmeStart - privateCloud = avsManager.privateClouds() - .define(privateCloudsName) - .withRegion(REGION) - .withExistingResourceGroup(resourceGroupName) - .withSku(new Sku().withName("av36p")) - .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) - .withNetworkBlock("192.168.48.0/22") - .withManagementCluster(new ManagementCluster().withClusterSize(4)) - .create(); - // @embedmeEnd - privateCloud.refresh(); - Assertions.assertEquals(privateCloud.name(), privateCloudsName); - Assertions.assertEquals(privateCloud.name(), avsManager.privateClouds().getById(privateCloud.id()).name()); - Assertions.assertTrue(avsManager.privateClouds().list().stream().count() > 0); - } finally { - if (privateCloud != null) { - avsManager.privateClouds().deleteById(privateCloud.id()); - } - } - } - - private static String randomPadding() { - return String.format("%05d", Math.abs(RANDOM.nextInt() % 100000)); - } - -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonArcPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonArcPropertiesTests.java index a622cc4d89ae..6f8333001913 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonArcPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonArcPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,16 +11,16 @@ public final class AddonArcPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AddonArcProperties model = BinaryData - .fromString("{\"addonType\":\"Arc\",\"vCenter\":\"oezbrhubsk\",\"provisioningState\":\"Deleting\"}") - .toObject(AddonArcProperties.class); - Assertions.assertEquals("oezbrhubsk", model.vCenter()); + AddonArcProperties model + = BinaryData.fromString("{\"addonType\":\"Arc\",\"vCenter\":\"hxw\",\"provisioningState\":\"Succeeded\"}") + .toObject(AddonArcProperties.class); + Assertions.assertEquals("hxw", model.vCenter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddonArcProperties model = new AddonArcProperties().withVCenter("oezbrhubsk"); + AddonArcProperties model = new AddonArcProperties().withVCenter("hxw"); model = BinaryData.fromObject(model).toObject(AddonArcProperties.class); - Assertions.assertEquals("oezbrhubsk", model.vCenter()); + Assertions.assertEquals("hxw", model.vCenter()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonHcxPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonHcxPropertiesTests.java index 4e13501c0543..b5ec19a96536 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonHcxPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonHcxPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class AddonHcxPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonHcxProperties model - = BinaryData.fromString("{\"addonType\":\"HCX\",\"offer\":\"ygo\",\"provisioningState\":\"Succeeded\"}") + = BinaryData.fromString("{\"addonType\":\"HCX\",\"offer\":\"bzpfzab\",\"provisioningState\":\"Failed\"}") .toObject(AddonHcxProperties.class); - Assertions.assertEquals("ygo", model.offer()); + Assertions.assertEquals("bzpfzab", model.offer()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddonHcxProperties model = new AddonHcxProperties().withOffer("ygo"); + AddonHcxProperties model = new AddonHcxProperties().withOffer("bzpfzab"); model = BinaryData.fromObject(model).toObject(AddonHcxProperties.class); - Assertions.assertEquals("ygo", model.offer()); + Assertions.assertEquals("bzpfzab", model.offer()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonInnerTests.java index 3af28f82ca5a..e2eecf1a228e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,7 +12,7 @@ public final class AddonInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonInner model = BinaryData.fromString( - "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"},\"id\":\"dtopbob\",\"name\":\"og\",\"type\":\"m\"}") + "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"},\"id\":\"jancu\",\"name\":\"rhdwbavxbniw\",\"type\":\"jswztsdbpg\"}") .toObject(AddonInner.class); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonListTests.java index a96ced57501e..fc8929eac585 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonListTests.java @@ -1,33 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.AddonInner; -import com.azure.resourcemanager.avs.models.AddonList; -import com.azure.resourcemanager.avs.models.AddonProperties; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.AddonList; import org.junit.jupiter.api.Assertions; public final class AddonListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Failed\"},\"id\":\"j\",\"name\":\"oejctbzaqsqsy\",\"type\":\"bkbfkgukdkex\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Succeeded\"},\"id\":\"mxaxc\",\"name\":\"jpgd\",\"type\":\"toc\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Building\"},\"id\":\"pmouexhdz\",\"name\":\"i\",\"type\":\"qeojnxqbzvddntw\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"},\"id\":\"btwnpzaoqvuhrhcf\",\"name\":\"cyddglmjthjqk\",\"type\":\"pyeicxm\"}],\"nextLink\":\"iwqvhkh\"}") + "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Succeeded\"},\"id\":\"ankxmyskpbhenb\",\"name\":\"kcxywnyt\",\"type\":\"rsyn\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Canceled\"},\"id\":\"by\",\"name\":\"czfc\",\"type\":\"haaxdbabphl\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Cancelled\"},\"id\":\"ktsthsucocmny\",\"name\":\"azt\",\"type\":\"bt\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Canceled\"},\"id\":\"uedck\",\"name\":\"ywbiexzfeyueax\",\"type\":\"bxu\"}],\"nextLink\":\"bhqwalmuzyoxa\"}") .toObject(AddonList.class); - Assertions.assertEquals("iwqvhkh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AddonList model - = new AddonList().withValue(Arrays.asList(new AddonInner().withProperties(new AddonProperties()), - new AddonInner().withProperties(new AddonProperties()), - new AddonInner().withProperties(new AddonProperties()), - new AddonInner().withProperties(new AddonProperties()))).withNextLink("iwqvhkh"); - model = BinaryData.fromObject(model).toObject(AddonList.class); - Assertions.assertEquals("iwqvhkh", model.nextLink()); + Assertions.assertEquals("bhqwalmuzyoxa", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonPropertiesTests.java index d139b51673eb..b74cc70828d4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,7 +11,7 @@ public final class AddonPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonProperties model - = BinaryData.fromString("{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"}") + = BinaryData.fromString("{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Building\"}") .toObject(AddonProperties.class); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonVrPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonVrPropertiesTests.java index 325f3d737810..6029f4e9f425 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonVrPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonVrPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,16 +11,16 @@ public final class AddonVrPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AddonVrProperties model - = BinaryData.fromString("{\"addonType\":\"VR\",\"vrsCount\":470627507,\"provisioningState\":\"Cancelled\"}") - .toObject(AddonVrProperties.class); - Assertions.assertEquals(470627507, model.vrsCount()); + AddonVrProperties model = BinaryData + .fromString("{\"addonType\":\"VR\",\"vrsCount\":1275335894,\"provisioningState\":\"Succeeded\"}") + .toObject(AddonVrProperties.class); + Assertions.assertEquals(1275335894, model.vrsCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddonVrProperties model = new AddonVrProperties().withVrsCount(470627507); + AddonVrProperties model = new AddonVrProperties().withVrsCount(1275335894); model = BinaryData.fromObject(model).toObject(AddonVrProperties.class); - Assertions.assertEquals(470627507, model.vrsCount()); + Assertions.assertEquals(1275335894, model.vrsCount()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateMockTests.java index a6bb800b9a35..325740d30922 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class AddonsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Succeeded\"},\"id\":\"gnjdgkynscliqhz\",\"name\":\"h\",\"type\":\"nk\"}"; + = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Succeeded\"},\"id\":\"hriypoqeyhlqhy\",\"name\":\"prlpy\",\"type\":\"nuciqdsmexiit\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Addon response = manager.addons() - .define("auy") - .withExistingPrivateCloud("qyuvvfonkp", "hqyikvy") + .define("uyxoaf") + .withExistingPrivateCloud("qqxlajr", "wxacevehj") .withProperties(new AddonProperties()) .create(); diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsDeleteMockTests.java index d34353850f1c..4345543505ab 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.addons().delete("tj", "zysdzh", "zwwva", com.azure.core.util.Context.NONE); + manager.addons().delete("qgleohibetnluank", "rfxeeebtij", "acvbmqz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsGetWithResponseMockTests.java index 9845a5e335c7..b39facc42c5d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class AddonsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Building\"},\"id\":\"ho\",\"name\":\"dynhdwdigum\",\"type\":\"nraauzz\"}"; + = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Cancelled\"},\"id\":\"ojeevy\",\"name\":\"yhsgz\",\"type\":\"czbgomfgbeg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Addon response = manager.addons() - .getWithResponse("pkc", "ayzri", "khyawfvjlboxqv", com.azure.core.util.Context.NONE) + .getWithResponse("ctfnmdxotng", "dgug", "yzihgrkyuizabsn", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsListMockTests.java index 6c462a83c49b..52310e01b3f4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class AddonsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Updating\"},\"id\":\"glae\",\"name\":\"xndticokpvzmlqtm\",\"type\":\"dgxobfircl\"}]}"; + = "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Updating\"},\"id\":\"sccbiuimzd\",\"name\":\"yjdfqwmky\",\"type\":\"qufdvruzslzojh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,7 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.addons().list("utnwytpzdmovzvf", "aawzqadfl", com.azure.core.util.Context.NONE); + PagedIterable response = manager.addons().list("rjtloq", "fuojrngif", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteMockTests.java index 1fecf6badc62..9eb6e420d7e7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AuthorizationsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.authorizations().delete("sdymbrn", "suxmpraf", "g", com.azure.core.util.Context.NONE); + manager.authorizations().delete("mwmqtibx", "ijddtvqc", "tad", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AvailabilityPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AvailabilityPropertiesTests.java index 8b79b5c9fee1..a3dd7dae3edf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AvailabilityPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AvailabilityPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class AvailabilityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AvailabilityProperties model - = BinaryData.fromString("{\"strategy\":\"SingleZone\",\"zone\":1462222832,\"secondaryZone\":835826608}") + = BinaryData.fromString("{\"strategy\":\"SingleZone\",\"zone\":1403309762,\"secondaryZone\":1554551214}") .toObject(AvailabilityProperties.class); Assertions.assertEquals(AvailabilityStrategy.SINGLE_ZONE, model.strategy()); - Assertions.assertEquals(1462222832, model.zone()); - Assertions.assertEquals(835826608, model.secondaryZone()); + Assertions.assertEquals(1403309762, model.zone()); + Assertions.assertEquals(1554551214, model.secondaryZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AvailabilityProperties model = new AvailabilityProperties().withStrategy(AvailabilityStrategy.SINGLE_ZONE) - .withZone(1462222832) - .withSecondaryZone(835826608); + .withZone(1403309762) + .withSecondaryZone(1554551214); model = BinaryData.fromObject(model).toObject(AvailabilityProperties.class); Assertions.assertEquals(AvailabilityStrategy.SINGLE_ZONE, model.strategy()); - Assertions.assertEquals(1462222832, model.zone()); - Assertions.assertEquals(835826608, model.secondaryZone()); + Assertions.assertEquals(1403309762, model.zone()); + Assertions.assertEquals(1554551214, model.secondaryZone()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CircuitTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CircuitTests.java index 448914c38c64..1556269e244f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CircuitTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CircuitTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,7 +11,7 @@ public final class CircuitTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Circuit model = BinaryData.fromString( - "{\"primarySubnet\":\"yb\",\"secondarySubnet\":\"qedqytbciqfoufl\",\"expressRouteID\":\"nkzsmodmglou\",\"expressRoutePrivatePeeringID\":\"b\"}") + "{\"primarySubnet\":\"kao\",\"secondarySubnet\":\"yiftyhxhuro\",\"expressRouteID\":\"tyxolniwpwc\",\"expressRoutePrivatePeeringID\":\"jfkgiawxk\"}") .toObject(Circuit.class); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkInnerTests.java index ad75b14ffbfe..07b525e0f8c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class CloudLinkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudLinkInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Deleting\",\"linkedCloud\":\"nbacfi\"},\"id\":\"l\",\"name\":\"bxetqgtzxdpn\",\"type\":\"bqqwxrj\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Deleting\",\"linkedCloud\":\"rgvtqag\"},\"id\":\"uynhijg\",\"name\":\"mebf\",\"type\":\"iarbutrcvpna\"}") .toObject(CloudLinkInner.class); - Assertions.assertEquals("nbacfi", model.linkedCloud()); + Assertions.assertEquals("rgvtqag", model.linkedCloud()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudLinkInner model = new CloudLinkInner().withLinkedCloud("nbacfi"); + CloudLinkInner model = new CloudLinkInner().withLinkedCloud("rgvtqag"); model = BinaryData.fromObject(model).toObject(CloudLinkInner.class); - Assertions.assertEquals("nbacfi", model.linkedCloud()); + Assertions.assertEquals("rgvtqag", model.linkedCloud()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkListTests.java index 81d4e6819f4d..55d540f1fdff 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkListTests.java @@ -1,33 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.CloudLinkInner; -import com.azure.resourcemanager.avs.models.CloudLinkList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.CloudLinkList; import org.junit.jupiter.api.Assertions; public final class CloudLinkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudLinkList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Failed\",\"linkedCloud\":\"nxkrx\"},\"id\":\"mi\",\"name\":\"tthzrvqd\",\"type\":\"abhjybi\"},{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Failed\",\"linkedCloud\":\"owskanyktz\"},\"id\":\"u\",\"name\":\"y\",\"type\":\"gqywgndrv\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Failed\",\"linkedCloud\":\"hrc\"},\"id\":\"nc\",\"name\":\"cpecfvmmcoofs\",\"type\":\"lzevgbmqjqab\"}],\"nextLink\":\"pmivkwlzu\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Active\",\"linkedCloud\":\"mpvecxgodebfqk\"},\"id\":\"bmpukgriwflz\",\"name\":\"fbxzpuzycisp\",\"type\":\"qzahmgkbrp\"}],\"nextLink\":\"dhibnuq\"}") .toObject(CloudLinkList.class); - Assertions.assertEquals("nxkrx", model.value().get(0).linkedCloud()); - Assertions.assertEquals("pmivkwlzu", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudLinkList model = new CloudLinkList() - .withValue(Arrays.asList(new CloudLinkInner().withLinkedCloud("nxkrx"), - new CloudLinkInner().withLinkedCloud("owskanyktz"), new CloudLinkInner().withLinkedCloud("hrc"))) - .withNextLink("pmivkwlzu"); - model = BinaryData.fromObject(model).toObject(CloudLinkList.class); - Assertions.assertEquals("nxkrx", model.value().get(0).linkedCloud()); - Assertions.assertEquals("pmivkwlzu", model.nextLink()); + Assertions.assertEquals("mpvecxgodebfqk", model.value().get(0).linkedCloud()); + Assertions.assertEquals("dhibnuq", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkPropertiesTests.java index 805075823dcc..85e2b65b0da1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class CloudLinkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudLinkProperties model = BinaryData - .fromString("{\"provisioningState\":\"Succeeded\",\"status\":\"Building\",\"linkedCloud\":\"wsubisnja\"}") + .fromString("{\"provisioningState\":\"Failed\",\"status\":\"Deleting\",\"linkedCloud\":\"unmpxttd\"}") .toObject(CloudLinkProperties.class); - Assertions.assertEquals("wsubisnja", model.linkedCloud()); + Assertions.assertEquals("unmpxttd", model.linkedCloud()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudLinkProperties model = new CloudLinkProperties().withLinkedCloud("wsubisnja"); + CloudLinkProperties model = new CloudLinkProperties().withLinkedCloud("unmpxttd"); model = BinaryData.fromObject(model).toObject(CloudLinkProperties.class); - Assertions.assertEquals("wsubisnja", model.linkedCloud()); + Assertions.assertEquals("unmpxttd", model.linkedCloud()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateMockTests.java index 22606108aaf2..3785a1c3d23a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class CloudLinksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Building\",\"linkedCloud\":\"wcluqovekqvgq\"},\"id\":\"wifzmp\",\"name\":\"wyivqikf\",\"type\":\"cvhrfsp\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Building\",\"linkedCloud\":\"gydcw\"},\"id\":\"xjumvq\",\"name\":\"olihrra\",\"type\":\"ouau\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CloudLink response = manager.cloudLinks() - .define("pe") - .withExistingPrivateCloud("ysownbtgkbug", "jqctojcmisofie") - .withLinkedCloud("cuplcplcwkhih") + .define("uxswqrntvl") + .withExistingPrivateCloud("chzyvlixqnrk", "xkjibnxmy") + .withLinkedCloud("exoqqpwcyyufm") .create(); - Assertions.assertEquals("wcluqovekqvgq", response.linkedCloud()); + Assertions.assertEquals("gydcw", response.linkedCloud()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteMockTests.java index 367ffbf3004d..3fd2f64f5f43 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.cloudLinks().delete("qwogfnzjvus", "zldmozuxy", "fsbtkad", com.azure.core.util.Context.NONE); + manager.cloudLinks().delete("lniexz", "rzpgep", "tybbwwpgda", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksGetWithResponseMockTests.java index b057d0e9a16d..908971421d8b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class CloudLinksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Active\",\"linkedCloud\":\"ra\"},\"id\":\"aawiuagydwqfb\",\"name\":\"lyr\",\"type\":\"giagtcojo\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Deleting\",\"linkedCloud\":\"bbelawumuaslzk\"},\"id\":\"rwoycqucwyh\",\"name\":\"hnomdrkywuh\",\"type\":\"svfuurutlwexxwl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CloudLink response = manager.cloudLinks() - .getWithResponse("nzeyqxtjj", "zqlqhyc", "vodggxdbee", com.azure.core.util.Context.NONE) + .getWithResponse("oldforobw", "lvizb", "hfovvacqpbtu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ra", response.linkedCloud()); + Assertions.assertEquals("bbelawumuaslzk", response.linkedCloud()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksListMockTests.java index de319ffba6b8..250b2c2a4897 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinksListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class CloudLinksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Active\",\"linkedCloud\":\"hmfdnbzydvfvfcj\"},\"id\":\"eoisrvhmgor\",\"name\":\"fukiscvwmzhw\",\"type\":\"lefaxvxilcbtgn\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Active\",\"linkedCloud\":\"fdgnwncypuuwwlt\"},\"id\":\"qjctzenkeif\",\"name\":\"zhmkdasvflyh\",\"type\":\"xcudchxgsr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.cloudLinks().list("xg", "moy", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.cloudLinks().list("lpmjerb", "kelvidizozsdb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hmfdnbzydvfvfcj", response.iterator().next().linkedCloud()); + Assertions.assertEquals("fdgnwncypuuwwlt", response.iterator().next().linkedCloud()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterInnerTests.java index 16379f4ecf47..a9a43acfa9b1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -15,37 +15,37 @@ public final class ClusterInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterInner model = BinaryData.fromString( - "{\"properties\":{\"clusterSize\":1625524147,\"provisioningState\":\"Deleting\",\"clusterId\":55863349,\"hosts\":[\"ltyfsop\",\"usue\",\"nzwdejba\",\"orxzdmohctbqvud\"],\"vsanDatastoreName\":\"dndnvow\"},\"sku\":{\"name\":\"ujjugwdkcglh\",\"tier\":\"Basic\",\"size\":\"jdyggdtji\",\"family\":\"b\",\"capacity\":2140516005},\"id\":\"qweykhmenev\",\"name\":\"yexfwh\",\"type\":\"bcibvyvdcsitynn\"}") + "{\"properties\":{\"clusterSize\":2024300309,\"provisioningState\":\"Failed\",\"clusterId\":804356907,\"hosts\":[\"vpk\",\"lrxnjeaseiphe\",\"f\",\"okeyyienj\"],\"vsanDatastoreName\":\"lwtgrhpdj\"},\"sku\":{\"name\":\"jumasx\",\"tier\":\"Basic\",\"size\":\"qyeg\",\"family\":\"lhbxxhejjzzvdud\",\"capacity\":621270176},\"id\":\"lfh\",\"name\":\"twmcynpwlb\",\"type\":\"npgacftade\"}") .toObject(ClusterInner.class); - Assertions.assertEquals("ujjugwdkcglh", model.sku().name()); + Assertions.assertEquals("jumasx", model.sku().name()); Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("jdyggdtji", model.sku().size()); - Assertions.assertEquals("b", model.sku().family()); - Assertions.assertEquals(2140516005, model.sku().capacity()); - Assertions.assertEquals(1625524147, model.clusterSize()); - Assertions.assertEquals("ltyfsop", model.hosts().get(0)); - Assertions.assertEquals("dndnvow", model.vsanDatastoreName()); + Assertions.assertEquals("qyeg", model.sku().size()); + Assertions.assertEquals("lhbxxhejjzzvdud", model.sku().family()); + Assertions.assertEquals(621270176, model.sku().capacity()); + Assertions.assertEquals(2024300309, model.clusterSize()); + Assertions.assertEquals("vpk", model.hosts().get(0)); + Assertions.assertEquals("lwtgrhpdj", model.vsanDatastoreName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterInner model = new ClusterInner() - .withSku(new Sku().withName("ujjugwdkcglh") + .withSku(new Sku().withName("jumasx") .withTier(SkuTier.BASIC) - .withSize("jdyggdtji") - .withFamily("b") - .withCapacity(2140516005)) - .withClusterSize(1625524147) - .withHosts(Arrays.asList("ltyfsop", "usue", "nzwdejba", "orxzdmohctbqvud")) - .withVsanDatastoreName("dndnvow"); + .withSize("qyeg") + .withFamily("lhbxxhejjzzvdud") + .withCapacity(621270176)) + .withClusterSize(2024300309) + .withHosts(Arrays.asList("vpk", "lrxnjeaseiphe", "f", "okeyyienj")) + .withVsanDatastoreName("lwtgrhpdj"); model = BinaryData.fromObject(model).toObject(ClusterInner.class); - Assertions.assertEquals("ujjugwdkcglh", model.sku().name()); + Assertions.assertEquals("jumasx", model.sku().name()); Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("jdyggdtji", model.sku().size()); - Assertions.assertEquals("b", model.sku().family()); - Assertions.assertEquals(2140516005, model.sku().capacity()); - Assertions.assertEquals(1625524147, model.clusterSize()); - Assertions.assertEquals("ltyfsop", model.hosts().get(0)); - Assertions.assertEquals("dndnvow", model.vsanDatastoreName()); + Assertions.assertEquals("qyeg", model.sku().size()); + Assertions.assertEquals("lhbxxhejjzzvdud", model.sku().family()); + Assertions.assertEquals(621270176, model.sku().capacity()); + Assertions.assertEquals(2024300309, model.clusterSize()); + Assertions.assertEquals("vpk", model.hosts().get(0)); + Assertions.assertEquals("lwtgrhpdj", model.vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterListTests.java index 3d51476443b9..f4a823f4ffa1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterListTests.java @@ -1,54 +1,28 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.ClusterInner; -import com.azure.resourcemanager.avs.models.ClusterList; -import com.azure.resourcemanager.avs.models.Sku; +import com.azure.resourcemanager.avs.implementation.models.ClusterList; import com.azure.resourcemanager.avs.models.SkuTier; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class ClusterListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"clusterSize\":409786419,\"provisioningState\":\"Failed\",\"clusterId\":86962705,\"hosts\":[\"qwoochcbon\"],\"vsanDatastoreName\":\"pkvlrxn\"},\"sku\":{\"name\":\"ea\",\"tier\":\"Premium\",\"size\":\"heoflokeyyienjbd\",\"family\":\"tgrhpdjpjumas\",\"capacity\":271162944},\"id\":\"pqyegualhbxxh\",\"name\":\"jj\",\"type\":\"zvdudgwdslfhotwm\"}],\"nextLink\":\"npwlbjnpg\"}") + "{\"value\":[{\"properties\":{\"clusterSize\":1323879070,\"provisioningState\":\"Deleting\",\"clusterId\":1853852705,\"hosts\":[\"hhbcsglummajtjao\",\"xobnbdxkqpxok\"],\"vsanDatastoreName\":\"ionpimexg\"},\"sku\":{\"name\":\"txgcpodgmaajr\",\"tier\":\"Basic\",\"size\":\"wzrlovmclwhij\",\"family\":\"ejctbzaqsqsycb\",\"capacity\":1508721218},\"id\":\"gukdkexxppo\",\"name\":\"mxaxc\",\"type\":\"jpgd\"},{\"properties\":{\"clusterSize\":263932996,\"provisioningState\":\"Cancelled\",\"clusterId\":1680873734,\"hosts\":[\"mouexhdzx\",\"bqe\",\"jnxqbzvddntwn\"],\"vsanDatastoreName\":\"icbtwnpzao\"},\"sku\":{\"name\":\"vuhrhcffcyddgl\",\"tier\":\"Free\",\"size\":\"jqkwpyeicx\",\"family\":\"ciwqvhk\",\"capacity\":1053923929},\"id\":\"igdtopbob\",\"name\":\"og\",\"type\":\"m\"},{\"properties\":{\"clusterSize\":35431541,\"provisioningState\":\"Canceled\",\"clusterId\":1242660761,\"hosts\":[\"ayvvtpgvdf\"],\"vsanDatastoreName\":\"otkftutqxlngx\"},\"sku\":{\"name\":\"efgugnxk\",\"tier\":\"Basic\",\"size\":\"mi\",\"family\":\"thz\",\"capacity\":2050810494},\"id\":\"rabhjybigeho\",\"name\":\"fbowskanyk\",\"type\":\"zlcuiywgqywgndrv\"},{\"properties\":{\"clusterSize\":1744996179,\"provisioningState\":\"Canceled\",\"clusterId\":539523379,\"hosts\":[\"gyncocpecfvmmc\",\"ofsx\",\"zevgb\"],\"vsanDatastoreName\":\"jqabcypmivkwlzuv\"},\"sku\":{\"name\":\"c\",\"tier\":\"Premium\",\"size\":\"nbacfi\",\"family\":\"l\",\"capacity\":10134075},\"id\":\"tqgtzxdpnqbqq\",\"name\":\"xrjfeallnwsub\",\"type\":\"snjampmng\"}],\"nextLink\":\"scxaq\"}") .toObject(ClusterList.class); - Assertions.assertEquals("ea", model.value().get(0).sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.value().get(0).sku().tier()); - Assertions.assertEquals("heoflokeyyienjbd", model.value().get(0).sku().size()); - Assertions.assertEquals("tgrhpdjpjumas", model.value().get(0).sku().family()); - Assertions.assertEquals(271162944, model.value().get(0).sku().capacity()); - Assertions.assertEquals(409786419, model.value().get(0).clusterSize()); - Assertions.assertEquals("qwoochcbon", model.value().get(0).hosts().get(0)); - Assertions.assertEquals("pkvlrxn", model.value().get(0).vsanDatastoreName()); - Assertions.assertEquals("npwlbjnpg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterList model = new ClusterList().withValue(Arrays.asList(new ClusterInner() - .withSku(new Sku().withName("ea") - .withTier(SkuTier.PREMIUM) - .withSize("heoflokeyyienjbd") - .withFamily("tgrhpdjpjumas") - .withCapacity(271162944)) - .withClusterSize(409786419) - .withHosts(Arrays.asList("qwoochcbon")) - .withVsanDatastoreName("pkvlrxn"))).withNextLink("npwlbjnpg"); - model = BinaryData.fromObject(model).toObject(ClusterList.class); - Assertions.assertEquals("ea", model.value().get(0).sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.value().get(0).sku().tier()); - Assertions.assertEquals("heoflokeyyienjbd", model.value().get(0).sku().size()); - Assertions.assertEquals("tgrhpdjpjumas", model.value().get(0).sku().family()); - Assertions.assertEquals(271162944, model.value().get(0).sku().capacity()); - Assertions.assertEquals(409786419, model.value().get(0).clusterSize()); - Assertions.assertEquals("qwoochcbon", model.value().get(0).hosts().get(0)); - Assertions.assertEquals("pkvlrxn", model.value().get(0).vsanDatastoreName()); - Assertions.assertEquals("npwlbjnpg", model.nextLink()); + Assertions.assertEquals("txgcpodgmaajr", model.value().get(0).sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.value().get(0).sku().tier()); + Assertions.assertEquals("wzrlovmclwhij", model.value().get(0).sku().size()); + Assertions.assertEquals("ejctbzaqsqsycb", model.value().get(0).sku().family()); + Assertions.assertEquals(1508721218, model.value().get(0).sku().capacity()); + Assertions.assertEquals(1323879070, model.value().get(0).clusterSize()); + Assertions.assertEquals("hhbcsglummajtjao", model.value().get(0).hosts().get(0)); + Assertions.assertEquals("ionpimexg", model.value().get(0).vsanDatastoreName()); + Assertions.assertEquals("scxaq", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterPropertiesTests.java index dcb7a7a6290d..c63a5373aad2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class ClusterPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterProperties model = BinaryData.fromString( - "{\"clusterSize\":1611277697,\"provisioningState\":\"Updating\",\"clusterId\":1602339472,\"hosts\":[\"f\",\"qsc\",\"eypvhezrkg\",\"hcjrefovgmk\"],\"vsanDatastoreName\":\"leyyvx\"}") + "{\"clusterSize\":2035779275,\"provisioningState\":\"Cancelled\",\"clusterId\":1099330569,\"hosts\":[\"ppusuesnzwdejba\",\"orxzdmohctbqvud\",\"xdn\"],\"vsanDatastoreName\":\"vo\"}") .toObject(ClusterProperties.class); - Assertions.assertEquals(1611277697, model.clusterSize()); - Assertions.assertEquals("f", model.hosts().get(0)); - Assertions.assertEquals("leyyvx", model.vsanDatastoreName()); + Assertions.assertEquals(2035779275, model.clusterSize()); + Assertions.assertEquals("ppusuesnzwdejba", model.hosts().get(0)); + Assertions.assertEquals("vo", model.vsanDatastoreName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterProperties model = new ClusterProperties().withClusterSize(1611277697) - .withHosts(Arrays.asList("f", "qsc", "eypvhezrkg", "hcjrefovgmk")) - .withVsanDatastoreName("leyyvx"); + ClusterProperties model = new ClusterProperties().withClusterSize(2035779275) + .withHosts(Arrays.asList("ppusuesnzwdejba", "orxzdmohctbqvud", "xdn")) + .withVsanDatastoreName("vo"); model = BinaryData.fromObject(model).toObject(ClusterProperties.class); - Assertions.assertEquals(1611277697, model.clusterSize()); - Assertions.assertEquals("f", model.hosts().get(0)); - Assertions.assertEquals("leyyvx", model.vsanDatastoreName()); + Assertions.assertEquals(2035779275, model.clusterSize()); + Assertions.assertEquals("ppusuesnzwdejba", model.hosts().get(0)); + Assertions.assertEquals("vo", model.vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdatePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdatePropertiesTests.java index 318ed7859332..f714a02f1fd5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdatePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdatePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,18 +13,18 @@ public final class ClusterUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterUpdateProperties model - = BinaryData.fromString("{\"clusterSize\":1961920372,\"hosts\":[\"uiuaodsfcpkvxodp\"]}") + = BinaryData.fromString("{\"clusterSize\":31402912,\"hosts\":[\"fyexfwhy\",\"cibvyvdcsitynn\"]}") .toObject(ClusterUpdateProperties.class); - Assertions.assertEquals(1961920372, model.clusterSize()); - Assertions.assertEquals("uiuaodsfcpkvxodp", model.hosts().get(0)); + Assertions.assertEquals(31402912, model.clusterSize()); + Assertions.assertEquals("fyexfwhy", model.hosts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterUpdateProperties model - = new ClusterUpdateProperties().withClusterSize(1961920372).withHosts(Arrays.asList("uiuaodsfcpkvxodp")); + ClusterUpdateProperties model = new ClusterUpdateProperties().withClusterSize(31402912) + .withHosts(Arrays.asList("fyexfwhy", "cibvyvdcsitynn")); model = BinaryData.fromObject(model).toObject(ClusterUpdateProperties.class); - Assertions.assertEquals(1961920372, model.clusterSize()); - Assertions.assertEquals("uiuaodsfcpkvxodp", model.hosts().get(0)); + Assertions.assertEquals(31402912, model.clusterSize()); + Assertions.assertEquals("fyexfwhy", model.hosts().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdateTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdateTests.java index 58dfb947d57f..0e3f65f1d48a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdateTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -15,35 +15,31 @@ public final class ClusterUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterUpdate model = BinaryData.fromString( - "{\"sku\":{\"name\":\"jpkcattpng\",\"tier\":\"Standard\",\"size\":\"czsqpjhvm\",\"family\":\"jvnysounqe\",\"capacity\":904416760},\"properties\":{\"clusterSize\":1054713689,\"hosts\":[\"fhyhltrpmopjmcma\",\"u\"]}}") + "{\"sku\":{\"name\":\"ujjugwdkcglh\",\"tier\":\"Basic\",\"size\":\"jdyggdtji\",\"family\":\"b\",\"capacity\":2140516005},\"properties\":{\"clusterSize\":662259969,\"hosts\":[\"kh\"]}}") .toObject(ClusterUpdate.class); - Assertions.assertEquals("jpkcattpng", model.sku().name()); - Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); - Assertions.assertEquals("czsqpjhvm", model.sku().size()); - Assertions.assertEquals("jvnysounqe", model.sku().family()); - Assertions.assertEquals(904416760, model.sku().capacity()); - Assertions.assertEquals(1054713689, model.clusterSize()); - Assertions.assertEquals("fhyhltrpmopjmcma", model.hosts().get(0)); + Assertions.assertEquals("ujjugwdkcglh", model.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); + Assertions.assertEquals("jdyggdtji", model.sku().size()); + Assertions.assertEquals("b", model.sku().family()); + Assertions.assertEquals(2140516005, model.sku().capacity()); + Assertions.assertEquals(662259969, model.clusterSize()); + Assertions.assertEquals("kh", model.hosts().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterUpdate model - = new ClusterUpdate() - .withSku(new Sku().withName("jpkcattpng") - .withTier(SkuTier.STANDARD) - .withSize("czsqpjhvm") - .withFamily("jvnysounqe") - .withCapacity(904416760)) - .withClusterSize(1054713689) - .withHosts(Arrays.asList("fhyhltrpmopjmcma", "u")); + ClusterUpdate model = new ClusterUpdate().withSku(new Sku().withName("ujjugwdkcglh") + .withTier(SkuTier.BASIC) + .withSize("jdyggdtji") + .withFamily("b") + .withCapacity(2140516005)).withClusterSize(662259969).withHosts(Arrays.asList("kh")); model = BinaryData.fromObject(model).toObject(ClusterUpdate.class); - Assertions.assertEquals("jpkcattpng", model.sku().name()); - Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); - Assertions.assertEquals("czsqpjhvm", model.sku().size()); - Assertions.assertEquals("jvnysounqe", model.sku().family()); - Assertions.assertEquals(904416760, model.sku().capacity()); - Assertions.assertEquals(1054713689, model.clusterSize()); - Assertions.assertEquals("fhyhltrpmopjmcma", model.hosts().get(0)); + Assertions.assertEquals("ujjugwdkcglh", model.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); + Assertions.assertEquals("jdyggdtji", model.sku().size()); + Assertions.assertEquals("b", model.sku().family()); + Assertions.assertEquals(2140516005, model.sku().capacity()); + Assertions.assertEquals(662259969, model.clusterSize()); + Assertions.assertEquals("kh", model.hosts().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneListInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneListInnerTests.java index 8651e4b59785..54d5ac2fd821 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneListInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneListInnerTests.java @@ -1,26 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.avs.fluent.models.ClusterZoneListInner; -import com.azure.resourcemanager.avs.models.ClusterZone; -import java.util.Arrays; public final class ClusterZoneListInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterZoneListInner model = BinaryData.fromString( - "{\"zones\":[{\"hosts\":[\"zrnkcqvyxlwh\",\"lsicohoqqnwv\",\"ryavwhheunmmqh\",\"yxzk\"],\"zone\":\"ocukoklyax\"},{\"hosts\":[\"nuqszfkbey\"],\"zone\":\"wrmjmwvvjektc\"}]}") + "{\"zones\":[{\"hosts\":[\"ctehfiqscjey\",\"vhezrkgqhcj\"],\"zone\":\"fovgmkqsleyyvxy\"},{\"hosts\":[\"k\"],\"zone\":\"t\"},{\"hosts\":[\"gjcrcczsqpjhvm\"],\"zone\":\"jvnysounqe\"},{\"hosts\":[\"oaeupfhyhltrpmo\"],\"zone\":\"mcmatuokthfuiu\"}]}") .toObject(ClusterZoneListInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterZoneListInner model - = new ClusterZoneListInner().withZones(Arrays.asList(new ClusterZone(), new ClusterZone())); - model = BinaryData.fromObject(model).toObject(ClusterZoneListInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneTests.java index b13b73ba7d10..fd20fd264d70 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClusterZoneTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -10,14 +10,8 @@ public final class ClusterZoneTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterZone model - = BinaryData.fromString("{\"hosts\":[\"nhwlrsffrzpwvl\",\"dqgbiqylihkaetc\"],\"zone\":\"vfcivfsnkymuc\"}") - .toObject(ClusterZone.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterZone model = new ClusterZone(); - model = BinaryData.fromObject(model).toObject(ClusterZone.class); + ClusterZone model = BinaryData.fromString( + "{\"hosts\":[\"sfcpkvxodpuozm\",\"zydagfuaxbezyiuo\",\"ktwh\",\"dxwzywqsmbsurexi\"],\"zone\":\"ryocfsfksymdd\"}") + .toObject(ClusterZone.class); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateMockTests.java index 2e4f6ab4e0c5..0407118906b9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -24,7 +24,7 @@ public final class ClustersCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"clusterSize\":312575916,\"provisioningState\":\"Succeeded\",\"clusterId\":1231243109,\"hosts\":[\"nbixxrti\"],\"vsanDatastoreName\":\"cpwpg\"},\"sku\":{\"name\":\"lrcivtsoxfrke\",\"tier\":\"Premium\",\"size\":\"yyefrpmpdnqqs\",\"family\":\"waoqvmmb\",\"capacity\":538705263},\"id\":\"rtql\",\"name\":\"zmegnitgvk\",\"type\":\"lzyqd\"}"; + = "{\"properties\":{\"clusterSize\":1623870921,\"provisioningState\":\"Succeeded\",\"clusterId\":1561642293,\"hosts\":[\"mbnpqf\",\"tqlkz\",\"egnitg\"],\"vsanDatastoreName\":\"xlzyqd\"},\"sku\":{\"name\":\"fegcea\",\"tier\":\"Free\",\"size\":\"hcans\",\"family\":\"oyqhlwig\",\"capacity\":195483853},\"id\":\"kbxgom\",\"name\":\"ajuwas\",\"type\":\"vdaeyyguxakjsq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,25 +34,25 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Cluster response = manager.clusters() - .define("vetnwsdtutn") - .withExistingPrivateCloud("a", "cqusr") - .withSku(new Sku().withName("udypohyuems") - .withTier(SkuTier.PREMIUM) - .withSize("qyrp") - .withFamily("obrltt") - .withCapacity(2105592893)) - .withClusterSize(1517277198) - .withHosts(Arrays.asList("yrmewipmvekdx", "kuqgsjjxundxgket", "zhhzjhfjmhvvmu", "gpmuneqsxvmhfbuz")) - .withVsanDatastoreName("ihsasb") + .define("muvgp") + .withExistingPrivateCloud("xundxgk", "twzhhzjhfjmhv") + .withSku(new Sku().withName("tilaxh") + .withTier(SkuTier.BASIC) + .withSize("lyvijouwiv") + .withFamily("oyzunbixxr") + .withCapacity(324590076)) + .withClusterSize(1059094634) + .withHosts(Arrays.asList("fbuzjyihs", "sbhud", "pohyuemslynsqyr", "foobrlttyms")) + .withVsanDatastoreName("ygqdnfwqzdz") .create(); - Assertions.assertEquals("lrcivtsoxfrke", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("yyefrpmpdnqqs", response.sku().size()); - Assertions.assertEquals("waoqvmmb", response.sku().family()); - Assertions.assertEquals(538705263, response.sku().capacity()); - Assertions.assertEquals(312575916, response.clusterSize()); - Assertions.assertEquals("nbixxrti", response.hosts().get(0)); - Assertions.assertEquals("cpwpg", response.vsanDatastoreName()); + Assertions.assertEquals("fegcea", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("hcans", response.sku().size()); + Assertions.assertEquals("oyqhlwig", response.sku().family()); + Assertions.assertEquals(195483853, response.sku().capacity()); + Assertions.assertEquals(1623870921, response.clusterSize()); + Assertions.assertEquals("mbnpqf", response.hosts().get(0)); + Assertions.assertEquals("xlzyqd", response.vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersDeleteMockTests.java index cad841f4e2c3..6705a89a67cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.clusters().delete("jhlfzswpchwahf", "ousnfepgfewe", "wlyxgncxyk", com.azure.core.util.Context.NONE); + manager.clusters().delete("hdjhlimmbcx", "h", "cporxvxcjz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersGetWithResponseMockTests.java index 5156f6d726c6..c3d95b75444c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class ClustersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"clusterSize\":754106802,\"provisioningState\":\"Failed\",\"clusterId\":1484369172,\"hosts\":[\"ohu\"],\"vsanDatastoreName\":\"wtwko\"},\"sku\":{\"name\":\"zwculkbawpfajnj\",\"tier\":\"Premium\",\"size\":\"wtjjguktalhsnv\",\"family\":\"dmxzr\",\"capacity\":596889388},\"id\":\"mlnwiaaomylweazu\",\"name\":\"cse\",\"type\":\"hwwn\"}"; + = "{\"properties\":{\"clusterSize\":1694247660,\"provisioningState\":\"Deleting\",\"clusterId\":434289365,\"hosts\":[\"nvkcdmxzrpoa\"],\"vsanDatastoreName\":\"lnwiaaomylwe\"},\"sku\":{\"name\":\"z\",\"tier\":\"Free\",\"size\":\"ethwwnpjhlfz\",\"family\":\"pchwa\",\"capacity\":1123060599},\"id\":\"usnfepgfewet\",\"name\":\"l\",\"type\":\"xgncxyk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Cluster response = manager.clusters() - .getWithResponse("beitpkx", "tmo", "bklftidgfcwqmpim", com.azure.core.util.Context.NONE) + .getWithResponse("pimaqxzhemjyh", "hujswtwkozzwcul", "bawpfajnjwltlwt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zwculkbawpfajnj", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("wtjjguktalhsnv", response.sku().size()); - Assertions.assertEquals("dmxzr", response.sku().family()); - Assertions.assertEquals(596889388, response.sku().capacity()); - Assertions.assertEquals(754106802, response.clusterSize()); - Assertions.assertEquals("ohu", response.hosts().get(0)); - Assertions.assertEquals("wtwko", response.vsanDatastoreName()); + Assertions.assertEquals("z", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("ethwwnpjhlfz", response.sku().size()); + Assertions.assertEquals("pchwa", response.sku().family()); + Assertions.assertEquals(1123060599, response.sku().capacity()); + Assertions.assertEquals(1694247660, response.clusterSize()); + Assertions.assertEquals("nvkcdmxzrpoa", response.hosts().get(0)); + Assertions.assertEquals("lnwiaaomylwe", response.vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListMockTests.java index 745381b6e3ba..4633281c2a5c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class ClustersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"clusterSize\":602518095,\"provisioningState\":\"Canceled\",\"clusterId\":982758961,\"hosts\":[\"qibrtalme\",\"ttwgdsl\",\"xih\",\"rmooizqse\"],\"vsanDatastoreName\":\"xiutcx\"},\"sku\":{\"name\":\"pzhyr\",\"tier\":\"Standard\",\"size\":\"g\",\"family\":\"joxslhvnhla\",\"capacity\":107871538},\"id\":\"kkzjcjbtrga\",\"name\":\"hvv\",\"type\":\"brxjjsto\"}]}"; + = "{\"value\":[{\"properties\":{\"clusterSize\":418488184,\"provisioningState\":\"Cancelled\",\"clusterId\":145023209,\"hosts\":[\"xapzhyrpet\"],\"vsanDatastoreName\":\"e\"},\"sku\":{\"name\":\"joxslhvnhla\",\"tier\":\"Free\",\"size\":\"kkzjcjbtrga\",\"family\":\"vvib\",\"capacity\":279366719},\"id\":\"s\",\"name\":\"oqbeitpkxzt\",\"type\":\"oobklftidgfcwq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.clusters().list("uagrttikteusqc", "kvyklxubyjaffmm", com.azure.core.util.Context.NONE); + = manager.clusters().list("metttwgd", "lqxihhrmooiz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("pzhyr", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.STANDARD, response.iterator().next().sku().tier()); - Assertions.assertEquals("g", response.iterator().next().sku().size()); - Assertions.assertEquals("joxslhvnhla", response.iterator().next().sku().family()); - Assertions.assertEquals(107871538, response.iterator().next().sku().capacity()); - Assertions.assertEquals(602518095, response.iterator().next().clusterSize()); - Assertions.assertEquals("qibrtalme", response.iterator().next().hosts().get(0)); - Assertions.assertEquals("xiutcx", response.iterator().next().vsanDatastoreName()); + Assertions.assertEquals("joxslhvnhla", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("kkzjcjbtrga", response.iterator().next().sku().size()); + Assertions.assertEquals("vvib", response.iterator().next().sku().family()); + Assertions.assertEquals(279366719, response.iterator().next().sku().capacity()); + Assertions.assertEquals(418488184, response.iterator().next().clusterSize()); + Assertions.assertEquals("xapzhyrpet", response.iterator().next().hosts().get(0)); + Assertions.assertEquals("e", response.iterator().next().vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListZonesWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListZonesWithResponseMockTests.java index d221c6a81e6c..af8b76f84f5d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListZonesWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersListZonesWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class ClustersListZonesWithResponseMockTests { @Test public void testListZonesWithResponse() throws Exception { String responseStr - = "{\"zones\":[{\"hosts\":[\"fpxtg\",\"scjavftju\",\"dqazkmtgguwpijra\"],\"zone\":\"ivmmghfcfiwrxgk\"},{\"hosts\":[\"vyi\",\"zqodfvpgshox\",\"sgbpfgzdjtx\",\"zflbqvg\"],\"zone\":\"vl\"}]}"; + = "{\"zones\":[{\"hosts\":[\"m\",\"ghfcfiwrxgkneuvy\",\"nzqodfvpg\",\"hoxgsgbpf\"],\"zone\":\"djtxvzflbq\"},{\"hosts\":[\"qvlgafcqusrdvetn\",\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\"],\"zone\":\"uqgsj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testListZonesWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ClusterZoneList response = manager.clusters() - .listZonesWithResponse("hdjhlimmbcx", "h", "cporxvxcjz", com.azure.core.util.Context.NONE) + .listZonesWithResponse("qizxfpxtgqscjavf", "juhdqazkmtgguwpi", "r", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreInnerTests.java index 425193483ccd..1982ce1b7316 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -16,27 +16,27 @@ public final class DatastoreInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DatastoreInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"zy\"},\"diskPoolVolume\":{\"targetId\":\"hxmzsbbzoggig\",\"lunName\":\"xwburvjxxjns\",\"mountOption\":\"ATTACH\",\"path\":\"tko\"},\"elasticSanVolume\":{\"targetId\":\"kouknvudwtiu\"},\"status\":\"Detached\"},\"id\":\"ngkpocipazy\",\"name\":\"o\",\"type\":\"gukgjnpiucgygevq\"}") + "{\"properties\":{\"provisioningState\":\"Deleting\",\"netAppVolume\":{\"id\":\"pmr\"},\"diskPoolVolume\":{\"targetId\":\"izcdrqjsd\",\"lunName\":\"ydnfyhxdeoejz\",\"mountOption\":\"MOUNT\",\"path\":\"fsj\"},\"elasticSanVolume\":{\"targetId\":\"gzfbishcbk\"},\"status\":\"DeadOrError\"},\"id\":\"eyeam\",\"name\":\"p\",\"type\":\"agalpbuxwgipwhon\"}") .toObject(DatastoreInner.class); - Assertions.assertEquals("zy", model.netAppVolume().id()); - Assertions.assertEquals("hxmzsbbzoggig", model.diskPoolVolume().targetId()); - Assertions.assertEquals("xwburvjxxjns", model.diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.ATTACH, model.diskPoolVolume().mountOption()); - Assertions.assertEquals("kouknvudwtiu", model.elasticSanVolume().targetId()); + Assertions.assertEquals("pmr", model.netAppVolume().id()); + Assertions.assertEquals("izcdrqjsd", model.diskPoolVolume().targetId()); + Assertions.assertEquals("ydnfyhxdeoejz", model.diskPoolVolume().lunName()); + Assertions.assertEquals(MountOptionEnum.MOUNT, model.diskPoolVolume().mountOption()); + Assertions.assertEquals("gzfbishcbk", model.elasticSanVolume().targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DatastoreInner model = new DatastoreInner().withNetAppVolume(new NetAppVolume().withId("zy")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("hxmzsbbzoggig") - .withLunName("xwburvjxxjns") - .withMountOption(MountOptionEnum.ATTACH)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("kouknvudwtiu")); + DatastoreInner model = new DatastoreInner().withNetAppVolume(new NetAppVolume().withId("pmr")) + .withDiskPoolVolume(new DiskPoolVolume().withTargetId("izcdrqjsd") + .withLunName("ydnfyhxdeoejz") + .withMountOption(MountOptionEnum.MOUNT)) + .withElasticSanVolume(new ElasticSanVolume().withTargetId("gzfbishcbk")); model = BinaryData.fromObject(model).toObject(DatastoreInner.class); - Assertions.assertEquals("zy", model.netAppVolume().id()); - Assertions.assertEquals("hxmzsbbzoggig", model.diskPoolVolume().targetId()); - Assertions.assertEquals("xwburvjxxjns", model.diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.ATTACH, model.diskPoolVolume().mountOption()); - Assertions.assertEquals("kouknvudwtiu", model.elasticSanVolume().targetId()); + Assertions.assertEquals("pmr", model.netAppVolume().id()); + Assertions.assertEquals("izcdrqjsd", model.diskPoolVolume().targetId()); + Assertions.assertEquals("ydnfyhxdeoejz", model.diskPoolVolume().lunName()); + Assertions.assertEquals(MountOptionEnum.MOUNT, model.diskPoolVolume().mountOption()); + Assertions.assertEquals("gzfbishcbk", model.elasticSanVolume().targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreListTests.java index f2543b42d3ce..5242780f387a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoreListTests.java @@ -1,59 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.DatastoreInner; -import com.azure.resourcemanager.avs.models.DatastoreList; -import com.azure.resourcemanager.avs.models.DiskPoolVolume; -import com.azure.resourcemanager.avs.models.ElasticSanVolume; +import com.azure.resourcemanager.avs.implementation.models.DatastoreList; import com.azure.resourcemanager.avs.models.MountOptionEnum; -import com.azure.resourcemanager.avs.models.NetAppVolume; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class DatastoreListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DatastoreList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"netAppVolume\":{\"id\":\"ydagfuaxbe\"},\"diskPoolVolume\":{\"targetId\":\"iu\",\"lunName\":\"kktwhrdxw\",\"mountOption\":\"MOUNT\",\"path\":\"sm\"},\"elasticSanVolume\":{\"targetId\":\"ureximoryocfs\"},\"status\":\"Unknown\"},\"id\":\"mddystkiiux\",\"name\":\"qyud\",\"type\":\"o\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"netAppVolume\":{\"id\":\"poczvyifqrvkdvjs\"},\"diskPoolVolume\":{\"targetId\":\"rm\",\"lunName\":\"vdfwatkpn\",\"mountOption\":\"ATTACH\",\"path\":\"xxbczwtr\"},\"elasticSanVolume\":{\"targetId\":\"iqzbq\"},\"status\":\"Unknown\"},\"id\":\"vmyokacspkwl\",\"name\":\"zdobpxjmflbvvnch\",\"type\":\"kcciwwzjuqkhr\"},{\"properties\":{\"provisioningState\":\"Cancelled\",\"netAppVolume\":{\"id\":\"ku\"},\"diskPoolVolume\":{\"targetId\":\"oskg\",\"lunName\":\"sauuimj\",\"mountOption\":\"ATTACH\",\"path\":\"eduugi\"},\"elasticSanVolume\":{\"targetId\":\"jrrfbyaosve\"},\"status\":\"Attached\"},\"id\":\"npc\",\"name\":\"hocohslkev\",\"type\":\"eggzfb\"}],\"nextLink\":\"fmvfaxkffeiit\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"uxh\"},\"diskPoolVolume\":{\"targetId\":\"udxorrqn\",\"lunName\":\"poczvyifqrvkdvjs\",\"mountOption\":\"MOUNT\",\"path\":\"vvdfwatkpnpul\"},\"elasticSanVolume\":{\"targetId\":\"xbczwtruwiqz\"},\"status\":\"Inaccessible\"},\"id\":\"sovmyokacspkwl\",\"name\":\"zdobpxjmflbvvnch\",\"type\":\"kcciwwzjuqkhr\"},{\"properties\":{\"provisioningState\":\"Cancelled\",\"netAppVolume\":{\"id\":\"ku\"},\"diskPoolVolume\":{\"targetId\":\"oskg\",\"lunName\":\"sauuimj\",\"mountOption\":\"ATTACH\",\"path\":\"eduugi\"},\"elasticSanVolume\":{\"targetId\":\"jrrfbyaosve\"},\"status\":\"Attached\"},\"id\":\"npc\",\"name\":\"hocohslkev\",\"type\":\"eggzfb\"},{\"properties\":{\"provisioningState\":\"Updating\",\"netAppVolume\":{\"id\":\"faxkffeii\"},\"diskPoolVolume\":{\"targetId\":\"lvmezyvshxmzsbbz\",\"lunName\":\"ggi\",\"mountOption\":\"ATTACH\",\"path\":\"burvjxxjnspy\"},\"elasticSanVolume\":{\"targetId\":\"tko\"},\"status\":\"Detached\"},\"id\":\"uknvudwti\",\"name\":\"kbldngkpocipa\",\"type\":\"yxoegukgjnp\"}],\"nextLink\":\"cgygev\"}") .toObject(DatastoreList.class); - Assertions.assertEquals("ydagfuaxbe", model.value().get(0).netAppVolume().id()); - Assertions.assertEquals("iu", model.value().get(0).diskPoolVolume().targetId()); - Assertions.assertEquals("kktwhrdxw", model.value().get(0).diskPoolVolume().lunName()); + Assertions.assertEquals("uxh", model.value().get(0).netAppVolume().id()); + Assertions.assertEquals("udxorrqn", model.value().get(0).diskPoolVolume().targetId()); + Assertions.assertEquals("poczvyifqrvkdvjs", model.value().get(0).diskPoolVolume().lunName()); Assertions.assertEquals(MountOptionEnum.MOUNT, model.value().get(0).diskPoolVolume().mountOption()); - Assertions.assertEquals("ureximoryocfs", model.value().get(0).elasticSanVolume().targetId()); - Assertions.assertEquals("fmvfaxkffeiit", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatastoreList model = new DatastoreList() - .withValue(Arrays.asList( - new DatastoreInner().withNetAppVolume(new NetAppVolume().withId("ydagfuaxbe")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("iu") - .withLunName("kktwhrdxw") - .withMountOption(MountOptionEnum.MOUNT)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("ureximoryocfs")), - new DatastoreInner().withNetAppVolume(new NetAppVolume().withId("poczvyifqrvkdvjs")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("rm") - .withLunName("vdfwatkpn") - .withMountOption(MountOptionEnum.ATTACH)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("iqzbq")), - new DatastoreInner().withNetAppVolume(new NetAppVolume().withId("ku")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("oskg") - .withLunName("sauuimj") - .withMountOption(MountOptionEnum.ATTACH)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("jrrfbyaosve")))) - .withNextLink("fmvfaxkffeiit"); - model = BinaryData.fromObject(model).toObject(DatastoreList.class); - Assertions.assertEquals("ydagfuaxbe", model.value().get(0).netAppVolume().id()); - Assertions.assertEquals("iu", model.value().get(0).diskPoolVolume().targetId()); - Assertions.assertEquals("kktwhrdxw", model.value().get(0).diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.MOUNT, model.value().get(0).diskPoolVolume().mountOption()); - Assertions.assertEquals("ureximoryocfs", model.value().get(0).elasticSanVolume().targetId()); - Assertions.assertEquals("fmvfaxkffeiit", model.nextLink()); + Assertions.assertEquals("xbczwtruwiqz", model.value().get(0).elasticSanVolume().targetId()); + Assertions.assertEquals("cgygev", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastorePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastorePropertiesTests.java index 1743e1c56518..5cafae5b8b48 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastorePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastorePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -16,27 +16,28 @@ public final class DatastorePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DatastoreProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"netAppVolume\":{\"id\":\"pmr\"},\"diskPoolVolume\":{\"targetId\":\"izcdrqjsd\",\"lunName\":\"ydnfyhxdeoejz\",\"mountOption\":\"MOUNT\",\"path\":\"fsj\"},\"elasticSanVolume\":{\"targetId\":\"gzfbishcbk\"},\"status\":\"DeadOrError\"}") + "{\"provisioningState\":\"Canceled\",\"netAppVolume\":{\"id\":\"shwankixzbinje\"},\"diskPoolVolume\":{\"targetId\":\"ttmrywnuzoqf\",\"lunName\":\"iyqzrnk\",\"mountOption\":\"ATTACH\",\"path\":\"xlwhzlsicoh\"},\"elasticSanVolume\":{\"targetId\":\"qnwvlrya\"},\"status\":\"DeadOrError\"}") .toObject(DatastoreProperties.class); - Assertions.assertEquals("pmr", model.netAppVolume().id()); - Assertions.assertEquals("izcdrqjsd", model.diskPoolVolume().targetId()); - Assertions.assertEquals("ydnfyhxdeoejz", model.diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.MOUNT, model.diskPoolVolume().mountOption()); - Assertions.assertEquals("gzfbishcbk", model.elasticSanVolume().targetId()); + Assertions.assertEquals("shwankixzbinje", model.netAppVolume().id()); + Assertions.assertEquals("ttmrywnuzoqf", model.diskPoolVolume().targetId()); + Assertions.assertEquals("iyqzrnk", model.diskPoolVolume().lunName()); + Assertions.assertEquals(MountOptionEnum.ATTACH, model.diskPoolVolume().mountOption()); + Assertions.assertEquals("qnwvlrya", model.elasticSanVolume().targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DatastoreProperties model = new DatastoreProperties().withNetAppVolume(new NetAppVolume().withId("pmr")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("izcdrqjsd") - .withLunName("ydnfyhxdeoejz") - .withMountOption(MountOptionEnum.MOUNT)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("gzfbishcbk")); + DatastoreProperties model + = new DatastoreProperties().withNetAppVolume(new NetAppVolume().withId("shwankixzbinje")) + .withDiskPoolVolume(new DiskPoolVolume().withTargetId("ttmrywnuzoqf") + .withLunName("iyqzrnk") + .withMountOption(MountOptionEnum.ATTACH)) + .withElasticSanVolume(new ElasticSanVolume().withTargetId("qnwvlrya")); model = BinaryData.fromObject(model).toObject(DatastoreProperties.class); - Assertions.assertEquals("pmr", model.netAppVolume().id()); - Assertions.assertEquals("izcdrqjsd", model.diskPoolVolume().targetId()); - Assertions.assertEquals("ydnfyhxdeoejz", model.diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.MOUNT, model.diskPoolVolume().mountOption()); - Assertions.assertEquals("gzfbishcbk", model.elasticSanVolume().targetId()); + Assertions.assertEquals("shwankixzbinje", model.netAppVolume().id()); + Assertions.assertEquals("ttmrywnuzoqf", model.diskPoolVolume().targetId()); + Assertions.assertEquals("iyqzrnk", model.diskPoolVolume().lunName()); + Assertions.assertEquals(MountOptionEnum.ATTACH, model.diskPoolVolume().mountOption()); + Assertions.assertEquals("qnwvlrya", model.elasticSanVolume().targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateMockTests.java index d14b9db140f7..cd84a2972633 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -25,7 +25,7 @@ public final class DatastoresCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"anokqgu\"},\"diskPoolVolume\":{\"targetId\":\"jqnv\",\"lunName\":\"roylaxxu\",\"mountOption\":\"ATTACH\",\"path\":\"sdosfjbjsvgjr\"},\"elasticSanVolume\":{\"targetId\":\"r\"},\"status\":\"Inaccessible\"},\"id\":\"ytdc\",\"name\":\"xgccknfnw\",\"type\":\"btmvpdvjdhttza\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"jsvg\"},\"diskPoolVolume\":{\"targetId\":\"whryvycytdcl\",\"lunName\":\"gc\",\"mountOption\":\"MOUNT\",\"path\":\"nwm\"},\"elasticSanVolume\":{\"targetId\":\"mvpdvjdhttzaef\"},\"status\":\"LostCommunication\"},\"id\":\"hchrphkmcrjdqn\",\"name\":\"dfzpbgtgkylkdg\",\"type\":\"rjeuut\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,18 +35,18 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Datastore response = manager.datastores() - .define("pypqtgsfj") - .withExistingCluster("itvtzeexavo", "tfgle", "dmdqb") - .withNetAppVolume(new NetAppVolume().withId("hhxud")) + .define("zrcxfailcfxwmdbo") + .withExistingCluster("z", "mes", "kdlpa") + .withNetAppVolume(new NetAppVolume().withId("ft")) .withDiskPoolVolume( - new DiskPoolVolume().withTargetId("vodhtn").withLunName("irudh").withMountOption(MountOptionEnum.MOUNT)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("zrcxfailcfxwmdbo")) + new DiskPoolVolume().withTargetId("qobr").withLunName("lnacgcc").withMountOption(MountOptionEnum.MOUNT)) + .withElasticSanVolume(new ElasticSanVolume().withTargetId("rzvul")) .create(); - Assertions.assertEquals("anokqgu", response.netAppVolume().id()); - Assertions.assertEquals("jqnv", response.diskPoolVolume().targetId()); - Assertions.assertEquals("roylaxxu", response.diskPoolVolume().lunName()); - Assertions.assertEquals(MountOptionEnum.ATTACH, response.diskPoolVolume().mountOption()); - Assertions.assertEquals("r", response.elasticSanVolume().targetId()); + Assertions.assertEquals("jsvg", response.netAppVolume().id()); + Assertions.assertEquals("whryvycytdcl", response.diskPoolVolume().targetId()); + Assertions.assertEquals("gc", response.diskPoolVolume().lunName()); + Assertions.assertEquals(MountOptionEnum.MOUNT, response.diskPoolVolume().mountOption()); + Assertions.assertEquals("mvpdvjdhttzaef", response.elasticSanVolume().targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteMockTests.java index 5470846191a2..f4143a264644 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.datastores().delete("cuijpxt", "s", "wprtu", "wsawddjibabxvi", com.azure.core.util.Context.NONE); + manager.datastores().delete("slhhxudbxv", "d", "tnsi", "ud", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresGetWithResponseMockTests.java index d4dc50a3e60b..3338e7cf74ca 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class DatastoresGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"netAppVolume\":{\"id\":\"lxunsmjbnkppxy\"},\"diskPoolVolume\":{\"targetId\":\"nlsvxeiz\",\"lunName\":\"gwklnsr\",\"mountOption\":\"ATTACH\",\"path\":\"ycxcktpiym\"},\"elasticSanVolume\":{\"targetId\":\"teeammxqiekkkzd\"},\"status\":\"Detached\"},\"id\":\"g\",\"name\":\"ojbmxv\",\"type\":\"vrefdeesv\"}"; + = "{\"properties\":{\"provisioningState\":\"Cancelled\",\"netAppVolume\":{\"id\":\"de\"},\"diskPoolVolume\":{\"targetId\":\"vecuijpx\",\"lunName\":\"xs\",\"mountOption\":\"ATTACH\",\"path\":\"tujwsawdd\"},\"elasticSanVolume\":{\"targetId\":\"babxvitit\"},\"status\":\"Unknown\"},\"id\":\"exavoxt\",\"name\":\"glecdmdqbwpypq\",\"type\":\"gsfjac\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Datastore response = manager.datastores() - .getWithResponse("tjeaahhvjhh", "akz", "bbjjidjksyxk", "xvxevblbjednljla", com.azure.core.util.Context.NONE) + .getWithResponse("xcktpiymerteeamm", "qiekkkzddrt", "g", "ojbmxv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lxunsmjbnkppxy", response.netAppVolume().id()); - Assertions.assertEquals("nlsvxeiz", response.diskPoolVolume().targetId()); - Assertions.assertEquals("gwklnsr", response.diskPoolVolume().lunName()); + Assertions.assertEquals("de", response.netAppVolume().id()); + Assertions.assertEquals("vecuijpx", response.diskPoolVolume().targetId()); + Assertions.assertEquals("xs", response.diskPoolVolume().lunName()); Assertions.assertEquals(MountOptionEnum.ATTACH, response.diskPoolVolume().mountOption()); - Assertions.assertEquals("teeammxqiekkkzd", response.elasticSanVolume().targetId()); + Assertions.assertEquals("babxvitit", response.elasticSanVolume().targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresListMockTests.java index 75858a2a1f23..e0c0c278d01f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class DatastoresListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"netAppVolume\":{\"id\":\"uwasqvd\"},\"diskPoolVolume\":{\"targetId\":\"y\",\"lunName\":\"guxak\",\"mountOption\":\"ATTACH\",\"path\":\"hzbezkgi\"},\"elasticSanVolume\":{\"targetId\":\"idxas\"},\"status\":\"DeadOrError\"},\"id\":\"yvvjskgfmo\",\"name\":\"wa\",\"type\":\"pqg\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"netAppVolume\":{\"id\":\"eaahhvjhhn\"},\"diskPoolVolume\":{\"targetId\":\"zybbj\",\"lunName\":\"idjks\",\"mountOption\":\"ATTACH\",\"path\":\"xvxevblbjednljla\"},\"elasticSanVolume\":{\"targetId\":\"uaulxunsm\"},\"status\":\"Detached\"},\"id\":\"ppxynenls\",\"name\":\"xeizzg\",\"type\":\"klnsrmffey\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.datastores().list("fegcea", "zxwhcansymoyqhlw", "gdivbkbxg", com.azure.core.util.Context.NONE); + = manager.datastores().list("hzbezkgi", "sidxasicdd", "vvjskgfmocwahp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("uwasqvd", response.iterator().next().netAppVolume().id()); - Assertions.assertEquals("y", response.iterator().next().diskPoolVolume().targetId()); - Assertions.assertEquals("guxak", response.iterator().next().diskPoolVolume().lunName()); + Assertions.assertEquals("eaahhvjhhn", response.iterator().next().netAppVolume().id()); + Assertions.assertEquals("zybbj", response.iterator().next().diskPoolVolume().targetId()); + Assertions.assertEquals("idjks", response.iterator().next().diskPoolVolume().lunName()); Assertions.assertEquals(MountOptionEnum.ATTACH, response.iterator().next().diskPoolVolume().mountOption()); - Assertions.assertEquals("idxas", response.iterator().next().elasticSanVolume().targetId()); + Assertions.assertEquals("uaulxunsm", response.iterator().next().elasticSanVolume().targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DiskPoolVolumeTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DiskPoolVolumeTests.java index 5b8741a71e30..74b9f56f3fe0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DiskPoolVolumeTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DiskPoolVolumeTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class DiskPoolVolumeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiskPoolVolume model = BinaryData.fromString( - "{\"targetId\":\"wgipwhono\",\"lunName\":\"kgshwa\",\"mountOption\":\"ATTACH\",\"path\":\"zbinjeputtm\"}") + "{\"targetId\":\"mqhgyxzkonocuk\",\"lunName\":\"klyaxuconu\",\"mountOption\":\"MOUNT\",\"path\":\"kbeype\"}") .toObject(DiskPoolVolume.class); - Assertions.assertEquals("wgipwhono", model.targetId()); - Assertions.assertEquals("kgshwa", model.lunName()); - Assertions.assertEquals(MountOptionEnum.ATTACH, model.mountOption()); + Assertions.assertEquals("mqhgyxzkonocuk", model.targetId()); + Assertions.assertEquals("klyaxuconu", model.lunName()); + Assertions.assertEquals(MountOptionEnum.MOUNT, model.mountOption()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DiskPoolVolume model = new DiskPoolVolume().withTargetId("wgipwhono") - .withLunName("kgshwa") - .withMountOption(MountOptionEnum.ATTACH); + DiskPoolVolume model = new DiskPoolVolume().withTargetId("mqhgyxzkonocuk") + .withLunName("klyaxuconu") + .withMountOption(MountOptionEnum.MOUNT); model = BinaryData.fromObject(model).toObject(DiskPoolVolume.class); - Assertions.assertEquals("wgipwhono", model.targetId()); - Assertions.assertEquals("kgshwa", model.lunName()); - Assertions.assertEquals(MountOptionEnum.ATTACH, model.mountOption()); + Assertions.assertEquals("mqhgyxzkonocuk", model.targetId()); + Assertions.assertEquals("klyaxuconu", model.lunName()); + Assertions.assertEquals(MountOptionEnum.MOUNT, model.mountOption()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ElasticSanVolumeTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ElasticSanVolumeTests.java index f0706a4ef6ed..e3fa813478bc 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ElasticSanVolumeTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ElasticSanVolumeTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,14 +11,15 @@ public final class ElasticSanVolumeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ElasticSanVolume model = BinaryData.fromString("{\"targetId\":\"ywnuzoq\"}").toObject(ElasticSanVolume.class); - Assertions.assertEquals("ywnuzoq", model.targetId()); + ElasticSanVolume model + = BinaryData.fromString("{\"targetId\":\"rmjmwvvjektc\"}").toObject(ElasticSanVolume.class); + Assertions.assertEquals("rmjmwvvjektc", model.targetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ElasticSanVolume model = new ElasticSanVolume().withTargetId("ywnuzoq"); + ElasticSanVolume model = new ElasticSanVolume().withTargetId("rmjmwvvjektc"); model = BinaryData.fromObject(model).toObject(ElasticSanVolume.class); - Assertions.assertEquals("ywnuzoq", model.targetId()); + Assertions.assertEquals("rmjmwvvjektc", model.targetId()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/EndpointsTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/EndpointsTests.java index 59a651cd08a5..f99387d58461 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/EndpointsTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/EndpointsTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class EndpointsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Endpoints model = BinaryData.fromString( - "{\"nsxtManager\":\"tmut\",\"vcsa\":\"qktapspwgcuert\",\"hcxCloudManager\":\"kdosvqw\",\"nsxtManagerIp\":\"mdgbbjfdd\",\"vcenterIp\":\"bmbexppbhtqqro\",\"hcxCloudManagerIp\":\"p\"}") + "{\"nsxtManager\":\"ypl\",\"vcsa\":\"kbasyypn\",\"hcxCloudManager\":\"hsgcbacphejkot\",\"nsxtManagerIp\":\"qgoulznd\",\"vcenterIp\":\"kwy\",\"hcxCloudManagerIp\":\"gfgibm\"}") .toObject(Endpoints.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Endpoints model = new Endpoints(); - model = BinaryData.fromObject(model).toObject(Endpoints.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteMockTests.java index 51e04a2a4f26..ce4408e445e5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.globalReachConnections().delete("lniexz", "rzpgep", "tybbwwpgda", com.azure.core.util.Context.NONE); + manager.globalReachConnections().delete("khgn", "nzonzl", "piqywnc", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteWithResponseMockTests.java index 71dccc3283eb..f2c35160b81a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/HcxEnterpriseSitesDeleteWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.hcxEnterpriseSites() - .deleteWithResponse("raiouaubrjtl", "qxfuojrngif", "rzpasccbiuimzdly", com.azure.core.util.Context.NONE); + manager.hcxEnterpriseSites().deleteWithResponse("tillucbiqtg", "q", "hm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathInnerTests.java index 392d214a0eb3..5582cd1018cf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class IscsiPathInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IscsiPathInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"networkBlock\":\"mx\"},\"id\":\"kv\",\"name\":\"melmqkrha\",\"type\":\"vljua\"}") + "{\"properties\":{\"provisioningState\":\"Updating\",\"networkBlock\":\"ufoxc\"},\"id\":\"opidoamciodh\",\"name\":\"haz\",\"type\":\"khnzbonlw\"}") .toObject(IscsiPathInner.class); - Assertions.assertEquals("mx", model.networkBlock()); + Assertions.assertEquals("ufoxc", model.networkBlock()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IscsiPathInner model = new IscsiPathInner().withNetworkBlock("mx"); + IscsiPathInner model = new IscsiPathInner().withNetworkBlock("ufoxc"); model = BinaryData.fromObject(model).toObject(IscsiPathInner.class); - Assertions.assertEquals("mx", model.networkBlock()); + Assertions.assertEquals("ufoxc", model.networkBlock()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathListResultTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathListResultTests.java index 834ab8c31e80..1a84e128943f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathListResultTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathListResultTests.java @@ -1,32 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; -import com.azure.resourcemanager.avs.models.IscsiPathListResult; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.IscsiPathListResult; import org.junit.jupiter.api.Assertions; public final class IscsiPathListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IscsiPathListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"networkBlock\":\"z\"},\"id\":\"zka\",\"name\":\"kuwbcrnwb\",\"type\":\"ehhseyvjusrts\"}],\"nextLink\":\"spkdee\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Pending\",\"networkBlock\":\"n\"},\"id\":\"rudsg\",\"name\":\"a\",\"type\":\"mkycgra\"},{\"properties\":{\"provisioningState\":\"Building\",\"networkBlock\":\"etaebu\"},\"id\":\"vdmovsmzlxwabm\",\"name\":\"oefki\",\"type\":\"rvtp\"},{\"properties\":{\"provisioningState\":\"Building\",\"networkBlock\":\"mqlgk\"},\"id\":\"tndoaongbjc\",\"name\":\"tujitcjedft\",\"type\":\"waezkojvd\"}],\"nextLink\":\"zfoqouicybxar\"}") .toObject(IscsiPathListResult.class); - Assertions.assertEquals("z", model.value().get(0).networkBlock()); - Assertions.assertEquals("spkdee", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IscsiPathListResult model - = new IscsiPathListResult().withValue(Arrays.asList(new IscsiPathInner().withNetworkBlock("z"))) - .withNextLink("spkdee"); - model = BinaryData.fromObject(model).toObject(IscsiPathListResult.class); - Assertions.assertEquals("z", model.value().get(0).networkBlock()); - Assertions.assertEquals("spkdee", model.nextLink()); + Assertions.assertEquals("n", model.value().get(0).networkBlock()); + Assertions.assertEquals("zfoqouicybxar", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathPropertiesTests.java index 0cc6888a30d7..7872b097ba5b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class IscsiPathPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IscsiPathProperties model - = BinaryData.fromString("{\"provisioningState\":\"Canceled\",\"networkBlock\":\"uhcdhm\"}") + = BinaryData.fromString("{\"provisioningState\":\"Canceled\",\"networkBlock\":\"egokdwbwhkszzcmr\"}") .toObject(IscsiPathProperties.class); - Assertions.assertEquals("uhcdhm", model.networkBlock()); + Assertions.assertEquals("egokdwbwhkszzcmr", model.networkBlock()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IscsiPathProperties model = new IscsiPathProperties().withNetworkBlock("uhcdhm"); + IscsiPathProperties model = new IscsiPathProperties().withNetworkBlock("egokdwbwhkszzcmr"); model = BinaryData.fromObject(model).toObject(IscsiPathProperties.class); - Assertions.assertEquals("uhcdhm", model.networkBlock()); + Assertions.assertEquals("egokdwbwhkszzcmr", model.networkBlock()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateMockTests.java index 5d1d51190756..783e84f7bd67 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -10,7 +10,6 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.avs.AvsManager; -import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner; import com.azure.resourcemanager.avs.models.IscsiPath; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -22,7 +21,7 @@ public final class IscsiPathsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"networkBlock\":\"vlgo\"},\"id\":\"mftpmdtz\",\"name\":\"jltfvnzcyjtotpv\",\"type\":\"pvpbdbzqgqqiheds\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"networkBlock\":\"gyamlbnseqacjjv\"},\"id\":\"lguooqjagmd\",\"name\":\"tg\",\"type\":\"eiookjbsah\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +31,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); IscsiPath response = manager.iscsiPaths() - .createOrUpdate("prlpy", "nuciqdsmexiit", new IscsiPathInner().withNetworkBlock("tyasiibmiybnnust"), - com.azure.core.util.Context.NONE); + .define("cgbjbgdlfgt") + .withExistingPrivateCloud("xncnwfe", "bnwgfmxj") + .withNetworkBlock("aquflqbctqha") + .create(); - Assertions.assertEquals("vlgo", response.networkBlock()); + Assertions.assertEquals("gyamlbnseqacjjv", response.networkBlock()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteMockTests.java index 95ea5d512479..f7c89834acbf 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.iscsiPaths().delete("qwthmky", "bcysih", com.azure.core.util.Context.NONE); + manager.iscsiPaths().delete("sxjb", "qehgpd", "hzjqatucoige", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetWithResponseMockTests.java index 44fb27305c5e..bb6c64304962 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class IscsiPathsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Deleting\",\"networkBlock\":\"cevehjkuyxoafg\"},\"id\":\"qltfaey\",\"name\":\"inmfgvxirp\",\"type\":\"hriypoqeyhlqhy\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"networkBlock\":\"uughtuqfecjxeyg\"},\"id\":\"hxuicbuewmrs\",\"name\":\"njlx\",\"type\":\"zrhwp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,10 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - IscsiPath response - = manager.iscsiPaths().getWithResponse("z", "qqxlajr", com.azure.core.util.Context.NONE).getValue(); + IscsiPath response = manager.iscsiPaths() + .getWithResponse("tjvidt", "gepuslvyjtc", "uwkasiz", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("cevehjkuyxoafg", response.networkBlock()); + Assertions.assertEquals("uughtuqfecjxeyg", response.networkBlock()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudMockTests.java index 7bd2ad412d84..1d6fd83538cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/IscsiPathsListByPrivateCloudMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class IscsiPathsListByPrivateCloudMockTests { @Test public void testListByPrivateCloud() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"networkBlock\":\"vyhyhsgzfc\"},\"id\":\"gomfgbeglq\",\"name\":\"leohibetnluankr\",\"type\":\"fxeeebtijvacvbm\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"networkBlock\":\"awrtmjfjmyccxlz\"},\"id\":\"oxovnekhenlusf\",\"name\":\"rd\",\"type\":\"jxtxrdc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListByPrivateCloud() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.iscsiPaths() - .listByPrivateCloud("fdgugeyzi", "grkyuizabsnmfpph", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.iscsiPaths().listByPrivateCloud("iropionszon", "pngajin", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vyhyhsgzfc", response.iterator().next().networkBlock()); + Assertions.assertEquals("awrtmjfjmyccxlz", response.iterator().next().networkBlock()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilityWithResponseMockTests.java index bc86e4ea2674..e8ea3f70361c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilityWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckQuotaAvailabilityWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -19,8 +19,7 @@ public final class LocationsCheckQuotaAvailabilityWithResponseMockTests { @Test public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr - = "{\"hostsRemaining\":{\"uzaofjchvcyyy\":1357028156,\"gdotcubiipuipwo\":915050797,\"nmacj\":567350116,\"nizshqvcim\":167629289},\"quotaEnabled\":\"Disabled\"}"; + String responseStr = "{\"hostsRemaining\":{\"yutnwytpzdmov\":254109783},\"quotaEnabled\":\"Enabled\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +29,7 @@ public void testCheckQuotaAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Quota response = manager.locations() - .checkQuotaAvailabilityWithResponse("dufiq", com.azure.core.util.Context.NONE) + .checkQuotaAvailabilityWithResponse("qeevt", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilityWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilityWithResponseMockTests.java index 5a828bf26aee..09267a3cae90 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilityWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/LocationsCheckTrialAvailabilityWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class LocationsCheckTrialAvailabilityWithResponseMockTests { @Test public void testCheckTrialAvailabilityWithResponse() throws Exception { - String responseStr = "{\"status\":\"TrialDisabled\",\"availableHosts\":1759389481}"; + String responseStr = "{\"status\":\"TrialDisabled\",\"availableHosts\":255591451}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testCheckTrialAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Trial response = manager.locations() - .checkTrialAvailabilityWithResponse("fgmblrrilbywdxsm", - new Sku().withName("ccwr") - .withTier(SkuTier.BASIC) - .withSize("jfnynszqujizdvoq") - .withFamily("ibyowbblgyavutp") - .withCapacity(1643251858), + .checkTrialAvailabilityWithResponse("iycslevuf", + new Sku().withName("ztcktyh") + .withTier(SkuTier.STANDARD) + .withSize("dcgzul") + .withFamily("mrqzzrrjvpgl") + .withCapacity(1750112370), com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ManagementClusterTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ManagementClusterTests.java index 45d1edb05341..21fe9e39e5f7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ManagementClusterTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ManagementClusterTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class ManagementClusterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagementCluster model = BinaryData.fromString( - "{\"clusterSize\":223251370,\"provisioningState\":\"Succeeded\",\"clusterId\":1278778169,\"hosts\":[\"feusnhut\",\"eltmrldhugjzzdat\"],\"vsanDatastoreName\":\"hocdgeab\"}") + "{\"clusterSize\":2084272233,\"provisioningState\":\"Failed\",\"clusterId\":186594005,\"hosts\":[\"bybkzgcwrwclxx\",\"rljdouskcqv\",\"ocrcjdk\",\"tnhxbn\"],\"vsanDatastoreName\":\"iksqr\"}") .toObject(ManagementCluster.class); - Assertions.assertEquals(223251370, model.clusterSize()); - Assertions.assertEquals("feusnhut", model.hosts().get(0)); - Assertions.assertEquals("hocdgeab", model.vsanDatastoreName()); + Assertions.assertEquals(2084272233, model.clusterSize()); + Assertions.assertEquals("bybkzgcwrwclxx", model.hosts().get(0)); + Assertions.assertEquals("iksqr", model.vsanDatastoreName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagementCluster model = new ManagementCluster().withClusterSize(223251370) - .withHosts(Arrays.asList("feusnhut", "eltmrldhugjzzdat")) - .withVsanDatastoreName("hocdgeab"); + ManagementCluster model = new ManagementCluster().withClusterSize(2084272233) + .withHosts(Arrays.asList("bybkzgcwrwclxx", "rljdouskcqv", "ocrcjdk", "tnhxbn")) + .withVsanDatastoreName("iksqr"); model = BinaryData.fromObject(model).toObject(ManagementCluster.class); - Assertions.assertEquals(223251370, model.clusterSize()); - Assertions.assertEquals("feusnhut", model.hosts().get(0)); - Assertions.assertEquals("hocdgeab", model.vsanDatastoreName()); + Assertions.assertEquals(2084272233, model.clusterSize()); + Assertions.assertEquals("bybkzgcwrwclxx", model.hosts().get(0)); + Assertions.assertEquals("iksqr", model.vsanDatastoreName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/NetAppVolumeTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/NetAppVolumeTests.java index 415cb3d09c42..3c0b866cc9f6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/NetAppVolumeTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/NetAppVolumeTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,14 +11,14 @@ public final class NetAppVolumeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetAppVolume model = BinaryData.fromString("{\"id\":\"deyeamdphagalpbu\"}").toObject(NetAppVolume.class); - Assertions.assertEquals("deyeamdphagalpbu", model.id()); + NetAppVolume model = BinaryData.fromString("{\"id\":\"heun\"}").toObject(NetAppVolume.class); + Assertions.assertEquals("heun", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetAppVolume model = new NetAppVolume().withId("deyeamdphagalpbu"); + NetAppVolume model = new NetAppVolume().withId("heun"); model = BinaryData.fromObject(model).toObject(NetAppVolume.class); - Assertions.assertEquals("deyeamdphagalpbu", model.id()); + Assertions.assertEquals("heun", model.id()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationDisplayTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationDisplayTests.java index 0d0402ab63ec..afe3f768844c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationDisplayTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationDisplayTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") + "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") .toObject(OperationDisplay.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationInnerTests.java index 3d33485b4cbd..371b4b27f900 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationInnerTests.java @@ -1,24 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.avs.fluent.models.OperationInner; -import com.azure.resourcemanager.avs.models.OperationDisplay; +import com.azure.resourcemanager.avs.models.ActionType; +import org.junit.jupiter.api.Assertions; public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") .toObject(OperationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withDisplay(new OperationDisplay()); - model = BinaryData.fromObject(model).toObject(OperationInner.class); + Assertions.assertEquals(ActionType.INTERNAL, model.actionType()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationListResultTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationListResultTests.java index 5d49245bc54b..6a5711883e79 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationListResultTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationListResultTests.java @@ -1,23 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.models.OperationListResult; +import com.azure.resourcemanager.avs.implementation.models.OperationListResult; +import com.azure.resourcemanager.avs.models.ActionType; +import org.junit.jupiter.api.Assertions; public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") + "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}") .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); + Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType()); + Assertions.assertEquals("kfo", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationsListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationsListMockTests.java index 8eeb878d109a..c939939f04c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationsListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,9 +11,11 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.avs.AvsManager; +import com.azure.resourcemanager.avs.models.ActionType; import com.azure.resourcemanager.avs.models.Operation; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"unvmnnr\",\"isDataAction\":false,\"display\":{\"provider\":\"rk\",\"resource\":\"lywjhh\",\"operation\":\"nhxmsi\",\"description\":\"omi\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"ambtrnegvm\",\"isDataAction\":false,\"display\":{\"provider\":\"qvldspastjbkkd\",\"resource\":\"lves\",\"operation\":\"jlxr\",\"description\":\"lozapeewchpxlk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,5 +34,6 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); + Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateMockTests.java index ede0dafbb856..edbde6a79750 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class PlacementPoliciesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"kpn\",\"provisioningState\":\"Succeeded\"},\"id\":\"pmudqmeqwig\",\"name\":\"ibudqwy\",\"type\":\"eb\"}"; + = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"sf\",\"provisioningState\":\"Succeeded\"},\"id\":\"uik\",\"name\":\"hajqglcfh\",\"type\":\"l\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PlacementPolicy response = manager.placementPolicies() - .define("emwmdxmebwjs") - .withExistingCluster("cjmeislstvasy", "wxdzaumweoohgu", "fuzboyjathwtzolb") - .withProperties( - new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("lxveabfqx")) + .define("ljgkyex") + .withExistingCluster("pud", "dabtqwp", "yawbzasqbu") + .withProperties(new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED) + .withDisplayName("aipidsdaultxi")) .create(); - Assertions.assertEquals(PlacementPolicyState.ENABLED, response.properties().state()); - Assertions.assertEquals("kpn", response.properties().displayName()); + Assertions.assertEquals(PlacementPolicyState.DISABLED, response.properties().state()); + Assertions.assertEquals("sf", response.properties().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteMockTests.java index 7bad5f2a4a32..90bf6780eceb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.placementPolicies() - .delete("a", "ankjpdnjzh", "joylh", "lmuoyxprimrsopte", com.azure.core.util.Context.NONE); + .delete("efqsfapaqtferrqw", "x", "kmfx", "pjwogqqno", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetWithResponseMockTests.java index 8fb3e60ee2f1..ea365105d378 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class PlacementPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"q\",\"provisioningState\":\"Building\"},\"id\":\"wsldrizetpwbr\",\"name\":\"lllibph\",\"type\":\"qzmiza\"}"; + = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"lbkpb\",\"provisioningState\":\"Failed\"},\"id\":\"iljhahz\",\"name\":\"echndbnwieholew\",\"type\":\"wiuub\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PlacementPolicy response = manager.placementPolicies() - .getWithResponse("eafidltugsresm", "ssjhoiftxfkf", "egprhptil", "ucb", com.azure.core.util.Context.NONE) + .getWithResponse("zelndlatutmzlbi", "jlvfhrbbpneqv", "wwyyurmoch", "prprsnmokay", + com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(PlacementPolicyState.ENABLED, response.properties().state()); - Assertions.assertEquals("q", response.properties().displayName()); + Assertions.assertEquals("lbkpb", response.properties().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListMockTests.java index 6e0f17dcd444..7e3c0acf056b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class PlacementPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"lwxezwzhokvbwnh\",\"provisioningState\":\"Failed\"},\"id\":\"gehgppi\",\"name\":\"ifhpf\",\"type\":\"oajvgcxtxjcs\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"bzdixzmq\",\"provisioningState\":\"Updating\"},\"id\":\"awopqh\",\"name\":\"wjptm\",\"type\":\"gsbos\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.placementPolicies() - .list("fedxihchrphkm", "rjdqnsdfzp", "gtgkylkdghr", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.placementPolicies().list("czurtlei", "q", "bkwvzg", com.azure.core.util.Context.NONE); Assertions.assertEquals(PlacementPolicyState.DISABLED, response.iterator().next().properties().state()); - Assertions.assertEquals("lwxezwzhokvbwnh", response.iterator().next().properties().displayName()); + Assertions.assertEquals("bzdixzmq", response.iterator().next().properties().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListTests.java index c28c45fd5302..3c64dba063b6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPoliciesListTests.java @@ -1,39 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.PlacementPolicyInner; -import com.azure.resourcemanager.avs.models.PlacementPoliciesList; -import com.azure.resourcemanager.avs.models.PlacementPolicyProperties; +import com.azure.resourcemanager.avs.implementation.models.PlacementPoliciesList; import com.azure.resourcemanager.avs.models.PlacementPolicyState; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class PlacementPoliciesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"ebrjcxe\",\"provisioningState\":\"Failed\"},\"id\":\"utttxfvjrbirp\",\"name\":\"xepcyvahfn\",\"type\":\"jky\"},{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"ujqgidok\",\"provisioningState\":\"Failed\"},\"id\":\"yoxgvcltbgsnc\",\"name\":\"hkjeszzhbi\",\"type\":\"htxfvgxbfsmxnehm\"}],\"nextLink\":\"ec\"}") + "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"kdeemaofmxagkvtm\",\"provisioningState\":\"Failed\"},\"id\":\"krh\",\"name\":\"hvljuahaquh\",\"type\":\"dhmdua\"}],\"nextLink\":\"exq\"}") .toObject(PlacementPoliciesList.class); - Assertions.assertEquals(PlacementPolicyState.DISABLED, model.value().get(0).properties().state()); - Assertions.assertEquals("ebrjcxe", model.value().get(0).properties().displayName()); - Assertions.assertEquals("ec", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PlacementPoliciesList model = new PlacementPoliciesList().withValue(Arrays.asList( - new PlacementPolicyInner().withProperties( - new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("ebrjcxe")), - new PlacementPolicyInner().withProperties( - new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED).withDisplayName("ujqgidok")))) - .withNextLink("ec"); - model = BinaryData.fromObject(model).toObject(PlacementPoliciesList.class); - Assertions.assertEquals(PlacementPolicyState.DISABLED, model.value().get(0).properties().state()); - Assertions.assertEquals("ebrjcxe", model.value().get(0).properties().displayName()); - Assertions.assertEquals("ec", model.nextLink()); + Assertions.assertEquals(PlacementPolicyState.ENABLED, model.value().get(0).properties().state()); + Assertions.assertEquals("kdeemaofmxagkvtm", model.value().get(0).properties().displayName()); + Assertions.assertEquals("exq", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyInnerTests.java index 2bec107de976..a73cdd2edb51 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,18 +14,18 @@ public final class PlacementPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"bfqkkr\",\"provisioningState\":\"Succeeded\"},\"id\":\"kgriwflzlfbx\",\"name\":\"puz\",\"type\":\"cispnqzahmgkbr\"}") + "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"mwsrcrgvxpvgo\",\"provisioningState\":\"Updating\"},\"id\":\"misgwbnb\",\"name\":\"e\",\"type\":\"dawkzbali\"}") .toObject(PlacementPolicyInner.class); - Assertions.assertEquals(PlacementPolicyState.DISABLED, model.properties().state()); - Assertions.assertEquals("bfqkkr", model.properties().displayName()); + Assertions.assertEquals(PlacementPolicyState.ENABLED, model.properties().state()); + Assertions.assertEquals("mwsrcrgvxpvgo", model.properties().displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyInner model = new PlacementPolicyInner().withProperties( - new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("bfqkkr")); + new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED).withDisplayName("mwsrcrgvxpvgo")); model = BinaryData.fromObject(model).toObject(PlacementPolicyInner.class); - Assertions.assertEquals(PlacementPolicyState.DISABLED, model.properties().state()); - Assertions.assertEquals("bfqkkr", model.properties().displayName()); + Assertions.assertEquals(PlacementPolicyState.ENABLED, model.properties().state()); + Assertions.assertEquals("mwsrcrgvxpvgo", model.properties().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyPropertiesTests.java index c90311ecb18f..b1d6ade40407 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,18 +13,18 @@ public final class PlacementPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyProperties model = BinaryData.fromString( - "{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"hibnuqqkpika\",\"provisioningState\":\"Updating\"}") + "{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"hakauhashsf\",\"provisioningState\":\"Building\"}") .toObject(PlacementPolicyProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("hibnuqqkpika", model.displayName()); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("hakauhashsf", model.displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyProperties model - = new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED).withDisplayName("hibnuqqkpika"); + = new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("hakauhashsf"); model = BinaryData.fromObject(model).toObject(PlacementPolicyProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("hibnuqqkpika", model.displayName()); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("hakauhashsf", model.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdatePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdatePropertiesTests.java index 6ea4e32a75c0..25b768232151 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdatePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdatePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -16,11 +16,11 @@ public final class PlacementPolicyUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyUpdateProperties model = BinaryData.fromString( - "{\"state\":\"Disabled\",\"vmMembers\":[\"pnazzm\",\"jrunmpxtt\"],\"hostMembers\":[\"rbnlankxmyskp\",\"henbtkcxywnytn\",\"synlqidybyxczfc\",\"haaxdbabphl\"],\"affinityStrength\":\"Must\",\"azureHybridBenefitType\":\"SqlHost\"}") + "{\"state\":\"Disabled\",\"vmMembers\":[\"lrbpbewtghfgbl\",\"gw\",\"zvlvqhjkbegib\"],\"hostMembers\":[\"xiebwwaloayqcg\",\"rtzju\"],\"affinityStrength\":\"Must\",\"azureHybridBenefitType\":\"SqlHost\"}") .toObject(PlacementPolicyUpdateProperties.class); Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); - Assertions.assertEquals("pnazzm", model.vmMembers().get(0)); - Assertions.assertEquals("rbnlankxmyskp", model.hostMembers().get(0)); + Assertions.assertEquals("lrbpbewtghfgbl", model.vmMembers().get(0)); + Assertions.assertEquals("xiebwwaloayqcg", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } @@ -29,14 +29,14 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { PlacementPolicyUpdateProperties model = new PlacementPolicyUpdateProperties().withState(PlacementPolicyState.DISABLED) - .withVmMembers(Arrays.asList("pnazzm", "jrunmpxtt")) - .withHostMembers(Arrays.asList("rbnlankxmyskp", "henbtkcxywnytn", "synlqidybyxczfc", "haaxdbabphl")) + .withVmMembers(Arrays.asList("lrbpbewtghfgbl", "gw", "zvlvqhjkbegib")) + .withHostMembers(Arrays.asList("xiebwwaloayqcg", "rtzju")) .withAffinityStrength(AffinityStrength.MUST) .withAzureHybridBenefitType(AzureHybridBenefitType.SQL_HOST); model = BinaryData.fromObject(model).toObject(PlacementPolicyUpdateProperties.class); Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); - Assertions.assertEquals("pnazzm", model.vmMembers().get(0)); - Assertions.assertEquals("rbnlankxmyskp", model.hostMembers().get(0)); + Assertions.assertEquals("lrbpbewtghfgbl", model.vmMembers().get(0)); + Assertions.assertEquals("xiebwwaloayqcg", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdateTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdateTests.java index d1f80d3e9f38..600d871dc3cc 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdateTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PlacementPolicyUpdateTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -16,11 +16,11 @@ public final class PlacementPolicyUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyUpdate model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Enabled\",\"vmMembers\":[\"n\",\"uynhijg\"],\"hostMembers\":[\"bfs\"],\"affinityStrength\":\"Should\",\"azureHybridBenefitType\":\"SqlHost\"}}") + "{\"properties\":{\"state\":\"Enabled\",\"vmMembers\":[\"klwndnhjdauwhv\",\"l\"],\"hostMembers\":[\"tdhxujznbmpowuwp\",\"zqlveualupjmkhf\",\"obbc\"],\"affinityStrength\":\"Should\",\"azureHybridBenefitType\":\"SqlHost\"}}") .toObject(PlacementPolicyUpdate.class); Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("n", model.vmMembers().get(0)); - Assertions.assertEquals("bfs", model.hostMembers().get(0)); + Assertions.assertEquals("klwndnhjdauwhv", model.vmMembers().get(0)); + Assertions.assertEquals("tdhxujznbmpowuwp", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.SHOULD, model.affinityStrength()); Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } @@ -28,14 +28,14 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyUpdate model = new PlacementPolicyUpdate().withState(PlacementPolicyState.ENABLED) - .withVmMembers(Arrays.asList("n", "uynhijg")) - .withHostMembers(Arrays.asList("bfs")) + .withVmMembers(Arrays.asList("klwndnhjdauwhv", "l")) + .withHostMembers(Arrays.asList("tdhxujznbmpowuwp", "zqlveualupjmkhf", "obbc")) .withAffinityStrength(AffinityStrength.SHOULD) .withAzureHybridBenefitType(AzureHybridBenefitType.SQL_HOST); model = BinaryData.fromObject(model).toObject(PlacementPolicyUpdate.class); Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("n", model.vmMembers().get(0)); - Assertions.assertEquals("bfs", model.hostMembers().get(0)); + Assertions.assertEquals("klwndnhjdauwhv", model.vmMembers().get(0)); + Assertions.assertEquals("tdhxujznbmpowuwp", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.SHOULD, model.affinityStrength()); Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudIdentityTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudIdentityTests.java index 3c379d8bdeae..43da07287a5f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudIdentityTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudIdentityTests.java @@ -1,27 +1,27 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.avs.models.PrivateCloudIdentity; -import com.azure.resourcemanager.avs.models.ResourceIdentityType; +import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; import org.junit.jupiter.api.Assertions; public final class PrivateCloudIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateCloudIdentity model - = BinaryData.fromString("{\"principalId\":\"s\",\"tenantId\":\"gbquxigj\",\"type\":\"SystemAssigned\"}") + = BinaryData.fromString("{\"principalId\":\"gakeqsr\",\"tenantId\":\"bzqqedqytbciq\",\"type\":\"None\"}") .toObject(PrivateCloudIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(SystemAssignedServiceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateCloudIdentity model = new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED); + PrivateCloudIdentity model = new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.NONE); model = BinaryData.fromObject(model).toObject(PrivateCloudIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(SystemAssignedServiceIdentityType.NONE, model.type()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteMockTests.java index f3bb3d0a40ac..2f446791b8ee 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.privateClouds().delete("y", "pgogtqxepny", com.azure.core.util.Context.NONE); + manager.privateClouds().delete("gy", "wqfbylyrfgiagt", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/QuotaInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/QuotaInnerTests.java index 79536256a255..632eca03b9b2 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/QuotaInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/QuotaInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class QuotaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaInner model - = BinaryData.fromString("{\"hostsRemaining\":{\"ithxqhabifpi\":758913948},\"quotaEnabled\":\"Enabled\"}") + = BinaryData.fromString("{\"hostsRemaining\":{\"bifpikxwczb\":1575612003},\"quotaEnabled\":\"Disabled\"}") .toObject(QuotaInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - QuotaInner model = new QuotaInner(); - model = BinaryData.fromObject(model).toObject(QuotaInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletInnerTests.java index 08ae1b922013..f70d02327ead 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class ScriptCmdletInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"hos\",\"timeout\":\"dqrhzoymib\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Float\",\"name\":\"wfluszdt\",\"description\":\"rkwofyyvoqa\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"SecureString\",\"name\":\"giwbwoenwa\",\"description\":\"rtdtkcnqxw\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Float\",\"name\":\"ujw\",\"description\":\"sipqii\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"rpqlp\",\"name\":\"wcciuqgbdbu\",\"type\":\"auvfbtkuwhhmhyk\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"tdbhhxsrzdzu\",\"timeout\":\"rsc\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Float\",\"name\":\"wjmy\",\"description\":\"dsslswt\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Bool\",\"name\":\"pyqs\",\"description\":\"wab\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"SecureString\",\"name\":\"h\",\"description\":\"plvwiwubmwmbes\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}]},\"id\":\"tppjflcx\",\"name\":\"gaokonzmnsikv\",\"type\":\"kqze\"}") .toObject(ScriptCmdletInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptCmdletInner model = new ScriptCmdletInner(); - model = BinaryData.fromObject(model).toObject(ScriptCmdletInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletPropertiesTests.java index eabbdfdd0414..c92df1128224 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class ScriptCmdletPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"description\":\"afnn\",\"timeout\":\"pichkoymkcdy\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Int\",\"name\":\"reqnovvqfov\",\"description\":\"xywsuws\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]}") + "{\"provisioningState\":\"Failed\",\"description\":\"l\",\"timeout\":\"zxmhhvhgu\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Bool\",\"name\":\"dagxtibqd\",\"description\":\"xwak\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Int\",\"name\":\"kzgxhurip\",\"description\":\"podxunkb\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Float\",\"name\":\"ntwlrbqtkoie\",\"description\":\"eotg\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]}") .toObject(ScriptCmdletProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptCmdletProperties model = new ScriptCmdletProperties(); - model = BinaryData.fromObject(model).toObject(ScriptCmdletProperties.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetWithResponseMockTests.java index 2dc42cc9a0cf..626bd9e7f925 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class ScriptCmdletsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"swokm\",\"timeout\":\"hl\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Bool\",\"name\":\"qkzszuwiwtglxxh\",\"description\":\"fpgpicrmnzhrgm\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"Int\",\"name\":\"cbfrm\",\"description\":\"dths\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Bool\",\"name\":\"a\",\"description\":\"lacjfrnxo\",\"visibility\":\"Hidden\",\"optional\":\"Required\"}]},\"id\":\"lwvsgm\",\"name\":\"ohqfzizv\",\"type\":\"xmmkjs\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"of\",\"timeout\":\"vuhrylni\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Int\",\"name\":\"edm\",\"description\":\"kvnlvxbcuiiznkt\",\"visibility\":\"Visible\",\"optional\":\"Required\"},{\"type\":\"Float\",\"name\":\"dibmikostbzbkiwb\",\"description\":\"n\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Int\",\"name\":\"sgcrpfbcunezzce\",\"description\":\"lfwyfwlwxjwetn\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"afzvaylptrs\",\"name\":\"qwztcmwqkc\",\"type\":\"cxwaxfewz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptCmdlet response = manager.scriptCmdlets() - .getWithResponse("r", "govfgpikqmhhaow", "rmzvupo", "qzdfuydzvkfvxcn", com.azure.core.util.Context.NONE) + .getWithResponse("felisdjub", "gbqi", "kxkbsazgakgacyr", "m", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListMockTests.java index 093a063e6338..62816bfcdf73 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class ScriptCmdletsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"kfkyjp\",\"timeout\":\"pbpssdfpp\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Bool\",\"name\":\"jtvczkcnyxrxmun\",\"description\":\"xvglnkvxlxp\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Float\",\"name\":\"kc\",\"description\":\"hpzvuqdflvoniyp\",\"visibility\":\"Hidden\",\"optional\":\"Required\"}]},\"id\":\"zgp\",\"name\":\"tivhjknidibgqjx\",\"type\":\"p\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"yryuzcb\",\"timeout\":\"qvx\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"SecureString\",\"name\":\"xo\",\"description\":\"upeujlzqnhcvsq\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Credential\",\"name\":\"sxgnx\",\"description\":\"qonmpqoxwdof\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"SecureString\",\"name\":\"iqbi\",\"description\":\"tmwwi\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Credential\",\"name\":\"fvwbcb\",\"description\":\"mbnkb\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}]},\"id\":\"divqi\",\"name\":\"ebwtswb\",\"type\":\"uwfmduragegizvc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.scriptCmdlets() - .list("iwhxqszdtmaajq", "huxy", "rjvmtygjbmzyosp", com.azure.core.util.Context.NONE); + .list("mxyasflvgsgzw", "wakoihkn", "mjblmljhlny", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListTests.java index 4a750a744883..4208c68360a8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsListTests.java @@ -1,30 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.ScriptCmdletInner; -import com.azure.resourcemanager.avs.models.ScriptCmdletsList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.ScriptCmdletsList; import org.junit.jupiter.api.Assertions; public final class ScriptCmdletsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"ikdowwquuvx\",\"timeout\":\"clvit\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Float\",\"name\":\"ggbhcohfwds\",\"description\":\"ka\",\"visibility\":\"Hidden\",\"optional\":\"Required\"}]},\"id\":\"swacffgdkzz\",\"name\":\"wkfvhqcrailvp\",\"type\":\"ppfufl\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"dlxyjrxs\",\"timeout\":\"afcnih\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Int\",\"name\":\"gfbcvkcv\",\"description\":\"pkeqdcvdrhvoo\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Bool\",\"name\":\"dopcjwvnh\",\"description\":\"d\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"rslpmutwuoeg\",\"name\":\"pkhjwni\",\"type\":\"qsluicp\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"zl\",\"timeout\":\"bmpaxmodfvu\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Float\",\"name\":\"vmwy\",\"description\":\"fouyf\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"SecureString\",\"name\":\"yzvqt\",\"description\":\"ubex\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"Credential\",\"name\":\"djmq\",\"description\":\"vypomgkopkwho\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"}]},\"id\":\"gxysmocmbqfqvm\",\"name\":\"cxozapvhelxp\",\"type\":\"glyatddckcbcuej\"}],\"nextLink\":\"xgc\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"t\",\"timeout\":\"aqtdoqmcbx\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"String\",\"name\":\"bhsfxob\",\"description\":\"tkblmpewww\",\"visibility\":\"Visible\",\"optional\":\"Required\"},{\"type\":\"SecureString\",\"name\":\"vshqjohxcr\",\"description\":\"fovasr\",\"visibility\":\"Visible\",\"optional\":\"Required\"},{\"type\":\"Float\",\"name\":\"fsubcgjbirxbpy\",\"description\":\"rfbjf\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}]},\"id\":\"t\",\"name\":\"tpvjzbexilzznfqq\",\"type\":\"vwpm\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"oujmkcjhwqytj\",\"timeout\":\"bnw\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Int\",\"name\":\"rvnaenqpeh\",\"description\":\"doy\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"SecureString\",\"name\":\"d\",\"description\":\"sl\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"String\",\"name\":\"nduhavhqlkthum\",\"description\":\"olbgycduiertgccy\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"SecureString\",\"name\":\"lqlfm\",\"description\":\"n\",\"visibility\":\"Hidden\",\"optional\":\"Required\"}]},\"id\":\"swiydmcwyhzdx\",\"name\":\"sadbz\",\"type\":\"nvdfznuda\"}],\"nextLink\":\"vxzbncb\"}") .toObject(ScriptCmdletsList.class); - Assertions.assertEquals("xgc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptCmdletsList model = new ScriptCmdletsList() - .withValue(Arrays.asList(new ScriptCmdletInner(), new ScriptCmdletInner(), new ScriptCmdletInner())) - .withNextLink("xgc"); - model = BinaryData.fromObject(model).toObject(ScriptCmdletsList.class); - Assertions.assertEquals("xgc", model.nextLink()); + Assertions.assertEquals("vxzbncb", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionInnerTests.java index 75a7ab111362..c6a8f9831f39 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionInnerTests.java @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.avs.fluent.models.ScriptExecutionInner; import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,39 +17,41 @@ public final class ScriptExecutionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionInner model = BinaryData.fromString( - "{\"properties\":{\"scriptCmdletId\":\"txmedj\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"lynqwwncwzzh\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"gktrmgucnapkte\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ellwptfdy\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"qbuaceopzfqr\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"huaoppp\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"qeqxo\"}],\"failureReason\":\"dahzxctobg\",\"timeout\":\"kdmoi\",\"retention\":\"ostmgrcf\",\"submittedAt\":\"2021-06-18T12:29:32Z\",\"startedAt\":\"2021-06-08T13:34:15Z\",\"finishedAt\":\"2021-07-20T04:26:41Z\",\"provisioningState\":\"Canceled\",\"output\":[\"xbpvjymjhx\",\"j\"],\"namedOutputs\":{\"ivkrtsw\":\"datau\",\"vjfdx\":\"dataxqzvszjfa\",\"qtdo\":\"dataivetvtcq\",\"bhsfxob\":\"datamcbxvwvxysl\"},\"information\":[\"k\",\"lmpewwwfbkr\",\"rn\"],\"warnings\":[\"hqjohxcrsbfova\",\"rruvwbhsq\",\"sub\"],\"errors\":[\"birx\"]},\"id\":\"ybsrfbjfdtwss\",\"name\":\"t\",\"type\":\"tpvjzbexilzznfqq\"}") + "{\"properties\":{\"scriptCmdletId\":\"itc\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"cktqumiekkezzi\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"hlyfjhdgqgg\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"bdunygaeqid\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"atpxl\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"rxcyjmoad\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"uvarmywdmjsjq\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"jhhyxxrwlycoduhp\"}],\"failureReason\":\"kgymareqnajxqug\",\"timeout\":\"hky\",\"retention\":\"beddgssofw\",\"submittedAt\":\"2021-08-12T00:48:32Z\",\"startedAt\":\"2021-09-09T11:18:40Z\",\"finishedAt\":\"2021-02-22T22:05:21Z\",\"provisioningState\":\"Cancelled\",\"output\":[\"i\",\"pxacqqudfn\"],\"namedOutputs\":{\"baaa\":{},\"jyvayffimrzrtuz\":{},\"ogs\":{}},\"information\":[\"evfdnwnwm\",\"wzsyyceuzs\"],\"warnings\":[\"judpfrxt\",\"thzvaytdwkqbrqu\",\"paxh\",\"xiilivpdtiirqt\"],\"errors\":[\"axoruzfgsquy\",\"xrxxlep\",\"ramxjezwlwnw\"]},\"id\":\"qlcvydy\",\"name\":\"atdooaojkniod\",\"type\":\"oo\"}") .toObject(ScriptExecutionInner.class); - Assertions.assertEquals("txmedj", model.scriptCmdletId()); - Assertions.assertEquals("lynqwwncwzzh", model.parameters().get(0).name()); - Assertions.assertEquals("qbuaceopzfqr", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("dahzxctobg", model.failureReason()); - Assertions.assertEquals("kdmoi", model.timeout()); - Assertions.assertEquals("ostmgrcf", model.retention()); - Assertions.assertEquals("xbpvjymjhx", model.output().get(0)); + Assertions.assertEquals("itc", model.scriptCmdletId()); + Assertions.assertEquals("cktqumiekkezzi", model.parameters().get(0).name()); + Assertions.assertEquals("atpxl", model.hiddenParameters().get(0).name()); + Assertions.assertEquals("kgymareqnajxqug", model.failureReason()); + Assertions.assertEquals("hky", model.timeout()); + Assertions.assertEquals("beddgssofw", model.retention()); + Assertions.assertEquals("i", model.output().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScriptExecutionInner model = new ScriptExecutionInner().withScriptCmdletId("txmedj") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("lynqwwncwzzh"), - new ScriptExecutionParameter().withName("gktrmgucnapkte"), - new ScriptExecutionParameter().withName("ellwptfdy"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("qbuaceopzfqr"), - new ScriptExecutionParameter().withName("huaoppp"), new ScriptExecutionParameter().withName("qeqxo"))) - .withFailureReason("dahzxctobg") - .withTimeout("kdmoi") - .withRetention("ostmgrcf") - .withOutput(Arrays.asList("xbpvjymjhx", "j")) - .withNamedOutputs(mapOf("ivkrtsw", "datau", "vjfdx", "dataxqzvszjfa", "qtdo", "dataivetvtcq", "bhsfxob", - "datamcbxvwvxysl")); + ScriptExecutionInner model = new ScriptExecutionInner().withScriptCmdletId("itc") + .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("cktqumiekkezzi"), + new ScriptExecutionParameter().withName("hlyfjhdgqgg"), + new ScriptExecutionParameter().withName("bdunygaeqid"))) + .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("atpxl"), + new ScriptExecutionParameter().withName("rxcyjmoad"), + new ScriptExecutionParameter().withName("uvarmywdmjsjq"), + new ScriptExecutionParameter().withName("jhhyxxrwlycoduhp"))) + .withFailureReason("kgymareqnajxqug") + .withTimeout("hky") + .withRetention("beddgssofw") + .withOutput(Arrays.asList("i", "pxacqqudfn")) + .withNamedOutputs(mapOf("baaa", new ScriptExecutionPropertiesNamedOutput(), "jyvayffimrzrtuz", + new ScriptExecutionPropertiesNamedOutput(), "ogs", new ScriptExecutionPropertiesNamedOutput())); model = BinaryData.fromObject(model).toObject(ScriptExecutionInner.class); - Assertions.assertEquals("txmedj", model.scriptCmdletId()); - Assertions.assertEquals("lynqwwncwzzh", model.parameters().get(0).name()); - Assertions.assertEquals("qbuaceopzfqr", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("dahzxctobg", model.failureReason()); - Assertions.assertEquals("kdmoi", model.timeout()); - Assertions.assertEquals("ostmgrcf", model.retention()); - Assertions.assertEquals("xbpvjymjhx", model.output().get(0)); + Assertions.assertEquals("itc", model.scriptCmdletId()); + Assertions.assertEquals("cktqumiekkezzi", model.parameters().get(0).name()); + Assertions.assertEquals("atpxl", model.hiddenParameters().get(0).name()); + Assertions.assertEquals("kgymareqnajxqug", model.failureReason()); + Assertions.assertEquals("hky", model.timeout()); + Assertions.assertEquals("beddgssofw", model.retention()); + Assertions.assertEquals("i", model.output().get(0)); } // Use "Map.of" if available diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionParameterTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionParameterTests.java index 474df6cd02a3..19bb6f0a086f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionParameterTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionParameterTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,15 @@ public final class ScriptExecutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionParameter model - = BinaryData.fromString("{\"type\":\"ScriptExecutionParameter\",\"name\":\"gaokonzmnsikv\"}") + = BinaryData.fromString("{\"type\":\"ScriptExecutionParameter\",\"name\":\"sdbnwdcfhucqdpf\"}") .toObject(ScriptExecutionParameter.class); - Assertions.assertEquals("gaokonzmnsikv", model.name()); + Assertions.assertEquals("sdbnwdcfhucqdpf", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScriptExecutionParameter model = new ScriptExecutionParameter().withName("gaokonzmnsikv"); + ScriptExecutionParameter model = new ScriptExecutionParameter().withName("sdbnwdcfhucqdpf"); model = BinaryData.fromObject(model).toObject(ScriptExecutionParameter.class); - Assertions.assertEquals("gaokonzmnsikv", model.name()); + Assertions.assertEquals("sdbnwdcfhucqdpf", model.name()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesNamedOutputTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesNamedOutputTests.java new file mode 100644 index 000000000000..2430a8a438d1 --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesNamedOutputTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.avs.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; + +public final class ScriptExecutionPropertiesNamedOutputTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ScriptExecutionPropertiesNamedOutput model + = BinaryData.fromString("{}").toObject(ScriptExecutionPropertiesNamedOutput.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ScriptExecutionPropertiesNamedOutput model = new ScriptExecutionPropertiesNamedOutput(); + model = BinaryData.fromObject(model).toObject(ScriptExecutionPropertiesNamedOutput.class); + } +} diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesTests.java index e59334b3c0d2..376ded2ac399 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionPropertiesTests.java @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.avs.fluent.models.ScriptExecutionProperties; import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,37 +17,40 @@ public final class ScriptExecutionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionProperties model = BinaryData.fromString( - "{\"scriptCmdletId\":\"wpmqt\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"oujmkcjhwqytj\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ybn\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"jewgdrjerv\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"nqpeh\"}],\"failureReason\":\"doy\",\"timeout\":\"mifthnzdnd\",\"retention\":\"gnayqigynduh\",\"submittedAt\":\"2021-02-07T07:32:59Z\",\"startedAt\":\"2021-02-05T08:21:04Z\",\"finishedAt\":\"2021-06-18T10:05:08Z\",\"provisioningState\":\"Failed\",\"output\":[\"qolbgyc\",\"uie\",\"tgccymvaolpss\",\"qlfmmdnbb\"],\"namedOutputs\":{\"dxssadbzm\":\"datapswiydmcwyh\",\"cblylpstdbhhxsr\":\"datavdfznudaodvxzb\",\"erscdntne\":\"datadzu\"},\"information\":[\"wjmy\",\"tdss\",\"s\"],\"warnings\":[\"weriofzpyqsem\",\"abnetshh\",\"zhedplvwiw\"],\"errors\":[\"wmbesldnkw\",\"tppjflcx\"]}") + "{\"scriptCmdletId\":\"wnujhemmsbvdk\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"dtjinfw\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"lfltka\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"efkdlf\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"akggkfpag\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"owpulpq\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"lyls\"}],\"failureReason\":\"k\",\"timeout\":\"jnsjervtiagxsd\",\"retention\":\"uem\",\"submittedAt\":\"2021-06-09T02:50:50Z\",\"startedAt\":\"2021-10-12T12:33:37Z\",\"finishedAt\":\"2021-02-15T03:12:09Z\",\"provisioningState\":\"Cancelled\",\"output\":[\"pnqi\"],\"namedOutputs\":{\"nvkjjxdxrbuukzcl\":{},\"wyhmlw\":{},\"aztz\":{},\"ofncckwyfzqwhxxb\":{}},\"information\":[\"a\"],\"warnings\":[\"eqz\",\"ppriol\",\"or\"],\"errors\":[\"tolmncwsobqw\"]}") .toObject(ScriptExecutionProperties.class); - Assertions.assertEquals("wpmqt", model.scriptCmdletId()); - Assertions.assertEquals("oujmkcjhwqytj", model.parameters().get(0).name()); - Assertions.assertEquals("nqpeh", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("doy", model.failureReason()); - Assertions.assertEquals("mifthnzdnd", model.timeout()); - Assertions.assertEquals("gnayqigynduh", model.retention()); - Assertions.assertEquals("qolbgyc", model.output().get(0)); + Assertions.assertEquals("wnujhemmsbvdk", model.scriptCmdletId()); + Assertions.assertEquals("dtjinfw", model.parameters().get(0).name()); + Assertions.assertEquals("efkdlf", model.hiddenParameters().get(0).name()); + Assertions.assertEquals("k", model.failureReason()); + Assertions.assertEquals("jnsjervtiagxsd", model.timeout()); + Assertions.assertEquals("uem", model.retention()); + Assertions.assertEquals("pnqi", model.output().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScriptExecutionProperties model = new ScriptExecutionProperties().withScriptCmdletId("wpmqt") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("oujmkcjhwqytj"), - new ScriptExecutionParameter().withName("ybn"), new ScriptExecutionParameter().withName("jewgdrjerv"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("nqpeh"))) - .withFailureReason("doy") - .withTimeout("mifthnzdnd") - .withRetention("gnayqigynduh") - .withOutput(Arrays.asList("qolbgyc", "uie", "tgccymvaolpss", "qlfmmdnbb")) - .withNamedOutputs( - mapOf("dxssadbzm", "datapswiydmcwyh", "cblylpstdbhhxsr", "datavdfznudaodvxzb", "erscdntne", "datadzu")); + ScriptExecutionProperties model = new ScriptExecutionProperties().withScriptCmdletId("wnujhemmsbvdk") + .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("dtjinfw"), + new ScriptExecutionParameter().withName("lfltka"))) + .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("efkdlf"), + new ScriptExecutionParameter().withName("akggkfpag"), + new ScriptExecutionParameter().withName("owpulpq"), new ScriptExecutionParameter().withName("lyls"))) + .withFailureReason("k") + .withTimeout("jnsjervtiagxsd") + .withRetention("uem") + .withOutput(Arrays.asList("pnqi")) + .withNamedOutputs(mapOf("nvkjjxdxrbuukzcl", new ScriptExecutionPropertiesNamedOutput(), "wyhmlw", + new ScriptExecutionPropertiesNamedOutput(), "aztz", new ScriptExecutionPropertiesNamedOutput(), + "ofncckwyfzqwhxxb", new ScriptExecutionPropertiesNamedOutput())); model = BinaryData.fromObject(model).toObject(ScriptExecutionProperties.class); - Assertions.assertEquals("wpmqt", model.scriptCmdletId()); - Assertions.assertEquals("oujmkcjhwqytj", model.parameters().get(0).name()); - Assertions.assertEquals("nqpeh", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("doy", model.failureReason()); - Assertions.assertEquals("mifthnzdnd", model.timeout()); - Assertions.assertEquals("gnayqigynduh", model.retention()); - Assertions.assertEquals("qolbgyc", model.output().get(0)); + Assertions.assertEquals("wnujhemmsbvdk", model.scriptCmdletId()); + Assertions.assertEquals("dtjinfw", model.parameters().get(0).name()); + Assertions.assertEquals("efkdlf", model.hiddenParameters().get(0).name()); + Assertions.assertEquals("k", model.failureReason()); + Assertions.assertEquals("jnsjervtiagxsd", model.timeout()); + Assertions.assertEquals("uem", model.retention()); + Assertions.assertEquals("pnqi", model.output().get(0)); } // Use "Map.of" if available diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateMockTests.java index 11d1730153df..11b2be388a4c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsCreateOrUpdateMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,6 +12,7 @@ import com.azure.resourcemanager.avs.AvsManager; import com.azure.resourcemanager.avs.models.ScriptExecution; import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; +import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -25,7 +26,7 @@ public final class ScriptExecutionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"hndvnoamldsehao\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"hhflzo\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"xcoxpelnjet\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"gltsxoat\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"tgzpnpb\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"e\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"loccsrmozihm\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"pgawtxxpkyjcxcjx\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"rytfmpcycil\"}],\"failureReason\":\"caykggnoxuz\",\"timeout\":\"rksxwpndfc\",\"retention\":\"nznthjtw\",\"submittedAt\":\"2021-04-10T21:21:13Z\",\"startedAt\":\"2021-06-06T01:38:06Z\",\"finishedAt\":\"2021-07-22T12:28:11Z\",\"provisioningState\":\"Succeeded\",\"output\":[\"amktcqiosmgbzah\",\"xqdlyrtltlapr\"],\"namedOutputs\":{\"nnbsoqeqa\":\"datakatbhjm\",\"febwlnbmhyreeudz\":\"dataarvlagunbt\"},\"information\":[\"bpdqmjxlyy\",\"glgou\",\"tlmj\",\"yuojqtobaxk\"],\"warnings\":[\"tu\",\"lbfjkwr\",\"snkq\"],\"errors\":[\"y\"]},\"id\":\"unjqh\",\"name\":\"enx\",\"type\":\"ulkpakd\"}"; + = "{\"properties\":{\"scriptCmdletId\":\"mur\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"g\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"ktvqylkmqpzoy\"}],\"failureReason\":\"fbcgwgcloxoebqin\",\"timeout\":\"ipnwj\",\"retention\":\"jqlafcbahhpzp\",\"submittedAt\":\"2021-05-12T03:58:05Z\",\"startedAt\":\"2021-01-21T09:59:18Z\",\"finishedAt\":\"2021-05-13T07:58:47Z\",\"provisioningState\":\"Succeeded\",\"output\":[\"kmkkholvdnd\",\"iauogphuartv\",\"iukyefchnmna\",\"mnxhkxjqirwrweo\"],\"namedOutputs\":{\"fifhxwrsnew\":{},\"ozqvbubqmam\":{}},\"information\":[\"cx\",\"xz\",\"azttaboidvmfq\"],\"warnings\":[\"ubowsepdfgkm\",\"dherngbtcj\",\"ahokqtobkauxofsh\"],\"errors\":[\"wpnulaiywzejyw\",\"slwkojpl\",\"ndnpdwrpqafgfug\",\"nnfhyetefypo\"]},\"id\":\"ctfjgtixr\",\"name\":\"vzuyturmlmu\",\"type\":\"wolba\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,27 +36,30 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptExecution response = manager.scriptExecutions() - .define("elfwy") - .withExistingPrivateCloud("fy", "sgcrpfbcunezzce") - .withScriptCmdletId("wx") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("tnpsihclaf"), - new ScriptExecutionParameter().withName("va"), new ScriptExecutionParameter().withName("lpt"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("qwztcmwqkc"), - new ScriptExecutionParameter().withName("cxwaxfewz"))) - .withFailureReason("jexfdeqvhp") - .withTimeout("ylkkshkbffmbm") - .withRetention("jrgywwpgjxsn") - .withOutput(Arrays.asList("o", "pttaqutd", "wemxswvruunzz", "gehkfkimrtixokff")) - .withNamedOutputs(mapOf("shiy", "datanljqepqwhixmons", "du", "datagvelfc", "rds", "datacb", "b", "datauwc")) + .define("kqmhhaowjr") + .withExistingPrivateCloud("idibgqjxgpn", "hgovfgp") + .withScriptCmdletId("uporqzdfu") + .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("vkfvxcnqmxqpswok"), + new ScriptExecutionParameter().withName("vkhlggdhbemz"))) + .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("sz"), + new ScriptExecutionParameter().withName("wiwtglxxhl"), + new ScriptExecutionParameter().withName("fpgpicrmnzhrgm"))) + .withFailureReason("j") + .withTimeout("x") + .withRetention("qcbfrmbodths") + .withOutput(Arrays.asList("lacjfrnxo")) + .withNamedOutputs(mapOf("au", new ScriptExecutionPropertiesNamedOutput(), "lwvsgm", + new ScriptExecutionPropertiesNamedOutput(), "ohqfzizv", new ScriptExecutionPropertiesNamedOutput(), + "xmmkjs", new ScriptExecutionPropertiesNamedOutput())) .create(); - Assertions.assertEquals("hndvnoamldsehao", response.scriptCmdletId()); - Assertions.assertEquals("hhflzo", response.parameters().get(0).name()); - Assertions.assertEquals("e", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("caykggnoxuz", response.failureReason()); - Assertions.assertEquals("rksxwpndfc", response.timeout()); - Assertions.assertEquals("nznthjtw", response.retention()); - Assertions.assertEquals("amktcqiosmgbzah", response.output().get(0)); + Assertions.assertEquals("mur", response.scriptCmdletId()); + Assertions.assertEquals("g", response.parameters().get(0).name()); + Assertions.assertEquals("ktvqylkmqpzoy", response.hiddenParameters().get(0).name()); + Assertions.assertEquals("fbcgwgcloxoebqin", response.failureReason()); + Assertions.assertEquals("ipnwj", response.timeout()); + Assertions.assertEquals("jqlafcbahhpzp", response.retention()); + Assertions.assertEquals("kmkkholvdnd", response.output().get(0)); } // Use "Map.of" if available diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteMockTests.java index f9b985ce163f..759974f095ea 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsDeleteMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.scriptExecutions().delete("puamwabzxr", "xcushs", "haivm", com.azure.core.util.Context.NONE); + manager.scriptExecutions().delete("pakdkifmjnnawt", "abpxuc", "p", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsWithResponseMockTests.java index f3aae719e3c6..d875c3480d5a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetExecutionLogsWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class ScriptExecutionsGetExecutionLogsWithResponseMockTests { @Test public void testGetExecutionLogsWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"cbm\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"xmvwfg\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ayxonsupeujl\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"hcvsqltnzoi\"}],\"failureReason\":\"sxgnx\",\"timeout\":\"yqo\",\"retention\":\"p\",\"submittedAt\":\"2021-05-25T17:04:08Z\",\"startedAt\":\"2021-08-14T04:57:20Z\",\"finishedAt\":\"2021-04-29T21:53:48Z\",\"provisioningState\":\"Cancelled\",\"output\":[\"qxeiiqbimhtmwwi\",\"h\",\"hfqpofv\"],\"namedOutputs\":{\"vqihebwtswbzuwf\":\"datablembnkbwvqvxkd\",\"felisdjub\":\"dataduragegizvc\",\"kxkbsazgakgacyr\":\"datagbqi\"},\"information\":[\"dmspof\",\"pv\",\"hryl\",\"iofrzgbzjedmstk\"],\"warnings\":[\"v\"],\"errors\":[\"uiiznktwfansnvpd\"]},\"id\":\"mik\",\"name\":\"stbz\",\"type\":\"kiwbuqnyoph\"}"; + = "{\"properties\":{\"scriptCmdletId\":\"pqxpx\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"cng\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"saasiixtmkzj\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"iirhgfgrwsd\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"gratzvzbglbyvict\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"tbrxkjz\"}],\"failureReason\":\"gxffmshkwf\",\"timeout\":\"kgozxwop\",\"retention\":\"yd\",\"submittedAt\":\"2021-04-25T08:18:32Z\",\"startedAt\":\"2021-07-17T17:39:38Z\",\"finishedAt\":\"2021-01-06T13:56:26Z\",\"provisioningState\":\"Canceled\",\"output\":[\"biygnugjknfsmfct\",\"uxuuyilflq\",\"iquvrehm\",\"njhvsujztc\"],\"namedOutputs\":{\"qjtwhauu\":{},\"fprnjl\":{},\"tlxs\":{}},\"information\":[\"ddoui\",\"amowaziynknlqwzd\",\"piwhxqs\",\"dtmaa\"],\"warnings\":[\"huxy\",\"rjvmtygjbmzyosp\",\"p\",\"hckfkyjpmspbps\"],\"errors\":[\"ppyo\",\"tieyujtvczkcny\",\"rxmunjdxvgln\",\"vxlx\"]},\"id\":\"glqivbgkcv\",\"name\":\"hpzvuqdflvoniyp\",\"type\":\"pubcpzgpxtivhjk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,17 @@ public void testGetExecutionLogsWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptExecution response = manager.scriptExecutions() - .getExecutionLogsWithResponse("yasflvgsgzwy", "akoi", "knsmjblmljhlnymz", - Arrays.asList(ScriptOutputStreamType.ERROR, ScriptOutputStreamType.WARNING, - ScriptOutputStreamType.OUTPUT, ScriptOutputStreamType.ERROR), + .getExecutionLogsWithResponse("gqoweyirdhlisn", "wfl", "qmp", + Arrays.asList(ScriptOutputStreamType.OUTPUT, ScriptOutputStreamType.ERROR), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("cbm", response.scriptCmdletId()); - Assertions.assertEquals("xmvwfg", response.parameters().get(0).name()); - Assertions.assertEquals("hcvsqltnzoi", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("sxgnx", response.failureReason()); - Assertions.assertEquals("yqo", response.timeout()); - Assertions.assertEquals("p", response.retention()); - Assertions.assertEquals("qxeiiqbimhtmwwi", response.output().get(0)); + Assertions.assertEquals("pqxpx", response.scriptCmdletId()); + Assertions.assertEquals("cng", response.parameters().get(0).name()); + Assertions.assertEquals("iirhgfgrwsd", response.hiddenParameters().get(0).name()); + Assertions.assertEquals("gxffmshkwf", response.failureReason()); + Assertions.assertEquals("kgozxwop", response.timeout()); + Assertions.assertEquals("yd", response.retention()); + Assertions.assertEquals("biygnugjknfsmfct", response.output().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetWithResponseMockTests.java index afa3eddb1527..2ab1d6699d50 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class ScriptExecutionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"ajqglcf\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"rqryxynqn\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"p\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ovw\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"zn\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"tgoe\"}],\"failureReason\":\"bbabp\",\"timeout\":\"hv\",\"retention\":\"lkvn\",\"submittedAt\":\"2021-08-17T19:10:03Z\",\"startedAt\":\"2021-02-17T02:46:23Z\",\"finishedAt\":\"2021-08-14T15:24:28Z\",\"provisioningState\":\"Succeeded\",\"output\":[\"rioov\"],\"namedOutputs\":{\"frygznmmax\":\"datasxwaabzm\",\"xlhslnel\":\"dataizkzobgo\"},\"information\":[\"ixynllxecwcrojp\",\"slhcawjutifd\",\"fmvigorqjbttzh\",\"aglkafhon\"],\"warnings\":[\"jeick\",\"zvcpopm\"],\"errors\":[\"nwcl\",\"yjede\",\"xm\"]},\"id\":\"mkqscaz\",\"name\":\"awx\",\"type\":\"z\"}"; + = "{\"properties\":{\"scriptCmdletId\":\"grytfmpcyci\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"caykggnoxuz\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"rksxwpndfc\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"znth\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"twk\"}],\"failureReason\":\"osrxuzvoa\",\"timeout\":\"ktcqio\",\"retention\":\"gbzahgxqdlyr\",\"submittedAt\":\"2021-02-05T18:12:47Z\",\"startedAt\":\"2021-10-26T07:29:55Z\",\"finishedAt\":\"2021-07-14T07:13:53Z\",\"provisioningState\":\"Succeeded\",\"output\":[\"atbhjmznn\",\"s\"],\"namedOutputs\":{\"qalarvlagunbtg\":{}},\"information\":[\"wlnbm\"],\"warnings\":[\"e\",\"udzqavbp\",\"qmjxlyyzglgouwtl\"],\"errors\":[\"yuojqtobaxk\",\"eytu\",\"lbfjkwr\",\"snkq\"]},\"id\":\"syrq\",\"name\":\"njqhdenxa\",\"type\":\"l\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptExecution response = manager.scriptExecutions() - .getWithResponse("qxtbjwgnyf", "sf", "svtui", com.azure.core.util.Context.NONE) + .getWithResponse("vefloccsrmozihmi", "g", "wtxxpkyjcx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ajqglcf", response.scriptCmdletId()); - Assertions.assertEquals("rqryxynqn", response.parameters().get(0).name()); - Assertions.assertEquals("p", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("bbabp", response.failureReason()); - Assertions.assertEquals("hv", response.timeout()); - Assertions.assertEquals("lkvn", response.retention()); - Assertions.assertEquals("rioov", response.output().get(0)); + Assertions.assertEquals("grytfmpcyci", response.scriptCmdletId()); + Assertions.assertEquals("caykggnoxuz", response.parameters().get(0).name()); + Assertions.assertEquals("znth", response.hiddenParameters().get(0).name()); + Assertions.assertEquals("osrxuzvoa", response.failureReason()); + Assertions.assertEquals("ktcqio", response.timeout()); + Assertions.assertEquals("gbzahgxqdlyr", response.retention()); + Assertions.assertEquals("atbhjmznn", response.output().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListMockTests.java index dd51099709c6..c2357e4c9689 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class ScriptExecutionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"hdxbzlm\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"apcvhdbe\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"wqqxeysko\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"qzinkfkbg\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"z\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"xeqoc\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"jmygvk\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"qkjjeokbz\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"fezrx\"}],\"failureReason\":\"zurtleipqxbkwvz\",\"timeout\":\"nzvdfbzdixzmq\",\"retention\":\"odawopqhewjptmcg\",\"submittedAt\":\"2021-04-24T18:57:19Z\",\"startedAt\":\"2021-03-17T12:43:28Z\",\"finishedAt\":\"2021-01-11T18:38:59Z\",\"provisioningState\":\"Cancelling\",\"output\":[\"atutmzlbiojlvfhr\"],\"namedOutputs\":{\"hppr\":\"dataneqvcwwyyurmo\"},\"information\":[\"nmokayzejnhlbk\",\"bzpcpiljhahzvec\",\"ndbnwieh\"],\"warnings\":[\"wjwiuub\",\"efqsfapaqtferrqw\",\"x\"],\"errors\":[\"fxapjwogqqnobpu\",\"cdabtqwpwya\",\"bzasqbucljgkyexa\",\"guyaip\"]},\"id\":\"sdaultxij\",\"name\":\"um\",\"type\":\"qwazlnqnmcjngzq\"}]}"; + = "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"rgywwp\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"snptfujgicgaao\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"taqutdewem\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"swvr\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"unzzjgehk\"}],\"failureReason\":\"imrt\",\"timeout\":\"xokffqyin\",\"retention\":\"qepqwhixmon\",\"submittedAt\":\"2021-01-17T19:00:27Z\",\"startedAt\":\"2021-09-25T05:57:05Z\",\"finishedAt\":\"2021-03-23T03:25:57Z\",\"provisioningState\":\"Running\",\"output\":[\"clduc\",\"birdsvuwcobiegs\",\"mninwjizcilng\",\"gshejjtbxqmulux\"],\"namedOutputs\":{\"zvners\":{},\"ycucrwnamikzeb\":{},\"qbsms\":{},\"ziqgfuh\":{}},\"information\":[\"ruswhv\",\"czznvfbycjsxj\"],\"warnings\":[\"xzv\"],\"errors\":[\"mxqhndvnoamldse\",\"aohdjh\",\"flzokxco\",\"pelnjetag\"]},\"id\":\"sxoa\",\"name\":\"ftgz\",\"type\":\"npbs\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.scriptExecutions().list("gqcwdhohsdtmc", "zsu", com.azure.core.util.Context.NONE); + = manager.scriptExecutions().list("kjexfdeqvhp", "ylkkshkbffmbm", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hdxbzlm", response.iterator().next().scriptCmdletId()); - Assertions.assertEquals("apcvhdbe", response.iterator().next().parameters().get(0).name()); - Assertions.assertEquals("xeqoc", response.iterator().next().hiddenParameters().get(0).name()); - Assertions.assertEquals("zurtleipqxbkwvz", response.iterator().next().failureReason()); - Assertions.assertEquals("nzvdfbzdixzmq", response.iterator().next().timeout()); - Assertions.assertEquals("odawopqhewjptmcg", response.iterator().next().retention()); - Assertions.assertEquals("atutmzlbiojlvfhr", response.iterator().next().output().get(0)); + Assertions.assertEquals("rgywwp", response.iterator().next().scriptCmdletId()); + Assertions.assertEquals("snptfujgicgaao", response.iterator().next().parameters().get(0).name()); + Assertions.assertEquals("taqutdewem", response.iterator().next().hiddenParameters().get(0).name()); + Assertions.assertEquals("imrt", response.iterator().next().failureReason()); + Assertions.assertEquals("xokffqyin", response.iterator().next().timeout()); + Assertions.assertEquals("qepqwhixmon", response.iterator().next().retention()); + Assertions.assertEquals("clduc", response.iterator().next().output().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListTests.java index 3e23344774b9..648ed438566f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptExecutionsListTests.java @@ -1,77 +1,26 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.ScriptExecutionInner; -import com.azure.resourcemanager.avs.models.ScriptExecutionParameter; -import com.azure.resourcemanager.avs.models.ScriptExecutionsList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.avs.implementation.models.ScriptExecutionsList; import org.junit.jupiter.api.Assertions; public final class ScriptExecutionsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"sgwbnbbeld\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"zbaliourqha\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"hashsfwxosow\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"xcug\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"cjooxdjebwpucwwf\"}],\"failureReason\":\"vbvmeu\",\"timeout\":\"civyhzceuo\",\"retention\":\"jrwjueiotwm\",\"submittedAt\":\"2021-01-06T11:18:17Z\",\"startedAt\":\"2021-05-06T08:04:17Z\",\"finishedAt\":\"2021-09-27T21:02:03Z\",\"provisioningState\":\"Pending\",\"output\":[\"rjaw\",\"qwgxhniskx\",\"bkpyc\"],\"namedOutputs\":{\"auwhvylwzbtdhx\":\"datawndnhj\"},\"information\":[\"nbmpowuwprzq\",\"veual\",\"pjmkhfxobbc\",\"wsrtjriplrbpbe\"],\"warnings\":[\"hfgblc\"],\"errors\":[\"zvlvqhjkbegib\",\"nmxiebwwaloayqc\",\"wrtz\",\"uzgwyzmhtx\"]},\"id\":\"gmtsavjcbpwxqpsr\",\"name\":\"nftguvriuhpr\",\"type\":\"mdyvxqtayriw\"},{\"properties\":{\"scriptCmdletId\":\"yqbexrmcqibycno\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"nmefqsgzvahapj\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"pvgqzcjrvxdjzlm\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"lxkvu\"}],\"failureReason\":\"hzovawjvzunlut\",\"timeout\":\"nnprn\",\"retention\":\"peilpjzuaejxdu\",\"submittedAt\":\"2021-04-04T06:42:49Z\",\"startedAt\":\"2021-07-28T02:16:26Z\",\"finishedAt\":\"2021-11-26T08:31:17Z\",\"provisioningState\":\"Running\",\"output\":[\"mv\",\"ekg\",\"wozuhkf\",\"bsjyofdx\"],\"namedOutputs\":{\"touwaboekqv\":\"datasd\"},\"information\":[\"nsmvbxwyj\"],\"warnings\":[\"hhcaal\"],\"errors\":[\"xisxyawjoyaqcsl\",\"jpkiidzyexznelix\",\"nr\"]},\"id\":\"folhbnxknal\",\"name\":\"ulppggdtpnapnyir\",\"type\":\"pu\"}],\"nextLink\":\"igvpgylg\"}") + "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"p\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"bmnzbtbhjpgl\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"fgohdneuelfphs\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"yhtozfikdowwqu\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"v\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"clvit\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"hqzonosggbhcoh\"}],\"failureReason\":\"dsjnka\",\"timeout\":\"jutiiswacff\",\"retention\":\"k\",\"submittedAt\":\"2021-07-11T14:50:31Z\",\"startedAt\":\"2021-04-30T08:45:02Z\",\"finishedAt\":\"2021-09-11T04:06:27Z\",\"provisioningState\":\"Deleting\",\"output\":[\"a\",\"lvpnpp\",\"uflrwd\"],\"namedOutputs\":{\"lxyjr\":{},\"sag\":{}},\"information\":[\"nihgwqapnedg\",\"bcvkcvqvpkeq\",\"cvdrhvoodsot\",\"obzdopcjwvnhdl\"],\"warnings\":[\"gx\",\"xrslpm\",\"twuoegrpkhjwni\"],\"errors\":[\"luicpdggkzzlvmbm\",\"axmodfvuef\",\"wsbpfvm\"]},\"id\":\"hrfou\",\"name\":\"ft\",\"type\":\"akcp\"},{\"properties\":{\"scriptCmdletId\":\"zvqtmnubexkp\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"mond\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"mquxvypo\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"opkwhojv\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ajqgxy\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"mocmbqfqvmk\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"xozap\"}],\"failureReason\":\"elxprglyatddck\",\"timeout\":\"bcuejrjxgci\",\"retention\":\"brh\",\"submittedAt\":\"2021-06-17T17:34:16Z\",\"startedAt\":\"2021-06-01T12:21:20Z\",\"finishedAt\":\"2021-02-04T15:03:28Z\",\"provisioningState\":\"Deleting\",\"output\":[\"m\"],\"namedOutputs\":{\"rq\":{}},\"information\":[\"ahwfluszdtmhrk\",\"ofyyvoqacpi\"],\"warnings\":[\"btgiwbwoenwas\"],\"errors\":[\"dtkcnqxwbpokulp\",\"ujw\"]},\"id\":\"sipqii\",\"name\":\"byuqerpqlp\",\"type\":\"wcciuqgbdbu\"},{\"properties\":{\"scriptCmdletId\":\"vfbtkuwh\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"ykojoxafnndlpic\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"koymkcd\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"h\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"pkkpw\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"q\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ovvqfovljxywsu\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"syrsndsytgadgvra\"}],\"failureReason\":\"en\",\"timeout\":\"qnzarrwl\",\"retention\":\"uijfqk\",\"submittedAt\":\"2021-06-20T18:32:46Z\",\"startedAt\":\"2021-05-07T16:01:38Z\",\"finishedAt\":\"2021-07-18T18:26:22Z\",\"provisioningState\":\"Pending\",\"output\":[\"ji\",\"wwiftohqkvpuv\",\"sgplsakn\"],\"namedOutputs\":{\"synljphuopxodl\":{},\"iyntorzihle\":{},\"sjswsrms\":{}},\"information\":[\"rpzbchckqqzqi\",\"xiy\"],\"warnings\":[\"i\",\"ynkedyatrwyhqmib\",\"yhwitsmypyynpcdp\",\"mnzgmwznmabi\"],\"errors\":[\"orgjhxbldt\",\"wwrlkdmtncv\"]},\"id\":\"otllxdyhgsyo\",\"name\":\"ogjltdtbnnhad\",\"type\":\"ocrkvcikh\"},{\"properties\":{\"scriptCmdletId\":\"amqgxqquezikyw\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"kallatmel\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"uipiccjzk\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"gvvcnayrhyr\"}],\"failureReason\":\"xmueed\",\"timeout\":\"drd\",\"retention\":\"tkwqqtchealm\",\"submittedAt\":\"2021-09-27T23:43:44Z\",\"startedAt\":\"2021-10-14T04:38:13Z\",\"finishedAt\":\"2021-04-13T10:54:30Z\",\"provisioningState\":\"Pending\",\"output\":[\"vgpiohgwxrt\",\"udxepxgyqagv\"],\"namedOutputs\":{\"npkukghimdblx\":{},\"wi\":{},\"fnjhfjxwmszkkfo\":{},\"rey\":{}},\"information\":[\"ikf\"],\"warnings\":[\"n\",\"a\"],\"errors\":[\"wczelpci\",\"elsfeaen\",\"abfatkl\"]},\"id\":\"xbjhwuaanozjosph\",\"name\":\"oulpjrv\",\"type\":\"ag\"}],\"nextLink\":\"vimjwos\"}") .toObject(ScriptExecutionsList.class); - Assertions.assertEquals("sgwbnbbeld", model.value().get(0).scriptCmdletId()); - Assertions.assertEquals("zbaliourqha", model.value().get(0).parameters().get(0).name()); - Assertions.assertEquals("hashsfwxosow", model.value().get(0).hiddenParameters().get(0).name()); - Assertions.assertEquals("vbvmeu", model.value().get(0).failureReason()); - Assertions.assertEquals("civyhzceuo", model.value().get(0).timeout()); - Assertions.assertEquals("jrwjueiotwm", model.value().get(0).retention()); - Assertions.assertEquals("rjaw", model.value().get(0).output().get(0)); - Assertions.assertEquals("igvpgylg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptExecutionsList model = new ScriptExecutionsList().withValue(Arrays.asList( - new ScriptExecutionInner().withScriptCmdletId("sgwbnbbeld") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("zbaliourqha"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("hashsfwxosow"), - new ScriptExecutionParameter().withName("xcug"), - new ScriptExecutionParameter().withName("cjooxdjebwpucwwf"))) - .withFailureReason("vbvmeu") - .withTimeout("civyhzceuo") - .withRetention("jrwjueiotwm") - .withOutput(Arrays.asList("rjaw", "qwgxhniskx", "bkpyc")) - .withNamedOutputs(mapOf("auwhvylwzbtdhx", "datawndnhj")), - new ScriptExecutionInner().withScriptCmdletId("yqbexrmcqibycno") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("nmefqsgzvahapj"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("pvgqzcjrvxdjzlm"), - new ScriptExecutionParameter().withName("lxkvu"))) - .withFailureReason("hzovawjvzunlut") - .withTimeout("nnprn") - .withRetention("peilpjzuaejxdu") - .withOutput(Arrays.asList("mv", "ekg", "wozuhkf", "bsjyofdx")) - .withNamedOutputs(mapOf("touwaboekqv", "datasd")))) - .withNextLink("igvpgylg"); - model = BinaryData.fromObject(model).toObject(ScriptExecutionsList.class); - Assertions.assertEquals("sgwbnbbeld", model.value().get(0).scriptCmdletId()); - Assertions.assertEquals("zbaliourqha", model.value().get(0).parameters().get(0).name()); - Assertions.assertEquals("hashsfwxosow", model.value().get(0).hiddenParameters().get(0).name()); - Assertions.assertEquals("vbvmeu", model.value().get(0).failureReason()); - Assertions.assertEquals("civyhzceuo", model.value().get(0).timeout()); - Assertions.assertEquals("jrwjueiotwm", model.value().get(0).retention()); - Assertions.assertEquals("rjaw", model.value().get(0).output().get(0)); - Assertions.assertEquals("igvpgylg", model.nextLink()); - } - - // Use "Map.of" if available - @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; + Assertions.assertEquals("p", model.value().get(0).scriptCmdletId()); + Assertions.assertEquals("bmnzbtbhjpgl", model.value().get(0).parameters().get(0).name()); + Assertions.assertEquals("clvit", model.value().get(0).hiddenParameters().get(0).name()); + Assertions.assertEquals("dsjnka", model.value().get(0).failureReason()); + Assertions.assertEquals("jutiiswacff", model.value().get(0).timeout()); + Assertions.assertEquals("k", model.value().get(0).retention()); + Assertions.assertEquals("a", model.value().get(0).output().get(0)); + Assertions.assertEquals("vimjwos", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackageInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackageInnerTests.java index e1cd4408dcbc..98978693aadd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackageInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackageInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class ScriptPackageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackageInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"mubyynt\",\"version\":\"rbqtkoie\",\"company\":\"eotg\",\"uri\":\"l\"},\"id\":\"muwlauwzizxbm\",\"name\":\"gcj\",\"type\":\"fuzmuvpbtt\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"ceopzfqrhhuaopp\",\"version\":\"qeqxo\",\"company\":\"dahzxctobg\",\"uri\":\"dmoizpostmg\"},\"id\":\"fbunrmfqjhhk\",\"name\":\"bpvjymjhx\",\"type\":\"j\"}") .toObject(ScriptPackageInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptPackageInner model = new ScriptPackageInner(); - model = BinaryData.fromObject(model).toObject(ScriptPackageInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagePropertiesTests.java index d579be12e0fa..1f73f547a5c3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class ScriptPackagePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackageProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"description\":\"rp\",\"version\":\"ebmnzbtbhjpglk\",\"company\":\"ohdneuel\",\"uri\":\"hsd\"}") + "{\"provisioningState\":\"Canceled\",\"description\":\"divkrt\",\"version\":\"bxqz\",\"company\":\"zjf\",\"uri\":\"vjfdx\"}") .toObject(ScriptPackageProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptPackageProperties model = new ScriptPackageProperties(); - model = BinaryData.fromObject(model).toObject(ScriptPackageProperties.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetWithResponseMockTests.java index 4d79e04b9388..f1b33974a5d1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class ScriptPackagesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"nfsm\",\"version\":\"ttuxuuyilflqoiqu\",\"company\":\"ehmrn\",\"uri\":\"vsujztczytqjtwh\"},\"id\":\"unfprnjletlxs\",\"name\":\"rpddouifamo\",\"type\":\"aziynknlqwzdv\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"vigorqjbttzhragl\",\"version\":\"fhonqjujeickpzvc\",\"company\":\"pmxelnwcltyje\",\"uri\":\"xxmlfmkqscazua\"},\"id\":\"tzxpuamwabzxrv\",\"name\":\"cush\",\"type\":\"phai\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptPackage response = manager.scriptPackages() - .getWithResponse("hkwfbkgozxwop", "bydpizqaclnapxb", "yg", com.azure.core.util.Context.NONE) + .getWithResponse("wcrojphslhcaw", "u", "i", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListMockTests.java index 38cfcf153f91..978a6d365720 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class ScriptPackagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"eyirdhlisngw\",\"version\":\"qqmpizruwnpqx\",\"company\":\"iwfcngjsa\",\"uri\":\"iixtmkzj\"},\"id\":\"viirhgfgrws\",\"name\":\"pgratzvzbglbyvi\",\"type\":\"tctbrxkjzwrgxffm\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"eiybbabpfhvfsl\",\"version\":\"ntjlr\",\"company\":\"jkskyr\",\"uri\":\"ovzidsx\"},\"id\":\"abzmifrygznmmaxr\",\"name\":\"zkzobgopxlhslnel\",\"type\":\"ieixynllxe\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.scriptPackages().list("ifmjnn", "wtqabpxuckp", com.azure.core.util.Context.NONE); + = manager.scriptPackages().list("qryxyn", "nzrdpsovwxz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListTests.java index db5ccd6bd32d..b107c5926b92 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptPackagesListTests.java @@ -1,29 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.ScriptPackageInner; -import com.azure.resourcemanager.avs.models.ScriptPackagesList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.ScriptPackagesList; import org.junit.jupiter.api.Assertions; public final class ScriptPackagesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackagesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"qkdltfz\",\"version\":\"hhvh\",\"company\":\"r\",\"uri\":\"dkwobdagx\"},\"id\":\"bqdxbx\",\"name\":\"akbogqxndlkzgxh\",\"type\":\"ripl\"}],\"nextLink\":\"odxun\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"ngmtsavjcb\",\"version\":\"xqpsrknftguv\",\"company\":\"uhprwmdyvxqt\",\"uri\":\"riwwroy\"},\"id\":\"exrmcqibycnojvk\",\"name\":\"mefqsgzvahapjyzh\",\"type\":\"vgqzcjrvxd\"},{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"lxkvu\",\"version\":\"hzovawjvzunlut\",\"company\":\"n\",\"uri\":\"nxipeil\"},\"id\":\"zuaejxd\",\"name\":\"ltskzbbtd\",\"type\":\"umveekgpwozuhkf\"},{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"ofd\",\"version\":\"uusdttouwa\",\"company\":\"ekqvkeln\",\"uri\":\"vbxwyjsflhh\"},\"id\":\"aln\",\"name\":\"ixisxyawjoy\",\"type\":\"qcslyjpkiid\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"nelixhnrztfo\",\"version\":\"bnxknalaulppg\",\"company\":\"tpnapnyiropuhpig\",\"uri\":\"gylgqgitxmedjvcs\"},\"id\":\"n\",\"name\":\"wwncwzzhxgk\",\"type\":\"rmgucnap\"}],\"nextLink\":\"eoellwptfdygp\"}") .toObject(ScriptPackagesList.class); - Assertions.assertEquals("odxun", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptPackagesList model - = new ScriptPackagesList().withValue(Arrays.asList(new ScriptPackageInner())).withNextLink("odxun"); - model = BinaryData.fromObject(model).toObject(ScriptPackagesList.class); - Assertions.assertEquals("odxun", model.nextLink()); + Assertions.assertEquals("eoellwptfdygp", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptParameterTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptParameterTests.java index 08e056ab07d8..15351aeb1b8a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptParameterTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptParameterTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,8 @@ public final class ScriptParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptParameter model = BinaryData.fromString( - "{\"type\":\"Bool\",\"name\":\"g\",\"description\":\"gvraeaen\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}") + "{\"type\":\"String\",\"name\":\"lauwzizxbmpgcjef\",\"description\":\"muvp\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}") .toObject(ScriptParameter.class); - Assertions.assertEquals("g", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScriptParameter model = new ScriptParameter().withName("g"); - model = BinaryData.fromObject(model).toObject(ScriptParameter.class); - Assertions.assertEquals("g", model.name()); + Assertions.assertEquals("lauwzizxbmpgcjef", model.name()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptSecureStringExecutionParameterTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptSecureStringExecutionParameterTests.java index 4b65f6a7881c..41b0ace68d20 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptSecureStringExecutionParameterTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptSecureStringExecutionParameterTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,18 +12,18 @@ public final class ScriptSecureStringExecutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptSecureStringExecutionParameter model - = BinaryData.fromString("{\"type\":\"SecureValue\",\"secureValue\":\"kq\",\"name\":\"bqgzslesjcbhern\"}") + = BinaryData.fromString("{\"type\":\"SecureValue\",\"secureValue\":\"glsbjjc\",\"name\":\"nvxbvt\"}") .toObject(ScriptSecureStringExecutionParameter.class); - Assertions.assertEquals("bqgzslesjcbhern", model.name()); - Assertions.assertEquals("kq", model.secureValue()); + Assertions.assertEquals("nvxbvt", model.name()); + Assertions.assertEquals("glsbjjc", model.secureValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ScriptSecureStringExecutionParameter model - = new ScriptSecureStringExecutionParameter().withName("bqgzslesjcbhern").withSecureValue("kq"); + = new ScriptSecureStringExecutionParameter().withName("nvxbvt").withSecureValue("glsbjjc"); model = BinaryData.fromObject(model).toObject(ScriptSecureStringExecutionParameter.class); - Assertions.assertEquals("bqgzslesjcbhern", model.name()); - Assertions.assertEquals("kq", model.secureValue()); + Assertions.assertEquals("nvxbvt", model.name()); + Assertions.assertEquals("glsbjjc", model.secureValue()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptStringExecutionParameterTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptStringExecutionParameterTests.java index e0aa3dd6f303..9dd63f31474d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptStringExecutionParameterTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptStringExecutionParameterTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,17 +12,17 @@ public final class ScriptStringExecutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptStringExecutionParameter model - = BinaryData.fromString("{\"type\":\"Value\",\"value\":\"iew\",\"name\":\"jcvb\"}") + = BinaryData.fromString("{\"type\":\"Value\",\"value\":\"dut\",\"name\":\"cormr\"}") .toObject(ScriptStringExecutionParameter.class); - Assertions.assertEquals("jcvb", model.name()); - Assertions.assertEquals("iew", model.value()); + Assertions.assertEquals("cormr", model.name()); + Assertions.assertEquals("dut", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScriptStringExecutionParameter model = new ScriptStringExecutionParameter().withName("jcvb").withValue("iew"); + ScriptStringExecutionParameter model = new ScriptStringExecutionParameter().withName("cormr").withValue("dut"); model = BinaryData.fromObject(model).toObject(ScriptStringExecutionParameter.class); - Assertions.assertEquals("jcvb", model.name()); - Assertions.assertEquals("iew", model.value()); + Assertions.assertEquals("cormr", model.name()); + Assertions.assertEquals("dut", model.value()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/SkuTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/SkuTests.java index 536a8abe5018..45186de8c387 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/SkuTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/SkuTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,27 +13,27 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Sku model = BinaryData.fromString( - "{\"name\":\"czbysc\",\"tier\":\"Free\",\"size\":\"uhivyqniw\",\"family\":\"br\",\"capacity\":519347031}") + "{\"name\":\"tijbpzvgnwzsymgl\",\"tier\":\"Premium\",\"size\":\"yzkohdbihanuf\",\"family\":\"cbjy\",\"capacity\":758913948}") .toObject(Sku.class); - Assertions.assertEquals("czbysc", model.name()); - Assertions.assertEquals(SkuTier.FREE, model.tier()); - Assertions.assertEquals("uhivyqniw", model.size()); - Assertions.assertEquals("br", model.family()); - Assertions.assertEquals(519347031, model.capacity()); + Assertions.assertEquals("tijbpzvgnwzsymgl", model.name()); + Assertions.assertEquals(SkuTier.PREMIUM, model.tier()); + Assertions.assertEquals("yzkohdbihanuf", model.size()); + Assertions.assertEquals("cbjy", model.family()); + Assertions.assertEquals(758913948, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withName("czbysc") - .withTier(SkuTier.FREE) - .withSize("uhivyqniw") - .withFamily("br") - .withCapacity(519347031); + Sku model = new Sku().withName("tijbpzvgnwzsymgl") + .withTier(SkuTier.PREMIUM) + .withSize("yzkohdbihanuf") + .withFamily("cbjy") + .withCapacity(758913948); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("czbysc", model.name()); - Assertions.assertEquals(SkuTier.FREE, model.tier()); - Assertions.assertEquals("uhivyqniw", model.size()); - Assertions.assertEquals("br", model.family()); - Assertions.assertEquals(519347031, model.capacity()); + Assertions.assertEquals("tijbpzvgnwzsymgl", model.name()); + Assertions.assertEquals(SkuTier.PREMIUM, model.tier()); + Assertions.assertEquals("yzkohdbihanuf", model.size()); + Assertions.assertEquals("cbjy", model.family()); + Assertions.assertEquals(758913948, model.capacity()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/TrialInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/TrialInnerTests.java index 3d9530316030..46ff08d2a1d9 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/TrialInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/TrialInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -10,13 +10,7 @@ public final class TrialInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TrialInner model = BinaryData.fromString("{\"status\":\"TrialAvailable\",\"availableHosts\":920256064}") + TrialInner model = BinaryData.fromString("{\"status\":\"TrialDisabled\",\"availableHosts\":1438180551}") .toObject(TrialInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrialInner model = new TrialInner(); - model = BinaryData.fromObject(model).toObject(TrialInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineInnerTests.java index 2508dde3170b..5fc63066e5f3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class VirtualMachineInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"lxotogtwrupq\",\"moRefId\":\"vnm\",\"folderPath\":\"ykvceoveil\",\"restrictMovement\":\"Disabled\"},\"id\":\"tyfjfcnjbkcnxdhb\",\"name\":\"tkphywpnvjtoqn\",\"type\":\"rmclfplphoxu\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"xv\",\"moRefId\":\"u\",\"folderPath\":\"pz\",\"restrictMovement\":\"Disabled\"},\"id\":\"dzhlrq\",\"name\":\"bh\",\"type\":\"kfrlhrxsbky\"}") .toObject(VirtualMachineInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineInner model = new VirtualMachineInner(); - model = BinaryData.fromObject(model).toObject(VirtualMachineInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinePropertiesTests.java index 816a8d121b98..dc545be2675b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class VirtualMachinePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"displayName\":\"abgy\",\"moRefId\":\"sbj\",\"folderPath\":\"zq\",\"restrictMovement\":\"Disabled\"}") + "{\"provisioningState\":\"Succeeded\",\"displayName\":\"anuzbpzkafkuw\",\"moRefId\":\"rnwb\",\"folderPath\":\"hhseyv\",\"restrictMovement\":\"Disabled\"}") .toObject(VirtualMachineProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineProperties model = new VirtualMachineProperties(); - model = BinaryData.fromObject(model).toObject(VirtualMachineProperties.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineRestrictMovementTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineRestrictMovementTests.java index 064ea77aaede..38137b2b78de 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineRestrictMovementTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineRestrictMovementTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,16 +12,16 @@ public final class VirtualMachineRestrictMovementTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VirtualMachineRestrictMovement model = BinaryData.fromString("{\"restrictMovement\":\"Enabled\"}") + VirtualMachineRestrictMovement model = BinaryData.fromString("{\"restrictMovement\":\"Disabled\"}") .toObject(VirtualMachineRestrictMovement.class); - Assertions.assertEquals(VirtualMachineRestrictMovementState.ENABLED, model.restrictMovement()); + Assertions.assertEquals(VirtualMachineRestrictMovementState.DISABLED, model.restrictMovement()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineRestrictMovement model - = new VirtualMachineRestrictMovement().withRestrictMovement(VirtualMachineRestrictMovementState.ENABLED); + = new VirtualMachineRestrictMovement().withRestrictMovement(VirtualMachineRestrictMovementState.DISABLED); model = BinaryData.fromObject(model).toObject(VirtualMachineRestrictMovement.class); - Assertions.assertEquals(VirtualMachineRestrictMovementState.ENABLED, model.restrictMovement()); + Assertions.assertEquals(VirtualMachineRestrictMovementState.DISABLED, model.restrictMovement()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetWithResponseMockTests.java index a13cf26c3d0e..6f67a1b45def 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class VirtualMachinesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ljeamu\",\"moRefId\":\"zmlovuanash\",\"folderPath\":\"lpmjerb\",\"restrictMovement\":\"Disabled\"},\"id\":\"vidizozsdb\",\"name\":\"cxjmonfdgnwncyp\",\"type\":\"uwwltvuqjctz\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"muapcvhdbevw\",\"moRefId\":\"xeyskonqzinkfkbg\",\"folderPath\":\"bowxe\",\"restrictMovement\":\"Enabled\"},\"id\":\"jmygvk\",\"name\":\"qkjjeokbz\",\"type\":\"fezrx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); VirtualMachine response = manager.virtualMachines() - .getWithResponse("gnl", "zonzlrpiqywnc", "jtszcof", "zehtdhgb", com.azure.core.util.Context.NONE) + .getWithResponse("bcysih", "gqcwdhohsdtmc", "zsu", "cohdx", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListMockTests.java index 5b8016283b78..7e994a9b9934 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class VirtualMachinesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"qlsismjqfrddg\",\"moRefId\":\"quhiosrsjuivf\",\"folderPath\":\"is\",\"restrictMovement\":\"Enabled\"},\"id\":\"xzhczexrxz\",\"name\":\"ujrtrhqvwr\",\"type\":\"vk\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"oudorhcgyyp\",\"moRefId\":\"twypundmbxh\",\"folderPath\":\"cmjkavlgorbmftpm\",\"restrictMovement\":\"Disabled\"},\"id\":\"jltfvnzcyjtotpv\",\"name\":\"pvpbdbzqgqqiheds\",\"type\":\"qwthmky\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.virtualMachines() - .list("ybpmzznrtffyaq", "tmhheioqa", "hvseufuqyrx", com.azure.core.util.Context.NONE); + .list("fuxtyasiibmiybnn", "stgnl", "hnmgixhcm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListTests.java index 3131db239c98..39d6765a9f00 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachinesListTests.java @@ -1,32 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.VirtualMachineInner; -import com.azure.resourcemanager.avs.models.VirtualMachinesList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.VirtualMachinesList; import org.junit.jupiter.api.Assertions; public final class VirtualMachinesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachinesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"sucocmnyyazttbtw\",\"moRefId\":\"qpuedckzywbiex\",\"folderPath\":\"eyueaxibxujwb\",\"restrictMovement\":\"Enabled\"},\"id\":\"lmuzy\",\"name\":\"xaepdkzjancuxr\",\"type\":\"d\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"bniwdj\",\"moRefId\":\"zt\",\"folderPath\":\"bpg\",\"restrictMovement\":\"Enabled\"},\"id\":\"x\",\"name\":\"pzxbz\",\"type\":\"fzab\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"xwtctyqiklbbovpl\",\"moRefId\":\"bhvgy\",\"folderPath\":\"uosvmkfssxqukk\",\"restrictMovement\":\"Enabled\"},\"id\":\"mg\",\"name\":\"xnkjzkdesl\",\"type\":\"vlopwiyighx\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"baiuebbaumny\",\"moRefId\":\"ped\",\"folderPath\":\"jn\",\"restrictMovement\":\"Disabled\"},\"id\":\"hsmtxpsiebtfhvp\",\"name\":\"sapskr\",\"type\":\"qmhjjdhtld\"}],\"nextLink\":\"yzxuutkncw\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"bbovplwzbhvgyugu\",\"moRefId\":\"vmkfssxqu\",\"folderPath\":\"fpl\",\"restrictMovement\":\"Disabled\"},\"id\":\"xnkjzkdesl\",\"name\":\"vlopwiyighx\",\"type\":\"kdwzbaiuebbaumny\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"eojnabc\",\"moRefId\":\"smtxpsieb\",\"folderPath\":\"hvpesapskrdqm\",\"restrictMovement\":\"Disabled\"},\"id\":\"htldwk\",\"name\":\"zxuutkncwscwsvl\",\"type\":\"otogtwrupqs\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"cykvceo\",\"moRefId\":\"ilovnot\",\"folderPath\":\"jfcn\",\"restrictMovement\":\"Enabled\"},\"id\":\"nxdhbt\",\"name\":\"kphywpnvjto\",\"type\":\"nermcl\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"oxuscrpabgyepsbj\",\"moRefId\":\"zq\",\"folderPath\":\"xywpmueefjzwfqkq\",\"restrictMovement\":\"Enabled\"},\"id\":\"suyonobglaocq\",\"name\":\"tcc\",\"type\":\"g\"}],\"nextLink\":\"dxyt\"}") .toObject(VirtualMachinesList.class); - Assertions.assertEquals("yzxuutkncw", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachinesList model - = new VirtualMachinesList() - .withValue(Arrays.asList(new VirtualMachineInner(), new VirtualMachineInner(), - new VirtualMachineInner(), new VirtualMachineInner())) - .withNextLink("yzxuutkncw"); - model = BinaryData.fromObject(model).toObject(VirtualMachinesList.class); - Assertions.assertEquals("yzxuutkncw", model.nextLink()); + Assertions.assertEquals("dxyt", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmHostPlacementPolicyPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmHostPlacementPolicyPropertiesTests.java index 21b83a458f32..1e66b68afba4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmHostPlacementPolicyPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmHostPlacementPolicyPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -17,34 +17,34 @@ public final class VmHostPlacementPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmHostPlacementPolicyProperties model = BinaryData.fromString( - "{\"type\":\"VmHost\",\"vmMembers\":[\"wr\",\"ehwagoh\",\"uffkmrqemvvh\"],\"hostMembers\":[\"tdrjfutacoebj\"],\"affinityType\":\"AntiAffinity\",\"affinityStrength\":\"Must\",\"azureHybridBenefitType\":\"None\",\"state\":\"Enabled\",\"displayName\":\"wcpmguaadraufac\",\"provisioningState\":\"Succeeded\"}") + "{\"type\":\"VmHost\",\"vmMembers\":[\"uojgj\",\"wjue\",\"otwmcdyt\"],\"hostMembers\":[\"wit\"],\"affinityType\":\"AntiAffinity\",\"affinityStrength\":\"Should\",\"azureHybridBenefitType\":\"SqlHost\",\"state\":\"Disabled\",\"displayName\":\"gxhnisk\",\"provisioningState\":\"Failed\"}") .toObject(VmHostPlacementPolicyProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("wcpmguaadraufac", model.displayName()); - Assertions.assertEquals("wr", model.vmMembers().get(0)); - Assertions.assertEquals("tdrjfutacoebj", model.hostMembers().get(0)); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("gxhnisk", model.displayName()); + Assertions.assertEquals("uojgj", model.vmMembers().get(0)); + Assertions.assertEquals("wit", model.hostMembers().get(0)); Assertions.assertEquals(AffinityType.ANTI_AFFINITY, model.affinityType()); - Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); - Assertions.assertEquals(AzureHybridBenefitType.NONE, model.azureHybridBenefitType()); + Assertions.assertEquals(AffinityStrength.SHOULD, model.affinityStrength()); + Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VmHostPlacementPolicyProperties model - = new VmHostPlacementPolicyProperties().withState(PlacementPolicyState.ENABLED) - .withDisplayName("wcpmguaadraufac") - .withVmMembers(Arrays.asList("wr", "ehwagoh", "uffkmrqemvvh")) - .withHostMembers(Arrays.asList("tdrjfutacoebj")) + = new VmHostPlacementPolicyProperties().withState(PlacementPolicyState.DISABLED) + .withDisplayName("gxhnisk") + .withVmMembers(Arrays.asList("uojgj", "wjue", "otwmcdyt")) + .withHostMembers(Arrays.asList("wit")) .withAffinityType(AffinityType.ANTI_AFFINITY) - .withAffinityStrength(AffinityStrength.MUST) - .withAzureHybridBenefitType(AzureHybridBenefitType.NONE); + .withAffinityStrength(AffinityStrength.SHOULD) + .withAzureHybridBenefitType(AzureHybridBenefitType.SQL_HOST); model = BinaryData.fromObject(model).toObject(VmHostPlacementPolicyProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("wcpmguaadraufac", model.displayName()); - Assertions.assertEquals("wr", model.vmMembers().get(0)); - Assertions.assertEquals("tdrjfutacoebj", model.hostMembers().get(0)); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("gxhnisk", model.displayName()); + Assertions.assertEquals("uojgj", model.vmMembers().get(0)); + Assertions.assertEquals("wit", model.hostMembers().get(0)); Assertions.assertEquals(AffinityType.ANTI_AFFINITY, model.affinityType()); - Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); - Assertions.assertEquals(AzureHybridBenefitType.NONE, model.azureHybridBenefitType()); + Assertions.assertEquals(AffinityStrength.SHOULD, model.affinityStrength()); + Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmPlacementPolicyPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmPlacementPolicyPropertiesTests.java index fb669c60c547..9dfee0659c2e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmPlacementPolicyPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VmPlacementPolicyPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -15,24 +15,24 @@ public final class VmPlacementPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmPlacementPolicyProperties model = BinaryData.fromString( - "{\"type\":\"VmVm\",\"vmMembers\":[\"zov\",\"jjziuxxpsh\"],\"affinityType\":\"AntiAffinity\",\"state\":\"Enabled\",\"displayName\":\"lfg\",\"provisioningState\":\"Failed\"}") + "{\"type\":\"VmVm\",\"vmMembers\":[\"owzxcu\",\"i\",\"jooxdjebw\"],\"affinityType\":\"Affinity\",\"state\":\"Enabled\",\"displayName\":\"fvovbvmeuecivy\",\"provisioningState\":\"Failed\"}") .toObject(VmPlacementPolicyProperties.class); Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("lfg", model.displayName()); - Assertions.assertEquals("zov", model.vmMembers().get(0)); - Assertions.assertEquals(AffinityType.ANTI_AFFINITY, model.affinityType()); + Assertions.assertEquals("fvovbvmeuecivy", model.displayName()); + Assertions.assertEquals("owzxcu", model.vmMembers().get(0)); + Assertions.assertEquals(AffinityType.AFFINITY, model.affinityType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VmPlacementPolicyProperties model = new VmPlacementPolicyProperties().withState(PlacementPolicyState.ENABLED) - .withDisplayName("lfg") - .withVmMembers(Arrays.asList("zov", "jjziuxxpsh")) - .withAffinityType(AffinityType.ANTI_AFFINITY); + .withDisplayName("fvovbvmeuecivy") + .withVmMembers(Arrays.asList("owzxcu", "i", "jooxdjebw")) + .withAffinityType(AffinityType.AFFINITY); model = BinaryData.fromObject(model).toObject(VmPlacementPolicyProperties.class); Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("lfg", model.displayName()); - Assertions.assertEquals("zov", model.vmMembers().get(0)); - Assertions.assertEquals(AffinityType.ANTI_AFFINITY, model.affinityType()); + Assertions.assertEquals("fvovbvmeuecivy", model.displayName()); + Assertions.assertEquals("owzxcu", model.vmMembers().get(0)); + Assertions.assertEquals(AffinityType.AFFINITY, model.affinityType()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpEntityTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpEntityTests.java index 1b3a538acecb..0613cdd311b8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpEntityTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpEntityTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,18 +12,18 @@ public final class WorkloadNetworkDhcpEntityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpEntity model = BinaryData.fromString( - "{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"beddgssofw\",\"segments\":[\"qal\",\"rmnjijpx\",\"cqqudf\",\"byxbaaabjy\"],\"provisioningState\":\"Canceled\",\"revision\":6883789734469105291}") + "{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"rv\",\"segments\":[\"pmfi\",\"bfggjioolvr\",\"x\"],\"provisioningState\":\"Building\",\"revision\":201556653544263409}") .toObject(WorkloadNetworkDhcpEntity.class); - Assertions.assertEquals("beddgssofw", model.displayName()); - Assertions.assertEquals(6883789734469105291L, model.revision()); + Assertions.assertEquals("rv", model.displayName()); + Assertions.assertEquals(201556653544263409L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WorkloadNetworkDhcpEntity model - = new WorkloadNetworkDhcpEntity().withDisplayName("beddgssofw").withRevision(6883789734469105291L); + = new WorkloadNetworkDhcpEntity().withDisplayName("rv").withRevision(201556653544263409L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpEntity.class); - Assertions.assertEquals("beddgssofw", model.displayName()); - Assertions.assertEquals(6883789734469105291L, model.revision()); + Assertions.assertEquals("rv", model.displayName()); + Assertions.assertEquals(201556653544263409L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpInnerTests.java index 09ef2eba5da7..8c319f9f5f17 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,18 +13,18 @@ public final class WorkloadNetworkDhcpInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpInner model = BinaryData.fromString( - "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"t\",\"segments\":[\"lr\",\"cyjmoadsuvarmy\",\"dmjsjqb\"],\"provisioningState\":\"Building\",\"revision\":1070182178135164646},\"id\":\"wlycoduhpkxkg\",\"name\":\"mareqnajxqugj\",\"type\":\"ky\"}") + "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"tjsyin\",\"segments\":[\"qatmtdhtmdvy\"],\"provisioningState\":\"Succeeded\",\"revision\":7953248130446233855},\"id\":\"zywkb\",\"name\":\"rryuzhlhkjo\",\"type\":\"rvqqaatj\"}") .toObject(WorkloadNetworkDhcpInner.class); - Assertions.assertEquals("t", model.properties().displayName()); - Assertions.assertEquals(1070182178135164646L, model.properties().revision()); + Assertions.assertEquals("tjsyin", model.properties().displayName()); + Assertions.assertEquals(7953248130446233855L, model.properties().revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDhcpInner model = new WorkloadNetworkDhcpInner() - .withProperties(new WorkloadNetworkDhcpEntity().withDisplayName("t").withRevision(1070182178135164646L)); + WorkloadNetworkDhcpInner model = new WorkloadNetworkDhcpInner().withProperties( + new WorkloadNetworkDhcpEntity().withDisplayName("tjsyin").withRevision(7953248130446233855L)); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpInner.class); - Assertions.assertEquals("t", model.properties().displayName()); - Assertions.assertEquals(1070182178135164646L, model.properties().revision()); + Assertions.assertEquals("tjsyin", model.properties().displayName()); + Assertions.assertEquals(7953248130446233855L, model.properties().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpListTests.java index 1af73a3b4b0e..f28a48bc3a12 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpListTests.java @@ -1,42 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDhcpInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpEntity; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDhcpList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkDhcpListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"xdy\",\"segments\":[\"y\",\"cogjltdtbn\",\"hadoocrk\",\"cikhnv\"],\"provisioningState\":\"Succeeded\",\"revision\":1095041786802242377},\"id\":\"queziky\",\"name\":\"ggxkallatmelwuip\",\"type\":\"ccjzkzivgvv\"},{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"y\",\"segments\":[\"rnxxmueed\",\"drd\",\"stkwqqtch\"],\"provisioningState\":\"Canceled\",\"revision\":6465025791585269802},\"id\":\"d\",\"name\":\"aygdvwvgpioh\",\"type\":\"wxrt\"},{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"xepxgyqagvrvmn\",\"segments\":[\"kghimdblxgwimfnj\",\"fjxwmsz\",\"kfoqreyfkzikfj\"],\"provisioningState\":\"Succeeded\",\"revision\":488040231209258224},\"id\":\"xwczelpcire\",\"name\":\"sfeaenwabfat\",\"type\":\"lddxbjhwua\"},{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"zjosp\",\"segments\":[\"ulpjr\",\"xagl\"],\"provisioningState\":\"Updating\",\"revision\":7892134745945256266},\"id\":\"sytxitcskfcktqum\",\"name\":\"ekkezzikhlyfjh\",\"type\":\"gqggebdunygae\"}],\"nextLink\":\"db\"}") + "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"xu\",\"segments\":[\"dwzrmuh\",\"pfcqdp\",\"qxqvpsvuoymgc\",\"elvezrypq\"],\"provisioningState\":\"Deleting\",\"revision\":6554810180988949657},\"id\":\"rqwky\",\"name\":\"kobopgxed\",\"type\":\"owepbqpcrfkb\"}],\"nextLink\":\"csnjvcdwxlpqekft\"}") .toObject(WorkloadNetworkDhcpList.class); - Assertions.assertEquals("xdy", model.value().get(0).properties().displayName()); - Assertions.assertEquals(1095041786802242377L, model.value().get(0).properties().revision()); - Assertions.assertEquals("db", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkDhcpList model = new WorkloadNetworkDhcpList().withValue(Arrays.asList( - new WorkloadNetworkDhcpInner().withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("xdy").withRevision(1095041786802242377L)), - new WorkloadNetworkDhcpInner().withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("y").withRevision(6465025791585269802L)), - new WorkloadNetworkDhcpInner().withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("xepxgyqagvrvmn").withRevision(488040231209258224L)), - new WorkloadNetworkDhcpInner().withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("zjosp").withRevision(7892134745945256266L)))) - .withNextLink("db"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpList.class); - Assertions.assertEquals("xdy", model.value().get(0).properties().displayName()); - Assertions.assertEquals(1095041786802242377L, model.value().get(0).properties().revision()); - Assertions.assertEquals("db", model.nextLink()); + Assertions.assertEquals("xu", model.value().get(0).properties().displayName()); + Assertions.assertEquals(6554810180988949657L, model.value().get(0).properties().revision()); + Assertions.assertEquals("csnjvcdwxlpqekft", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpRelayTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpRelayTests.java index 6be232352d03..451801be224b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpRelayTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpRelayTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class WorkloadNetworkDhcpRelayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpRelay model = BinaryData.fromString( - "{\"dhcpType\":\"RELAY\",\"serverAddresses\":[\"kwdlenrdsutujba\",\"pjuohminyfl\",\"orwmduvwpklv\"],\"displayName\":\"mygdxpgpqch\",\"segments\":[\"epn\"],\"provisioningState\":\"Updating\",\"revision\":7502230535508252511}") + "{\"dhcpType\":\"RELAY\",\"serverAddresses\":[\"tlpdn\",\"itvgbmhrixkwm\",\"ijejvegrhbpn\"],\"displayName\":\"xexccbdreaxhcexd\",\"segments\":[\"qahqkghtpwijn\",\"yjsvfyc\",\"z\"],\"provisioningState\":\"Building\",\"revision\":7035584365835539552}") .toObject(WorkloadNetworkDhcpRelay.class); - Assertions.assertEquals("mygdxpgpqch", model.displayName()); - Assertions.assertEquals(7502230535508252511L, model.revision()); - Assertions.assertEquals("kwdlenrdsutujba", model.serverAddresses().get(0)); + Assertions.assertEquals("xexccbdreaxhcexd", model.displayName()); + Assertions.assertEquals(7035584365835539552L, model.revision()); + Assertions.assertEquals("tlpdn", model.serverAddresses().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDhcpRelay model = new WorkloadNetworkDhcpRelay().withDisplayName("mygdxpgpqch") - .withRevision(7502230535508252511L) - .withServerAddresses(Arrays.asList("kwdlenrdsutujba", "pjuohminyfl", "orwmduvwpklv")); + WorkloadNetworkDhcpRelay model = new WorkloadNetworkDhcpRelay().withDisplayName("xexccbdreaxhcexd") + .withRevision(7035584365835539552L) + .withServerAddresses(Arrays.asList("tlpdn", "itvgbmhrixkwm", "ijejvegrhbpn")); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpRelay.class); - Assertions.assertEquals("mygdxpgpqch", model.displayName()); - Assertions.assertEquals(7502230535508252511L, model.revision()); - Assertions.assertEquals("kwdlenrdsutujba", model.serverAddresses().get(0)); + Assertions.assertEquals("xexccbdreaxhcexd", model.displayName()); + Assertions.assertEquals(7035584365835539552L, model.revision()); + Assertions.assertEquals("tlpdn", model.serverAddresses().get(0)); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpServerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpServerTests.java index 5ce2ec6fd127..efb6b0ce9813 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpServerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDhcpServerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,24 +12,24 @@ public final class WorkloadNetworkDhcpServerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpServer model = BinaryData.fromString( - "{\"dhcpType\":\"SERVER\",\"serverAddress\":\"ibbdaxconfoza\",\"leaseTime\":3754579921352518306,\"displayName\":\"kokwbqplhlvnu\",\"segments\":[\"zlrphwzs\",\"l\"],\"provisioningState\":\"Canceled\",\"revision\":6472514649626093953}") + "{\"dhcpType\":\"SERVER\",\"serverAddress\":\"lqwjygvjayvblm\",\"leaseTime\":593391508400046676,\"displayName\":\"hbxvvyhgsopbyrqu\",\"segments\":[\"xuvw\"],\"provisioningState\":\"Failed\",\"revision\":8014747037216452315}") .toObject(WorkloadNetworkDhcpServer.class); - Assertions.assertEquals("kokwbqplhlvnu", model.displayName()); - Assertions.assertEquals(6472514649626093953L, model.revision()); - Assertions.assertEquals("ibbdaxconfoza", model.serverAddress()); - Assertions.assertEquals(3754579921352518306L, model.leaseTime()); + Assertions.assertEquals("hbxvvyhgsopbyrqu", model.displayName()); + Assertions.assertEquals(8014747037216452315L, model.revision()); + Assertions.assertEquals("lqwjygvjayvblm", model.serverAddress()); + Assertions.assertEquals(593391508400046676L, model.leaseTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDhcpServer model = new WorkloadNetworkDhcpServer().withDisplayName("kokwbqplhlvnu") - .withRevision(6472514649626093953L) - .withServerAddress("ibbdaxconfoza") - .withLeaseTime(3754579921352518306L); + WorkloadNetworkDhcpServer model = new WorkloadNetworkDhcpServer().withDisplayName("hbxvvyhgsopbyrqu") + .withRevision(8014747037216452315L) + .withServerAddress("lqwjygvjayvblm") + .withLeaseTime(593391508400046676L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpServer.class); - Assertions.assertEquals("kokwbqplhlvnu", model.displayName()); - Assertions.assertEquals(6472514649626093953L, model.revision()); - Assertions.assertEquals("ibbdaxconfoza", model.serverAddress()); - Assertions.assertEquals(3754579921352518306L, model.leaseTime()); + Assertions.assertEquals("hbxvvyhgsopbyrqu", model.displayName()); + Assertions.assertEquals(8014747037216452315L, model.revision()); + Assertions.assertEquals("lqwjygvjayvblm", model.serverAddress()); + Assertions.assertEquals(593391508400046676L, model.leaseTime()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServiceInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServiceInnerTests.java index e7b00b498d51..5ddcd297d33c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServiceInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServiceInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,30 +14,30 @@ public final class WorkloadNetworkDnsServiceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServiceInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"odko\",\"dnsServiceIp\":\"bw\",\"defaultDnsZone\":\"jhemms\",\"fqdnZones\":[\"kcrodtjinfw\",\"lfltka\"],\"logLevel\":\"FATAL\",\"status\":\"SUCCESS\",\"provisioningState\":\"Canceled\",\"revision\":6193547240906523394},\"id\":\"kggkfpa\",\"name\":\"ao\",\"type\":\"pulpqblylsyxk\"}") + "{\"properties\":{\"displayName\":\"ywjhhgdnhx\",\"dnsServiceIp\":\"ivfomiloxgg\",\"defaultDnsZone\":\"fi\",\"fqdnZones\":[\"ieuzaofjchvcyyy\",\"fgdo\",\"cubiipuipw\"],\"logLevel\":\"WARNING\",\"status\":\"SUCCESS\",\"provisioningState\":\"Canceled\",\"revision\":3925666504611058153},\"id\":\"izsh\",\"name\":\"vcimpev\",\"type\":\"gmblrri\"}") .toObject(WorkloadNetworkDnsServiceInner.class); - Assertions.assertEquals("odko", model.displayName()); - Assertions.assertEquals("bw", model.dnsServiceIp()); - Assertions.assertEquals("jhemms", model.defaultDnsZone()); - Assertions.assertEquals("kcrodtjinfw", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.FATAL, model.logLevel()); - Assertions.assertEquals(6193547240906523394L, model.revision()); + Assertions.assertEquals("ywjhhgdnhx", model.displayName()); + Assertions.assertEquals("ivfomiloxgg", model.dnsServiceIp()); + Assertions.assertEquals("fi", model.defaultDnsZone()); + Assertions.assertEquals("ieuzaofjchvcyyy", model.fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.WARNING, model.logLevel()); + Assertions.assertEquals(3925666504611058153L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDnsServiceInner model = new WorkloadNetworkDnsServiceInner().withDisplayName("odko") - .withDnsServiceIp("bw") - .withDefaultDnsZone("jhemms") - .withFqdnZones(Arrays.asList("kcrodtjinfw", "lfltka")) - .withLogLevel(DnsServiceLogLevelEnum.FATAL) - .withRevision(6193547240906523394L); + WorkloadNetworkDnsServiceInner model = new WorkloadNetworkDnsServiceInner().withDisplayName("ywjhhgdnhx") + .withDnsServiceIp("ivfomiloxgg") + .withDefaultDnsZone("fi") + .withFqdnZones(Arrays.asList("ieuzaofjchvcyyy", "fgdo", "cubiipuipw")) + .withLogLevel(DnsServiceLogLevelEnum.WARNING) + .withRevision(3925666504611058153L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsServiceInner.class); - Assertions.assertEquals("odko", model.displayName()); - Assertions.assertEquals("bw", model.dnsServiceIp()); - Assertions.assertEquals("jhemms", model.defaultDnsZone()); - Assertions.assertEquals("kcrodtjinfw", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.FATAL, model.logLevel()); - Assertions.assertEquals(6193547240906523394L, model.revision()); + Assertions.assertEquals("ywjhhgdnhx", model.displayName()); + Assertions.assertEquals("ivfomiloxgg", model.dnsServiceIp()); + Assertions.assertEquals("fi", model.defaultDnsZone()); + Assertions.assertEquals("ieuzaofjchvcyyy", model.fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.WARNING, model.logLevel()); + Assertions.assertEquals(3925666504611058153L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicePropertiesTests.java index 5f19649acdb0..5a115f87d50f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,30 +14,31 @@ public final class WorkloadNetworkDnsServicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServiceProperties model = BinaryData.fromString( - "{\"displayName\":\"nsj\",\"dnsServiceIp\":\"vti\",\"defaultDnsZone\":\"xsdszuempsb\",\"fqdnZones\":[\"z\"],\"logLevel\":\"INFO\",\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":8978245391305162368}") + "{\"displayName\":\"ywdxsmic\",\"dnsServiceIp\":\"rwfscjfnynszquj\",\"defaultDnsZone\":\"dvoqyt\",\"fqdnZones\":[\"owbb\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":805790317647492283}") .toObject(WorkloadNetworkDnsServiceProperties.class); - Assertions.assertEquals("nsj", model.displayName()); - Assertions.assertEquals("vti", model.dnsServiceIp()); - Assertions.assertEquals("xsdszuempsb", model.defaultDnsZone()); - Assertions.assertEquals("z", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.INFO, model.logLevel()); - Assertions.assertEquals(8978245391305162368L, model.revision()); + Assertions.assertEquals("ywdxsmic", model.displayName()); + Assertions.assertEquals("rwfscjfnynszquj", model.dnsServiceIp()); + Assertions.assertEquals("dvoqyt", model.defaultDnsZone()); + Assertions.assertEquals("owbb", model.fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, model.logLevel()); + Assertions.assertEquals(805790317647492283L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDnsServiceProperties model = new WorkloadNetworkDnsServiceProperties().withDisplayName("nsj") - .withDnsServiceIp("vti") - .withDefaultDnsZone("xsdszuempsb") - .withFqdnZones(Arrays.asList("z")) - .withLogLevel(DnsServiceLogLevelEnum.INFO) - .withRevision(8978245391305162368L); + WorkloadNetworkDnsServiceProperties model + = new WorkloadNetworkDnsServiceProperties().withDisplayName("ywdxsmic") + .withDnsServiceIp("rwfscjfnynszquj") + .withDefaultDnsZone("dvoqyt") + .withFqdnZones(Arrays.asList("owbb")) + .withLogLevel(DnsServiceLogLevelEnum.ERROR) + .withRevision(805790317647492283L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsServiceProperties.class); - Assertions.assertEquals("nsj", model.displayName()); - Assertions.assertEquals("vti", model.dnsServiceIp()); - Assertions.assertEquals("xsdszuempsb", model.defaultDnsZone()); - Assertions.assertEquals("z", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.INFO, model.logLevel()); - Assertions.assertEquals(8978245391305162368L, model.revision()); + Assertions.assertEquals("ywdxsmic", model.displayName()); + Assertions.assertEquals("rwfscjfnynszquj", model.dnsServiceIp()); + Assertions.assertEquals("dvoqyt", model.defaultDnsZone()); + Assertions.assertEquals("owbb", model.fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, model.logLevel()); + Assertions.assertEquals(805790317647492283L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicesListTests.java index e6ee3fd49450..349b7cd8f079 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsServicesListTests.java @@ -1,48 +1,26 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsServiceInner; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDnsServicesList; import com.azure.resourcemanager.avs.models.DnsServiceLogLevelEnum; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsServicesList; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkDnsServicesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServicesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"rtuzqogs\",\"dnsServiceIp\":\"nevfdnw\",\"defaultDnsZone\":\"mewzsyyc\",\"fqdnZones\":[\"soibjudpfrx\",\"rthzvaytdwkqbrqu\",\"paxh\",\"xiilivpdtiirqt\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":3650504881751090055},\"id\":\"squyfxrxxlep\",\"name\":\"ramxjezwlwnw\",\"type\":\"uqlcvydy\"}],\"nextLink\":\"tdooaoj\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"qybaryeua\",\"dnsServiceIp\":\"kq\",\"defaultDnsZone\":\"qgzsles\",\"fqdnZones\":[\"hernntiewdjc\",\"bquwrbehw\",\"gohbuffkmrq\"],\"logLevel\":\"INFO\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":3657364039140978355},\"id\":\"futacoebjvewzc\",\"name\":\"znmwcp\",\"type\":\"guaadraufactkahz\"},{\"properties\":{\"displayName\":\"jjziuxxpsh\",\"dnsServiceIp\":\"e\",\"defaultDnsZone\":\"lfg\",\"fqdnZones\":[\"ubkwdle\",\"rds\"],\"logLevel\":\"DEBUG\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":5977101318302182370},\"id\":\"hminyflnorwmduv\",\"name\":\"pklvxw\",\"type\":\"ygdxpgpqchis\"},{\"properties\":{\"displayName\":\"nnbj\",\"dnsServiceIp\":\"xgibbda\",\"defaultDnsZone\":\"onfo\",\"fqdnZones\":[\"orsukokwbqp\"],\"logLevel\":\"DEBUG\",\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":7056990023571937899},\"id\":\"r\",\"name\":\"hw\",\"type\":\"soldweyuqdunv\"}],\"nextLink\":\"nrwrbiork\"}") .toObject(WorkloadNetworkDnsServicesList.class); - Assertions.assertEquals("rtuzqogs", model.value().get(0).displayName()); - Assertions.assertEquals("nevfdnw", model.value().get(0).dnsServiceIp()); - Assertions.assertEquals("mewzsyyc", model.value().get(0).defaultDnsZone()); - Assertions.assertEquals("soibjudpfrx", model.value().get(0).fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, model.value().get(0).logLevel()); - Assertions.assertEquals(3650504881751090055L, model.value().get(0).revision()); - Assertions.assertEquals("tdooaoj", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkDnsServicesList model = new WorkloadNetworkDnsServicesList() - .withValue(Arrays.asList(new WorkloadNetworkDnsServiceInner().withDisplayName("rtuzqogs") - .withDnsServiceIp("nevfdnw") - .withDefaultDnsZone("mewzsyyc") - .withFqdnZones(Arrays.asList("soibjudpfrx", "rthzvaytdwkqbrqu", "paxh", "xiilivpdtiirqt")) - .withLogLevel(DnsServiceLogLevelEnum.ERROR) - .withRevision(3650504881751090055L))) - .withNextLink("tdooaoj"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsServicesList.class); - Assertions.assertEquals("rtuzqogs", model.value().get(0).displayName()); - Assertions.assertEquals("nevfdnw", model.value().get(0).dnsServiceIp()); - Assertions.assertEquals("mewzsyyc", model.value().get(0).defaultDnsZone()); - Assertions.assertEquals("soibjudpfrx", model.value().get(0).fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, model.value().get(0).logLevel()); - Assertions.assertEquals(3650504881751090055L, model.value().get(0).revision()); - Assertions.assertEquals("tdooaoj", model.nextLink()); + Assertions.assertEquals("qybaryeua", model.value().get(0).displayName()); + Assertions.assertEquals("kq", model.value().get(0).dnsServiceIp()); + Assertions.assertEquals("qgzsles", model.value().get(0).defaultDnsZone()); + Assertions.assertEquals("hernntiewdjc", model.value().get(0).fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.INFO, model.value().get(0).logLevel()); + Assertions.assertEquals(3657364039140978355L, model.value().get(0).revision()); + Assertions.assertEquals("nrwrbiork", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZoneInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZoneInnerTests.java index fc0a0428f299..5e9d3120f54c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZoneInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZoneInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,30 +13,30 @@ public final class WorkloadNetworkDnsZoneInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZoneInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"whccs\",\"domain\":[\"aivwitqscywu\",\"gwol\"],\"dnsServerIps\":[\"zbwemh\",\"i\",\"sbrgz\",\"wmsweypqwd\"],\"sourceIp\":\"gicccnxqhuex\",\"dnsServices\":5852678166783434118,\"provisioningState\":\"Building\",\"revision\":3065309169479098927},\"id\":\"ywemhzrn\",\"name\":\"sdtclusiypbs\",\"type\":\"gytguslfead\"}") + "{\"properties\":{\"displayName\":\"il\",\"domain\":[\"wt\",\"gkxnyedabg\"],\"dnsServerIps\":[\"dtj\",\"ewbcihxuuw\",\"c\"],\"sourceIp\":\"xccybvpa\",\"dnsServices\":6238077672035548376,\"provisioningState\":\"Succeeded\",\"revision\":1791393814695153018},\"id\":\"wjplma\",\"name\":\"stcyohpfkyrkdbd\",\"type\":\"iogsjkmnwq\"}") .toObject(WorkloadNetworkDnsZoneInner.class); - Assertions.assertEquals("whccs", model.displayName()); - Assertions.assertEquals("aivwitqscywu", model.domain().get(0)); - Assertions.assertEquals("zbwemh", model.dnsServerIps().get(0)); - Assertions.assertEquals("gicccnxqhuex", model.sourceIp()); - Assertions.assertEquals(5852678166783434118L, model.dnsServices()); - Assertions.assertEquals(3065309169479098927L, model.revision()); + Assertions.assertEquals("il", model.displayName()); + Assertions.assertEquals("wt", model.domain().get(0)); + Assertions.assertEquals("dtj", model.dnsServerIps().get(0)); + Assertions.assertEquals("xccybvpa", model.sourceIp()); + Assertions.assertEquals(6238077672035548376L, model.dnsServices()); + Assertions.assertEquals(1791393814695153018L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDnsZoneInner model = new WorkloadNetworkDnsZoneInner().withDisplayName("whccs") - .withDomain(Arrays.asList("aivwitqscywu", "gwol")) - .withDnsServerIps(Arrays.asList("zbwemh", "i", "sbrgz", "wmsweypqwd")) - .withSourceIp("gicccnxqhuex") - .withDnsServices(5852678166783434118L) - .withRevision(3065309169479098927L); + WorkloadNetworkDnsZoneInner model = new WorkloadNetworkDnsZoneInner().withDisplayName("il") + .withDomain(Arrays.asList("wt", "gkxnyedabg")) + .withDnsServerIps(Arrays.asList("dtj", "ewbcihxuuw", "c")) + .withSourceIp("xccybvpa") + .withDnsServices(6238077672035548376L) + .withRevision(1791393814695153018L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsZoneInner.class); - Assertions.assertEquals("whccs", model.displayName()); - Assertions.assertEquals("aivwitqscywu", model.domain().get(0)); - Assertions.assertEquals("zbwemh", model.dnsServerIps().get(0)); - Assertions.assertEquals("gicccnxqhuex", model.sourceIp()); - Assertions.assertEquals(5852678166783434118L, model.dnsServices()); - Assertions.assertEquals(3065309169479098927L, model.revision()); + Assertions.assertEquals("il", model.displayName()); + Assertions.assertEquals("wt", model.domain().get(0)); + Assertions.assertEquals("dtj", model.dnsServerIps().get(0)); + Assertions.assertEquals("xccybvpa", model.sourceIp()); + Assertions.assertEquals(6238077672035548376L, model.dnsServices()); + Assertions.assertEquals(1791393814695153018L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonePropertiesTests.java index 639bf2e4eaab..6fbcf6f68e10 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,30 +13,31 @@ public final class WorkloadNetworkDnsZonePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZoneProperties model = BinaryData.fromString( - "{\"displayName\":\"gq\",\"domain\":[\"hejhzisx\",\"fpel\",\"lppvksrpq\"],\"dnsServerIps\":[\"zraehtwd\",\"r\",\"tswiby\"],\"sourceIp\":\"dl\",\"dnsServices\":6608655504184346105,\"provisioningState\":\"Updating\",\"revision\":397353475814237502}") + "{\"displayName\":\"obaiyhddviaceg\",\"domain\":[\"ntfpmvmemfnc\"],\"dnsServerIps\":[\"vvbalx\"],\"sourceIp\":\"lchpodbzevwrdn\",\"dnsServices\":4609142412513709253,\"provisioningState\":\"Canceled\",\"revision\":9047416798509661707}") .toObject(WorkloadNetworkDnsZoneProperties.class); - Assertions.assertEquals("gq", model.displayName()); - Assertions.assertEquals("hejhzisx", model.domain().get(0)); - Assertions.assertEquals("zraehtwd", model.dnsServerIps().get(0)); - Assertions.assertEquals("dl", model.sourceIp()); - Assertions.assertEquals(6608655504184346105L, model.dnsServices()); - Assertions.assertEquals(397353475814237502L, model.revision()); + Assertions.assertEquals("obaiyhddviaceg", model.displayName()); + Assertions.assertEquals("ntfpmvmemfnc", model.domain().get(0)); + Assertions.assertEquals("vvbalx", model.dnsServerIps().get(0)); + Assertions.assertEquals("lchpodbzevwrdn", model.sourceIp()); + Assertions.assertEquals(4609142412513709253L, model.dnsServices()); + Assertions.assertEquals(9047416798509661707L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDnsZoneProperties model = new WorkloadNetworkDnsZoneProperties().withDisplayName("gq") - .withDomain(Arrays.asList("hejhzisx", "fpel", "lppvksrpq")) - .withDnsServerIps(Arrays.asList("zraehtwd", "r", "tswiby")) - .withSourceIp("dl") - .withDnsServices(6608655504184346105L) - .withRevision(397353475814237502L); + WorkloadNetworkDnsZoneProperties model + = new WorkloadNetworkDnsZoneProperties().withDisplayName("obaiyhddviaceg") + .withDomain(Arrays.asList("ntfpmvmemfnc")) + .withDnsServerIps(Arrays.asList("vvbalx")) + .withSourceIp("lchpodbzevwrdn") + .withDnsServices(4609142412513709253L) + .withRevision(9047416798509661707L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsZoneProperties.class); - Assertions.assertEquals("gq", model.displayName()); - Assertions.assertEquals("hejhzisx", model.domain().get(0)); - Assertions.assertEquals("zraehtwd", model.dnsServerIps().get(0)); - Assertions.assertEquals("dl", model.sourceIp()); - Assertions.assertEquals(6608655504184346105L, model.dnsServices()); - Assertions.assertEquals(397353475814237502L, model.revision()); + Assertions.assertEquals("obaiyhddviaceg", model.displayName()); + Assertions.assertEquals("ntfpmvmemfnc", model.domain().get(0)); + Assertions.assertEquals("vvbalx", model.dnsServerIps().get(0)); + Assertions.assertEquals("lchpodbzevwrdn", model.sourceIp()); + Assertions.assertEquals(4609142412513709253L, model.dnsServices()); + Assertions.assertEquals(9047416798509661707L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonesListTests.java index fec8471f7271..5c13c35f1401 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkDnsZonesListTests.java @@ -1,68 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsZoneInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsZonesList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkDnsZonesList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkDnsZonesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZonesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"kjj\",\"domain\":[\"rbuukzclewyhmlwp\",\"ztzp\",\"fn\"],\"dnsServerIps\":[\"wyfzqwhxxbuyqa\",\"zfeqztppri\",\"lxorjaltolmncws\",\"bqwcsdbnwdcf\"],\"sourceIp\":\"cqdpfuv\",\"dnsServices\":4684256943455156597,\"provisioningState\":\"Updating\",\"revision\":4256204448914480797},\"id\":\"xbvtvudu\",\"name\":\"ncormrlxqtvcof\",\"type\":\"dflvkg\"},{\"properties\":{\"displayName\":\"gdknnqv\",\"domain\":[\"nqntorudsgsahm\",\"yc\"],\"dnsServerIps\":[\"uwjuetaeburuvdmo\",\"s\",\"zlxwabmqoefkifr\"],\"sourceIp\":\"puqujmqlgkfbtn\",\"dnsServices\":6879764245530477433,\"provisioningState\":\"Failed\",\"revision\":6198658030660554635},\"id\":\"tujitcjedft\",\"name\":\"waezkojvd\",\"type\":\"pzfoqoui\"},{\"properties\":{\"displayName\":\"xarzgszufoxciq\",\"domain\":[\"doamciodhkha\",\"xkhnzbonlwnto\",\"gokdwbwhks\",\"zcmrvexztvb\"],\"dnsServerIps\":[\"sfraoyzko\",\"wtl\",\"nguxawqaldsy\"],\"sourceIp\":\"ximerqfobwyznk\",\"dnsServices\":5942973397791682441,\"provisioningState\":\"Updating\",\"revision\":6293103125482065030},\"id\":\"a\",\"name\":\"m\",\"type\":\"r\"},{\"properties\":{\"displayName\":\"snfdsdoakgtdl\",\"domain\":[\"zev\",\"l\",\"ewpusdsttwvogvb\",\"ejdcngqqmoakuf\"],\"dnsServerIps\":[\"zr\",\"rdgrtw\",\"enuuzkopbm\"],\"sourceIp\":\"rfdwoyu\",\"dnsServices\":4568735292262817818,\"provisioningState\":\"Canceled\",\"revision\":8625951963291223470},\"id\":\"bhdmsmlmzqhof\",\"name\":\"rmaequ\",\"type\":\"ah\"}],\"nextLink\":\"cslfaoqzpiyylha\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"oismsksbpimlqol\",\"domain\":[\"cgxxlxs\",\"fgcviz\",\"zdwlvwlyoupfgfb\",\"jub\"],\"dnsServerIps\":[\"gkfmins\",\"owzfttsttkt\"],\"sourceIp\":\"hbq\",\"dnsServices\":2084936073486724926,\"provisioningState\":\"Updating\",\"revision\":5228889169279168273},\"id\":\"itmmqtgqqqxh\",\"name\":\"n\",\"type\":\"rxcpjuisavo\"},{\"properties\":{\"displayName\":\"zfvazi\",\"domain\":[\"frqttbajlkatnw\"],\"dnsServerIps\":[\"opidkqqfkuv\",\"cxkdmligovi\"],\"sourceIp\":\"xk\",\"dnsServices\":5344178861543099367,\"provisioningState\":\"Deleting\",\"revision\":7839348907850790126},\"id\":\"cbgoor\",\"name\":\"te\",\"type\":\"ybfhjxa\"}],\"nextLink\":\"vjgsl\"}") .toObject(WorkloadNetworkDnsZonesList.class); - Assertions.assertEquals("kjj", model.value().get(0).displayName()); - Assertions.assertEquals("rbuukzclewyhmlwp", model.value().get(0).domain().get(0)); - Assertions.assertEquals("wyfzqwhxxbuyqa", model.value().get(0).dnsServerIps().get(0)); - Assertions.assertEquals("cqdpfuv", model.value().get(0).sourceIp()); - Assertions.assertEquals(4684256943455156597L, model.value().get(0).dnsServices()); - Assertions.assertEquals(4256204448914480797L, model.value().get(0).revision()); - Assertions.assertEquals("cslfaoqzpiyylha", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkDnsZonesList model - = new WorkloadNetworkDnsZonesList() - .withValue(Arrays.asList( - new WorkloadNetworkDnsZoneInner().withDisplayName("kjj") - .withDomain(Arrays.asList("rbuukzclewyhmlwp", "ztzp", "fn")) - .withDnsServerIps( - Arrays.asList("wyfzqwhxxbuyqa", "zfeqztppri", "lxorjaltolmncws", "bqwcsdbnwdcf")) - .withSourceIp("cqdpfuv") - .withDnsServices(4684256943455156597L) - .withRevision(4256204448914480797L), - new WorkloadNetworkDnsZoneInner().withDisplayName("gdknnqv") - .withDomain(Arrays.asList("nqntorudsgsahm", "yc")) - .withDnsServerIps(Arrays.asList("uwjuetaeburuvdmo", "s", "zlxwabmqoefkifr")) - .withSourceIp("puqujmqlgkfbtn") - .withDnsServices(6879764245530477433L) - .withRevision(6198658030660554635L), - new WorkloadNetworkDnsZoneInner().withDisplayName("xarzgszufoxciq") - .withDomain(Arrays.asList("doamciodhkha", "xkhnzbonlwnto", "gokdwbwhks", "zcmrvexztvb")) - .withDnsServerIps(Arrays.asList("sfraoyzko", "wtl", "nguxawqaldsy")) - .withSourceIp("ximerqfobwyznk") - .withDnsServices(5942973397791682441L) - .withRevision(6293103125482065030L), - new WorkloadNetworkDnsZoneInner().withDisplayName("snfdsdoakgtdl") - .withDomain(Arrays.asList("zev", "l", "ewpusdsttwvogvb", "ejdcngqqmoakuf")) - .withDnsServerIps(Arrays.asList("zr", "rdgrtw", "enuuzkopbm")) - .withSourceIp("rfdwoyu") - .withDnsServices(4568735292262817818L) - .withRevision(8625951963291223470L))) - .withNextLink("cslfaoqzpiyylha"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsZonesList.class); - Assertions.assertEquals("kjj", model.value().get(0).displayName()); - Assertions.assertEquals("rbuukzclewyhmlwp", model.value().get(0).domain().get(0)); - Assertions.assertEquals("wyfzqwhxxbuyqa", model.value().get(0).dnsServerIps().get(0)); - Assertions.assertEquals("cqdpfuv", model.value().get(0).sourceIp()); - Assertions.assertEquals(4684256943455156597L, model.value().get(0).dnsServices()); - Assertions.assertEquals(4256204448914480797L, model.value().get(0).revision()); - Assertions.assertEquals("cslfaoqzpiyylha", model.nextLink()); + Assertions.assertEquals("oismsksbpimlqol", model.value().get(0).displayName()); + Assertions.assertEquals("cgxxlxs", model.value().get(0).domain().get(0)); + Assertions.assertEquals("gkfmins", model.value().get(0).dnsServerIps().get(0)); + Assertions.assertEquals("hbq", model.value().get(0).sourceIp()); + Assertions.assertEquals(2084936073486724926L, model.value().get(0).dnsServices()); + Assertions.assertEquals(5228889169279168273L, model.value().get(0).revision()); + Assertions.assertEquals("vjgsl", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayInnerTests.java index bd97ad598c46..9d1591a3d226 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,8 @@ public final class WorkloadNetworkGatewayInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkGatewayInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"fajpjorwk\",\"path\":\"yhgbijtjivfx\"},\"id\":\"jabibsystawf\",\"name\":\"djpvkvpbjxbkz\",\"type\":\"zkdvncja\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"xhojuj\",\"path\":\"pelmcuvhixbjxyf\"},\"id\":\"yl\",\"name\":\"coolsttpkiwkkb\",\"type\":\"ujrywvtyl\"}") .toObject(WorkloadNetworkGatewayInner.class); - Assertions.assertEquals("fajpjorwk", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkGatewayInner model = new WorkloadNetworkGatewayInner().withDisplayName("fajpjorwk"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkGatewayInner.class); - Assertions.assertEquals("fajpjorwk", model.displayName()); + Assertions.assertEquals("xhojuj", model.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayListTests.java index 8a774492d728..ab9ae6c6763d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayListTests.java @@ -1,33 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkGatewayInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkGatewayList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkGatewayList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkGatewayListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkGatewayList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"ty\",\"path\":\"evxccedcp\"},\"id\":\"dyodnwzxltj\",\"name\":\"vnhltiugcx\",\"type\":\"avvwxqi\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"y\",\"path\":\"xwlmdjr\"},\"id\":\"fgbvfvpdbo\",\"name\":\"acizsjqlhkrr\",\"type\":\"bdeibqipqk\"}],\"nextLink\":\"vxndz\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"gjqppy\",\"path\":\"tronzmyhgfi\"},\"id\":\"sxkm\",\"name\":\"waekrrjreafxtsgu\",\"type\":\"hjglikk\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"lbqpvuzlmvfelf\",\"path\":\"gplcrpwjxeznoigb\"},\"id\":\"jwmwkpnbs\",\"name\":\"zejjoqk\",\"type\":\"gfhsxttaugzxn\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"xdtnkdmkqjjlw\",\"path\":\"nvrk\"},\"id\":\"ou\",\"name\":\"ibreb\",\"type\":\"aays\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"tnqttezlwfffiak\",\"path\":\"pqqmted\"},\"id\":\"mmji\",\"name\":\"yeozphvwauyqncy\",\"type\":\"upkvipmdsc\"}],\"nextLink\":\"qupevzh\"}") .toObject(WorkloadNetworkGatewayList.class); - Assertions.assertEquals("ty", model.value().get(0).displayName()); - Assertions.assertEquals("vxndz", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkGatewayList model = new WorkloadNetworkGatewayList() - .withValue(Arrays.asList(new WorkloadNetworkGatewayInner().withDisplayName("ty"), - new WorkloadNetworkGatewayInner().withDisplayName("y"))) - .withNextLink("vxndz"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkGatewayList.class); - Assertions.assertEquals("ty", model.value().get(0).displayName()); - Assertions.assertEquals("vxndz", model.nextLink()); + Assertions.assertEquals("gjqppy", model.value().get(0).displayName()); + Assertions.assertEquals("qupevzh", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayPropertiesTests.java index 2f310cda9b74..c753364b6481 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkGatewayPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,15 +12,8 @@ public final class WorkloadNetworkGatewayPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkGatewayProperties model = BinaryData - .fromString("{\"provisioningState\":\"Deleting\",\"displayName\":\"r\",\"path\":\"akmokzhjjklf\"}") + .fromString("{\"provisioningState\":\"Building\",\"displayName\":\"curdoiwiitht\",\"path\":\"ubxcbihw\"}") .toObject(WorkloadNetworkGatewayProperties.class); - Assertions.assertEquals("r", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkGatewayProperties model = new WorkloadNetworkGatewayProperties().withDisplayName("r"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkGatewayProperties.class); - Assertions.assertEquals("r", model.displayName()); + Assertions.assertEquals("curdoiwiitht", model.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkInnerTests.java index e63c38744bda..f5c9499b60b6 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,13 +11,7 @@ public final class WorkloadNetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Building\"},\"id\":\"mnzgmwznmabi\",\"name\":\"nsorgjhxbldt\",\"type\":\"wwrlkdmtncv\"}") + "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"sdsttwvog\",\"name\":\"bbejdcngqqm\",\"type\":\"akufgmjz\"}") .toObject(WorkloadNetworkInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkInner model = new WorkloadNetworkInner(); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkInner.class); - } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkListTests.java index 3d8cbcacbefd..6a0984ab5e75 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkListTests.java @@ -1,32 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"uu\",\"name\":\"jfqka\",\"type\":\"e\"},{\"properties\":{\"provisioningState\":\"Deleting\"},\"id\":\"pubjibw\",\"name\":\"iftohqkvpu\",\"type\":\"ksgplsa\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"synljphuopxodl\",\"name\":\"iyntorzihle\",\"type\":\"sjswsrms\"},{\"properties\":{\"provisioningState\":\"Updating\"},\"id\":\"zbchckqqzqioxiy\",\"name\":\"uiizynke\",\"type\":\"yatrwy\"}],\"nextLink\":\"mibzyhwitsmypyyn\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\"},\"id\":\"bt\",\"name\":\"gsfraoyzkoow\",\"type\":\"lmnguxaw\"},{\"properties\":{\"provisioningState\":\"Updating\"},\"id\":\"yuuximerqfobwyzn\",\"name\":\"bykutw\",\"type\":\"fhpagmhrskdsnf\"}],\"nextLink\":\"doakgtdlmkkzevdl\"}") .toObject(WorkloadNetworkList.class); - Assertions.assertEquals("mibzyhwitsmypyyn", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkList model - = new WorkloadNetworkList() - .withValue(Arrays.asList(new WorkloadNetworkInner(), new WorkloadNetworkInner(), - new WorkloadNetworkInner(), new WorkloadNetworkInner())) - .withNextLink("mibzyhwitsmypyyn"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkList.class); - Assertions.assertEquals("mibzyhwitsmypyyn", model.nextLink()); + Assertions.assertEquals("doakgtdlmkkzevdl", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringInnerTests.java index 491d5319bb9a..4be2e2b56f48 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,28 +13,27 @@ public final class WorkloadNetworkPortMirroringInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"vdkfwynwcvtbvk\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"tnvyqiatkzwp\",\"destination\":\"p\",\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":5044236127047100720},\"id\":\"v\",\"name\":\"ccyajg\",\"type\":\"qfhwyg\"}") + "{\"properties\":{\"displayName\":\"ojlpijnkrxf\",\"direction\":\"EGRESS\",\"source\":\"c\",\"destination\":\"tizzronasxif\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":319144288054659459},\"id\":\"wesgogczh\",\"name\":\"nnxk\",\"type\":\"lgnyhmo\"}") .toObject(WorkloadNetworkPortMirroringInner.class); - Assertions.assertEquals("vdkfwynwcvtbvk", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, model.direction()); - Assertions.assertEquals("tnvyqiatkzwp", model.source()); - Assertions.assertEquals("p", model.destination()); - Assertions.assertEquals(5044236127047100720L, model.revision()); + Assertions.assertEquals("ojlpijnkrxf", model.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, model.direction()); + Assertions.assertEquals("c", model.source()); + Assertions.assertEquals("tizzronasxif", model.destination()); + Assertions.assertEquals(319144288054659459L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkPortMirroringInner model - = new WorkloadNetworkPortMirroringInner().withDisplayName("vdkfwynwcvtbvk") - .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) - .withSource("tnvyqiatkzwp") - .withDestination("p") - .withRevision(5044236127047100720L); + WorkloadNetworkPortMirroringInner model = new WorkloadNetworkPortMirroringInner().withDisplayName("ojlpijnkrxf") + .withDirection(PortMirroringDirectionEnum.EGRESS) + .withSource("c") + .withDestination("tizzronasxif") + .withRevision(319144288054659459L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPortMirroringInner.class); - Assertions.assertEquals("vdkfwynwcvtbvk", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, model.direction()); - Assertions.assertEquals("tnvyqiatkzwp", model.source()); - Assertions.assertEquals("p", model.destination()); - Assertions.assertEquals(5044236127047100720L, model.revision()); + Assertions.assertEquals("ojlpijnkrxf", model.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, model.direction()); + Assertions.assertEquals("c", model.source()); + Assertions.assertEquals("tizzronasxif", model.destination()); + Assertions.assertEquals(319144288054659459L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringListTests.java index 37b3da15648b..c9d9728a5899 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringListTests.java @@ -1,60 +1,25 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPortMirroringInner; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkPortMirroringList; import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum; -import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroringList; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkPortMirroringListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"uwqlgzrfzeey\",\"direction\":\"EGRESS\",\"source\":\"ikayuhqlbjbsybb\",\"destination\":\"r\",\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":1497011486595637711},\"id\":\"vm\",\"name\":\"ipaslthaqfxssmwu\",\"type\":\"wbdsr\"},{\"properties\":{\"displayName\":\"drhneuyow\",\"direction\":\"EGRESS\",\"source\":\"ytisibir\",\"destination\":\"pikpz\",\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":3967363356786779271},\"id\":\"zxiavrm\",\"name\":\"zonokixrjqci\",\"type\":\"gzpfrla\"},{\"properties\":{\"displayName\":\"rnwoiindfp\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"lwbtlhf\",\"destination\":\"jcdh\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":127022258924821579},\"id\":\"feljagrqm\",\"name\":\"hldvriii\",\"type\":\"jnalghf\"},{\"properties\":{\"displayName\":\"vsexsowuelu\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"hhxvrhmzkwpj\",\"destination\":\"wspughftqsxhqx\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":6381082417075979554},\"id\":\"igrjguufzdm\",\"name\":\"yqtfihwh\",\"type\":\"otzi\"}],\"nextLink\":\"amvpphoszqzudph\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"dntwjchrdgo\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"mwctondzjluudfd\",\"destination\":\"gg\",\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":5516945390083190100},\"id\":\"tgseinqfiufxqkn\",\"name\":\"irgne\",\"type\":\"ttwqmsni\"}],\"nextLink\":\"cdm\"}") .toObject(WorkloadNetworkPortMirroringList.class); - Assertions.assertEquals("uwqlgzrfzeey", model.value().get(0).displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, model.value().get(0).direction()); - Assertions.assertEquals("ikayuhqlbjbsybb", model.value().get(0).source()); - Assertions.assertEquals("r", model.value().get(0).destination()); - Assertions.assertEquals(1497011486595637711L, model.value().get(0).revision()); - Assertions.assertEquals("amvpphoszqzudph", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkPortMirroringList model = new WorkloadNetworkPortMirroringList().withValue(Arrays.asList( - new WorkloadNetworkPortMirroringInner().withDisplayName("uwqlgzrfzeey") - .withDirection(PortMirroringDirectionEnum.EGRESS) - .withSource("ikayuhqlbjbsybb") - .withDestination("r") - .withRevision(1497011486595637711L), - new WorkloadNetworkPortMirroringInner().withDisplayName("drhneuyow") - .withDirection(PortMirroringDirectionEnum.EGRESS) - .withSource("ytisibir") - .withDestination("pikpz") - .withRevision(3967363356786779271L), - new WorkloadNetworkPortMirroringInner().withDisplayName("rnwoiindfp") - .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) - .withSource("lwbtlhf") - .withDestination("jcdh") - .withRevision(127022258924821579L), - new WorkloadNetworkPortMirroringInner().withDisplayName("vsexsowuelu") - .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) - .withSource("hhxvrhmzkwpj") - .withDestination("wspughftqsxhqx") - .withRevision(6381082417075979554L))) - .withNextLink("amvpphoszqzudph"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkPortMirroringList.class); - Assertions.assertEquals("uwqlgzrfzeey", model.value().get(0).displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, model.value().get(0).direction()); - Assertions.assertEquals("ikayuhqlbjbsybb", model.value().get(0).source()); - Assertions.assertEquals("r", model.value().get(0).destination()); - Assertions.assertEquals(1497011486595637711L, model.value().get(0).revision()); - Assertions.assertEquals("amvpphoszqzudph", model.nextLink()); + Assertions.assertEquals("dntwjchrdgo", model.value().get(0).displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, model.value().get(0).direction()); + Assertions.assertEquals("mwctondzjluudfd", model.value().get(0).source()); + Assertions.assertEquals("gg", model.value().get(0).destination()); + Assertions.assertEquals(5516945390083190100L, model.value().get(0).revision()); + Assertions.assertEquals("cdm", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringPropertiesTests.java index dc61d7128adb..9102d8a11488 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPortMirroringPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,28 +13,28 @@ public final class WorkloadNetworkPortMirroringPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringProperties model = BinaryData.fromString( - "{\"displayName\":\"vdnkfxusem\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"muhapfcqdpsqxqv\",\"destination\":\"vuoy\",\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":4509499977856951739}") + "{\"displayName\":\"xkk\",\"direction\":\"INGRESS\",\"source\":\"rghxjb\",\"destination\":\"qxvcxgfrpdsofb\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":20984502868975858}") .toObject(WorkloadNetworkPortMirroringProperties.class); - Assertions.assertEquals("vdnkfxusem", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, model.direction()); - Assertions.assertEquals("muhapfcqdpsqxqv", model.source()); - Assertions.assertEquals("vuoy", model.destination()); - Assertions.assertEquals(4509499977856951739L, model.revision()); + Assertions.assertEquals("xkk", model.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); + Assertions.assertEquals("rghxjb", model.source()); + Assertions.assertEquals("qxvcxgfrpdsofb", model.destination()); + Assertions.assertEquals(20984502868975858L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WorkloadNetworkPortMirroringProperties model - = new WorkloadNetworkPortMirroringProperties().withDisplayName("vdnkfxusem") - .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) - .withSource("muhapfcqdpsqxqv") - .withDestination("vuoy") - .withRevision(4509499977856951739L); + = new WorkloadNetworkPortMirroringProperties().withDisplayName("xkk") + .withDirection(PortMirroringDirectionEnum.INGRESS) + .withSource("rghxjb") + .withDestination("qxvcxgfrpdsofb") + .withRevision(20984502868975858L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPortMirroringProperties.class); - Assertions.assertEquals("vdnkfxusem", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, model.direction()); - Assertions.assertEquals("muhapfcqdpsqxqv", model.source()); - Assertions.assertEquals("vuoy", model.destination()); - Assertions.assertEquals(4509499977856951739L, model.revision()); + Assertions.assertEquals("xkk", model.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); + Assertions.assertEquals("rghxjb", model.source()); + Assertions.assertEquals("qxvcxgfrpdsofb", model.destination()); + Assertions.assertEquals(20984502868975858L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPropertiesTests.java index c1c899fcd823..543171e16dc4 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -11,12 +11,6 @@ public final class WorkloadNetworkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkProperties model - = BinaryData.fromString("{\"provisioningState\":\"Succeeded\"}").toObject(WorkloadNetworkProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkProperties model = new WorkloadNetworkProperties(); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkProperties.class); + = BinaryData.fromString("{\"provisioningState\":\"Canceled\"}").toObject(WorkloadNetworkProperties.class); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIPsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIPsListTests.java index 03ca42af2954..129403858424 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIPsListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIPsListTests.java @@ -1,37 +1,21 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPublicIpInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkPublicIPsList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkPublicIPsList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkPublicIPsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIPsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"pqlmfe\",\"numberOfPublicIPs\":5076002706235027340,\"publicIPBlock\":\"wkyhkobopgxe\",\"provisioningState\":\"Deleting\"},\"id\":\"epbqpcrfkbw\",\"name\":\"csnjvcdwxlpqekft\",\"type\":\"khtj\"},{\"properties\":{\"displayName\":\"ngwfqatm\",\"numberOfPublicIPs\":6035898469586356847,\"publicIPBlock\":\"dvypgikdgsz\",\"provisioningState\":\"Canceled\"},\"id\":\"irryuzhlh\",\"name\":\"joqrvqqaatj\",\"type\":\"nrvgoupmfiibfgg\"},{\"properties\":{\"displayName\":\"olvrw\",\"numberOfPublicIPs\":639224671106145818,\"publicIPBlock\":\"k\",\"provisioningState\":\"Failed\"},\"id\":\"wjygvjayvblmhvk\",\"name\":\"uhbxvvy\",\"type\":\"gsopbyrqufegxu\"},{\"properties\":{\"displayName\":\"fbn\",\"numberOfPublicIPs\":2314508611274397861,\"publicIPBlock\":\"l\",\"provisioningState\":\"Building\"},\"id\":\"itvgbmhrixkwm\",\"name\":\"ijejvegrhbpn\",\"type\":\"ixexcc\"}],\"nextLink\":\"reaxhcexdr\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"myst\",\"numberOfPublicIPs\":885610274962208064,\"publicIPBlock\":\"pfcvlerchpqbmfp\",\"provisioningState\":\"Updating\"},\"id\":\"widf\",\"name\":\"xsspuunnoxyhk\",\"type\":\"g\"},{\"properties\":{\"displayName\":\"rihpfhoq\",\"numberOfPublicIPs\":1011085759791678741,\"publicIPBlock\":\"dao\",\"provisioningState\":\"Updating\"},\"id\":\"l\",\"name\":\"jxxkzbrmsgei\",\"type\":\"siykzkdncjdxonbz\"}],\"nextLink\":\"gculap\"}") .toObject(WorkloadNetworkPublicIPsList.class); - Assertions.assertEquals("pqlmfe", model.value().get(0).displayName()); - Assertions.assertEquals(5076002706235027340L, model.value().get(0).numberOfPublicIPs()); - Assertions.assertEquals("reaxhcexdr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkPublicIPsList model = new WorkloadNetworkPublicIPsList().withValue(Arrays.asList( - new WorkloadNetworkPublicIpInner().withDisplayName("pqlmfe").withNumberOfPublicIPs(5076002706235027340L), - new WorkloadNetworkPublicIpInner().withDisplayName("ngwfqatm").withNumberOfPublicIPs(6035898469586356847L), - new WorkloadNetworkPublicIpInner().withDisplayName("olvrw").withNumberOfPublicIPs(639224671106145818L), - new WorkloadNetworkPublicIpInner().withDisplayName("fbn").withNumberOfPublicIPs(2314508611274397861L))) - .withNextLink("reaxhcexdr"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkPublicIPsList.class); - Assertions.assertEquals("pqlmfe", model.value().get(0).displayName()); - Assertions.assertEquals(5076002706235027340L, model.value().get(0).numberOfPublicIPs()); - Assertions.assertEquals("reaxhcexdr", model.nextLink()); + Assertions.assertEquals("myst", model.value().get(0).displayName()); + Assertions.assertEquals(885610274962208064L, model.value().get(0).numberOfPublicIPs()); + Assertions.assertEquals("gculap", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpInnerTests.java index a6006fbd73b7..c5cda7b61762 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,18 +12,18 @@ public final class WorkloadNetworkPublicIpInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIpInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"ahqkg\",\"numberOfPublicIPs\":7920652979146329739,\"publicIPBlock\":\"jnhyjsvf\",\"provisioningState\":\"Deleting\"},\"id\":\"bfvoowvrv\",\"name\":\"t\",\"type\":\"jqppyostronzmy\"}") + "{\"properties\":{\"displayName\":\"rpgogtqxep\",\"numberOfPublicIPs\":4258812781218679511,\"publicIPBlock\":\"uajlyj\",\"provisioningState\":\"Building\"},\"id\":\"fqzhv\",\"name\":\"cib\",\"type\":\"fmo\"}") .toObject(WorkloadNetworkPublicIpInner.class); - Assertions.assertEquals("ahqkg", model.displayName()); - Assertions.assertEquals(7920652979146329739L, model.numberOfPublicIPs()); + Assertions.assertEquals("rpgogtqxep", model.displayName()); + Assertions.assertEquals(4258812781218679511L, model.numberOfPublicIPs()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkPublicIpInner model - = new WorkloadNetworkPublicIpInner().withDisplayName("ahqkg").withNumberOfPublicIPs(7920652979146329739L); + WorkloadNetworkPublicIpInner model = new WorkloadNetworkPublicIpInner().withDisplayName("rpgogtqxep") + .withNumberOfPublicIPs(4258812781218679511L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPublicIpInner.class); - Assertions.assertEquals("ahqkg", model.displayName()); - Assertions.assertEquals(7920652979146329739L, model.numberOfPublicIPs()); + Assertions.assertEquals("rpgogtqxep", model.displayName()); + Assertions.assertEquals(4258812781218679511L, model.numberOfPublicIPs()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpPropertiesTests.java index 678423a8c0e9..e12a3097dfba 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIpPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,18 +12,18 @@ public final class WorkloadNetworkPublicIpPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIpProperties model = BinaryData.fromString( - "{\"displayName\":\"fipns\",\"numberOfPublicIPs\":1729044894039608020,\"publicIPBlock\":\"a\",\"provisioningState\":\"Canceled\"}") + "{\"displayName\":\"xrkjpvdw\",\"numberOfPublicIPs\":4789424331234549662,\"publicIPBlock\":\"ivwzjbhyzs\",\"provisioningState\":\"Updating\"}") .toObject(WorkloadNetworkPublicIpProperties.class); - Assertions.assertEquals("fipns", model.displayName()); - Assertions.assertEquals(1729044894039608020L, model.numberOfPublicIPs()); + Assertions.assertEquals("xrkjpvdw", model.displayName()); + Assertions.assertEquals(4789424331234549662L, model.numberOfPublicIPs()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkPublicIpProperties model = new WorkloadNetworkPublicIpProperties().withDisplayName("fipns") - .withNumberOfPublicIPs(1729044894039608020L); + WorkloadNetworkPublicIpProperties model = new WorkloadNetworkPublicIpProperties().withDisplayName("xrkjpvdw") + .withNumberOfPublicIPs(4789424331234549662L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPublicIpProperties.class); - Assertions.assertEquals("fipns", model.displayName()); - Assertions.assertEquals(1729044894039608020L, model.numberOfPublicIPs()); + Assertions.assertEquals("xrkjpvdw", model.displayName()); + Assertions.assertEquals(4789424331234549662L, model.numberOfPublicIPs()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentInnerTests.java index 1ac6a1f7a31e..d2062517029d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,27 +14,27 @@ public final class WorkloadNetworkSegmentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"tizzronasxif\",\"connectedGateway\":\"zq\",\"subnet\":{\"dhcpRanges\":[\"tw\"],\"gatewayAddress\":\"gogczhonnxkrlgny\"},\"portVif\":[{\"portName\":\"sxkkg\"},{\"portName\":\"rrghxjbdhqxvcxgf\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":4282433214728373807},\"id\":\"rnsvbuswd\",\"name\":\"z\",\"type\":\"ybycnunvj\"}") + "{\"properties\":{\"displayName\":\"twbdsrezpdrhn\",\"connectedGateway\":\"yowqkdwytisibir\",\"subnet\":{\"dhcpRanges\":[\"kpzi\",\"ejzanlfz\",\"iavrm\"],\"gatewayAddress\":\"onok\"},\"portVif\":[{\"portName\":\"q\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":2813820823921531110},\"id\":\"azszrnwoiindfpw\",\"name\":\"jylwbtlhflsj\",\"type\":\"dhszfjv\"}") .toObject(WorkloadNetworkSegmentInner.class); - Assertions.assertEquals("tizzronasxif", model.displayName()); - Assertions.assertEquals("zq", model.connectedGateway()); - Assertions.assertEquals("tw", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("gogczhonnxkrlgny", model.subnet().gatewayAddress()); - Assertions.assertEquals(4282433214728373807L, model.revision()); + Assertions.assertEquals("twbdsrezpdrhn", model.displayName()); + Assertions.assertEquals("yowqkdwytisibir", model.connectedGateway()); + Assertions.assertEquals("kpzi", model.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("onok", model.subnet().gatewayAddress()); + Assertions.assertEquals(2813820823921531110L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkSegmentInner model = new WorkloadNetworkSegmentInner().withDisplayName("tizzronasxif") - .withConnectedGateway("zq") - .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("tw")) - .withGatewayAddress("gogczhonnxkrlgny")) - .withRevision(4282433214728373807L); + WorkloadNetworkSegmentInner model = new WorkloadNetworkSegmentInner().withDisplayName("twbdsrezpdrhn") + .withConnectedGateway("yowqkdwytisibir") + .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("kpzi", "ejzanlfz", "iavrm")) + .withGatewayAddress("onok")) + .withRevision(2813820823921531110L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentInner.class); - Assertions.assertEquals("tizzronasxif", model.displayName()); - Assertions.assertEquals("zq", model.connectedGateway()); - Assertions.assertEquals("tw", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("gogczhonnxkrlgny", model.subnet().gatewayAddress()); - Assertions.assertEquals(4282433214728373807L, model.revision()); + Assertions.assertEquals("twbdsrezpdrhn", model.displayName()); + Assertions.assertEquals("yowqkdwytisibir", model.connectedGateway()); + Assertions.assertEquals("kpzi", model.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("onok", model.subnet().gatewayAddress()); + Assertions.assertEquals(2813820823921531110L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPortVifTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPortVifTests.java index 6493004de343..e8b62179f2fb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPortVifTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPortVifTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,14 +12,7 @@ public final class WorkloadNetworkSegmentPortVifTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentPortVif model - = BinaryData.fromString("{\"portName\":\"bgj\"}").toObject(WorkloadNetworkSegmentPortVif.class); - Assertions.assertEquals("bgj", model.portName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkSegmentPortVif model = new WorkloadNetworkSegmentPortVif().withPortName("bgj"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentPortVif.class); - Assertions.assertEquals("bgj", model.portName()); + = BinaryData.fromString("{\"portName\":\"yajguqfhwygzlv\"}").toObject(WorkloadNetworkSegmentPortVif.class); + Assertions.assertEquals("yajguqfhwygzlv", model.portName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPropertiesTests.java index cd8c21883d66..01443c72ec23 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -14,27 +14,28 @@ public final class WorkloadNetworkSegmentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentProperties model = BinaryData.fromString( - "{\"displayName\":\"tkfa\",\"connectedGateway\":\"opqgikyzirtxdyux\",\"subnet\":{\"dhcpRanges\":[\"tpsew\"],\"gatewayAddress\":\"oi\"},\"portVif\":[{\"portName\":\"rydxtqm\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":3407001905687200416}") + "{\"displayName\":\"gofel\",\"connectedGateway\":\"grqmqhldvrii\",\"subnet\":{\"dhcpRanges\":[\"al\",\"hfkvtvsexsowuel\",\"qhhahhxvrhmzkwpj\",\"wws\"],\"gatewayAddress\":\"ghftqsxhqxujxuk\"},\"portVif\":[{\"portName\":\"igrjguufzdm\"},{\"portName\":\"qtfihwhbotzinga\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":3853655697248732253}") .toObject(WorkloadNetworkSegmentProperties.class); - Assertions.assertEquals("tkfa", model.displayName()); - Assertions.assertEquals("opqgikyzirtxdyux", model.connectedGateway()); - Assertions.assertEquals("tpsew", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("oi", model.subnet().gatewayAddress()); - Assertions.assertEquals(3407001905687200416L, model.revision()); + Assertions.assertEquals("gofel", model.displayName()); + Assertions.assertEquals("grqmqhldvrii", model.connectedGateway()); + Assertions.assertEquals("al", model.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("ghftqsxhqxujxuk", model.subnet().gatewayAddress()); + Assertions.assertEquals(3853655697248732253L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkSegmentProperties model = new WorkloadNetworkSegmentProperties().withDisplayName("tkfa") - .withConnectedGateway("opqgikyzirtxdyux") - .withSubnet( - new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("tpsew")).withGatewayAddress("oi")) - .withRevision(3407001905687200416L); + WorkloadNetworkSegmentProperties model = new WorkloadNetworkSegmentProperties().withDisplayName("gofel") + .withConnectedGateway("grqmqhldvrii") + .withSubnet(new WorkloadNetworkSegmentSubnet() + .withDhcpRanges(Arrays.asList("al", "hfkvtvsexsowuel", "qhhahhxvrhmzkwpj", "wws")) + .withGatewayAddress("ghftqsxhqxujxuk")) + .withRevision(3853655697248732253L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentProperties.class); - Assertions.assertEquals("tkfa", model.displayName()); - Assertions.assertEquals("opqgikyzirtxdyux", model.connectedGateway()); - Assertions.assertEquals("tpsew", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("oi", model.subnet().gatewayAddress()); - Assertions.assertEquals(3407001905687200416L, model.revision()); + Assertions.assertEquals("gofel", model.displayName()); + Assertions.assertEquals("grqmqhldvrii", model.connectedGateway()); + Assertions.assertEquals("al", model.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("ghftqsxhqxujxuk", model.subnet().gatewayAddress()); + Assertions.assertEquals(3853655697248732253L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentSubnetTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentSubnetTests.java index 2ad6618995c7..2133394c7181 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentSubnetTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentSubnetTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,20 +12,20 @@ public final class WorkloadNetworkSegmentSubnetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WorkloadNetworkSegmentSubnet model - = BinaryData.fromString("{\"dhcpRanges\":[\"hyaomtbghhavgr\"],\"gatewayAddress\":\"ffovjzhpj\"}") - .toObject(WorkloadNetworkSegmentSubnet.class); - Assertions.assertEquals("hyaomtbghhavgr", model.dhcpRanges().get(0)); - Assertions.assertEquals("ffovjzhpj", model.gatewayAddress()); + WorkloadNetworkSegmentSubnet model = BinaryData.fromString( + "{\"dhcpRanges\":[\"udphqamvdkfwyn\",\"cvtbv\",\"ayhmtnvyqiatkz\",\"pcnp\"],\"gatewayAddress\":\"cjaesgvvs\"}") + .toObject(WorkloadNetworkSegmentSubnet.class); + Assertions.assertEquals("udphqamvdkfwyn", model.dhcpRanges().get(0)); + Assertions.assertEquals("cjaesgvvs", model.gatewayAddress()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkSegmentSubnet model - = new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("hyaomtbghhavgr")) - .withGatewayAddress("ffovjzhpj"); + WorkloadNetworkSegmentSubnet model = new WorkloadNetworkSegmentSubnet() + .withDhcpRanges(Arrays.asList("udphqamvdkfwyn", "cvtbv", "ayhmtnvyqiatkz", "pcnp")) + .withGatewayAddress("cjaesgvvs"); model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentSubnet.class); - Assertions.assertEquals("hyaomtbghhavgr", model.dhcpRanges().get(0)); - Assertions.assertEquals("ffovjzhpj", model.gatewayAddress()); + Assertions.assertEquals("udphqamvdkfwyn", model.dhcpRanges().get(0)); + Assertions.assertEquals("cjaesgvvs", model.gatewayAddress()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentsListTests.java index c675ef55974d..0f49df96e10b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentsListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkSegmentsListTests.java @@ -1,57 +1,24 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkSegmentInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentsList; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkSegmentsList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkSegmentsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"eafxtsgumhjglikk\",\"connectedGateway\":\"slol\",\"subnet\":{\"dhcpRanges\":[\"uzlm\",\"felfktg\"],\"gatewayAddress\":\"crpw\"},\"portVif\":[{\"portName\":\"noigbrnjwmwk\"},{\"portName\":\"bsazejjoqka\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":1349265341310840343},\"id\":\"gzxnfaazpxdtnk\",\"name\":\"mkqjj\",\"type\":\"wuenvr\"},{\"properties\":{\"displayName\":\"ou\",\"connectedGateway\":\"bre\",\"subnet\":{\"dhcpRanges\":[\"ysjkixqtnqttez\",\"wfff\",\"akpjpqqmtedlt\",\"mjihyeozphv\"],\"gatewayAddress\":\"uyqncygupkvipmd\"},\"portVif\":[{\"portName\":\"qupevzh\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":5953574927577101427},\"id\":\"ujbypelmcuvhixb\",\"name\":\"xyfwnylrcool\",\"type\":\"ttpkiwkkbnujrywv\"},{\"properties\":{\"displayName\":\"bfpncurdo\",\"connectedGateway\":\"iithtywu\",\"subnet\":{\"dhcpRanges\":[\"ihwqknfdntwjchr\",\"goihx\",\"mwctondzjluudfd\"],\"gatewayAddress\":\"gg\"},\"portVif\":[{\"portName\":\"wtovvtgsein\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":3636581995811123220},\"id\":\"pirgnepttwq\",\"name\":\"sniffc\",\"type\":\"mqnrojlpijnkr\"}],\"nextLink\":\"rddh\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"twaenuuzko\",\"connectedGateway\":\"minrfdw\",\"subnet\":{\"dhcpRanges\":[\"hziuiefozbhdms\",\"l\"],\"gatewayAddress\":\"qhoftrmaequiah\"},\"portVif\":[{\"portName\":\"lfaoqzpiyylhaln\"},{\"portName\":\"hc\"},{\"portName\":\"ph\"},{\"portName\":\"ivwitqscywugg\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":6648537753700098134},\"id\":\"emh\",\"name\":\"i\",\"type\":\"sbrgz\"},{\"properties\":{\"displayName\":\"swe\",\"connectedGateway\":\"qwdxggicc\",\"subnet\":{\"dhcpRanges\":[\"huexmk\",\"tlstvlzywem\"],\"gatewayAddress\":\"rncsdtclu\"},\"portVif\":[{\"portName\":\"bsfgytguslfea\"},{\"portName\":\"ygqukyhejh\"},{\"portName\":\"sx\"},{\"portName\":\"pelol\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":8128051497759597763},\"id\":\"ujzra\",\"name\":\"htwdwrftswibyrcd\",\"type\":\"bhshfwpracstwity\"},{\"properties\":{\"displayName\":\"vxccedcp\",\"connectedGateway\":\"dyodnwzxltj\",\"subnet\":{\"dhcpRanges\":[\"ltiugcxnavv\"],\"gatewayAddress\":\"qiby\"},\"portVif\":[{\"portName\":\"owx\"},{\"portName\":\"mdjrkvfgbvfvp\"},{\"portName\":\"odacizs\"},{\"portName\":\"lhkrribdeibqipqk\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Failed\",\"revision\":4034217572792949127},\"id\":\"krefajpjo\",\"name\":\"wkqnyhg\",\"type\":\"ij\"},{\"properties\":{\"displayName\":\"vfxzsjab\",\"connectedGateway\":\"systawfsdjp\",\"subnet\":{\"dhcpRanges\":[\"bjxbkzbzk\"],\"gatewayAddress\":\"ncj\"},\"portVif\":[{\"portName\":\"urgkakmokzhjjk\"},{\"portName\":\"fhmouwq\"},{\"portName\":\"zrfze\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":7551956675766407600},\"id\":\"yuhqlbjbsybbqwrv\",\"name\":\"ldgmfpgvmpip\",\"type\":\"slthaq\"}],\"nextLink\":\"ss\"}") .toObject(WorkloadNetworkSegmentsList.class); - Assertions.assertEquals("eafxtsgumhjglikk", model.value().get(0).displayName()); - Assertions.assertEquals("slol", model.value().get(0).connectedGateway()); - Assertions.assertEquals("uzlm", model.value().get(0).subnet().dhcpRanges().get(0)); - Assertions.assertEquals("crpw", model.value().get(0).subnet().gatewayAddress()); - Assertions.assertEquals(1349265341310840343L, model.value().get(0).revision()); - Assertions.assertEquals("rddh", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkSegmentsList model = new WorkloadNetworkSegmentsList().withValue(Arrays.asList( - new WorkloadNetworkSegmentInner().withDisplayName("eafxtsgumhjglikk") - .withConnectedGateway("slol") - .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("uzlm", "felfktg")) - .withGatewayAddress("crpw")) - .withRevision(1349265341310840343L), - new WorkloadNetworkSegmentInner().withDisplayName("ou") - .withConnectedGateway("bre") - .withSubnet(new WorkloadNetworkSegmentSubnet() - .withDhcpRanges(Arrays.asList("ysjkixqtnqttez", "wfff", "akpjpqqmtedlt", "mjihyeozphv")) - .withGatewayAddress("uyqncygupkvipmd")) - .withRevision(5953574927577101427L), - new WorkloadNetworkSegmentInner().withDisplayName("bfpncurdo") - .withConnectedGateway("iithtywu") - .withSubnet(new WorkloadNetworkSegmentSubnet() - .withDhcpRanges(Arrays.asList("ihwqknfdntwjchr", "goihx", "mwctondzjluudfd")) - .withGatewayAddress("gg")) - .withRevision(3636581995811123220L))) - .withNextLink("rddh"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentsList.class); - Assertions.assertEquals("eafxtsgumhjglikk", model.value().get(0).displayName()); - Assertions.assertEquals("slol", model.value().get(0).connectedGateway()); - Assertions.assertEquals("uzlm", model.value().get(0).subnet().dhcpRanges().get(0)); - Assertions.assertEquals("crpw", model.value().get(0).subnet().gatewayAddress()); - Assertions.assertEquals(1349265341310840343L, model.value().get(0).revision()); - Assertions.assertEquals("rddh", model.nextLink()); + Assertions.assertEquals("twaenuuzko", model.value().get(0).displayName()); + Assertions.assertEquals("minrfdw", model.value().get(0).connectedGateway()); + Assertions.assertEquals("hziuiefozbhdms", model.value().get(0).subnet().dhcpRanges().get(0)); + Assertions.assertEquals("qhoftrmaequiah", model.value().get(0).subnet().gatewayAddress()); + Assertions.assertEquals(6648537753700098134L, model.value().get(0).revision()); + Assertions.assertEquals("ss", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupInnerTests.java index 70cda6bb6336..27fdc501eba1 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,21 @@ public final class WorkloadNetworkVMGroupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"zheydbsdshmk\",\"members\":[\"ehvbbxurip\",\"tfnhtbaxkgxywr\",\"kpyklyhp\"],\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":4054155365384402790},\"id\":\"dlgzibthostgkt\",\"name\":\"tvdxeclzedqb\",\"type\":\"vh\"}") + "{\"properties\":{\"displayName\":\"umrtwnawjsl\",\"members\":[\"kojgcyzts\",\"mznbaeqphch\",\"nrnrp\",\"ehuwrykqgaifmvik\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":8629783382496754434},\"id\":\"jdz\",\"name\":\"xcv\",\"type\":\"srhnjivo\"}") .toObject(WorkloadNetworkVMGroupInner.class); - Assertions.assertEquals("zheydbsdshmk", model.displayName()); - Assertions.assertEquals("ehvbbxurip", model.members().get(0)); - Assertions.assertEquals(4054155365384402790L, model.revision()); + Assertions.assertEquals("umrtwnawjsl", model.displayName()); + Assertions.assertEquals("kojgcyzts", model.members().get(0)); + Assertions.assertEquals(8629783382496754434L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkVMGroupInner model = new WorkloadNetworkVMGroupInner().withDisplayName("zheydbsdshmk") - .withMembers(Arrays.asList("ehvbbxurip", "tfnhtbaxkgxywr", "kpyklyhp")) - .withRevision(4054155365384402790L); + WorkloadNetworkVMGroupInner model = new WorkloadNetworkVMGroupInner().withDisplayName("umrtwnawjsl") + .withMembers(Arrays.asList("kojgcyzts", "mznbaeqphch", "nrnrp", "ehuwrykqgaifmvik")) + .withRevision(8629783382496754434L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkVMGroupInner.class); - Assertions.assertEquals("zheydbsdshmk", model.displayName()); - Assertions.assertEquals("ehvbbxurip", model.members().get(0)); - Assertions.assertEquals(4054155365384402790L, model.revision()); + Assertions.assertEquals("umrtwnawjsl", model.displayName()); + Assertions.assertEquals("kojgcyzts", model.members().get(0)); + Assertions.assertEquals(8629783382496754434L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupPropertiesTests.java index 9fa66b6cd4e0..eefcd87ba814 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupPropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupPropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -13,21 +13,22 @@ public final class WorkloadNetworkVMGroupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupProperties model = BinaryData.fromString( - "{\"displayName\":\"h\",\"members\":[\"dqkdlwwqfbu\",\"lkxt\",\"qjfsmlmbtxhw\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":77859916992999912}") + "{\"displayName\":\"tnovqfzgemjdftul\",\"members\":[\"duceamtmc\",\"u\"],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":708418830447367497}") .toObject(WorkloadNetworkVMGroupProperties.class); - Assertions.assertEquals("h", model.displayName()); - Assertions.assertEquals("dqkdlwwqfbu", model.members().get(0)); - Assertions.assertEquals(77859916992999912L, model.revision()); + Assertions.assertEquals("tnovqfzgemjdftul", model.displayName()); + Assertions.assertEquals("duceamtmc", model.members().get(0)); + Assertions.assertEquals(708418830447367497L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkVMGroupProperties model = new WorkloadNetworkVMGroupProperties().withDisplayName("h") - .withMembers(Arrays.asList("dqkdlwwqfbu", "lkxt", "qjfsmlmbtxhw")) - .withRevision(77859916992999912L); + WorkloadNetworkVMGroupProperties model + = new WorkloadNetworkVMGroupProperties().withDisplayName("tnovqfzgemjdftul") + .withMembers(Arrays.asList("duceamtmc", "u")) + .withRevision(708418830447367497L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkVMGroupProperties.class); - Assertions.assertEquals("h", model.displayName()); - Assertions.assertEquals("dqkdlwwqfbu", model.members().get(0)); - Assertions.assertEquals(77859916992999912L, model.revision()); + Assertions.assertEquals("tnovqfzgemjdftul", model.displayName()); + Assertions.assertEquals("duceamtmc", model.members().get(0)); + Assertions.assertEquals(708418830447367497L, model.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupsListTests.java index 805688670270..1924248c3d56 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupsListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVMGroupsListTests.java @@ -1,44 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVMGroupInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkVMGroupsList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkVMGroupsList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkVMGroupsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"qjzgxmrhublw\",\"members\":[\"sutrgjup\",\"uutpwoqhih\",\"jqgwzp\",\"fqntcyp\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":4546309057929935505},\"id\":\"kslircizjxvydfc\",\"name\":\"acvlhv\",\"type\":\"gdyftumrtwna\"},{\"properties\":{\"displayName\":\"lbiw\",\"members\":[\"gcyztsfmznbae\",\"ph\",\"hqnrn\",\"pxehuwrykqga\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Failed\",\"revision\":1763839992025561679},\"id\":\"dvk\",\"name\":\"bejdznxcv\",\"type\":\"srhnjivo\"},{\"properties\":{\"displayName\":\"novqfzge\",\"members\":[\"ftul\",\"ltducea\",\"tmczuomejwcwwqi\"],\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":6715076788595047640},\"id\":\"msvpkjpr\",\"name\":\"kwcf\",\"type\":\"ql\"}],\"nextLink\":\"x\"}") + "{\"value\":[{\"properties\":{\"displayName\":\"vz\",\"members\":[\"ycnunvjsrtk\",\"awnopqgikyzirtxd\",\"uxzejntpsew\",\"ioilqukrydxtq\"],\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":5252415972799158831},\"id\":\"ufhyaomtbgh\",\"name\":\"avgrvkffovjz\",\"type\":\"pjbi\"},{\"properties\":{\"displayName\":\"mfxumvfcluyovw\",\"members\":[\"kfezzxscyhwz\",\"g\",\"rujbzbomvzzbtdc\",\"vp\"],\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":4156012930167419412},\"id\":\"wdsh\",\"name\":\"ssnrbgye\",\"type\":\"rymsgaojfmw\"},{\"properties\":{\"displayName\":\"tmr\",\"members\":[\"rctym\",\"xoftpipiwyczu\",\"xacpqjli\",\"hyus\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Canceled\",\"revision\":5972606310193139455},\"id\":\"fwdgzxulucvp\",\"name\":\"mrsreuzvxurisjnh\",\"type\":\"ytxifqjzgxmrh\"},{\"properties\":{\"displayName\":\"wp\",\"members\":[\"utr\",\"jupauut\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":2623463508515246746},\"id\":\"qg\",\"name\":\"zpnfqntcypsxj\",\"type\":\"foimwkslircizjxv\"}],\"nextLink\":\"fceacvlhvygd\"}") .toObject(WorkloadNetworkVMGroupsList.class); - Assertions.assertEquals("qjzgxmrhublw", model.value().get(0).displayName()); - Assertions.assertEquals("sutrgjup", model.value().get(0).members().get(0)); - Assertions.assertEquals(4546309057929935505L, model.value().get(0).revision()); - Assertions.assertEquals("x", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkVMGroupsList model = new WorkloadNetworkVMGroupsList().withValue(Arrays.asList( - new WorkloadNetworkVMGroupInner().withDisplayName("qjzgxmrhublw") - .withMembers(Arrays.asList("sutrgjup", "uutpwoqhih", "jqgwzp", "fqntcyp")) - .withRevision(4546309057929935505L), - new WorkloadNetworkVMGroupInner().withDisplayName("lbiw") - .withMembers(Arrays.asList("gcyztsfmznbae", "ph", "hqnrn", "pxehuwrykqga")) - .withRevision(1763839992025561679L), - new WorkloadNetworkVMGroupInner().withDisplayName("novqfzge") - .withMembers(Arrays.asList("ftul", "ltducea", "tmczuomejwcwwqi")) - .withRevision(6715076788595047640L))) - .withNextLink("x"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkVMGroupsList.class); - Assertions.assertEquals("qjzgxmrhublw", model.value().get(0).displayName()); - Assertions.assertEquals("sutrgjup", model.value().get(0).members().get(0)); - Assertions.assertEquals(4546309057929935505L, model.value().get(0).revision()); - Assertions.assertEquals("x", model.nextLink()); + Assertions.assertEquals("vz", model.value().get(0).displayName()); + Assertions.assertEquals("ycnunvjsrtk", model.value().get(0).members().get(0)); + Assertions.assertEquals(5252415972799158831L, model.value().get(0).revision()); + Assertions.assertEquals("fceacvlhvygd", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachineInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachineInnerTests.java index bae320f3e714..efc1e08f2c55 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachineInnerTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachineInnerTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,16 +12,8 @@ public final class WorkloadNetworkVirtualMachineInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachineInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"tymoxoftp\",\"vmType\":\"REGULAR\"},\"id\":\"yczuhxacpq\",\"name\":\"lihhyuspskasdvlm\",\"type\":\"wdgzxulucv\"}") + "{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"txhwgfws\",\"vmType\":\"EDGE\"},\"id\":\"coezbrhubskh\",\"name\":\"dyg\",\"type\":\"ookk\"}") .toObject(WorkloadNetworkVirtualMachineInner.class); - Assertions.assertEquals("tymoxoftp", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkVirtualMachineInner model - = new WorkloadNetworkVirtualMachineInner().withDisplayName("tymoxoftp"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkVirtualMachineInner.class); - Assertions.assertEquals("tymoxoftp", model.displayName()); + Assertions.assertEquals("txhwgfws", model.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinePropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinePropertiesTests.java index 48c7ac683607..8b4e13844562 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinePropertiesTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinePropertiesTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -12,17 +12,8 @@ public final class WorkloadNetworkVirtualMachinePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachineProperties model = BinaryData - .fromString( - "{\"provisioningState\":\"Canceled\",\"displayName\":\"sreuzvxurisjnh\",\"vmType\":\"SERVICE\"}") + .fromString("{\"provisioningState\":\"Failed\",\"displayName\":\"bvleorfmluiqtqzf\",\"vmType\":\"EDGE\"}") .toObject(WorkloadNetworkVirtualMachineProperties.class); - Assertions.assertEquals("sreuzvxurisjnh", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkVirtualMachineProperties model - = new WorkloadNetworkVirtualMachineProperties().withDisplayName("sreuzvxurisjnh"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkVirtualMachineProperties.class); - Assertions.assertEquals("sreuzvxurisjnh", model.displayName()); + Assertions.assertEquals("bvleorfmluiqtqzf", model.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinesListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinesListTests.java index 6418492568c3..4ef437d6a575 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinesListTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkVirtualMachinesListTests.java @@ -1,33 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVirtualMachineInner; -import com.azure.resourcemanager.avs.models.WorkloadNetworkVirtualMachinesList; -import java.util.Arrays; +import com.azure.resourcemanager.avs.implementation.models.WorkloadNetworkVirtualMachinesList; import org.junit.jupiter.api.Assertions; public final class WorkloadNetworkVirtualMachinesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachinesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"fcluyov\",\"vmType\":\"EDGE\"},\"id\":\"kfezzxscyhwz\",\"name\":\"g\",\"type\":\"rujbzbomvzzbtdc\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"yujviylwdshfssn\",\"vmType\":\"EDGE\"},\"id\":\"efr\",\"name\":\"msgaoj\",\"type\":\"mwn\"}],\"nextLink\":\"tmr\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"ssxmojms\",\"vmType\":\"REGULAR\"},\"id\":\"prvkwcfzqljyxgtc\",\"name\":\"heyd\",\"type\":\"sdshmkxmaehvb\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"pltfnhtba\",\"vmType\":\"EDGE\"},\"id\":\"ywrckp\",\"name\":\"kl\",\"type\":\"hpluodpvruudlg\"},{\"properties\":{\"provisioningState\":\"Updating\",\"displayName\":\"ostgkts\",\"vmType\":\"EDGE\"},\"id\":\"eclze\",\"name\":\"qbcvhzlhplod\",\"type\":\"kdl\"}],\"nextLink\":\"qfbumlkxtrqjf\"}") .toObject(WorkloadNetworkVirtualMachinesList.class); - Assertions.assertEquals("fcluyov", model.value().get(0).displayName()); - Assertions.assertEquals("tmr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadNetworkVirtualMachinesList model = new WorkloadNetworkVirtualMachinesList() - .withValue(Arrays.asList(new WorkloadNetworkVirtualMachineInner().withDisplayName("fcluyov"), - new WorkloadNetworkVirtualMachineInner().withDisplayName("yujviylwdshfssn"))) - .withNextLink("tmr"); - model = BinaryData.fromObject(model).toObject(WorkloadNetworkVirtualMachinesList.class); - Assertions.assertEquals("fcluyov", model.value().get(0).displayName()); - Assertions.assertEquals("tmr", model.nextLink()); + Assertions.assertEquals("ssxmojms", model.value().get(0).displayName()); + Assertions.assertEquals("qfbumlkxtrqjf", model.nextLink()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpMockTests.java index 1eb6b5d606ee..81abc9e056cd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDhcpMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateDhcpMockTests { @Test public void testCreateDhcp() throws Exception { String responseStr - = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"zlanrupdwvnph\",\"segments\":[\"q\",\"pjhmqrhvthl\"],\"provisioningState\":\"Succeeded\",\"revision\":1106480050332233961},\"id\":\"mlzzhzdtxetlgyd\",\"name\":\"hqvlnnpxybafiqg\",\"type\":\"aarbgjekg\"}"; + = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"yrrueqth\",\"segments\":[\"nmbscbbx\",\"gdhxi\",\"d\",\"opedbwdpyqyybxub\"],\"provisioningState\":\"Succeeded\",\"revision\":4019284152093809147},\"id\":\"qwremjel\",\"name\":\"qacigeleo\",\"type\":\"d\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testCreateDhcp() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDhcp response = manager.workloadNetworks() - .defineDhcp("dxfzzzwyjaf") - .withExistingPrivateCloud("pcrrk", "lawjmjsmwrok") + .defineDhcp("a") + .withExistingWorkloadNetwork("urnnqbnqbpiz", "qltgrd", "gypxrxvbfihwuhvc") .withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("hguynuchlgmltxdw").withRevision(3582867417304549284L)) + new WorkloadNetworkDhcpEntity().withDisplayName("bxrblmliowxihspn").withRevision(5731341152723748479L)) .create(); - Assertions.assertEquals("zlanrupdwvnph", response.properties().displayName()); - Assertions.assertEquals(1106480050332233961L, response.properties().revision()); + Assertions.assertEquals("yrrueqth", response.properties().displayName()); + Assertions.assertEquals(4019284152093809147L, response.properties().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceMockTests.java index ce74b34ad08d..b7976d21a479 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsServiceMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class WorkloadNetworksCreateDnsServiceMockTests { @Test public void testCreateDnsService() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"yrrleaesinuqt\",\"dnsServiceIp\":\"qobbpihehcec\",\"defaultDnsZone\":\"mrqbrjbbmpxdlv\",\"fqdnZones\":[\"rexcrseqwjksghu\",\"gzhxog\",\"ggsvoujkxibdaf\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":5833008112699016304},\"id\":\"bv\",\"name\":\"bhdyir\",\"type\":\"pwpgddei\"}"; + = "{\"properties\":{\"displayName\":\"pzgsk\",\"dnsServiceIp\":\"fhfv\",\"defaultDnsZone\":\"mknbnxwcdommpv\",\"fqdnZones\":[\"wzfgbrttuiaclkie\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":3380169612516312887},\"id\":\"fyut\",\"name\":\"diygbpvnwswmtxky\",\"type\":\"twwgzwx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,21 +33,21 @@ public void testCreateDnsService() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDnsService response = manager.workloadNetworks() - .defineDnsService("hj") - .withExistingPrivateCloud("klbyulidwcw", "mzegjon") - .withDisplayName("gdn") - .withDnsServiceIp("brfkspz") - .withDefaultDnsZone("mtksjcitdigsx") - .withFqdnZones(Arrays.asList("l", "plkeuachtomflryt", "wfpfmdgycx", "mskwhqjjysl")) - .withLogLevel(DnsServiceLogLevelEnum.WARNING) - .withRevision(2457531549139763727L) + .defineDnsService("lexwhcbjp") + .withExistingWorkloadNetwork("eksgbuxantuygd", "gaqi", "irpiwrqofulopmj") + .withDisplayName("e") + .withDnsServiceIp("uuuercta") + .withDefaultDnsZone("yintqpbrlcy") + .withFqdnZones(Arrays.asList("czkgofxyfsrucvcr", "pcjttbstvjeaqn", "mvvfko", "mlghktuidvrmazlp")) + .withLogLevel(DnsServiceLogLevelEnum.DEBUG) + .withRevision(8682161930744530375L) .create(); - Assertions.assertEquals("yrrleaesinuqt", response.displayName()); - Assertions.assertEquals("qobbpihehcec", response.dnsServiceIp()); - Assertions.assertEquals("mrqbrjbbmpxdlv", response.defaultDnsZone()); - Assertions.assertEquals("rexcrseqwjksghu", response.fqdnZones().get(0)); + Assertions.assertEquals("pzgsk", response.displayName()); + Assertions.assertEquals("fhfv", response.dnsServiceIp()); + Assertions.assertEquals("mknbnxwcdommpv", response.defaultDnsZone()); + Assertions.assertEquals("wzfgbrttuiaclkie", response.fqdnZones().get(0)); Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, response.logLevel()); - Assertions.assertEquals(5833008112699016304L, response.revision()); + Assertions.assertEquals(3380169612516312887L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneMockTests.java index cc4f4d6dfe80..5cd00e3fbbc5 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateDnsZoneMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateDnsZoneMockTests { @Test public void testCreateDnsZone() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"klelssxb\",\"domain\":[\"sxz\"],\"dnsServerIps\":[\"srlsmd\"],\"sourceIp\":\"qplpvmjc\",\"dnsServices\":5106286966538490293,\"provisioningState\":\"Succeeded\",\"revision\":7484843776826385857},\"id\":\"eowxvgpi\",\"name\":\"deugf\",\"type\":\"xzecpaxwkufykhvu\"}"; + = "{\"properties\":{\"displayName\":\"hihpvecmsl\",\"domain\":[\"lyjxltbsjus\"],\"dnsServerIps\":[\"f\",\"igctmgxuupbezq\",\"cydrtceukdqkk\"],\"sourceIp\":\"hztgeqmgqzgwld\",\"dnsServices\":122850686234484480,\"provisioningState\":\"Succeeded\",\"revision\":6090826264173048120},\"id\":\"fehuwaoaguhi\",\"name\":\"qllizstac\",\"type\":\"jvhrweft\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,21 +32,21 @@ public void testCreateDnsZone() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDnsZone response = manager.workloadNetworks() - .defineDnsZone("sqowxwc") - .withExistingPrivateCloud("awzovgkk", "muikjcjcaztbws") - .withDisplayName("ikytwvczcswka") - .withDomain(Arrays.asList("jyfdvlv", "b", "rnfxtgddp", "th")) - .withDnsServerIps(Arrays.asList("mnaoy")) - .withSourceIp("kcoeqswank") - .withDnsServices(8917726159881573369L) - .withRevision(5230753304707759039L) + .defineDnsZone("oqqtl") + .withExistingWorkloadNetwork("l", "ecvo", "ygzyvneezaifght") + .withDisplayName("zbkr") + .withDomain(Arrays.asList("javfqn", "hnqoewdo")) + .withDnsServerIps(Arrays.asList("etesypvidbztjhqt", "b")) + .withSourceIp("nynkbwet") + .withDnsServices(6087710670618433080L) + .withRevision(481993562254393755L) .create(); - Assertions.assertEquals("klelssxb", response.displayName()); - Assertions.assertEquals("sxz", response.domain().get(0)); - Assertions.assertEquals("srlsmd", response.dnsServerIps().get(0)); - Assertions.assertEquals("qplpvmjc", response.sourceIp()); - Assertions.assertEquals(5106286966538490293L, response.dnsServices()); - Assertions.assertEquals(7484843776826385857L, response.revision()); + Assertions.assertEquals("hihpvecmsl", response.displayName()); + Assertions.assertEquals("lyjxltbsjus", response.domain().get(0)); + Assertions.assertEquals("f", response.dnsServerIps().get(0)); + Assertions.assertEquals("hztgeqmgqzgwld", response.sourceIp()); + Assertions.assertEquals(122850686234484480L, response.dnsServices()); + Assertions.assertEquals(6090826264173048120L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringMockTests.java index dacc34c020c7..2dcbc01eaefd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePortMirroringMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreatePortMirroringMockTests { @Test public void testCreatePortMirroring() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"hqlkccuzgygqwaho\",\"direction\":\"INGRESS\",\"source\":\"gniiprglvaw\",\"destination\":\"z\",\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":9015323122044203190},\"id\":\"bbjpmcubkmif\",\"name\":\"xxkubvphavp\",\"type\":\"h\"}"; + = "{\"properties\":{\"displayName\":\"sgnzxojpslsvjgpl\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"qwoyxqvapco\",\"destination\":\"oucqpqojx\",\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":3808472804617069453},\"id\":\"zbenribc\",\"name\":\"wetzqddtjwfljh\",\"type\":\"namtuatmzw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,19 +32,19 @@ public void testCreatePortMirroring() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkPortMirroring response = manager.workloadNetworks() - .definePortMirroring("ltymkmvguihywart") - .withExistingPrivateCloud("xepmrut", "nabaobnslujd") - .withDisplayName("hkixkykxdssj") - .withDirection(PortMirroringDirectionEnum.EGRESS) - .withSource("ucfx") - .withDestination("kkflrmymyincqlhr") - .withRevision(6672920695658521113L) + .definePortMirroring("eakxcptsoqfyi") + .withExistingWorkloadNetwork("vqvwzkjopwbe", "nrlkwzdqy", "x") + .withDisplayName("qc") + .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) + .withSource("tzrazisgyk") + .withDestination("emv") + .withRevision(4183468401672567495L) .create(); - Assertions.assertEquals("hqlkccuzgygqwaho", response.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, response.direction()); - Assertions.assertEquals("gniiprglvaw", response.source()); - Assertions.assertEquals("z", response.destination()); - Assertions.assertEquals(9015323122044203190L, response.revision()); + Assertions.assertEquals("sgnzxojpslsvjgpl", response.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, response.direction()); + Assertions.assertEquals("qwoyxqvapco", response.source()); + Assertions.assertEquals("oucqpqojx", response.destination()); + Assertions.assertEquals(3808472804617069453L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPMockTests.java similarity index 67% rename from sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpMockTests.java rename to sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPMockTests.java index ad02b75fc1f9..d99812ee1306 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIpMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreatePublicIPMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksCreatePublicIpMockTests { @Test public void testCreatePublicIp() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"leeyaswl\",\"numberOfPublicIPs\":6834415054376102740,\"publicIPBlock\":\"rmfjlrxw\",\"provisioningState\":\"Succeeded\"},\"id\":\"khfkvcisi\",\"name\":\"moaedsxj\",\"type\":\"uivedwcgyeewxeiq\"}"; + = "{\"properties\":{\"displayName\":\"hntasfaymx\",\"numberOfPublicIPs\":8670362255944644435,\"publicIPBlock\":\"ealbmqkyo\",\"provisioningState\":\"Succeeded\"},\"id\":\"fkmbtsuahxsgxj\",\"name\":\"mmzrrscub\",\"type\":\"wsdrnpxqwodif\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testCreatePublicIp() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkPublicIp response = manager.workloadNetworks() - .definePublicIp("nssqyzqed") - .withExistingPrivateCloud("rbqgvgov", "bbttefjo") - .withDisplayName("frdbiqmrjgeihf") - .withNumberOfPublicIPs(7863102201954371556L) + .definePublicIp("pydjfboc") + .withExistingWorkloadNetwork("wqejpmvsse", "aepwamcxtcz", "upeuknijduyye") + .withDisplayName("hulrtywikdmhla") + .withNumberOfPublicIPs(8589946500530915839L) .create(); - Assertions.assertEquals("leeyaswl", response.displayName()); - Assertions.assertEquals(6834415054376102740L, response.numberOfPublicIPs()); + Assertions.assertEquals("hntasfaymx", response.displayName()); + Assertions.assertEquals(8670362255944644435L, response.numberOfPublicIPs()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentMockTests.java new file mode 100644 index 000000000000..815e9842ad48 --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentMockTests.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.avs.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.avs.AvsManager; +import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; +import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class WorkloadNetworksCreateSegmentMockTests { + @Test + public void testCreateSegment() throws Exception { + String responseStr + = "{\"properties\":{\"displayName\":\"ylhk\",\"connectedGateway\":\"nsghp\",\"subnet\":{\"dhcpRanges\":[\"hdrwjjkh\",\"yomacluzvxnqm\"],\"gatewayAddress\":\"pqpdfwmkoisqc\"},\"portVif\":[{\"portName\":\"xuifmcsypobkdqz\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":4296638133304358080},\"id\":\"gtrczzydmxzjijpv\",\"name\":\"aurkihcirlde\",\"type\":\"xrdcoxnbkkja\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + AvsManager manager = AvsManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + WorkloadNetworkSegment response = manager.workloadNetworks() + .defineSegment("nuilee") + .withExistingWorkloadNetwork("byephmgt", "ljvrcmyfqipgxhnp", "myqwcab") + .withDisplayName("wlpaugmrmfjlrxwt") + .withConnectedGateway("ukhfkvc") + .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("moaedsxj", "uivedwcgyeewxeiq")) + .withGatewayAddress("smgomguaml")) + .withRevision(7283254554944912845L) + .create(); + + Assertions.assertEquals("ylhk", response.displayName()); + Assertions.assertEquals("nsghp", response.connectedGateway()); + Assertions.assertEquals("hdrwjjkh", response.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("pqpdfwmkoisqc", response.subnet().gatewayAddress()); + Assertions.assertEquals(4296638133304358080L, response.revision()); + } +} diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsMockTests.java deleted file mode 100644 index 364f1215664f..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentsMockTests.java +++ /dev/null @@ -1,52 +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.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.avs.AvsManager; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; -import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class WorkloadNetworksCreateSegmentsMockTests { - @Test - public void testCreateSegments() throws Exception { - String responseStr - = "{\"properties\":{\"displayName\":\"zydmxzjijpvuaurk\",\"connectedGateway\":\"ci\",\"subnet\":{\"dhcpRanges\":[\"fx\",\"dcoxnbk\",\"ja\"],\"gatewayAddress\":\"rnnqb\"},\"portVif\":[{\"portName\":\"izxqltgrd\"},{\"portName\":\"ypxrx\"},{\"portName\":\"fihwu\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":277871752472439784},\"id\":\"xrblmliowxihs\",\"name\":\"nxw\",\"type\":\"agnepzwaklsb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - AvsManager manager = AvsManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkloadNetworkSegment response = manager.workloadNetworks() - .defineSegments("l") - .withExistingPrivateCloud("psmgo", "guamlj") - .withDisplayName("splzga") - .withConnectedGateway("cshhv") - .withSubnet(new WorkloadNetworkSegmentSubnet() - .withDhcpRanges(Arrays.asList("nxkympqanxrjk", "xtwbta", "ypnyghshxc")) - .withGatewayAddress("hkgmnsg")) - .withRevision(4535170373281810468L) - .create(); - - Assertions.assertEquals("zydmxzjijpvuaurk", response.displayName()); - Assertions.assertEquals("ci", response.connectedGateway()); - Assertions.assertEquals("fx", response.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("rnnqb", response.subnet().gatewayAddress()); - Assertions.assertEquals(277871752472439784L, response.revision()); - } -} diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupMockTests.java index 6c321c70075f..3c42d01dae3e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateVMGroupMockTests { @Test public void testCreateVMGroup() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"iidlop\",\"members\":[\"wdpyq\",\"ybxubmdna\",\"cbq\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":1864803261739962895},\"id\":\"acigel\",\"name\":\"ohdbvqvwzkj\",\"type\":\"pwbeonr\"}"; + = "{\"properties\":{\"displayName\":\"xne\",\"members\":[\"mtodl\"],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":5140968994172392364},\"id\":\"voavyunssxl\",\"name\":\"hi\",\"type\":\"egjlgvvpa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testCreateVMGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkVMGroup response = manager.workloadNetworks() - .defineVMGroup("sgl") - .withExistingPrivateCloud("bqqqagwwrxa", "mz") - .withDisplayName("zezkhhltnjadh") - .withMembers(Arrays.asList("wjqo")) - .withRevision(5714887426369504206L) + .defineVMGroup("ebwgga") + .withExistingWorkloadNetwork("jj", "cqtjzmi", "vgbgatzuuvbxng") + .withDisplayName("zlswvajqf") + .withMembers(Arrays.asList("x")) + .withRevision(5388655277273530028L) .create(); - Assertions.assertEquals("iidlop", response.displayName()); - Assertions.assertEquals("wdpyq", response.members().get(0)); - Assertions.assertEquals(1864803261739962895L, response.revision()); + Assertions.assertEquals("xne", response.displayName()); + Assertions.assertEquals("mtodl", response.members().get(0)); + Assertions.assertEquals(5140968994172392364L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpMockTests.java index bb207b061733..3a30d2448da8 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDhcpMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,7 @@ public void testDeleteDhcp() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workloadNetworks().deleteDhcp("ycxhxzgaztta", "o", "dvmfqhppub", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deleteDhcp("fyuicdh", "bd", "bwwg", "d", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceMockTests.java index 8bc7015e678b..ac0a20a24aaa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsServiceMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,8 +27,7 @@ public void testDeleteDnsService() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workloadNetworks() - .deleteDnsService("uhxu", "cbuewmrswnjlxuz", "hwpusxj", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deleteDnsService("rhpw", "gddeimaw", "o", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneMockTests.java index e0e008dff4dc..3d21d6cfcfaa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteDnsZoneMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -28,7 +28,7 @@ public void testDeleteDnsZone() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deleteDnsZone("ttvwkpqh", "penuy", "bqeqqekewvnqvcd", com.azure.core.util.Context.NONE); + .deleteDnsZone("xepmrut", "nabaobnslujd", "ltymkmvguihywart", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringMockTests.java index 6b7c10c00d29..d6779a0a2dc3 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePortMirroringMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -28,7 +28,7 @@ public void testDeletePortMirroring() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deletePortMirroring("qecrqctmxx", "tddmf", "huytxzvtzn", com.azure.core.util.Context.NONE); + .deletePortMirroring("jk", "mykyujxsglhs", "rryejylmbkzudnig", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPMockTests.java similarity index 85% rename from sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpMockTests.java rename to sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPMockTests.java index 83c043e71a99..d42953b4f39c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIpMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeletePublicIPMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,8 @@ public void testDeletePublicIp() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workloadNetworks().deletePublicIp("hmwffplfmuv", "pckc", "rrvwey", com.azure.core.util.Context.NONE); + manager.workloadNetworks() + .deletePublicIp("kdfrdbiqmrjgeihf", "lg", "wfiwzcxmj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentMockTests.java index 0cbb6449fd26..16ff836de507 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteSegmentMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -27,7 +27,8 @@ public void testDeleteSegment() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.workloadNetworks().deleteSegment("yych", "nsjlpjrtws", "hv", com.azure.core.util.Context.NONE); + manager.workloadNetworks() + .deleteSegment("lontacnpq", "tehtuevrhrljyoog", "xh", "sd", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupMockTests.java index ba1fdccc37c2..ed2b6851a15d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksDeleteVMGroupMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -28,7 +28,7 @@ public void testDeleteVMGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deleteVMGroup("tjklntikyjuzk", "bqzolxr", "vhqjwtrhtgvg", com.azure.core.util.Context.NONE); + .deleteVMGroup("jpu", "yjucejikzoeo", "vtzejetjklnti", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpWithResponseMockTests.java index 79792a68f92b..da529d031451 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDhcpWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetDhcpWithResponseMockTests { @Test public void testGetDhcpWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"rtvtiukye\",\"segments\":[\"nmnahmnx\",\"k\",\"jqirwrw\"],\"provisioningState\":\"Canceled\",\"revision\":6305545466909412711},\"id\":\"fhxwrsne\",\"name\":\"mozqv\",\"type\":\"ubqmamh\"}"; + = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"bdxnaz\",\"segments\":[\"mlmvevfxzo\"],\"provisioningState\":\"Failed\",\"revision\":5810389304186982523},\"id\":\"iohrdddtf\",\"name\":\"xqbawpc\",\"type\":\"bnzqcyknapq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetDhcpWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDhcp response = manager.workloadNetworks() - .getDhcpWithResponse("yjwpfilkmkkh", "l", "dndviauogp", com.azure.core.util.Context.NONE) + .getDhcpWithResponse("tlyo", "rrrouuxvnsa", "bcrymodizrx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rtvtiukye", response.properties().displayName()); - Assertions.assertEquals(6305545466909412711L, response.properties().revision()); + Assertions.assertEquals("bdxnaz", response.properties().displayName()); + Assertions.assertEquals(5810389304186982523L, response.properties().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceWithResponseMockTests.java index c1bb4cbe611e..ca1c2948b6dd 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsServiceWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksGetDnsServiceWithResponseMockTests { @Test public void testGetDnsServiceWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"myccx\",\"dnsServiceIp\":\"hcoxov\",\"defaultDnsZone\":\"khenlus\",\"fqdnZones\":[\"dtjxtxrdcqt\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":7902462386564610802},\"id\":\"lvyjtcvuwkas\",\"name\":\"zies\",\"type\":\"uughtuqfecjxeyg\"}"; + = "{\"properties\":{\"displayName\":\"josovyrrl\",\"dnsServiceIp\":\"esi\",\"defaultDnsZone\":\"qtljqobbpihehc\",\"fqdnZones\":[\"bmrqbrjbbmp\",\"dlvykfrex\",\"rseqwjksghudgz\"],\"logLevel\":\"INFO\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":5826744192154517263},\"id\":\"jkxibda\",\"name\":\"hrkmdyomkxfbvfbh\",\"type\":\"y\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,15 @@ public void testGetDnsServiceWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDnsService response = manager.workloadNetworks() - .getDnsServiceWithResponse("nszonwpngaj", "n", "ixjawrtm", com.azure.core.util.Context.NONE) + .getDnsServiceWithResponse("dgycxnmskwhqjjy", "lurlpshhkvp", "dwqslsrhmpqvw", "skondcbrwimu", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("myccx", response.displayName()); - Assertions.assertEquals("hcoxov", response.dnsServiceIp()); - Assertions.assertEquals("khenlus", response.defaultDnsZone()); - Assertions.assertEquals("dtjxtxrdcqt", response.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, response.logLevel()); - Assertions.assertEquals(7902462386564610802L, response.revision()); + Assertions.assertEquals("josovyrrl", response.displayName()); + Assertions.assertEquals("esi", response.dnsServiceIp()); + Assertions.assertEquals("qtljqobbpihehc", response.defaultDnsZone()); + Assertions.assertEquals("bmrqbrjbbmp", response.fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.INFO, response.logLevel()); + Assertions.assertEquals(5826744192154517263L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneWithResponseMockTests.java index 0d8b396066c2..9ea857d15c70 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetDnsZoneWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetDnsZoneWithResponseMockTests { @Test public void testGetDnsZoneWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"bnfxofvc\",\"domain\":[\"dirazf\",\"xejw\"],\"dnsServerIps\":[\"dujtmvcope\",\"c\",\"jurbuhhlkyqltqsr\",\"gtuwkff\"],\"sourceIp\":\"ktsysidfvclglxn\",\"dnsServices\":3628505387353206788,\"provisioningState\":\"Updating\",\"revision\":5581473704457781073},\"id\":\"ogsf\",\"name\":\"kayi\",\"type\":\"nsharujtjiqxfzyj\"}"; + = "{\"properties\":{\"displayName\":\"klelssxb\",\"domain\":[\"sxz\"],\"dnsServerIps\":[\"srlsmd\"],\"sourceIp\":\"qplpvmjc\",\"dnsServices\":5106286966538490293,\"provisioningState\":\"Failed\",\"revision\":7484843776826385857},\"id\":\"eowxvgpi\",\"name\":\"deugf\",\"type\":\"xzecpaxwkufykhvu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testGetDnsZoneWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkDnsZone response = manager.workloadNetworks() - .getDnsZoneWithResponse("ueio", "kjbsah", "tdtpdelqacslmo", com.azure.core.util.Context.NONE) + .getDnsZoneWithResponse("ktgj", "sggux", "eml", "ywaeeczgf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bnfxofvc", response.displayName()); - Assertions.assertEquals("dirazf", response.domain().get(0)); - Assertions.assertEquals("dujtmvcope", response.dnsServerIps().get(0)); - Assertions.assertEquals("ktsysidfvclglxn", response.sourceIp()); - Assertions.assertEquals(3628505387353206788L, response.dnsServices()); - Assertions.assertEquals(5581473704457781073L, response.revision()); + Assertions.assertEquals("klelssxb", response.displayName()); + Assertions.assertEquals("sxz", response.domain().get(0)); + Assertions.assertEquals("srlsmd", response.dnsServerIps().get(0)); + Assertions.assertEquals("qplpvmjc", response.sourceIp()); + Assertions.assertEquals(5106286966538490293L, response.dnsServices()); + Assertions.assertEquals(7484843776826385857L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewayWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewayWithResponseMockTests.java index 11d053a05448..2ce3a981ff75 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewayWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetGatewayWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetGatewayWithResponseMockTests { @Test public void testGetGatewayWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"mtrwah\",\"path\":\"mu\"},\"id\":\"tb\",\"name\":\"r\",\"type\":\"lrohkpig\"}"; + = "{\"properties\":{\"provisioningState\":\"Updating\",\"displayName\":\"oucs\",\"path\":\"ldpuviy\"},\"id\":\"aabeolhbhlvbmxuq\",\"name\":\"bsxtkcudfbsfarfs\",\"type\":\"owlkjxnqpv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,10 @@ public void testGetGatewayWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkGateway response = manager.workloadNetworks() - .getGatewayWithResponse("nchrszizoyu", "lyetndnbfqygg", "g", com.azure.core.util.Context.NONE) + .getGatewayWithResponse("jcaacfdmmcpugm", "hqepvufhbzehewh", "qhnlbqnbld", "eaclgschorimk", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mtrwah", response.displayName()); + Assertions.assertEquals("oucs", response.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringWithResponseMockTests.java index ee522e181c1e..fd65c44a700a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPortMirroringWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksGetPortMirroringWithResponseMockTests { @Test public void testGetPortMirroringWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"q\",\"direction\":\"EGRESS\",\"source\":\"renlvhhtklnvnafv\",\"destination\":\"yfedevjbo\",\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":41375191452971631},\"id\":\"khminqcymc\",\"name\":\"ngnbdxxew\",\"type\":\"ninvudbchaqdt\"}"; + = "{\"properties\":{\"displayName\":\"vuicp\",\"direction\":\"EGRESS\",\"source\":\"rmhw\",\"destination\":\"fdpyflubh\",\"status\":\"SUCCESS\",\"provisioningState\":\"Failed\",\"revision\":8847370311593118177},\"id\":\"zlwhhmemhooclu\",\"name\":\"n\",\"type\":\"qmemc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,14 @@ public void testGetPortMirroringWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkPortMirroring response = manager.workloadNetworks() - .getPortMirroringWithResponse("evrh", "ljyoogwx", "nsduugwbsre", com.azure.core.util.Context.NONE) + .getPortMirroringWithResponse("mtkhlowkxxpvbr", "fjmzsyzfho", "lhikcyychunsj", "pjrtws", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("q", response.displayName()); + Assertions.assertEquals("vuicp", response.displayName()); Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, response.direction()); - Assertions.assertEquals("renlvhhtklnvnafv", response.source()); - Assertions.assertEquals("yfedevjbo", response.destination()); - Assertions.assertEquals(41375191452971631L, response.revision()); + Assertions.assertEquals("rmhw", response.source()); + Assertions.assertEquals("fdpyflubh", response.destination()); + Assertions.assertEquals(8847370311593118177L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPWithResponseMockTests.java similarity index 70% rename from sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpWithResponseMockTests.java rename to sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPWithResponseMockTests.java index 10dfecadc420..ef67773d57b7 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIpWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetPublicIPWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetPublicIpWithResponseMockTests { @Test public void testGetPublicIpWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"fg\",\"numberOfPublicIPs\":1524478115165309750,\"publicIPBlock\":\"pcbbnzqcykna\",\"provisioningState\":\"Deleting\"},\"id\":\"yuicdhzbdy\",\"name\":\"wwgbdv\",\"type\":\"bid\"}"; + = "{\"properties\":{\"displayName\":\"pivlsbbjpm\",\"numberOfPublicIPs\":2333317127183841178,\"publicIPBlock\":\"ifoxxkubvphav\",\"provisioningState\":\"Succeeded\"},\"id\":\"rbqgvgov\",\"name\":\"bbttefjo\",\"type\":\"nssqyzqed\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,11 @@ public void testGetPublicIpWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkPublicIp response = manager.workloadNetworks() - .getPublicIpWithResponse("vfxzopjh", "zxlioh", "d", com.azure.core.util.Context.NONE) + .getPublicIpWithResponse("wdtgukranblw", "hqlkccuzgygqwaho", "ulwgniiprglvawuw", "d", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fg", response.displayName()); - Assertions.assertEquals(1524478115165309750L, response.numberOfPublicIPs()); + Assertions.assertEquals("pivlsbbjpm", response.displayName()); + Assertions.assertEquals(2333317127183841178L, response.numberOfPublicIPs()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentWithResponseMockTests.java index 2007fb126b20..d88f84c1ce45 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetSegmentWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetSegmentWithResponseMockTests { @Test public void testGetSegmentWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"stmhqykizmd\",\"connectedGateway\":\"aoaf\",\"subnet\":{\"dhcpRanges\":[\"v\",\"xmycjimryvwgcw\"],\"gatewayAddress\":\"bmzgwes\"},\"portVif\":[{\"portName\":\"wefohecbvo\"},{\"portName\":\"ndyqleal\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":5841187732800294671},\"id\":\"wkxxpvbrdfjmzs\",\"name\":\"zfhotlh\",\"type\":\"k\"}"; + = "{\"properties\":{\"displayName\":\"mkwkl\",\"connectedGateway\":\"oxaxm\",\"subnet\":{\"dhcpRanges\":[\"lhhjnh\",\"wy\",\"yynfsvkhgbv\",\"ta\"],\"gatewayAddress\":\"rfdl\"},\"portVif\":[{\"portName\":\"py\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":6610220677789785913},\"id\":\"ogkhnmgbr\",\"name\":\"uxddbhfh\",\"type\":\"fpazjzoywjxhpd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testGetSegmentWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkSegment response = manager.workloadNetworks() - .getSegmentWithResponse("aabeolhbhlvbmxuq", "bsxtkcudfbsfarfs", "owlkjxnqpv", + .getSegmentWithResponse("etndnbfqyggagf", "nlgmtrwahzjmu", "ftbyrplro", "kpigqfusu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("stmhqykizmd", response.displayName()); - Assertions.assertEquals("aoaf", response.connectedGateway()); - Assertions.assertEquals("v", response.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("bmzgwes", response.subnet().gatewayAddress()); - Assertions.assertEquals(5841187732800294671L, response.revision()); + Assertions.assertEquals("mkwkl", response.displayName()); + Assertions.assertEquals("oxaxm", response.connectedGateway()); + Assertions.assertEquals("lhhjnh", response.subnet().dhcpRanges().get(0)); + Assertions.assertEquals("rfdl", response.subnet().gatewayAddress()); + Assertions.assertEquals(6610220677789785913L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupWithResponseMockTests.java index 8d288d6e8b53..7dba8d84d8aa 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVMGroupWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetVMGroupWithResponseMockTests { @Test public void testGetVMGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"vjfn\",\"members\":[\"vlwyzg\"],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":7387831702993633483},\"id\":\"fojuidjpuuyj\",\"name\":\"c\",\"type\":\"jikzoeovvtzej\"}"; + = "{\"properties\":{\"displayName\":\"fxsfuztlvtmv\",\"members\":[\"w\",\"dqlvhukoveof\"],\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":5825441126962062555},\"id\":\"mvl\",\"name\":\"yzgib\",\"type\":\"kujrllfojui\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetVMGroupWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkVMGroup response = manager.workloadNetworks() - .getVMGroupWithResponse("sfuztlvtmv", "gbwidqlvh", "koveof", com.azure.core.util.Context.NONE) + .getVMGroupWithResponse("plrvkmjcwmjvlg", "ggcvk", "y", "izrzb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("vjfn", response.displayName()); - Assertions.assertEquals("vlwyzg", response.members().get(0)); - Assertions.assertEquals(7387831702993633483L, response.revision()); + Assertions.assertEquals("fxsfuztlvtmv", response.displayName()); + Assertions.assertEquals("w", response.members().get(0)); + Assertions.assertEquals(5825441126962062555L, response.revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineWithResponseMockTests.java index 395224f8ec74..e6f1aa02c54f 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetVirtualMachineWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetVirtualMachineWithResponseMockTests { @Test public void testGetVirtualMachineWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"tjewlpxuzzj\",\"vmType\":\"SERVICE\"},\"id\":\"fqyhqoto\",\"name\":\"hiqakydiwfbrk\",\"type\":\"pzdqtvhcspod\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"csrlzknmzl\",\"vmType\":\"SERVICE\"},\"id\":\"pdwvnphcn\",\"name\":\"q\",\"type\":\"pjhmqrhvthl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,10 @@ public void testGetVirtualMachineWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkVirtualMachine response = manager.workloadNetworks() - .getVirtualMachineWithResponse("jk", "mykyujxsglhs", "rryejylmbkzudnig", com.azure.core.util.Context.NONE) + .getVirtualMachineWithResponse("gzvlnsnn", "zfpafolpymwamxqz", "agpgdph", "vdulajv", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("tjewlpxuzzj", response.displayName()); + Assertions.assertEquals("csrlzknmzl", response.displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetWithResponseMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetWithResponseMockTests.java index f53a8ab48b98..15790d2d0479 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetWithResponseMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksGetWithResponseMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -20,7 +20,7 @@ public final class WorkloadNetworksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Updating\"},\"id\":\"uiyjib\",\"name\":\"zphdugneiknp\",\"type\":\"oxgjiuqhibt\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"ysidfvclgl\",\"name\":\"n\",\"type\":\"uijtkbu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetwork response = manager.workloadNetworks() - .getWithResponse("jmxmcuqud", "cvclxynpdk", com.azure.core.util.Context.NONE) + .getWithResponse("c", "jurbuhhlkyqltqsr", "gtuwkff", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpMockTests.java index c2d98f9b8b23..cfb414071c2d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDhcpMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListDhcpMockTests { @Test public void testListDhcp() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"xxgewpk\",\"segments\":[\"ylkmqp\",\"o\",\"hlfbcgwgc\",\"oxoebqi\"],\"provisioningState\":\"Building\",\"revision\":4976347516464596123},\"id\":\"fujqlafcba\",\"name\":\"hpzpo\",\"type\":\"o\"}]}"; + = "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"y\",\"segments\":[\"khminqcymc\",\"ngnbdxxew\",\"ninvudbchaqdt\",\"qecrqctmxx\"],\"provisioningState\":\"Failed\",\"revision\":8298485303331231105},\"id\":\"huytxzvtzn\",\"name\":\"pxbannovvoxc\",\"type\":\"ytprwnwvroev\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testListDhcp() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.workloadNetworks().listDhcp("z", "pqwjedm", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDhcp("ugwbsreurfqkf", "arenlvhhtklnvnaf", "vkyfedevjbosl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xxgewpk", response.iterator().next().properties().displayName()); - Assertions.assertEquals(4976347516464596123L, response.iterator().next().properties().revision()); + Assertions.assertEquals("y", response.iterator().next().properties().displayName()); + Assertions.assertEquals(8298485303331231105L, response.iterator().next().properties().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesMockTests.java index 579156dc1b72..569dd7f13726 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsServicesMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class WorkloadNetworksListDnsServicesMockTests { @Test public void testListDnsServices() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"juahokqto\",\"dnsServiceIp\":\"auxofshfph\",\"defaultDnsZone\":\"nulaiywzejywhsl\",\"fqdnZones\":[\"jpllndnpdwrpq\",\"fgf\",\"gsnnf\",\"yetefyp\"],\"logLevel\":\"WARNING\",\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":3540682391497785966},\"id\":\"rjvzuyt\",\"name\":\"rmlmuowo\",\"type\":\"bauiropi\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"ybafiq\",\"dnsServiceIp\":\"aarbgjekg\",\"defaultDnsZone\":\"lbyulidwcwvmze\",\"fqdnZones\":[\"nfhjirwgdnqzbr\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":1634752705437108290},\"id\":\"jcitdigsxcdglj\",\"name\":\"lkeuac\",\"type\":\"tomflrytswfpf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testListDnsServices() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.workloadNetworks().listDnsServices("w", "epdfgkmtdherng", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDnsServices("iwdcxsmlzzhzd", "xetlgydlhqv", "n", com.azure.core.util.Context.NONE); - Assertions.assertEquals("juahokqto", response.iterator().next().displayName()); - Assertions.assertEquals("auxofshfph", response.iterator().next().dnsServiceIp()); - Assertions.assertEquals("nulaiywzejywhsl", response.iterator().next().defaultDnsZone()); - Assertions.assertEquals("jpllndnpdwrpq", response.iterator().next().fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.WARNING, response.iterator().next().logLevel()); - Assertions.assertEquals(3540682391497785966L, response.iterator().next().revision()); + Assertions.assertEquals("ybafiq", response.iterator().next().displayName()); + Assertions.assertEquals("aarbgjekg", response.iterator().next().dnsServiceIp()); + Assertions.assertEquals("lbyulidwcwvmze", response.iterator().next().defaultDnsZone()); + Assertions.assertEquals("nfhjirwgdnqzbr", response.iterator().next().fqdnZones().get(0)); + Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, response.iterator().next().logLevel()); + Assertions.assertEquals(1634752705437108290L, response.iterator().next().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesMockTests.java index 3096cc96bca5..2d5f64efeb20 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListDnsZonesMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListDnsZonesMockTests { @Test public void testListDnsZones() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"coi\",\"domain\":[\"xncnwfe\",\"bnwgfmxj\",\"cgbjbgdlfgt\"],\"dnsServerIps\":[\"naquflq\",\"ctqhamzjrwdk\"],\"sourceIp\":\"eqyj\",\"dnsServices\":1498559377448823995,\"provisioningState\":\"Deleting\",\"revision\":345184952591350162},\"id\":\"zantkwceg\",\"name\":\"amlbnseqacjjvpil\",\"type\":\"uooqjagmdit\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"twvc\",\"domain\":[\"wka\",\"ve\"],\"dnsServerIps\":[\"dvlvhbwrnfxtgdd\"],\"sourceIp\":\"th\",\"dnsServices\":319815820315480755,\"provisioningState\":\"Updating\",\"revision\":4507134734871641065},\"id\":\"kcoeqswank\",\"name\":\"t\",\"type\":\"tmhdroznnhdr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testListDnsZones() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.workloadNetworks().listDnsZones("aqehg", "dohzjq", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDnsZones("gkkumuikjcj", "aztb", "snsqowxwcoml", com.azure.core.util.Context.NONE); - Assertions.assertEquals("coi", response.iterator().next().displayName()); - Assertions.assertEquals("xncnwfe", response.iterator().next().domain().get(0)); - Assertions.assertEquals("naquflq", response.iterator().next().dnsServerIps().get(0)); - Assertions.assertEquals("eqyj", response.iterator().next().sourceIp()); - Assertions.assertEquals(1498559377448823995L, response.iterator().next().dnsServices()); - Assertions.assertEquals(345184952591350162L, response.iterator().next().revision()); + Assertions.assertEquals("twvc", response.iterator().next().displayName()); + Assertions.assertEquals("wka", response.iterator().next().domain().get(0)); + Assertions.assertEquals("dvlvhbwrnfxtgdd", response.iterator().next().dnsServerIps().get(0)); + Assertions.assertEquals("th", response.iterator().next().sourceIp()); + Assertions.assertEquals(319815820315480755L, response.iterator().next().dnsServices()); + Assertions.assertEquals(4507134734871641065L, response.iterator().next().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysMockTests.java index 7c9579a9fcce..3d7858ee4aab 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListGatewaysMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListGatewaysMockTests { @Test public void testListGateways() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"vvi\",\"path\":\"cgx\"},\"id\":\"csserxht\",\"name\":\"soxhlwntsjgqr\",\"type\":\"xypruuuy\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"yukphaimmoiroq\",\"path\":\"shbraga\"},\"id\":\"yrmfsvbpav\",\"name\":\"opfppdbwnupgah\",\"type\":\"kuma\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListGateways() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.workloadNetworks().listGateways("guaucmfdjwnla", "punj", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listGateways("ibidmhmwffp", "fmuvapckccr", "vwe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vvi", response.iterator().next().displayName()); + Assertions.assertEquals("yukphaimmoiroq", response.iterator().next().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListMockTests.java index 0cb9edefac71..15f5cebd6882 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -21,7 +21,7 @@ public final class WorkloadNetworksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"otangcfhnykzc\",\"name\":\"gswvxwlmzqwm\",\"type\":\"tx\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"cjkgdirazftxej\",\"name\":\"ab\",\"type\":\"dujtmvcope\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.workloadNetworks().list("thnwpzte", "ovmribiattg", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().list("tdtpdelqacslmo", "oebn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringMockTests.java index d359834dff6b..25ca3976156a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPortMirroringMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -23,7 +23,7 @@ public final class WorkloadNetworksListPortMirroringMockTests { @Test public void testListPortMirroring() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"nhg\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"ynfsvkhgbvqtan\",\"destination\":\"fdlpukhpyr\",\"status\":\"SUCCESS\",\"provisioningState\":\"Failed\",\"revision\":1916878919574088822},\"id\":\"gkhnmgbrouxddbh\",\"name\":\"hpfpazjzoywjxhp\",\"type\":\"ulontacnpqwteht\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"oafcluqvox\",\"direction\":\"INGRESS\",\"source\":\"im\",\"destination\":\"vwg\",\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":3665873837701448622},\"id\":\"esyds\",\"name\":\"wefohecbvo\",\"type\":\"wndyqleallk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testListPortMirroring() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.workloadNetworks() - .listPortMirroring("fusuckzmkwklsno", "axmqeqal", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.workloadNetworks().listPortMirroring("gf", "tmhqykiz", "d", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nhg", response.iterator().next().displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, response.iterator().next().direction()); - Assertions.assertEquals("ynfsvkhgbvqtan", response.iterator().next().source()); - Assertions.assertEquals("fdlpukhpyr", response.iterator().next().destination()); - Assertions.assertEquals(1916878919574088822L, response.iterator().next().revision()); + Assertions.assertEquals("oafcluqvox", response.iterator().next().displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, response.iterator().next().direction()); + Assertions.assertEquals("im", response.iterator().next().source()); + Assertions.assertEquals("vwg", response.iterator().next().destination()); + Assertions.assertEquals(3665873837701448622L, response.iterator().next().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsMockTests.java index 056e5f48a0a2..4f99313c8a9c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListPublicIPsMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -18,11 +18,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class WorkloadNetworksListPublicIPsMockTests { +public final class WorkloadNetworksListPublicIpsMockTests { @Test - public void testListPublicIPs() throws Exception { + public void testListPublicIps() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"yo\",\"numberOfPublicIPs\":8001190211178708850,\"publicIPBlock\":\"uuxvnsasbcry\",\"provisioningState\":\"Succeeded\"},\"id\":\"zrxklobd\",\"name\":\"nazpmk\",\"type\":\"lmv\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"flrmymyi\",\"numberOfPublicIPs\":5842475212910239296,\"publicIPBlock\":\"riswslmiiio\",\"provisioningState\":\"Canceled\"},\"id\":\"gxuugqkctotio\",\"name\":\"l\",\"type\":\"teqdptj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListPublicIPs() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.workloadNetworks() - .listPublicIPs("pxbannovvoxc", "ytprwnwvroev", com.azure.core.util.Context.NONE); + .listPublicIps("pphkixkykxds", "j", "emmucfxh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yo", response.iterator().next().displayName()); - Assertions.assertEquals(8001190211178708850L, response.iterator().next().numberOfPublicIPs()); + Assertions.assertEquals("flrmymyi", response.iterator().next().displayName()); + Assertions.assertEquals(5842475212910239296L, response.iterator().next().numberOfPublicIPs()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsMockTests.java index 10dd6bcf3369..63f5287ffacb 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListSegmentsMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListSegmentsMockTests { @Test public void testListSegments() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"hbragapyyr\",\"connectedGateway\":\"svbpavbopfppdbwn\",\"subnet\":{\"dhcpRanges\":[\"hxkumasjcaacfdmm\",\"pugmehqe\"],\"gatewayAddress\":\"u\"},\"portVif\":[{\"portName\":\"ehewhoqh\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":4907564329393150795},\"id\":\"eaclgschorimk\",\"name\":\"srrm\",\"type\":\"ucsofldpuviyf\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"xfz\",\"connectedGateway\":\"qttv\",\"subnet\":{\"dhcpRanges\":[\"hjpenuygbq\",\"qqekewvnqvcdlgu\",\"ucmfdj\"],\"gatewayAddress\":\"laxpunj\"},\"portVif\":[{\"portName\":\"zvvitacgxmfcs\"},{\"portName\":\"rxhtvso\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":1003428665455506608},\"id\":\"qrsxyp\",\"name\":\"uuuybnchrsziz\",\"type\":\"yuel\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testListSegments() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.workloadNetworks().listSegments("xoy", "ukphaimmoiroq", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().listSegments("qogsfikayian", "haru", "t", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hbragapyyr", response.iterator().next().displayName()); - Assertions.assertEquals("svbpavbopfppdbwn", response.iterator().next().connectedGateway()); - Assertions.assertEquals("hxkumasjcaacfdmm", response.iterator().next().subnet().dhcpRanges().get(0)); - Assertions.assertEquals("u", response.iterator().next().subnet().gatewayAddress()); - Assertions.assertEquals(4907564329393150795L, response.iterator().next().revision()); + Assertions.assertEquals("xfz", response.iterator().next().displayName()); + Assertions.assertEquals("qttv", response.iterator().next().connectedGateway()); + Assertions.assertEquals("hjpenuygbq", response.iterator().next().subnet().dhcpRanges().get(0)); + Assertions.assertEquals("laxpunj", response.iterator().next().subnet().gatewayAddress()); + Assertions.assertEquals(1003428665455506608L, response.iterator().next().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsMockTests.java index a53bf8fe3e75..8b164c9c6b1d 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVMGroupsMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListVMGroupsMockTests { @Test public void testListVMGroups() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"fpubntnbatz\",\"members\":[\"sowsaael\"],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":6305699352283667401},\"id\":\"lrvkmjc\",\"name\":\"mjvlgfgg\",\"type\":\"vkyylizrzbjpsf\"}]}"; + = "{\"value\":[{\"properties\":{\"displayName\":\"toihiqakydi\",\"members\":[\"rkwpzdqtvhcspod\",\"qaxsipietgbebjf\",\"lbmoichd\"],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":688095426662916630},\"id\":\"nbatzvi\",\"name\":\"sowsaael\",\"type\":\"attcju\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListVMGroups() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.workloadNetworks().listVMGroups("qaxsipietgbebjf", "lbmoichd", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().listVMGroups("fihotj", "wlpxuzzjg", "refqy", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fpubntnbatz", response.iterator().next().displayName()); - Assertions.assertEquals("sowsaael", response.iterator().next().members().get(0)); - Assertions.assertEquals(6305699352283667401L, response.iterator().next().revision()); + Assertions.assertEquals("toihiqakydi", response.iterator().next().displayName()); + Assertions.assertEquals("rkwpzdqtvhcspod", response.iterator().next().members().get(0)); + Assertions.assertEquals(688095426662916630L, response.iterator().next().revision()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesMockTests.java index 32b3a29da206..a57b56c80a25 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesMockTests.java +++ b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksListVirtualMachinesMockTests.java @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +// Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.resourcemanager.avs.generated; @@ -22,7 +22,7 @@ public final class WorkloadNetworksListVirtualMachinesMockTests { @Test public void testListVirtualMachines() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"jgl\",\"vmType\":\"EDGE\"},\"id\":\"yzlwh\",\"name\":\"memhooclutnpq\",\"type\":\"emc\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"displayName\":\"lawjmjsmwrok\",\"vmType\":\"EDGE\"},\"id\":\"zzzwy\",\"name\":\"afitlhguynuchlg\",\"type\":\"ltxdwhmozu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListVirtualMachines() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.workloadNetworks() - .listVirtualMachines("uic", "hvtrrmhwrbfdpyf", com.azure.core.util.Context.NONE); + .listVirtualMachines("yjuzkdb", "zolxrzvhqjwtr", "tgvgzp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jgl", response.iterator().next().displayName()); + Assertions.assertEquals("lawjmjsmwrok", response.iterator().next().displayName()); } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/sdk/avs/azure-resourcemanager-avs/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker deleted file mode 100644 index 1f0955d450f0..000000000000 --- a/sdk/avs/azure-resourcemanager-avs/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ /dev/null @@ -1 +0,0 @@ -mock-maker-inline diff --git a/sdk/avs/azure-resourcemanager-avs/tsp-location.yaml b/sdk/avs/azure-resourcemanager-avs/tsp-location.yaml new file mode 100644 index 000000000000..b3a9f13134ee --- /dev/null +++ b/sdk/avs/azure-resourcemanager-avs/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/vmware/Microsoft.AVS.Management +commit: fcf7f36eb27a62875d559e3b5d376711c186ea93 +repo: Azure/azure-rest-api-specs +additionalDirectories: