diff --git a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md index bc11bf8089734..d6c3eb91c086b 100644 --- a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md +++ b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md @@ -118,14 +118,14 @@ - [CreateDnsService](#workloadnetworks_creatednsservice) - [CreateDnsZone](#workloadnetworks_creatednszone) - [CreatePortMirroring](#workloadnetworks_createportmirroring) -- [CreatePublicIP](#workloadnetworks_createpublicip) +- [CreatePublicIp](#workloadnetworks_createpublicip) - [CreateSegment](#workloadnetworks_createsegment) - [CreateVMGroup](#workloadnetworks_createvmgroup) - [DeleteDhcp](#workloadnetworks_deletedhcp) - [DeleteDnsService](#workloadnetworks_deletednsservice) - [DeleteDnsZone](#workloadnetworks_deletednszone) - [DeletePortMirroring](#workloadnetworks_deleteportmirroring) -- [DeletePublicIP](#workloadnetworks_deletepublicip) +- [DeletePublicIp](#workloadnetworks_deletepublicip) - [DeleteSegment](#workloadnetworks_deletesegment) - [DeleteVMGroup](#workloadnetworks_deletevmgroup) - [Get](#workloadnetworks_get) @@ -134,7 +134,7 @@ - [GetDnsZone](#workloadnetworks_getdnszone) - [GetGateway](#workloadnetworks_getgateway) - [GetPortMirroring](#workloadnetworks_getportmirroring) -- [GetPublicIP](#workloadnetworks_getpublicip) +- [GetPublicIp](#workloadnetworks_getpublicip) - [GetSegment](#workloadnetworks_getsegment) - [GetVMGroup](#workloadnetworks_getvmgroup) - [GetVirtualMachine](#workloadnetworks_getvirtualmachine) @@ -144,11 +144,10 @@ - [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) @@ -158,14 +157,48 @@ ```java import com.azure.resourcemanager.avs.models.AddonArcProperties; +import com.azure.resourcemanager.avs.models.AddonHcxProperties; +import com.azure.resourcemanager.avs.models.AddonSrmProperties; +import com.azure.resourcemanager.avs.models.AddonVrProperties; /** * Samples for Addons CreateOrUpdate. */ public final class AddonsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_CreateOrUpdate_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_HCX.json + */ + /** + * Sample code: Addons_CreateOrUpdate_HCX. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateHCX(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("hcx") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonHcxProperties().withOffer("VMware MaaS Cloud Provider (Enterprise)")) + .create(); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_SRM.json + */ + /** + * Sample code: Addons_CreateOrUpdate_SRM. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateSRM(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("srm") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonSrmProperties().withLicenseKey("fakeTokenPlaceholder")) + .create(); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_ArcReg.json */ /** * Sample code: Addons_CreateOrUpdate_ArcReg. @@ -180,6 +213,22 @@ public final class AddonsCreateOrUpdateSamples { "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter")) .create(); } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_VR.json + */ + /** + * Sample code: Addons_CreateOrUpdate_VR. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateVR(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("vr") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonVrProperties().withVrsCount(1)) + .create(); + } } ``` @@ -191,7 +240,7 @@ public final class AddonsCreateOrUpdateSamples { */ public final class AddonsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_Delete.json + * x-ms-original-file: 2023-09-01/Addons_Delete.json */ /** * Sample code: Addons_Delete. @@ -212,7 +261,43 @@ public final class AddonsDeleteSamples { */ public final class AddonsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_Get_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_Get_SRM.json + */ + /** + * Sample code: Addons_Get_SRM. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetSRM(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "srm", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_Get_VR.json + */ + /** + * Sample code: Addons_Get_VR. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetVR(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "vr", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_Get_HCX.json + */ + /** + * Sample code: Addons_Get_HCX. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetHCX(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "hcx", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_Get_ArcReg.json */ /** * Sample code: Addons_Get_ArcReg. @@ -233,7 +318,7 @@ public final class AddonsGetSamples { */ public final class AddonsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_List.json + * x-ms-original-file: 2023-09-01/Addons_List.json */ /** * Sample code: Addons_List. @@ -254,8 +339,7 @@ public final class AddonsListSamples { */ public final class AuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Authorizations_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Authorizations_CreateOrUpdate.json */ /** * Sample code: Authorizations_CreateOrUpdate. @@ -276,7 +360,7 @@ public final class AuthorizationsCreateOrUpdateSamples { */ public final class AuthorizationsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Authorizations_Delete.json + * x-ms-original-file: 2023-09-01/Authorizations_Delete.json */ /** * Sample code: Authorizations_Delete. @@ -297,7 +381,7 @@ public final class AuthorizationsDeleteSamples { */ public final class AuthorizationsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Authorizations_Get.json + * x-ms-original-file: 2023-09-01/Authorizations_Get.json */ /** * Sample code: Authorizations_Get. @@ -319,7 +403,7 @@ public final class AuthorizationsGetSamples { */ public final class AuthorizationsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Authorizations_List.json + * x-ms-original-file: 2023-09-01/Authorizations_List.json */ /** * Sample code: Authorizations_List. @@ -340,8 +424,7 @@ public final class AuthorizationsListSamples { */ public final class CloudLinksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/CloudLinks_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/CloudLinks_CreateOrUpdate.json */ /** * Sample code: CloudLinks_CreateOrUpdate. @@ -367,7 +450,7 @@ public final class CloudLinksCreateOrUpdateSamples { */ public final class CloudLinksDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/CloudLinks_Delete.json + * x-ms-original-file: 2023-09-01/CloudLinks_Delete.json */ /** * Sample code: CloudLinks_Delete. @@ -388,7 +471,7 @@ public final class CloudLinksDeleteSamples { */ public final class CloudLinksGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/CloudLinks_Get.json + * x-ms-original-file: 2023-09-01/CloudLinks_Get.json */ /** * Sample code: CloudLinks_Get. @@ -409,7 +492,7 @@ public final class CloudLinksGetSamples { */ public final class CloudLinksListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/CloudLinks_List.json + * x-ms-original-file: 2023-09-01/CloudLinks_List.json */ /** * Sample code: CloudLinks_List. @@ -432,8 +515,7 @@ import com.azure.resourcemanager.avs.models.Sku; */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Clusters_CreateOrUpdate.json */ /** * Sample code: Clusters_CreateOrUpdate. @@ -459,7 +541,7 @@ public final class ClustersCreateOrUpdateSamples { */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_Delete.json + * x-ms-original-file: 2023-09-01/Clusters_Delete.json */ /** * Sample code: Clusters_Delete. @@ -480,7 +562,7 @@ public final class ClustersDeleteSamples { */ public final class ClustersGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_Get.json + * x-ms-original-file: 2023-09-01/Clusters_Get.json */ /** * Sample code: Clusters_Get. @@ -501,7 +583,7 @@ public final class ClustersGetSamples { */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_List.json + * x-ms-original-file: 2023-09-01/Clusters_List.json */ /** * Sample code: Clusters_List. @@ -522,7 +604,7 @@ public final class ClustersListSamples { */ public final class ClustersListZonesSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_ListZones.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones.json */ /** * Sample code: Clusters_ListZones. @@ -532,6 +614,18 @@ public final class ClustersListZonesSamples { public static void clustersListZones(com.azure.resourcemanager.avs.AvsManager manager) { manager.clusters().listZonesWithResponse("group1", "cloud1", "cluster1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/Clusters_ListZones_Stretched.json + */ + /** + * Sample code: Clusters_ListZones_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void clustersListZonesStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.clusters().listZonesWithResponse("group1", "cloud1", "cluster1", com.azure.core.util.Context.NONE); + } } ``` @@ -545,7 +639,7 @@ import com.azure.resourcemanager.avs.models.Cluster; */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_Update.json + * x-ms-original-file: 2023-09-01/Clusters_Update.json */ /** * Sample code: Clusters_Update. @@ -571,8 +665,7 @@ import com.azure.resourcemanager.avs.models.NetAppVolume; */ public final class DatastoresCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Datastores_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/Datastores_CreateOrUpdate.json */ /** * Sample code: Datastores_CreateOrUpdate. @@ -598,7 +691,7 @@ public final class DatastoresCreateOrUpdateSamples { */ public final class DatastoresDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Datastores_Delete.json + * x-ms-original-file: 2023-09-01/Datastores_Delete.json */ /** * Sample code: Datastores_Delete. @@ -619,7 +712,7 @@ public final class DatastoresDeleteSamples { */ public final class DatastoresGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Datastores_Get.json + * x-ms-original-file: 2023-09-01/Datastores_Get.json */ /** * Sample code: Datastores_Get. @@ -641,7 +734,7 @@ public final class DatastoresGetSamples { */ public final class DatastoresListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Datastores_List.json + * x-ms-original-file: 2023-09-01/Datastores_List.json */ /** * Sample code: Datastores_List. @@ -662,8 +755,7 @@ public final class DatastoresListSamples { */ public final class GlobalReachConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/GlobalReachConnections_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_CreateOrUpdate.json */ /** * Sample code: GlobalReachConnections_CreateOrUpdate. @@ -690,8 +782,7 @@ public final class GlobalReachConnectionsCreateOrUpdateSamples { */ public final class GlobalReachConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/GlobalReachConnections_Delete.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Delete.json */ /** * Sample code: GlobalReachConnections_Delete. @@ -712,8 +803,7 @@ public final class GlobalReachConnectionsDeleteSamples { */ public final class GlobalReachConnectionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/GlobalReachConnections_Get.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_Get.json */ /** * Sample code: GlobalReachConnections_Get. @@ -735,8 +825,7 @@ public final class GlobalReachConnectionsGetSamples { */ public final class GlobalReachConnectionsListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/GlobalReachConnections_List.json + * x-ms-original-file: 2023-09-01/GlobalReachConnections_List.json */ /** * Sample code: GlobalReachConnections_List. @@ -757,8 +846,7 @@ public final class GlobalReachConnectionsListSamples { */ public final class HcxEnterpriseSitesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/HcxEnterpriseSites_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_CreateOrUpdate.json */ /** * Sample code: HcxEnterpriseSites_CreateOrUpdate. @@ -779,8 +867,7 @@ public final class HcxEnterpriseSitesCreateOrUpdateSamples { */ public final class HcxEnterpriseSitesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/HcxEnterpriseSites_Delete.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Delete.json */ /** * Sample code: HcxEnterpriseSites_Delete. @@ -801,7 +888,7 @@ public final class HcxEnterpriseSitesDeleteSamples { */ public final class HcxEnterpriseSitesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/HcxEnterpriseSites_Get.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Get.json */ /** * Sample code: HcxEnterpriseSites_Get. @@ -822,8 +909,7 @@ public final class HcxEnterpriseSitesGetSamples { */ public final class HcxEnterpriseSitesListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/HcxEnterpriseSites_List.json + * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_List.json */ /** * Sample code: HcxEnterpriseSites_List. @@ -839,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/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/IscsiPaths_CreateOrUpdate.json */ /** * Sample code: IscsiPaths_CreateOrUpdate. @@ -856,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(); } } ``` @@ -870,7 +955,7 @@ public final class IscsiPathsCreateOrUpdateSamples { */ public final class IscsiPathsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_Delete.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Delete.json */ /** * Sample code: IscsiPaths_Delete. @@ -878,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); } } ``` @@ -891,7 +976,7 @@ public final class IscsiPathsDeleteSamples { */ public final class IscsiPathsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_Get.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Get.json */ /** * Sample code: IscsiPaths_Get. @@ -899,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); } } ``` @@ -912,7 +997,7 @@ public final class IscsiPathsGetSamples { */ public final class IscsiPathsListByPrivateCloudSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_List.json + * x-ms-original-file: 2023-09-01/IscsiPaths_List.json */ /** * Sample code: IscsiPaths_ListByPrivateCloud. @@ -933,8 +1018,7 @@ public final class IscsiPathsListByPrivateCloudSamples { */ public final class LocationsCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Locations_CheckQuotaAvailability.json + * x-ms-original-file: 2023-09-01/Locations_CheckQuotaAvailability.json */ /** * Sample code: Locations_CheckQuotaAvailability. @@ -950,14 +1034,14 @@ public final class LocationsCheckQuotaAvailabilitySamples { ### Locations_CheckTrialAvailability ```java +import com.azure.resourcemanager.avs.models.Sku; /** * Samples for Locations CheckTrialAvailability. */ public final class LocationsCheckTrialAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Locations_CheckTrialAvailability.json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailability.json */ /** * Sample code: Locations_CheckTrialAvailability. @@ -967,6 +1051,20 @@ public final class LocationsCheckTrialAvailabilitySamples { public static void locationsCheckTrialAvailability(com.azure.resourcemanager.avs.AvsManager manager) { manager.locations().checkTrialAvailabilityWithResponse("eastus", null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailabilityWithSku.json + */ + /** + * Sample code: Locations_CheckTrialAvailabilityWithSku. + * + * @param manager Entry point to AvsManager. + */ + public static void locationsCheckTrialAvailabilityWithSku(com.azure.resourcemanager.avs.AvsManager manager) { + manager.locations() + .checkTrialAvailabilityWithResponse("eastus", new Sku().withName("avs52t"), + com.azure.core.util.Context.NONE); + } } ``` @@ -978,7 +1076,7 @@ public final class LocationsCheckTrialAvailabilitySamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Operations_List.json + * x-ms-original-file: 2023-09-01/Operations_List.json */ /** * Sample code: Operations_List. @@ -1005,8 +1103,7 @@ import java.util.Arrays; */ public final class PlacementPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PlacementPolicies_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_CreateOrUpdate.json */ /** * Sample code: PlacementPolicies_CreateOrUpdate. @@ -1038,8 +1135,7 @@ public final class PlacementPoliciesCreateOrUpdateSamples { */ public final class PlacementPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PlacementPolicies_Delete.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Delete.json */ /** * Sample code: PlacementPolicies_Delete. @@ -1060,7 +1156,7 @@ public final class PlacementPoliciesDeleteSamples { */ public final class PlacementPoliciesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PlacementPolicies_Get.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Get.json */ /** * Sample code: PlacementPolicies_Get. @@ -1082,7 +1178,7 @@ public final class PlacementPoliciesGetSamples { */ public final class PlacementPoliciesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PlacementPolicies_List.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_List.json */ /** * Sample code: PlacementPolicies_List. @@ -1109,8 +1205,7 @@ import java.util.Arrays; */ public final class PlacementPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PlacementPolicies_Update.json + * x-ms-original-file: 2023-09-01/PlacementPolicies_Update.json */ /** * Sample code: PlacementPolicies_Update. @@ -1138,6 +1233,8 @@ public final class PlacementPoliciesUpdateSamples { ### PrivateClouds_CreateOrUpdate ```java +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.Sku; @@ -1150,8 +1247,7 @@ import java.util.Map; */ public final class PrivateCloudsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate.json */ /** * Sample code: PrivateClouds_CreateOrUpdate. @@ -1171,6 +1267,29 @@ public final class PrivateCloudsCreateOrUpdateSamples { .create(); } + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate_Stretched.json + */ + /** + * Sample code: PrivateClouds_CreateOrUpdate_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsCreateOrUpdateStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds() + .define("cloud1") + .withRegion("eastus2") + .withExistingResourceGroup("group1") + .withSku(new Sku().withName("AV36")) + .withTags(mapOf()) + .withManagementCluster(new ManagementCluster().withClusterSize(4)) + .withAvailability(new AvailabilityProperties().withStrategy(AvailabilityStrategy.DUAL_ZONE) + .withZone(1) + .withSecondaryZone(2)) + .withNetworkBlock("192.168.48.0/22") + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -1193,7 +1312,7 @@ public final class PrivateCloudsCreateOrUpdateSamples { */ public final class PrivateCloudsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_Delete.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Delete.json */ /** * Sample code: PrivateClouds_Delete. @@ -1214,7 +1333,7 @@ public final class PrivateCloudsDeleteSamples { */ public final class PrivateCloudsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_Get.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get.json */ /** * Sample code: PrivateClouds_Get. @@ -1224,6 +1343,18 @@ public final class PrivateCloudsGetByResourceGroupSamples { public static void privateCloudsGet(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_Get_Stretched.json + */ + /** + * Sample code: PrivateClouds_Get_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsGetStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + } } ``` @@ -1235,8 +1366,7 @@ public final class PrivateCloudsGetByResourceGroupSamples { */ public final class PrivateCloudsListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_ListInSubscription.json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription.json */ /** * Sample code: PrivateClouds_ListInSubscription. @@ -1246,6 +1376,18 @@ public final class PrivateCloudsListSamples { public static void privateCloudsListInSubscription(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription_Stretched.json + */ + /** + * Sample code: PrivateClouds_ListInSubscription_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsListInSubscriptionStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().list(com.azure.core.util.Context.NONE); + } } ``` @@ -1257,8 +1399,7 @@ public final class PrivateCloudsListSamples { */ public final class PrivateCloudsListAdminCredentialsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_ListAdminCredentials.json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListAdminCredentials.json */ /** * Sample code: PrivateClouds_ListAdminCredentials. @@ -1279,7 +1420,7 @@ public final class PrivateCloudsListAdminCredentialsSamples { */ public final class PrivateCloudsListByResourceGroupSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_List.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List.json */ /** * Sample code: PrivateClouds_List. @@ -1289,6 +1430,18 @@ public final class PrivateCloudsListByResourceGroupSamples { public static void privateCloudsList(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().listByResourceGroup("group1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_List_Stretched.json + */ + /** + * Sample code: PrivateClouds_List_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsListStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().listByResourceGroup("group1", com.azure.core.util.Context.NONE); + } } ``` @@ -1300,8 +1453,7 @@ public final class PrivateCloudsListByResourceGroupSamples { */ public final class PrivateCloudsRotateNsxtPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_RotateNsxtPassword.json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateNsxtPassword.json */ /** * Sample code: PrivateClouds_RotateNsxtPassword. @@ -1322,8 +1474,7 @@ public final class PrivateCloudsRotateNsxtPasswordSamples { */ public final class PrivateCloudsRotateVcenterPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_RotateVcenterPassword.json + * x-ms-original-file: 2023-09-01/PrivateClouds_RotateVcenterPassword.json */ /** * Sample code: PrivateClouds_RotateVcenterPassword. @@ -1352,7 +1503,7 @@ import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType; */ public final class PrivateCloudsUpdateSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_Update.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update.json */ /** * Sample code: PrivateClouds_Update. @@ -1372,6 +1523,21 @@ public final class PrivateCloudsUpdateSamples { .withKeyVaultUrl("fakeTokenPlaceholder"))) .apply(); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_Update_Stretched.json + */ + /** + * Sample code: PrivateClouds_Update_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsUpdateStretched(com.azure.resourcemanager.avs.AvsManager manager) { + PrivateCloud resource = manager.privateClouds() + .getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withManagementCluster(new ManagementCluster().withClusterSize(4)).apply(); + } } ``` @@ -1383,7 +1549,7 @@ public final class PrivateCloudsUpdateSamples { */ public final class ScriptCmdletsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptCmdlets_Get.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_Get.json */ /** * Sample code: ScriptCmdlets_Get. @@ -1406,7 +1572,7 @@ public final class ScriptCmdletsGetSamples { */ public final class ScriptCmdletsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptCmdlets_List.json + * x-ms-original-file: 2023-09-01/ScriptCmdlets_List.json */ /** * Sample code: ScriptCmdlets_List. @@ -1431,8 +1597,7 @@ import java.util.Arrays; */ public final class ScriptExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptExecutions_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_CreateOrUpdate.json */ /** * Sample code: ScriptExecutions_CreateOrUpdate. @@ -1466,8 +1631,7 @@ public final class ScriptExecutionsCreateOrUpdateSamples { */ public final class ScriptExecutionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptExecutions_Delete.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Delete.json */ /** * Sample code: ScriptExecutions_Delete. @@ -1488,7 +1652,7 @@ public final class ScriptExecutionsDeleteSamples { */ public final class ScriptExecutionsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptExecutions_Get.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_Get.json */ /** * Sample code: ScriptExecutions_Get. @@ -1513,8 +1677,7 @@ import java.util.Arrays; */ public final class ScriptExecutionsGetExecutionLogsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptExecutions_GetExecutionLogs.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_GetExecutionLogs.json */ /** * Sample code: ScriptExecutions_GetExecutionLogs. @@ -1539,7 +1702,7 @@ public final class ScriptExecutionsGetExecutionLogsSamples { */ public final class ScriptExecutionsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptExecutions_List.json + * x-ms-original-file: 2023-09-01/ScriptExecutions_List.json */ /** * Sample code: ScriptExecutions_List. @@ -1560,7 +1723,7 @@ public final class ScriptExecutionsListSamples { */ public final class ScriptPackagesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptPackages_Get.json + * x-ms-original-file: 2023-09-01/ScriptPackages_Get.json */ /** * Sample code: ScriptPackages_Get. @@ -1582,7 +1745,7 @@ public final class ScriptPackagesGetSamples { */ public final class ScriptPackagesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/ScriptPackages_List.json + * x-ms-original-file: 2023-09-01/ScriptPackages_List.json */ /** * Sample code: ScriptPackages_List. @@ -1603,7 +1766,7 @@ public final class ScriptPackagesListSamples { */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/VirtualMachines_Get.json + * x-ms-original-file: 2023-09-01/VirtualMachines_Get.json */ /** * Sample code: VirtualMachines_Get. @@ -1625,7 +1788,7 @@ public final class VirtualMachinesGetSamples { */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/VirtualMachines_List.json + * x-ms-original-file: 2023-09-01/VirtualMachines_List.json */ /** * Sample code: VirtualMachines_List. @@ -1649,8 +1812,7 @@ import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovementState; */ public final class VirtualMachinesRestrictMovementSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/VirtualMachines_RestrictMovement.json + * x-ms-original-file: 2023-09-01/VirtualMachines_RestrictMovement.json */ /** * Sample code: VirtualMachines_RestrictMovement. @@ -1676,8 +1838,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer; */ public final class WorkloadNetworksCreateDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDhcp.json */ /** * Sample code: WorkloadNetworks_CreateDhcp. @@ -1687,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") @@ -1708,8 +1869,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksCreateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsService.json */ /** * Sample code: WorkloadNetworks_CreateDnsService. @@ -1719,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") @@ -1741,8 +1901,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksCreateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsZone.json */ /** * Sample code: WorkloadNetworks_CreateDnsZone. @@ -1752,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")) @@ -1773,8 +1932,7 @@ import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum; */ public final class WorkloadNetworksCreatePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePortMirroring.json */ /** * Sample code: WorkloadNetworks_CreatePortMirroring. @@ -1784,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") @@ -1795,16 +1953,15 @@ public final class WorkloadNetworksCreatePortMirroringSamples { } ``` -### WorkloadNetworks_CreatePublicIP +### WorkloadNetworks_CreatePublicIp ```java /** - * Samples for WorkloadNetworks CreatePublicIP. + * Samples for WorkloadNetworks CreatePublicIp. */ -public final class WorkloadNetworksCreatePublicIPSamples { +public final class WorkloadNetworksCreatePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreatePublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePublicIP.json */ /** * Sample code: WorkloadNetworks_CreatePublicIP. @@ -1813,8 +1970,8 @@ public final class WorkloadNetworksCreatePublicIPSamples { */ public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .definePublicIP("publicIP1") - .withExistingPrivateCloud("group1", "cloud1") + .definePublicIp("publicIP1") + .withExistingWorkloadNetwork("group1", "cloud1", null) .withDisplayName("publicIP1") .withNumberOfPublicIPs(32L) .create(); @@ -1833,8 +1990,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksCreateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateSegments.json */ /** * Sample code: WorkloadNetworks_CreateSegments. @@ -1844,7 +2000,7 @@ public final class WorkloadNetworksCreateSegmentSamples { public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineSegment("segment1") - .withExistingPrivateCloud("group1", "cloud1") + .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")) @@ -1863,8 +2019,7 @@ public final class WorkloadNetworksCreateSegmentSamples { */ public final class WorkloadNetworksCreateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateVMGroup.json */ /** * Sample code: WorkloadNetworks_CreateVMGroup. @@ -1872,7 +2027,10 @@ public final class WorkloadNetworksCreateVMGroupSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().defineVMGroup("vmGroup1").withExistingPrivateCloud("group1", "cloud1").create(); + manager.workloadNetworks() + .defineVMGroup("vmGroup1") + .withExistingWorkloadNetwork("group1", "cloud1", null) + .create(); } } ``` @@ -1885,8 +2043,7 @@ public final class WorkloadNetworksCreateVMGroupSamples { */ public final class WorkloadNetworksDeleteDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDhcp.json */ /** * Sample code: WorkloadNetworks_DeleteDhcp. @@ -1894,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); } } ``` @@ -1907,8 +2064,7 @@ public final class WorkloadNetworksDeleteDhcpSamples { */ public final class WorkloadNetworksDeleteDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsService.json */ /** * Sample code: WorkloadNetworks_DeleteDnsService. @@ -1930,8 +2086,7 @@ public final class WorkloadNetworksDeleteDnsServiceSamples { */ public final class WorkloadNetworksDeleteDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsZone.json */ /** * Sample code: WorkloadNetworks_DeleteDnsZone. @@ -1952,8 +2107,7 @@ public final class WorkloadNetworksDeleteDnsZoneSamples { */ public final class WorkloadNetworksDeletePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeletePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePortMirroring.json */ /** * Sample code: WorkloadNetworks_DeletePortMirroring. @@ -1967,16 +2121,15 @@ public final class WorkloadNetworksDeletePortMirroringSamples { } ``` -### WorkloadNetworks_DeletePublicIP +### WorkloadNetworks_DeletePublicIp ```java /** - * Samples for WorkloadNetworks DeletePublicIP. + * Samples for WorkloadNetworks DeletePublicIp. */ -public final class WorkloadNetworksDeletePublicIPSamples { +public final class WorkloadNetworksDeletePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeletePublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePublicIP.json */ /** * Sample code: WorkloadNetworks_DeletePublicIP. @@ -1984,7 +2137,7 @@ public final class WorkloadNetworksDeletePublicIPSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeletePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deletePublicIP("group1", "publicIP1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deletePublicIp("group1", "publicIP1", "cloud1", com.azure.core.util.Context.NONE); } } ``` @@ -1997,8 +2150,7 @@ public final class WorkloadNetworksDeletePublicIPSamples { */ public final class WorkloadNetworksDeleteSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteSegment.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteSegment.json */ /** * Sample code: WorkloadNetworks_DeleteSegment. @@ -2006,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); } } ``` @@ -2019,8 +2172,7 @@ public final class WorkloadNetworksDeleteSegmentSamples { */ public final class WorkloadNetworksDeleteVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteVMGroup.json */ /** * Sample code: WorkloadNetworks_DeleteVMGroup. @@ -2041,7 +2193,7 @@ public final class WorkloadNetworksDeleteVMGroupSamples { */ public final class WorkloadNetworksGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_Get.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_Get.json */ /** * Sample code: WorkloadNetworks_Get. @@ -2049,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); } } ``` @@ -2062,8 +2214,7 @@ public final class WorkloadNetworksGetSamples { */ public final class WorkloadNetworksGetDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDhcp.json */ /** * Sample code: WorkloadNetworks_GetDhcp. @@ -2084,8 +2235,7 @@ public final class WorkloadNetworksGetDhcpSamples { */ public final class WorkloadNetworksGetDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsService.json */ /** * Sample code: WorkloadNetworks_GetDnsService. @@ -2094,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); } } ``` @@ -2107,8 +2257,7 @@ public final class WorkloadNetworksGetDnsServiceSamples { */ public final class WorkloadNetworksGetDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsZone.json */ /** * Sample code: WorkloadNetworks_GetDnsZone. @@ -2117,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); } } ``` @@ -2130,8 +2279,7 @@ public final class WorkloadNetworksGetDnsZoneSamples { */ public final class WorkloadNetworksGetGatewaySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetGateway.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetGateway.json */ /** * Sample code: WorkloadNetworks_GetGateway. @@ -2140,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); } } ``` @@ -2153,8 +2301,7 @@ public final class WorkloadNetworksGetGatewaySamples { */ public final class WorkloadNetworksGetPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetPortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPortMirroring.json */ /** * Sample code: WorkloadNetworks_GetPortMirroring. @@ -2163,21 +2310,20 @@ 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); } } ``` -### WorkloadNetworks_GetPublicIP +### WorkloadNetworks_GetPublicIp ```java /** - * Samples for WorkloadNetworks GetPublicIP. + * Samples for WorkloadNetworks GetPublicIp. */ -public final class WorkloadNetworksGetPublicIPSamples { +public final class WorkloadNetworksGetPublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetPublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPublicIP.json */ /** * Sample code: WorkloadNetworks_GetPublicIP. @@ -2186,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); } } ``` @@ -2199,8 +2345,7 @@ public final class WorkloadNetworksGetPublicIPSamples { */ public final class WorkloadNetworksGetSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetSegment.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetSegment.json */ /** * Sample code: WorkloadNetworks_GetSegment. @@ -2209,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); } } ``` @@ -2222,8 +2367,7 @@ public final class WorkloadNetworksGetSegmentSamples { */ public final class WorkloadNetworksGetVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVMGroup.json */ /** * Sample code: WorkloadNetworks_GetVMGroup. @@ -2232,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); } } ``` @@ -2245,8 +2389,7 @@ public final class WorkloadNetworksGetVMGroupSamples { */ public final class WorkloadNetworksGetVirtualMachineSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetVirtualMachine.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVirtualMachine.json */ /** * Sample code: WorkloadNetworks_GetVirtualMachine. @@ -2255,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); } } ``` @@ -2268,7 +2411,7 @@ public final class WorkloadNetworksGetVirtualMachineSamples { */ public final class WorkloadNetworksListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_List.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_List.json */ /** * Sample code: WorkloadNetworks_List. @@ -2289,8 +2432,7 @@ public final class WorkloadNetworksListSamples { */ public final class WorkloadNetworksListDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListDhcp.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDhcp.json */ /** * Sample code: WorkloadNetworks_ListDhcp. @@ -2298,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); } } ``` @@ -2311,8 +2453,7 @@ public final class WorkloadNetworksListDhcpSamples { */ public final class WorkloadNetworksListDnsServicesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListDnsServices.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsServices.json */ /** * Sample code: WorkloadNetworks_ListDnsServices. @@ -2320,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); } } ``` @@ -2333,8 +2474,7 @@ public final class WorkloadNetworksListDnsServicesSamples { */ public final class WorkloadNetworksListDnsZonesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListDnsZones.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsZones.json */ /** * Sample code: WorkloadNetworks_ListDnsZones. @@ -2342,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); } } ``` @@ -2355,8 +2495,7 @@ public final class WorkloadNetworksListDnsZonesSamples { */ public final class WorkloadNetworksListGatewaysSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListGateways.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListGateways.json */ /** * Sample code: WorkloadNetworks_ListGateways. @@ -2364,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); } } ``` @@ -2377,8 +2516,7 @@ public final class WorkloadNetworksListGatewaysSamples { */ public final class WorkloadNetworksListPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListPortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPortMirroring.json */ /** * Sample code: WorkloadNetworks_ListPortMirroring. @@ -2386,21 +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/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListPublicIPs.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPublicIPs.json */ /** * Sample code: WorkloadNetworks_ListPublicIPs. @@ -2408,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); } } ``` @@ -2421,8 +2558,7 @@ public final class WorkloadNetworksListPublicIPsSamples { */ public final class WorkloadNetworksListSegmentsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListSegments.json */ /** * Sample code: WorkloadNetworks_ListSegments. @@ -2430,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); } } ``` @@ -2443,8 +2579,7 @@ public final class WorkloadNetworksListSegmentsSamples { */ public final class WorkloadNetworksListVMGroupsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListVMGroups.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVMGroups.json */ /** * Sample code: WorkloadNetworks_ListVMGroups. @@ -2452,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); } } ``` @@ -2465,8 +2600,7 @@ public final class WorkloadNetworksListVMGroupsSamples { */ public final class WorkloadNetworksListVirtualMachinesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListVirtualMachines.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVirtualMachines.json */ /** * Sample code: WorkloadNetworks_ListVirtualMachines. @@ -2474,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/Microsoft.AVS.Management/examples/2023-09-01/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); } } ``` @@ -2522,8 +2625,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsService.json */ /** * Sample code: WorkloadNetworks_UpdateDnsService. @@ -2532,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") @@ -2557,8 +2659,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsZone.json */ /** * Sample code: WorkloadNetworks_UpdateDnsZone. @@ -2567,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") @@ -2591,8 +2692,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroring; */ public final class WorkloadNetworksUpdatePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdatePortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdatePortMirroring.json */ /** * Sample code: WorkloadNetworks_UpdatePortMirroring. @@ -2601,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) @@ -2623,8 +2723,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment; */ public final class WorkloadNetworksUpdateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateSegments.json */ /** * Sample code: WorkloadNetworks_UpdateSegments. @@ -2633,7 +2732,7 @@ public final class WorkloadNetworksUpdateSegmentSamples { */ 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().apply(); } @@ -2651,8 +2750,7 @@ import java.util.Arrays; */ public final class WorkloadNetworksUpdateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateVMGroup.json */ /** * Sample code: WorkloadNetworks_UpdateVMGroup. @@ -2661,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/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 802d660e62f90..085c3f9c42b63 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 @@ -23,10 +23,10 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.avs.fluent.AVSClient; +import com.azure.resourcemanager.avs.fluent.AvsClient; import com.azure.resourcemanager.avs.implementation.AddonsImpl; import com.azure.resourcemanager.avs.implementation.AuthorizationsImpl; -import com.azure.resourcemanager.avs.implementation.AVSClientBuilder; +import com.azure.resourcemanager.avs.implementation.AvsClientBuilder; import com.azure.resourcemanager.avs.implementation.CloudLinksImpl; import com.azure.resourcemanager.avs.implementation.ClustersImpl; import com.azure.resourcemanager.avs.implementation.DatastoresImpl; @@ -87,8 +87,6 @@ public final class AvsManager { private GlobalReachConnections globalReachConnections; - private WorkloadNetworks workloadNetworks; - private CloudLinks cloudLinks; private Addons addons; @@ -105,12 +103,14 @@ public final class AvsManager { private IscsiPaths iscsiPaths; - private final AVSClient clientObject; + private WorkloadNetworks workloadNetworks; + + private final AvsClient clientObject; private AvsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new AVSClientBuilder().pipeline(httpPipeline) + this.clientObject = new AvsClientBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -412,20 +412,6 @@ public GlobalReachConnections globalReachConnections() { return globalReachConnections; } - /** - * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkSegment, WorkloadNetworkDhcp, - * WorkloadNetworkPortMirroring, WorkloadNetworkVMGroup, WorkloadNetworkDnsService, WorkloadNetworkDnsZone, - * WorkloadNetworkPublicIp. - * - * @return Resource collection API of WorkloadNetworks. - */ - public WorkloadNetworks workloadNetworks() { - if (this.workloadNetworks == null) { - this.workloadNetworks = new WorkloadNetworksImpl(clientObject.getWorkloadNetworks(), this); - } - return workloadNetworks; - } - /** * Gets the resource collection API of CloudLinks. It manages CloudLink. * @@ -511,7 +497,7 @@ public ScriptExecutions scriptExecutions() { } /** - * Gets the resource collection API of IscsiPaths. + * Gets the resource collection API of IscsiPaths. It manages IscsiPath. * * @return Resource collection API of IscsiPaths. */ @@ -523,12 +509,26 @@ public IscsiPaths iscsiPaths() { } /** - * Gets wrapped service client AVSClient providing direct access to the underlying auto-generated API + * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkSegment, WorkloadNetworkDhcp, + * WorkloadNetworkPortMirroring, WorkloadNetworkVMGroup, WorkloadNetworkDnsService, WorkloadNetworkDnsZone, + * WorkloadNetworkPublicIp. + * + * @return Resource collection API of WorkloadNetworks. + */ + public WorkloadNetworks workloadNetworks() { + if (this.workloadNetworks == null) { + this.workloadNetworks = new WorkloadNetworksImpl(clientObject.getWorkloadNetworks(), this); + } + return workloadNetworks; + } + + /** + * Gets wrapped service client AvsClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. * - * @return Wrapped service client AVSClient. + * @return Wrapped service client AvsClient. */ - public AVSClient serviceClient() { + public AvsClient serviceClient() { return this.clientObject; } } 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 6254043eef2c5..73c423f679dd0 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 @@ -8,9 +8,9 @@ import java.time.Duration; /** - * The interface for AVSClient class. + * The interface for AvsClient class. */ -public interface AVSClient { +public interface AvsClient { /** * Gets Server parameter. * @@ -102,13 +102,6 @@ public interface AVSClient { */ GlobalReachConnectionsClient getGlobalReachConnections(); - /** - * Gets the WorkloadNetworksClient object to access its operations. - * - * @return the WorkloadNetworksClient object. - */ - WorkloadNetworksClient getWorkloadNetworks(); - /** * Gets the CloudLinksClient object to access its operations. * @@ -164,4 +157,11 @@ public interface AVSClient { * @return the IscsiPathsClient object. */ IscsiPathsClient getIscsiPaths(); + + /** + * Gets the WorkloadNetworksClient object to access its operations. + * + * @return the WorkloadNetworksClient object. + */ + WorkloadNetworksClient getWorkloadNetworks(); } 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 d0e7c433ad7bb..b17dab94dbc97 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 @@ -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/WorkloadNetworksClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java index 63068b0084e26..245f555ccf552 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 @@ -27,77 +27,83 @@ */ public interface WorkloadNetworksClient { /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 a WorkloadNetwork along with {@link Response}. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String privateCloudName, Context context); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String privateCloudName); /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 a WorkloadNetwork. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkInner get(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String privateCloudName, Context context); /** - * List WorkloadNetwork resources by PrivateCloud. + * 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. + * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String privateCloudName); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * List WorkloadNetwork resources by PrivateCloud. + * Get a 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. + * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String privateCloudName, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + WorkloadNetworkInner get(String resourceGroupName, String privateCloudName, String workloadNetworkName); /** * 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 WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSegments(String resourceGroupName, String privateCloudName); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -106,13 +112,14 @@ public interface WorkloadNetworksClient { */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get 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. @@ -122,13 +129,14 @@ PagedIterable listSegments(String resourceGroupName */ @ServiceMethod(returns = ReturnType.SINGLE) Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + String workloadNetworkName, String segmentId, Context context); /** * Get 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. @@ -136,13 +144,15 @@ Response getSegmentWithResponse(String resourceGrou * @return a WorkloadNetworkSegment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId); + WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId); /** * Create 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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -152,7 +162,7 @@ Response getSegmentWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment); /** @@ -160,6 +170,7 @@ SyncPoller, WorkloadNetworkSegmentInner> * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -170,7 +181,7 @@ SyncPoller, WorkloadNetworkSegmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); /** @@ -178,6 +189,7 @@ SyncPoller, WorkloadNetworkSegmentInner> * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -186,14 +198,15 @@ SyncPoller, WorkloadNetworkSegmentInner> * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment); + WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment); /** * Create 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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -203,14 +216,16 @@ WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String priva * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner workloadNetworkSegment, Context context); + WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context); /** * Update 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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -220,13 +235,15 @@ WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String priva */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties); /** * Update 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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -237,14 +254,15 @@ SyncPoller, WorkloadNetworkSegmentInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties, - Context context); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context); /** * Update 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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -253,14 +271,15 @@ SyncPoller, WorkloadNetworkSegmentInner> * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner properties); + WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties); /** * Update 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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -270,14 +289,15 @@ WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String priva * @return nSX Segment. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, String segmentId, - WorkloadNetworkSegmentInner properties, Context context); + WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context); /** * 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. @@ -286,13 +306,14 @@ WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String priva */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId); + String workloadNetworkName, String segmentId); /** * 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. @@ -302,26 +323,28 @@ SyncPoller, Void> beginDeleteSegment(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + String workloadNetworkName, String segmentId, Context context); /** * 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId); /** * 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. @@ -329,26 +352,30 @@ SyncPoller, Void> beginDeleteSegment(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + Context context); /** * 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 WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDhcp(String resourceGroupName, String privateCloudName); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -357,7 +384,7 @@ SyncPoller, Void> beginDeleteSegment(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get a WorkloadNetworkDhcp. @@ -394,6 +421,7 @@ Response getDhcpWithResponse(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. * @param dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -403,13 +431,15 @@ Response getDhcpWithResponse(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp); /** * Create a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -420,13 +450,15 @@ SyncPoller, WorkloadNetworkDhcpInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** * Create a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -435,14 +467,15 @@ SyncPoller, WorkloadNetworkDhcpInner> begin * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp); + WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); /** * Create a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -452,14 +485,15 @@ WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateClou * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** * Update a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -469,13 +503,15 @@ WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateClou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp); /** * Update a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -486,13 +522,15 @@ SyncPoller, WorkloadNetworkDhcpInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** * Update a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -501,14 +539,15 @@ SyncPoller, WorkloadNetworkDhcpInner> begin * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp); + WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp); /** * Update a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -518,14 +557,15 @@ WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateClou * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); + WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context); /** * Delete a WorkloadNetworkDhcp. * * @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 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. @@ -534,13 +574,14 @@ WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateClou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, - String dhcpId); + String workloadNetworkName, String dhcpId); /** * Delete a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -549,27 +590,29 @@ 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> beginDeleteDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, Context context); /** * Delete a WorkloadNetworkDhcp. * * @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 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 deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId); + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId); /** * Delete a WorkloadNetworkDhcp. * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -577,26 +620,30 @@ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, Str * @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 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}. */ @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. @@ -605,13 +652,14 @@ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, Str */ @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. @@ -621,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. @@ -635,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. @@ -650,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. @@ -666,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. @@ -682,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. @@ -697,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. @@ -713,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. @@ -731,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. @@ -748,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. @@ -765,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. @@ -781,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. @@ -799,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. @@ -816,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. @@ -833,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. @@ -899,19 +965,22 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -920,13 +989,14 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -936,13 +1006,14 @@ PagedIterable listVMGroups(String resourceGroupName */ @ServiceMethod(returns = ReturnType.SINGLE) Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context); + String workloadNetworkName, String vmGroupId, Context context); /** * Get 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -950,13 +1021,15 @@ Response getVMGroupWithResponse(String resourceGrou * @return a WorkloadNetworkVMGroup. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId); + WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId); /** * Create 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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -966,13 +1039,15 @@ Response getVMGroupWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource); /** * Create 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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -983,14 +1058,15 @@ SyncPoller, WorkloadNetworkVMGroupInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource, - Context context); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context); /** * Create 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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -999,14 +1075,15 @@ SyncPoller, WorkloadNetworkVMGroupInner> * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner resource); + WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource); /** * Create 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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -1016,14 +1093,15 @@ WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String priva * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner resource, Context context); + WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, 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. @@ -1033,7 +1111,7 @@ WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String priva */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup); /** @@ -1041,6 +1119,7 @@ SyncPoller, WorkloadNetworkVMGroupInner> * * @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. @@ -1051,7 +1130,7 @@ SyncPoller, WorkloadNetworkVMGroupInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); /** @@ -1059,6 +1138,7 @@ SyncPoller, WorkloadNetworkVMGroupInner> * * @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. @@ -1067,14 +1147,15 @@ SyncPoller, WorkloadNetworkVMGroupInner> * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup); + 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. @@ -1084,8 +1165,9 @@ WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String priva * @return nSX VM Group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId, - WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); + WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, + Context context); /** * Delete a WorkloadNetworkVMGroup. @@ -1150,6 +1232,7 @@ SyncPoller, Void> beginDeleteVMGroup(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 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. @@ -1158,13 +1241,14 @@ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName); + String privateCloudName, String workloadNetworkName); /** * 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. @@ -1174,13 +1258,14 @@ PagedIterable listVirtualMachines(String res */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context); + 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. @@ -1190,13 +1275,14 @@ PagedIterable listVirtualMachines(String res */ @ServiceMethod(returns = ReturnType.SINGLE) Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context); + 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. @@ -1205,13 +1291,14 @@ Response getVirtualMachineWithResponse(Strin */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId); + 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. @@ -1219,13 +1306,15 @@ WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, S * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName); + 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. @@ -1235,13 +1324,14 @@ WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, - Context context); + 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. @@ -1251,13 +1341,14 @@ PagedIterable listDnsServices(String resourceGro */ @ServiceMethod(returns = ReturnType.SINGLE) Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context); + 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. @@ -1266,13 +1357,14 @@ Response getDnsServiceWithResponse(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId); + 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. @@ -1282,7 +1374,7 @@ WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String pr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); /** @@ -1290,6 +1382,7 @@ SyncPoller, 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. @@ -1300,7 +1393,7 @@ SyncPoller, WorkloadNetworkDnsService */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); /** @@ -1308,6 +1401,7 @@ SyncPoller, 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. @@ -1317,13 +1411,14 @@ SyncPoller, WorkloadNetworkDnsService */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + 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. @@ -1334,13 +1429,15 @@ WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + 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. @@ -1350,7 +1447,7 @@ WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); /** @@ -1358,6 +1455,7 @@ SyncPoller, 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. @@ -1368,7 +1466,7 @@ SyncPoller, WorkloadNetworkDnsService */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); /** @@ -1376,6 +1474,7 @@ SyncPoller, 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. @@ -1385,13 +1484,14 @@ SyncPoller, WorkloadNetworkDnsService */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService); + 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. @@ -1402,7 +1502,8 @@ WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context); + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context); /** * Delete a WorkloadNetworkDnsService. @@ -1467,19 +1568,22 @@ SyncPoller, Void> beginDeleteDnsService(String resourceGroupNam * * @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 WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName); + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -1488,13 +1592,14 @@ SyncPoller, Void> beginDeleteDnsService(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, 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 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. @@ -1504,13 +1609,14 @@ PagedIterable listDnsZones(String resourceGroupName */ @ServiceMethod(returns = ReturnType.SINGLE) Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, - String dnsZoneId, Context context); + String workloadNetworkName, 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 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. @@ -1518,13 +1624,15 @@ Response getDnsZoneWithResponse(String resourceGrou * @return a WorkloadNetworkDnsZone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId); + WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, 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 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. @@ -1534,7 +1642,7 @@ Response getDnsZoneWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** @@ -1542,6 +1650,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * * @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. * @param context The context to associate with this operation. @@ -1552,7 +1661,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); /** @@ -1560,6 +1669,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * * @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. @@ -1568,14 +1678,15 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); + WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, 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 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. @@ -1585,14 +1696,16 @@ WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String priva * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); + WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, 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 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. @@ -1602,7 +1715,7 @@ WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String priva */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); /** @@ -1610,6 +1723,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * * @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. @@ -1620,7 +1734,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); /** @@ -1628,6 +1742,7 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * * @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. @@ -1636,14 +1751,15 @@ SyncPoller, WorkloadNetworkDnsZoneInner> * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone); + WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, 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 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. @@ -1653,8 +1769,9 @@ WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String priva * @return nSX DNS Zone. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId, - WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); + WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context); /** * Delete a WorkloadNetworkDnsZone. @@ -1719,6 +1836,7 @@ SyncPoller, Void> beginDeleteDnsZone(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 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. @@ -1726,13 +1844,15 @@ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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 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. @@ -1741,14 +1861,15 @@ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** * Get 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1757,14 +1878,15 @@ PagedIterable listPublicIPs(String resourceGroupNa * @return a WorkloadNetworkPublicIP along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getPublicIPWithResponse(String resourceGroupName, String privateCloudName, - String publicIPId, Context context); + Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, Context context); /** * Get 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -1772,13 +1894,15 @@ Response getPublicIPWithResponse(String resourceGr * @return a WorkloadNetworkPublicIP. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner getPublicIP(String resourceGroupName, String privateCloudName, String publicIPId); + WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId); /** * 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. @@ -1787,8 +1911,8 @@ Response getPublicIPWithResponse(String resourceGr * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIP( - String resourceGroupName, String privateCloudName, String publicIPId, + SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP); /** @@ -1796,6 +1920,7 @@ SyncPoller, WorkloadNetworkPublicIpInne * * @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. * @param context The context to associate with this operation. @@ -1805,8 +1930,8 @@ SyncPoller, WorkloadNetworkPublicIpInne * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIP( - String resourceGroupName, String privateCloudName, String publicIPId, + SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context); /** @@ -1814,6 +1939,7 @@ SyncPoller, WorkloadNetworkPublicIpInne * * @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. @@ -1822,14 +1948,15 @@ SyncPoller, WorkloadNetworkPublicIpInne * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, String privateCloudName, String publicIPId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIP); + WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP); /** * 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. * @param context The context to associate with this operation. @@ -1839,8 +1966,9 @@ WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, String pri * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, String privateCloudName, String publicIPId, - WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context); + WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, + Context context); /** * Delete a WorkloadNetworkPublicIP. @@ -1854,7 +1982,7 @@ 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> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** @@ -1870,7 +1998,7 @@ 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> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context); /** @@ -1884,7 +2012,7 @@ 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); + void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** * Delete a WorkloadNetworkPublicIP. @@ -1898,5 +2026,5 @@ 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 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 a75e9e49114fc..b10182fc28ac8 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 @@ -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/CloudLinkInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/CloudLinkInner.java index 691492e5ea6ee..0e017ae37ee6b 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/CloudLinkInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/CloudLinkInner.java @@ -30,9 +30,9 @@ public final class CloudLinkInner 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 CloudLinkInner 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 CloudLinkInner 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/ClusterInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ClusterInner.java index 6bd673b741097..1c70541067564 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ClusterInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ClusterInner.java @@ -37,9 +37,9 @@ public final class ClusterInner 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. @@ -47,9 +47,9 @@ public final class ClusterInner 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 ClusterInner class. @@ -96,13 +96,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; } /** @@ -116,13 +116,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/DatastoreInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java index 4954826a9a398..f3f342abacd58 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 @@ -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/ExpressRouteAuthorizationInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java index caf334f972f5f..0bd4d8fd831cf 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 @@ -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/GlobalReachConnectionInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java index ed222baefee14..bb9dd9b570e41 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 @@ -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/HcxEnterpriseSiteInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java index b4fbdc678979d..983e7a7570c06 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 @@ -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/IscsiPathInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java index d2cac63467d77..2f1c23cd338fe 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 @@ -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/PlacementPolicyInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java index 5583ff808096c..39f303d8b7a5a 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 @@ -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/PrivateCloudInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java index 86694aaa6813a..9f58ec30a6826 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 @@ -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/ScriptCmdletInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java index 59f17f2eed70b..dfa4dcbf88663 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 @@ -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,9 +42,9 @@ 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. @@ -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/ScriptExecutionInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java index 5293cf0b63aac..b8ecb5114a775 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionInner.java @@ -34,9 +34,9 @@ public final class ScriptExecutionInner 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. @@ -44,9 +44,9 @@ public final class ScriptExecutionInner 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 ScriptExecutionInner class. @@ -73,13 +73,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; } /** @@ -93,13 +93,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/ScriptPackageInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java index 54f8cd2dbac62..8c28fd56d5606 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 @@ -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,9 +39,9 @@ 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. @@ -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/VirtualMachineInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java index 541dd0138869b..fe2e97bc6daf9 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 @@ -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,9 +40,9 @@ 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. @@ -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/WorkloadNetworkDhcpInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDhcpInner.java index 306524f570db5..8c43aace77e25 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDhcpInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDhcpInner.java @@ -29,9 +29,9 @@ public final class WorkloadNetworkDhcpInner 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 WorkloadNetworkDhcpInner 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 WorkloadNetworkDhcpInner 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/WorkloadNetworkDnsServiceInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsServiceInner.java index 29942b1b1293e..23f2cef38a467 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsServiceInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsServiceInner.java @@ -32,9 +32,9 @@ public final class WorkloadNetworkDnsServiceInner 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,9 +42,9 @@ public final class WorkloadNetworkDnsServiceInner 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 WorkloadNetworkDnsServiceInner class. @@ -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/WorkloadNetworkDnsZoneInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsZoneInner.java index 094e41ecaaa7b..b93022ad1b33a 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsZoneInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkDnsZoneInner.java @@ -30,9 +30,9 @@ public final class WorkloadNetworkDnsZoneInner 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 WorkloadNetworkDnsZoneInner 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 WorkloadNetworkDnsZoneInner 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/WorkloadNetworkGatewayInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkGatewayInner.java index 86ed7d2016bb8..9f3f78dea7433 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkGatewayInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkGatewayInner.java @@ -29,9 +29,9 @@ public final class WorkloadNetworkGatewayInner 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 WorkloadNetworkGatewayInner 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 WorkloadNetworkGatewayInner 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/WorkloadNetworkInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java index 133d024192e66..a78db495a5f03 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 @@ -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,9 +39,9 @@ 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. @@ -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 ec3120a39abe3..f97cfbf6bef9b 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 @@ -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/WorkloadNetworkPublicIpInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPublicIpInner.java index 04a032f5346ed..afa4d42cc36c0 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPublicIpInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPublicIpInner.java @@ -29,9 +29,9 @@ public final class WorkloadNetworkPublicIpInner 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 WorkloadNetworkPublicIpInner 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 WorkloadNetworkPublicIpInner 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/WorkloadNetworkSegmentInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkSegmentInner.java index eb336f74ca5bc..ca41cd2fa325c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkSegmentInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkSegmentInner.java @@ -33,9 +33,9 @@ public final class WorkloadNetworkSegmentInner 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 WorkloadNetworkSegmentInner 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 WorkloadNetworkSegmentInner 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/WorkloadNetworkVMGroupInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVMGroupInner.java index 1dbee8f62ca0c..e6a1780120f0c 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVMGroupInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVMGroupInner.java @@ -31,9 +31,9 @@ public final class WorkloadNetworkVMGroupInner 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 WorkloadNetworkVMGroupInner 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 WorkloadNetworkVMGroupInner 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/WorkloadNetworkVirtualMachineInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVirtualMachineInner.java index e0ebbeca78a5d..58c911905bc66 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVirtualMachineInner.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkVirtualMachineInner.java @@ -30,9 +30,9 @@ public final class WorkloadNetworkVirtualMachineInner 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 WorkloadNetworkVirtualMachineInner 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 WorkloadNetworkVirtualMachineInner 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/implementation/AddonsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java index 50c24fcd62c93..d98200df74cdf 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 @@ -50,24 +50,24 @@ public final class AddonsClientImpl implements AddonsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of AddonsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AddonsClientImpl(AVSClientImpl client) { + AddonsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(AddonsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientAddons to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientAddons to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientAddons") + @ServiceInterface(name = "AvsClientAddons") public interface AddonsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons") 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 7ac85ce97d9eb..7259697452fb8 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 @@ -50,25 +50,25 @@ public final class AuthorizationsClientImpl implements AuthorizationsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of AuthorizationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AuthorizationsClientImpl(AVSClientImpl client) { + AuthorizationsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(AuthorizationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientAuthorizations to be used by the proxy service to perform + * The interface defining all the services for AvsClientAuthorizations to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientAuthorizati") + @ServiceInterface(name = "AvsClientAuthorizati") public interface AuthorizationsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations") 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 dd90210acdbd7..72c78a4af8432 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 @@ -15,10 +15,10 @@ import java.time.Duration; /** - * A builder for creating a new instance of the AVSClientImpl type. + * A builder for creating a new instance of the AvsClientImpl type. */ -@ServiceClientBuilder(serviceClients = { AVSClientImpl.class }) -public final class AVSClientBuilder { +@ServiceClientBuilder(serviceClients = { AvsClientImpl.class }) +public final class AvsClientBuilder { /* * Server parameter */ @@ -28,9 +28,9 @@ public final class AVSClientBuilder { * Sets Server parameter. * * @param endpoint the endpoint value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder endpoint(String endpoint) { + public AvsClientBuilder endpoint(String endpoint) { this.endpoint = endpoint; return this; } @@ -44,9 +44,9 @@ public AVSClientBuilder endpoint(String endpoint) { * Sets The ID of the target subscription. The value must be an UUID. * * @param subscriptionId the subscriptionId value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder subscriptionId(String subscriptionId) { + public AvsClientBuilder subscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -60,9 +60,9 @@ public AVSClientBuilder subscriptionId(String subscriptionId) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder environment(AzureEnvironment environment) { + public AvsClientBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public AVSClientBuilder environment(AzureEnvironment environment) { * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder pipeline(HttpPipeline pipeline) { + public AvsClientBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public AVSClientBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder defaultPollInterval(Duration defaultPollInterval) { + public AvsClientBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public AVSClientBuilder defaultPollInterval(Duration defaultPollInterval) { * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the AVSClientBuilder. + * @return the AvsClientBuilder. */ - public AVSClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public AvsClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of AVSClientImpl with the provided parameters. + * Builds an instance of AvsClientImpl with the provided parameters. * - * @return an instance of AVSClientImpl. + * @return an instance of AvsClientImpl. */ - public AVSClientImpl buildClient() { + public AvsClientImpl buildClient() { AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) ? pipeline @@ -130,7 +130,7 @@ public AVSClientImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - AVSClientImpl client = new AVSClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, + AvsClientImpl client = new AvsClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, 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 8faa7ed8428ac..ddbc989cf2536 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 @@ -25,7 +25,7 @@ import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.avs.fluent.AddonsClient; import com.azure.resourcemanager.avs.fluent.AuthorizationsClient; -import com.azure.resourcemanager.avs.fluent.AVSClient; +import com.azure.resourcemanager.avs.fluent.AvsClient; import com.azure.resourcemanager.avs.fluent.CloudLinksClient; import com.azure.resourcemanager.avs.fluent.ClustersClient; import com.azure.resourcemanager.avs.fluent.DatastoresClient; @@ -51,10 +51,10 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the AVSClientImpl type. + * Initializes a new instance of the AvsClientImpl type. */ -@ServiceClient(builder = AVSClientBuilder.class) -public final class AVSClientImpl implements AVSClient { +@ServiceClient(builder = AvsClientBuilder.class) +public final class AvsClientImpl implements AvsClient { /** * Server parameter. */ @@ -251,20 +251,6 @@ public GlobalReachConnectionsClient getGlobalReachConnections() { return this.globalReachConnections; } - /** - * The WorkloadNetworksClient object to access its operations. - */ - private final WorkloadNetworksClient workloadNetworks; - - /** - * Gets the WorkloadNetworksClient object to access its operations. - * - * @return the WorkloadNetworksClient object. - */ - public WorkloadNetworksClient getWorkloadNetworks() { - return this.workloadNetworks; - } - /** * The CloudLinksClient object to access its operations. */ @@ -378,7 +364,21 @@ public IscsiPathsClient getIscsiPaths() { } /** - * Initializes an instance of AVSClient client. + * The WorkloadNetworksClient object to access its operations. + */ + private final WorkloadNetworksClient workloadNetworks; + + /** + * Gets the WorkloadNetworksClient object to access its operations. + * + * @return the WorkloadNetworksClient object. + */ + public WorkloadNetworksClient getWorkloadNetworks() { + return this.workloadNetworks; + } + + /** + * Initializes an instance of AvsClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. @@ -387,7 +387,7 @@ public IscsiPathsClient getIscsiPaths() { * @param endpoint Server parameter. * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ - AVSClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, + AvsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; @@ -403,7 +403,6 @@ public IscsiPathsClient getIscsiPaths() { this.hcxEnterpriseSites = new HcxEnterpriseSitesClientImpl(this); this.authorizations = new AuthorizationsClientImpl(this); this.globalReachConnections = new GlobalReachConnectionsClientImpl(this); - this.workloadNetworks = new WorkloadNetworksClientImpl(this); this.cloudLinks = new CloudLinksClientImpl(this); this.addons = new AddonsClientImpl(this); this.virtualMachines = new VirtualMachinesClientImpl(this); @@ -412,6 +411,7 @@ public IscsiPathsClient getIscsiPaths() { this.scriptCmdlets = new ScriptCmdletsClientImpl(this); this.scriptExecutions = new ScriptExecutionsClientImpl(this); this.iscsiPaths = new IscsiPathsClientImpl(this); + this.workloadNetworks = new WorkloadNetworksClientImpl(this); } /** @@ -540,5 +540,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(AVSClientImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AvsClientImpl.class); } 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 2b3346d1d5a03..ac2f1aa325ddc 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 @@ -50,25 +50,25 @@ public final class CloudLinksClientImpl implements CloudLinksClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of CloudLinksClientImpl. * * @param client the instance of the service client containing this operation class. */ - CloudLinksClientImpl(AVSClientImpl client) { + CloudLinksClientImpl(AvsClientImpl client) { this.service = RestProxy.create(CloudLinksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientCloudLinks to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientCloudLinks to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientCloudLinks") + @ServiceInterface(name = "AvsClientCloudLinks") public interface CloudLinksService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks") 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 ed04ac2edac22..ea0b217f38684 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 @@ -54,24 +54,24 @@ public final class ClustersClientImpl implements ClustersClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of ClustersClientImpl. * * @param client the instance of the service client containing this operation class. */ - ClustersClientImpl(AVSClientImpl client) { + ClustersClientImpl(AvsClientImpl client) { this.service = RestProxy.create(ClustersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientClusters to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientClusters to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientClusters") + @ServiceInterface(name = "AvsClientClusters") public interface ClustersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters") 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 b4196f569da6c..038bf652471ac 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 @@ -50,25 +50,25 @@ public final class DatastoresClientImpl implements DatastoresClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of DatastoresClientImpl. * * @param client the instance of the service client containing this operation class. */ - DatastoresClientImpl(AVSClientImpl client) { + DatastoresClientImpl(AvsClientImpl client) { this.service = RestProxy.create(DatastoresService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientDatastores to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientDatastores to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientDatastores") + @ServiceInterface(name = "AvsClientDatastores") public interface DatastoresService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores") 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 a50f08efcb3d0..b2887e4e68ea2 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 @@ -50,25 +50,25 @@ public final class GlobalReachConnectionsClientImpl implements GlobalReachConnec /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of GlobalReachConnectionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - GlobalReachConnectionsClientImpl(AVSClientImpl client) { + GlobalReachConnectionsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(GlobalReachConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientGlobalReachConnections to be used by the proxy service to + * The interface defining all the services for AvsClientGlobalReachConnections to be used by the proxy service to * perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientGlobalReach") + @ServiceInterface(name = "AvsClientGlobalReach") public interface GlobalReachConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections") 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 3a7f65078d846..a81c54343cb32 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 @@ -45,25 +45,25 @@ public final class HcxEnterpriseSitesClientImpl implements HcxEnterpriseSitesCli /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of HcxEnterpriseSitesClientImpl. * * @param client the instance of the service client containing this operation class. */ - HcxEnterpriseSitesClientImpl(AVSClientImpl client) { + HcxEnterpriseSitesClientImpl(AvsClientImpl client) { this.service = RestProxy.create(HcxEnterpriseSitesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientHcxEnterpriseSites to be used by the proxy service to + * The interface defining all the services for AvsClientHcxEnterpriseSites to be used by the proxy service to * perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientHcxEnterpri") + @ServiceInterface(name = "AvsClientHcxEnterpri") public interface HcxEnterpriseSitesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/hcxEnterpriseSites") 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 feb385954029b..822cf3e4851fb 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 @@ -5,20 +5,16 @@ 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 9e369d91d0d55..9ee79639c73fa 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 @@ -50,25 +50,25 @@ public final class IscsiPathsClientImpl implements IscsiPathsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of IscsiPathsClientImpl. * * @param client the instance of the service client containing this operation class. */ - IscsiPathsClientImpl(AVSClientImpl client) { + IscsiPathsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(IscsiPathsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientIscsiPaths to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientIscsiPaths to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientIscsiPaths") + @ServiceInterface(name = "AvsClientIscsiPaths") public interface IscsiPathsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths") @@ -81,34 +81,35 @@ Mono> listByPrivateCloud(@HostParam("endpoint") St 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("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("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept, - @BodyParam("application/json") IscsiPathInner resource, Context context); + @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("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}") @@ -269,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.")); @@ -292,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())); } @@ -304,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. @@ -312,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.")); @@ -329,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); } /** @@ -340,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())); } @@ -356,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. @@ -364,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(); } /** @@ -373,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(); } /** @@ -388,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. @@ -396,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.")); @@ -413,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 { @@ -421,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, accept, resource, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -430,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. @@ -439,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.")); @@ -456,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 { @@ -464,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, accept, resource, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, iscsiPathName, accept, resource, + context); } /** @@ -472,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. @@ -480,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()); } @@ -492,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. @@ -501,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); } @@ -514,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. @@ -522,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(); } /** @@ -531,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. @@ -540,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(); } /** @@ -549,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. @@ -557,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); } @@ -567,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. @@ -576,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); } @@ -586,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. @@ -593,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(); } /** @@ -602,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. @@ -610,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(); } /** @@ -620,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.")); @@ -644,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())); } @@ -656,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. @@ -664,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.")); @@ -681,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); } /** @@ -692,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()); } @@ -709,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. @@ -717,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); } @@ -729,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(); } /** @@ -744,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. @@ -752,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(); } /** @@ -761,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); } @@ -777,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. @@ -784,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); } @@ -794,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(); } /** @@ -808,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 09bdc6a51539d..4ea5e6c7b4b61 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 @@ -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 28f575fd53fde..7492fa79aaf55 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 @@ -40,25 +40,25 @@ public final class LocationsClientImpl implements LocationsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of LocationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - LocationsClientImpl(AVSClientImpl client) { + LocationsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(LocationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientLocations to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientLocations to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientLocations") + @ServiceInterface(name = "AvsClientLocations") public interface LocationsService { @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability") 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 c2f18313f3fea..c48bdb504b5f3 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 @@ -42,25 +42,25 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(AVSClientImpl client) { + OperationsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientOperations to be used by the proxy service to perform REST + * The interface defining all the services for AvsClientOperations to be used by the proxy service to perform REST * calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientOperations") + @ServiceInterface(name = "AvsClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.AVS/operations") 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 df7b4ef14bb39..8518d9a16dc01 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 @@ -52,25 +52,25 @@ public final class PlacementPoliciesClientImpl implements PlacementPoliciesClien /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of PlacementPoliciesClientImpl. * * @param client the instance of the service client containing this operation class. */ - PlacementPoliciesClientImpl(AVSClientImpl client) { + PlacementPoliciesClientImpl(AvsClientImpl client) { this.service = RestProxy.create(PlacementPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientPlacementPolicies to be used by the proxy service to perform + * The interface defining all the services for AvsClientPlacementPolicies to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientPlacementPo") + @ServiceInterface(name = "AvsClientPlacementPo") public interface PlacementPoliciesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies") 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 4b4c2e01fd346..436c9285d38d5 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 @@ -54,25 +54,25 @@ public final class PrivateCloudsClientImpl implements PrivateCloudsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of PrivateCloudsClientImpl. * * @param client the instance of the service client containing this operation class. */ - PrivateCloudsClientImpl(AVSClientImpl client) { + PrivateCloudsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(PrivateCloudsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientPrivateClouds to be used by the proxy service to perform + * The interface defining all the services for AvsClientPrivateClouds to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientPrivateClou") + @ServiceInterface(name = "AvsClientPrivateClou") public interface PrivateCloudsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds") 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 e62ed3d40d743..1b612936bcf0a 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 @@ -42,25 +42,25 @@ public final class ScriptCmdletsClientImpl implements ScriptCmdletsClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of ScriptCmdletsClientImpl. * * @param client the instance of the service client containing this operation class. */ - ScriptCmdletsClientImpl(AVSClientImpl client) { + ScriptCmdletsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(ScriptCmdletsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientScriptCmdlets to be used by the proxy service to perform + * The interface defining all the services for AvsClientScriptCmdlets to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientScriptCmdle") + @ServiceInterface(name = "AvsClientScriptCmdle") public interface ScriptCmdletsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets") 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 09dc22e925027..7ebf69bdc28e3 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 @@ -53,25 +53,25 @@ public final class ScriptExecutionsClientImpl implements ScriptExecutionsClient /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of ScriptExecutionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - ScriptExecutionsClientImpl(AVSClientImpl client) { + ScriptExecutionsClientImpl(AvsClientImpl client) { this.service = RestProxy.create(ScriptExecutionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientScriptExecutions to be used by the proxy service to perform + * The interface defining all the services for AvsClientScriptExecutions to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientScriptExecu") + @ServiceInterface(name = "AvsClientScriptExecu") public interface ScriptExecutionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions") 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 7c5d8b6bfcf72..6f7196cadc8ee 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 @@ -42,25 +42,25 @@ public final class ScriptPackagesClientImpl implements ScriptPackagesClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of ScriptPackagesClientImpl. * * @param client the instance of the service client containing this operation class. */ - ScriptPackagesClientImpl(AVSClientImpl client) { + ScriptPackagesClientImpl(AvsClientImpl client) { this.service = RestProxy.create(ScriptPackagesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientScriptPackages to be used by the proxy service to perform + * The interface defining all the services for AvsClientScriptPackages to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientScriptPacka") + @ServiceInterface(name = "AvsClientScriptPacka") public interface ScriptPackagesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages") 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 6f6ba090acab2..e66ab15ab59f0 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 @@ -50,25 +50,25 @@ public final class VirtualMachinesClientImpl implements VirtualMachinesClient { /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of VirtualMachinesClientImpl. * * @param client the instance of the service client containing this operation class. */ - VirtualMachinesClientImpl(AVSClientImpl client) { + VirtualMachinesClientImpl(AvsClientImpl client) { this.service = RestProxy.create(VirtualMachinesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientVirtualMachines to be used by the proxy service to perform + * The interface defining all the services for AvsClientVirtualMachines to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientVirtualMach") + @ServiceInterface(name = "AvsClientVirtualMach") public interface VirtualMachinesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines") 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 925014918166a..bd50b77cd1ce3 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 @@ -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 9bf2e56e5390c..0ed5214d08bdb 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 @@ -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 d645a8af6328d..68163d3050111 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 @@ -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/WorkloadNetworkPortMirroringImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworkPortMirroringImpl.java index a3a8b7c97becc..b4b785887b02a 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 @@ -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 fbd68133928ab..5427d74470341 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 @@ -65,25 +65,31 @@ private com.azure.resourcemanager.avs.AvsManager manager() { private String privateCloudName; + private String workloadNetworkName; + private String publicIPId; - public WorkloadNetworkPublicIpImpl withExistingPrivateCloud(String resourceGroupName, String privateCloudName) { + 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; } @@ -96,7 +102,7 @@ public WorkloadNetworkPublicIp create(Context context) { 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 dc7abea2fa511..bc4b4883f6607 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 @@ -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() - .createSegment(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() - .createSegment(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() - .updateSegment(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() - .updateSegment(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 d91f01e0480c4..ab9f001dd137c 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 @@ -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/WorkloadNetworksClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java index 6eac66261ea2c..a1616ab280be8 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 @@ -69,106 +69,113 @@ public final class WorkloadNetworksClientImpl implements WorkloadNetworksClient /** * The service client containing this operation class. */ - private final AVSClientImpl client; + private final AvsClientImpl client; /** * Initializes an instance of WorkloadNetworksClientImpl. * * @param client the instance of the service client containing this operation class. */ - WorkloadNetworksClientImpl(AVSClientImpl client) { + WorkloadNetworksClientImpl(AvsClientImpl client) { this.service = RestProxy.create(WorkloadNetworksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for AVSClientWorkloadNetworks to be used by the proxy service to perform + * The interface defining all the services for AvsClientWorkloadNetworks to be used by the proxy service to perform * REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "AVSClientWorkloadNet") + @ServiceInterface(name = "AvsClientWorkloadNet") public interface WorkloadNetworksService { @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") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") 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, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") 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/segments") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/segments/{segmentId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getSegment(@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, + @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/segments/{segmentId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createSegment(@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, + @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/segments/{segmentId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateSegment(@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, + @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/segments/{segmentId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/segments/{segmentId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> deleteSegment(@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, + @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/dhcpConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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" }) @@ -182,98 +189,107 @@ Mono> getDhcp(@HostParam("endpoint") String e 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}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createDhcp(@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, + @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/dhcpConfigurations/{dhcpId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateDhcp(@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, + @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/dhcpConfigurations/{dhcpId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dhcpConfigurations/{dhcpId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> deleteDhcp(@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, + @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/gateways") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/gateways") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/gateways/{gatewayId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/gateways/{gatewayId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getGateway(@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, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("gatewayId") String gatewayId, @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}/portMirroringProfiles") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listPortMirroring(@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}/portMirroringProfiles/{portMirroringId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getPortMirroring(@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("portMirroringId") String portMirroringId, @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}/portMirroringProfiles/{portMirroringId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createPortMirroring(@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("portMirroringId") String portMirroringId, @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, 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}/portMirroringProfiles/{portMirroringId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updatePortMirroring(@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("portMirroringId") String portMirroringId, @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context); @@ -290,44 +306,48 @@ Mono>> deletePortMirroring(@HostParam("endpoint") Stri Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/vmGroups/{vmGroupId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getVMGroup(@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, + @PathParam("privateCloudName") String privateCloudName, + @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/vmGroups/{vmGroupId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createVMGroup(@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, + @PathParam("privateCloudName") String privateCloudName, + @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/vmGroups/{vmGroupId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/vmGroups/{vmGroupId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateVMGroup(@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, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("vmGroupId") String vmGroupId, @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context); @@ -342,66 +362,72 @@ Mono>> deleteVMGroup(@HostParam("endpoint") String end 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}/virtualMachines") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/virtualMachines/{virtualMachineId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/virtualMachines/{virtualMachineId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getVirtualMachine(@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("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/dnsServices") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/dnsServices/{dnsServiceId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDnsService(@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("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/dnsServices/{dnsServiceId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createDnsService(@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, + @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/dnsServices/{dnsServiceId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsServices/{dnsServiceId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateDnsService(@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, + @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" }) @@ -415,44 +441,48 @@ Mono>> deleteDnsService(@HostParam("endpoint") String 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}/dnsZones") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) 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/dnsZones/{dnsZoneId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones/{dnsZoneId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDnsZone(@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, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dnsZoneId") String dnsZoneId, @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}") + @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("dnsZoneId") String dnsZoneId, + @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/default/dnsZones/{dnsZoneId}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/dnsZones/{dnsZoneId}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateDnsZone(@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, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("dnsZoneId") String dnsZoneId, @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context); @@ -467,33 +497,36 @@ Mono>> deleteDnsZone(@HostParam("endpoint") String end 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}/publicIPs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPublicIPs(@HostParam("endpoint") 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, @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}/publicIPs/{publicIPId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPublicIP(@HostParam("endpoint") 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("publicIPId") String publicIPId, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @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}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}/publicIPs/{publicIPId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createPublicIP(@HostParam("endpoint") 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("publicIPId") String publicIPId, + @PathParam("privateCloudName") String privateCloudName, + @PathParam("workloadNetworkName") String workloadNetworkName, @PathParam("publicIPId") String publicIPId, @HeaderParam("accept") String accept, @BodyParam("application/json") WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context); @@ -501,7 +534,7 @@ Mono>> createPublicIP(@HostParam("endpoint") String en @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> deletePublicIP(@HostParam("endpoint") String endpoint, + Mono>> deletePublicIp(@HostParam("endpoint") 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, @@ -582,23 +615,24 @@ Mono> listDnsZonesNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listPublicIPsNext( + Mono> listPublicIpsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context); } /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 WorkloadNetwork along with {@link Response} on successful completion of {@link Mono}. + * @return the response of a WorkloadNetwork list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -618,13 +652,15 @@ private Mono> getWithResponseAsync(String resourc } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.list(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)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -632,11 +668,12 @@ private Mono> getWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the response of a WorkloadNetwork list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String privateCloudName, - Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -655,28 +692,31 @@ private Mono> getWithResponseAsync(String resourc } 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); + return service + .list(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)); } /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 WorkloadNetwork on successful completion of {@link Mono}. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String privateCloudName) { - return getWithResponseAsync(resourceGroupName, privateCloudName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String privateCloudName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateCloudName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName Name of the private cloud. @@ -684,27 +724,28 @@ private Mono getAsync(String resourceGroupName, String pri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String privateCloudName, + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String privateCloudName, Context context) { - return getWithResponseAsync(resourceGroupName, privateCloudName, context).block(); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateCloudName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 WorkloadNetwork. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkInner get(String resourceGroupName, String privateCloudName) { - return getWithResponse(resourceGroupName, privateCloudName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String privateCloudName) { + return new PagedIterable<>(listAsync(resourceGroupName, privateCloudName)); } /** @@ -712,15 +753,32 @@ public WorkloadNetworkInner get(String resourceGroupName, String privateCloudNam * * @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 response of a WorkloadNetwork list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String privateCloudName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, privateCloudName, 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 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> listSinglePageAsync(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.")); @@ -737,30 +795,31 @@ private Mono> listSinglePageAsync(String res 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.list(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 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())); } /** - * List WorkloadNetwork resources by PrivateCloud. + * 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. * @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 WorkloadNetwork list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a WorkloadNetwork along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + private Mono> getWithResponseAsync(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.")); @@ -777,79 +836,66 @@ private Mono> listSinglePageAsync(String res 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 - .list(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.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, privateCloudName, workloadNetworkName, accept, context); } /** - * List WorkloadNetwork resources by PrivateCloud. + * 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 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 WorkloadNetwork list operation as paginated response with {@link PagedFlux}. + * @return a WorkloadNetwork on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String privateCloudName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return getWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * List WorkloadNetwork resources by PrivateCloud. + * 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. * @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 WorkloadNetwork list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateCloudName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * List WorkloadNetwork resources by PrivateCloud. - * - * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listAsync(resourceGroupName, privateCloudName)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return getWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, context).block(); } /** - * List WorkloadNetwork resources by PrivateCloud. + * Get a 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. + * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, privateCloudName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkloadNetworkInner get(String resourceGroupName, String privateCloudName, String workloadNetworkName) { + return getWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, Context.NONE).getValue(); } /** @@ -857,6 +903,7 @@ 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. @@ -865,7 +912,7 @@ public PagedIterable list(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSegmentsSinglePageAsync(String resourceGroupName, - String privateCloudName) { + 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,10 +929,15 @@ 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.")); + } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSegments(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + 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())); @@ -896,6 +948,7 @@ private Mono> listSegmentsSinglePageA * * @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. @@ -905,7 +958,7 @@ private Mono> listSegmentsSinglePageA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSegmentsSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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,11 +975,15 @@ 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.")); + } 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) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -936,15 +993,17 @@ private Mono> listSegmentsSinglePageA * * @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 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), + private PagedFlux listSegmentsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listSegmentsNextSinglePageAsync(nextLink)); } @@ -953,6 +1012,7 @@ private PagedFlux listSegmentsAsync(String resource * * @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. @@ -961,8 +1021,9 @@ private PagedFlux listSegmentsAsync(String resource */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSegmentsAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, context), + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listSegmentsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listSegmentsNextSinglePageAsync(nextLink, context)); } @@ -971,14 +1032,16 @@ private PagedFlux listSegmentsAsync(String resource * * @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 WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSegments(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName)); + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -986,6 +1049,7 @@ public PagedIterable listSegments(String resourceGr * * @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. @@ -994,8 +1058,9 @@ public PagedIterable listSegments(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listSegmentsAsync(resourceGroupName, privateCloudName, context)); + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listSegmentsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -1003,6 +1068,7 @@ public PagedIterable listSegments(String resourceGr * * @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 ManagementException thrown if the request is rejected by server. @@ -1011,7 +1077,7 @@ public PagedIterable listSegments(String resourceGr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId) { + 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.")); @@ -1028,13 +1094,18 @@ private Mono> getSegmentWithResponseAsync( 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.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1043,6 +1114,7 @@ private Mono> getSegmentWithResponseAsync( * * @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. @@ -1052,7 +1124,7 @@ private Mono> getSegmentWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { + 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.")); @@ -1069,13 +1141,18 @@ private Mono> getSegmentWithResponseAsync( 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.getSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context); } /** @@ -1083,6 +1160,7 @@ private Mono> getSegmentWithResponseAsync( * * @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 ManagementException thrown if the request is rejected by server. @@ -1091,8 +1169,8 @@ private Mono> getSegmentWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId) { - return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId) + String workloadNetworkName, String segmentId) { + return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -1101,6 +1179,7 @@ private Mono getSegmentAsync(String resourceGroupNa * * @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. @@ -1110,8 +1189,9 @@ private Mono getSegmentAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getSegmentWithResponse(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { - return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, context).block(); + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { + return getSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) + .block(); } /** @@ -1119,6 +1199,7 @@ public Response getSegmentWithResponse(String resou * * @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 ManagementException thrown if the request is rejected by server. @@ -1126,8 +1207,10 @@ public Response getSegmentWithResponse(String resou * @return a WorkloadNetworkSegment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId) { - return getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, Context.NONE).getValue(); + public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { + return getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE) + .getValue(); } /** @@ -1135,6 +1218,7 @@ public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String p * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1144,7 +1228,8 @@ public WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String p */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + 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.")); @@ -1161,6 +1246,10 @@ private Mono>> createSegmentWithResponseAsync(String r 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.")); } @@ -1173,8 +1262,8 @@ private Mono>> createSegmentWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.createSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, - workloadNetworkSegment, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, workloadNetworkSegment, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1183,6 +1272,7 @@ private Mono>> createSegmentWithResponseAsync(String r * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -1193,8 +1283,8 @@ private Mono>> createSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, - Context context) { + 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.")); @@ -1211,6 +1301,10 @@ private Mono>> createSegmentWithResponseAsync(String r 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.")); } @@ -1223,8 +1317,8 @@ private Mono>> createSegmentWithResponseAsync(String r final String accept = "application/json"; context = this.client.mergeContext(context); return service.createSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, - workloadNetworkSegment, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, workloadNetworkSegment, context); } /** @@ -1232,6 +1326,7 @@ private Mono>> createSegmentWithResponseAsync(String r * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1241,10 +1336,10 @@ private Mono>> createSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentAsync( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - Mono>> mono - = createSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment); + Mono>> mono = createSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, workloadNetworkSegment); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, this.client.getContext()); @@ -1255,6 +1350,7 @@ private PollerFlux, WorkloadNetworkSegme * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -1265,11 +1361,11 @@ private PollerFlux, WorkloadNetworkSegme */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkSegmentInner> beginCreateSegmentAsync( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { context = this.client.mergeContext(context); Mono>> mono = createSegmentWithResponseAsync(resourceGroupName, privateCloudName, - segmentId, workloadNetworkSegment, context); + workloadNetworkName, segmentId, workloadNetworkSegment, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, context); @@ -1280,6 +1376,7 @@ private PollerFlux, WorkloadNetworkSegme * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1289,9 +1386,11 @@ private PollerFlux, WorkloadNetworkSegme */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return this.beginCreateSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment) + return this + .beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment) .getSyncPoller(); } @@ -1300,6 +1399,7 @@ public SyncPoller, WorkloadNetworkSegmen * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -1310,10 +1410,11 @@ public SyncPoller, WorkloadNetworkSegmen */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment( - String resourceGroupName, String privateCloudName, String segmentId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { return this - .beginCreateSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) + .beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context) .getSyncPoller(); } @@ -1322,6 +1423,7 @@ public SyncPoller, WorkloadNetworkSegmen * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1331,9 +1433,9 @@ public SyncPoller, WorkloadNetworkSegmen */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return beginCreateSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).last() - .flatMap(this.client::getLroFinalResultOrError); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + return beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -1341,6 +1443,7 @@ private Mono createSegmentAsync(String resourceGrou * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -1351,10 +1454,10 @@ private Mono createSegmentAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return beginCreateSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context) { + return beginCreateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -1362,6 +1465,7 @@ private Mono createSegmentAsync(String resourceGrou * * @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 workloadNetworkSegment Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1371,8 +1475,9 @@ private Mono createSegmentAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { - return createSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).block(); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment) { + return createSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment).block(); } /** @@ -1380,6 +1485,7 @@ public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, Strin * * @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 workloadNetworkSegment Resource create parameters. * @param context The context to associate with this operation. @@ -1390,9 +1496,10 @@ public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, Context context) { - return createSegmentAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, context) - .block(); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment, + Context context) { + return createSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + workloadNetworkSegment, context).block(); } /** @@ -1400,6 +1507,7 @@ public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, Strin * * @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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1409,7 +1517,7 @@ public WorkloadNetworkSegmentInner createSegment(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties) { + 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.")); @@ -1426,6 +1534,10 @@ private Mono>> updateSegmentWithResponseAsync(String r 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.")); } @@ -1437,8 +1549,8 @@ private Mono>> updateSegmentWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, properties, - context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1447,6 +1559,7 @@ private Mono>> updateSegmentWithResponseAsync(String r * * @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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -1457,7 +1570,8 @@ private Mono>> updateSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties, Context context) { + 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.")); @@ -1474,6 +1588,10 @@ private Mono>> updateSegmentWithResponseAsync(String r 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.")); } @@ -1485,8 +1603,8 @@ private Mono>> updateSegmentWithResponseAsync(String r final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, properties, - context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, properties, context); } /** @@ -1494,6 +1612,7 @@ private Mono>> updateSegmentWithResponseAsync(String r * * @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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1503,9 +1622,10 @@ private Mono>> updateSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentAsync( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties) { - Mono>> mono - = updateSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, properties); + 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()); @@ -1516,6 +1636,7 @@ private PollerFlux, WorkloadNetworkSegme * * @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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -1526,11 +1647,11 @@ private PollerFlux, WorkloadNetworkSegme */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkSegmentInner> beginUpdateSegmentAsync( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties, - Context context) { + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = updateSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, properties, context); + Mono>> mono = updateSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, properties, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkSegmentInner.class, WorkloadNetworkSegmentInner.class, context); @@ -1541,6 +1662,7 @@ private PollerFlux, WorkloadNetworkSegme * * @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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1550,8 +1672,11 @@ private PollerFlux, WorkloadNetworkSegme */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties) { - return this.beginUpdateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties).getSyncPoller(); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties) { + return this + .beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) + .getSyncPoller(); } /** @@ -1559,6 +1684,7 @@ public SyncPoller, WorkloadNetworkSegmen * * @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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -1569,9 +1695,11 @@ public SyncPoller, WorkloadNetworkSegmen */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment( - String resourceGroupName, String privateCloudName, String segmentId, WorkloadNetworkSegmentInner properties, - Context context) { - return this.beginUpdateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties, context) + String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + WorkloadNetworkSegmentInner properties, Context context) { + return this + .beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context) .getSyncPoller(); } @@ -1580,6 +1708,7 @@ public SyncPoller, WorkloadNetworkSegmen * * @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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1589,8 +1718,9 @@ public SyncPoller, WorkloadNetworkSegmen */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner properties) { - return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties).last() + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties) { + return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1599,6 +1729,7 @@ private Mono updateSegmentAsync(String resourceGrou * * @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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -1609,9 +1740,9 @@ private Mono updateSegmentAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateSegmentAsync(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner properties, Context context) { - return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties, context).last() - .flatMap(this.client::getLroFinalResultOrError); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context) { + return beginUpdateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -1619,6 +1750,7 @@ private Mono updateSegmentAsync(String resourceGrou * * @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 properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1628,8 +1760,9 @@ private Mono updateSegmentAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner properties) { - return updateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties).block(); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties) { + return updateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties) + .block(); } /** @@ -1637,6 +1770,7 @@ public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, Strin * * @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 properties The resource properties to be updated. * @param context The context to associate with this operation. @@ -1647,8 +1781,9 @@ public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName, - String segmentId, WorkloadNetworkSegmentInner properties, Context context) { - return updateSegmentAsync(resourceGroupName, privateCloudName, segmentId, properties, context).block(); + String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context) { + return updateSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, properties, + context).block(); } /** @@ -1656,6 +1791,7 @@ public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, Strin * * @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 ManagementException thrown if the request is rejected by server. @@ -1664,7 +1800,7 @@ public WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId) { + 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.")); @@ -1681,13 +1817,18 @@ private Mono>> deleteSegmentWithResponseAsync(String r 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.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1696,6 +1837,7 @@ private Mono>> deleteSegmentWithResponseAsync(String r * * @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. @@ -1705,7 +1847,7 @@ private Mono>> deleteSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteSegmentWithResponseAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { + 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.")); @@ -1722,13 +1864,18 @@ private Mono>> deleteSegmentWithResponseAsync(String r 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.deleteSegment(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, segmentId, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + accept, context); } /** @@ -1736,6 +1883,7 @@ private Mono>> deleteSegmentWithResponseAsync(String r * * @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 ManagementException thrown if the request is rejected by server. @@ -1744,9 +1892,9 @@ private Mono>> deleteSegmentWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, - String privateCloudName, String segmentId) { + String privateCloudName, String workloadNetworkName, String segmentId) { Mono>> mono - = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId); + = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1756,6 +1904,7 @@ private PollerFlux, Void> beginDeleteSegmentAsync(String resour * * @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. @@ -1765,10 +1914,10 @@ private PollerFlux, Void> beginDeleteSegmentAsync(String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteSegmentAsync(String resourceGroupName, - String privateCloudName, String segmentId, Context context) { + String privateCloudName, String workloadNetworkName, String segmentId, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, segmentId, context); + Mono>> mono = deleteSegmentWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, segmentId, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1778,6 +1927,7 @@ private PollerFlux, Void> beginDeleteSegmentAsync(String resour * * @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 ManagementException thrown if the request is rejected by server. @@ -1786,8 +1936,9 @@ private PollerFlux, Void> beginDeleteSegmentAsync(String resour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName, - String segmentId) { - return this.beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).getSyncPoller(); + String workloadNetworkName, String segmentId) { + return this.beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId) + .getSyncPoller(); } /** @@ -1795,6 +1946,7 @@ public SyncPoller, Void> beginDeleteSegment(String resourceGrou * * @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. @@ -1804,8 +1956,10 @@ public SyncPoller, Void> beginDeleteSegment(String resourceGrou */ @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(); + String workloadNetworkName, String segmentId, Context context) { + return this + .beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context) + .getSyncPoller(); } /** @@ -1813,6 +1967,7 @@ public SyncPoller, Void> beginDeleteSegment(String resourceGrou * * @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 ManagementException thrown if the request is rejected by server. @@ -1820,8 +1975,9 @@ public SyncPoller, Void> beginDeleteSegment(String resourceGrou * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String segmentId) { - return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).last() + private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1830,6 +1986,7 @@ private Mono deleteSegmentAsync(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 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. @@ -1838,9 +1995,10 @@ private Mono deleteSegmentAsync(String resourceGroupName, String privateCl * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteSegmentAsync(String resourceGroupName, String privateCloudName, String segmentId, - Context context) { - return beginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId, 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); } @@ -1849,14 +2007,16 @@ private Mono deleteSegmentAsync(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 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 deleteSegment(String resourceGroupName, String privateCloudName, String segmentId) { - deleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).block(); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + deleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId).block(); } /** @@ -1864,6 +2024,7 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str * * @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. @@ -1871,8 +2032,9 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context) { - deleteSegmentAsync(resourceGroupName, privateCloudName, segmentId, context).block(); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId, Context context) { + deleteSegmentAsync(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context).block(); } /** @@ -1880,6 +2042,7 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str * * @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. @@ -1888,7 +2051,7 @@ public void deleteSegment(String resourceGroupName, String privateCloudName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDhcpSinglePageAsync(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1905,10 +2068,13 @@ 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)) + 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())); @@ -1919,6 +2085,7 @@ private Mono> listDhcpSinglePageAsync(St * * @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. @@ -1928,7 +2095,7 @@ private Mono> listDhcpSinglePageAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDhcpSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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.")); @@ -1945,11 +2112,15 @@ 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) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -1959,14 +2130,16 @@ private Mono> listDhcpSinglePageAsync(St * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName) { - return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName), + private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listDhcpNextSinglePageAsync(nextLink)); } @@ -1975,6 +2148,7 @@ private PagedFlux listDhcpAsync(String resourceGroupNa * * @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. @@ -1983,8 +2157,9 @@ private PagedFlux listDhcpAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDhcpAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, context), + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDhcpSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listDhcpNextSinglePageAsync(nextLink, context)); } @@ -1993,14 +2168,16 @@ private PagedFlux listDhcpAsync(String resourceGroupNa * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName)); + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -2008,6 +2185,7 @@ public PagedIterable listDhcp(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. * @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. @@ -2016,8 +2194,8 @@ public PagedIterable listDhcp(String resourceGroupName */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, context)); + String workloadNetworkName, Context context) { + return new PagedIterable<>(listDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -2157,6 +2335,7 @@ public WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2166,7 +2345,8 @@ public WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + 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.")); @@ -2183,6 +2363,10 @@ private Mono>> createDhcpWithResponseAsync(String reso 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.")); } @@ -2195,8 +2379,8 @@ private Mono>> createDhcpWithResponseAsync(String reso final String accept = "application/json"; return FluxUtil .withContext(context -> service.createDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, - workloadNetworkDhcp, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, workloadNetworkDhcp, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2205,6 +2389,7 @@ private Mono>> createDhcpWithResponseAsync(String reso * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -2215,7 +2400,8 @@ private Mono>> createDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + 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.")); @@ -2232,6 +2418,10 @@ private Mono>> createDhcpWithResponseAsync(String reso 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.")); } @@ -2244,8 +2434,8 @@ private Mono>> createDhcpWithResponseAsync(String reso 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, accept, workloadNetworkDhcp, - context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + workloadNetworkDhcp, context); } /** @@ -2253,6 +2443,7 @@ private Mono>> createDhcpWithResponseAsync(String reso * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2262,10 +2453,10 @@ private Mono>> createDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - Mono>> mono - = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp); + Mono>> mono = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, this.client.getContext()); @@ -2276,6 +2467,7 @@ private PollerFlux, WorkloadNetworkDhcpInne * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -2286,11 +2478,11 @@ private PollerFlux, WorkloadNetworkDhcpInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDhcpInner> beginCreateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context); + Mono>> mono = createDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); } @@ -2300,6 +2492,7 @@ private PollerFlux, WorkloadNetworkDhcpInne * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2309,9 +2502,10 @@ private PollerFlux, WorkloadNetworkDhcpInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return this.beginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp) + return this + .beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .getSyncPoller(); } @@ -2320,6 +2514,7 @@ public SyncPoller, WorkloadNetworkDhcpInner * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -2330,9 +2525,11 @@ public SyncPoller, WorkloadNetworkDhcpInner */ @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) + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return this + .beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, + context) .getSyncPoller(); } @@ -2341,6 +2538,7 @@ public SyncPoller, WorkloadNetworkDhcpInner * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2350,9 +2548,9 @@ public SyncPoller, WorkloadNetworkDhcpInner */ @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); + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -2360,6 +2558,7 @@ private Mono createDhcpAsync(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. * @param dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -2370,9 +2569,9 @@ private Mono createDhcpAsync(String resourceGroupName, */ @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); + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return beginCreateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -2380,6 +2579,7 @@ private Mono createDhcpAsync(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. * @param dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2388,9 +2588,10 @@ private Mono createDhcpAsync(String resourceGroupName, * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return createDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).block(); + public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return createDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) + .block(); } /** @@ -2398,6 +2599,7 @@ public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String priv * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp Resource create parameters. * @param context The context to associate with this operation. @@ -2407,9 +2609,10 @@ public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String priv * @return nSX DHCP. */ @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 WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return createDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, + context).block(); } /** @@ -2417,6 +2620,7 @@ public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String priv * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2426,7 +2630,8 @@ public WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String priv */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + 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.")); @@ -2443,6 +2648,10 @@ private Mono>> updateDhcpWithResponseAsync(String reso 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.")); } @@ -2455,8 +2664,8 @@ private Mono>> updateDhcpWithResponseAsync(String reso final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, - workloadNetworkDhcp, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, workloadNetworkDhcp, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2465,6 +2674,7 @@ private Mono>> updateDhcpWithResponseAsync(String reso * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -2475,7 +2685,8 @@ private Mono>> updateDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + 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.")); @@ -2492,6 +2703,10 @@ private Mono>> updateDhcpWithResponseAsync(String reso 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.")); } @@ -2504,8 +2719,8 @@ private Mono>> updateDhcpWithResponseAsync(String reso 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, accept, workloadNetworkDhcp, - context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + workloadNetworkDhcp, context); } /** @@ -2513,6 +2728,7 @@ private Mono>> updateDhcpWithResponseAsync(String reso * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2522,10 +2738,10 @@ private Mono>> updateDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - Mono>> mono - = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp); + Mono>> mono = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, this.client.getContext()); @@ -2536,6 +2752,7 @@ private PollerFlux, WorkloadNetworkDhcpInne * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -2546,11 +2763,11 @@ private PollerFlux, WorkloadNetworkDhcpInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDhcpInner> beginUpdateDhcpAsync( - String resourceGroupName, String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, - Context context) { + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, context); + Mono>> mono = updateDhcpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dhcpId, workloadNetworkDhcp, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDhcpInner.class, WorkloadNetworkDhcpInner.class, context); } @@ -2560,6 +2777,7 @@ private PollerFlux, WorkloadNetworkDhcpInne * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2569,9 +2787,10 @@ private PollerFlux, WorkloadNetworkDhcpInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp( - String resourceGroupName, String privateCloudName, String dhcpId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return this.beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp) + return this + .beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) .getSyncPoller(); } @@ -2580,6 +2799,7 @@ public SyncPoller, WorkloadNetworkDhcpInner * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -2590,9 +2810,11 @@ public SyncPoller, WorkloadNetworkDhcpInner */ @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) + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return this + .beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, + context) .getSyncPoller(); } @@ -2601,6 +2823,7 @@ public SyncPoller, WorkloadNetworkDhcpInner * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2610,9 +2833,9 @@ public SyncPoller, WorkloadNetworkDhcpInner */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).last() - .flatMap(this.client::getLroFinalResultOrError); + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -2620,6 +2843,7 @@ private Mono updateDhcpAsync(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. * @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. @@ -2630,9 +2854,9 @@ private Mono updateDhcpAsync(String resourceGroupName, */ @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); + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return beginUpdateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + workloadNetworkDhcp, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -2640,6 +2864,7 @@ private Mono updateDhcpAsync(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. * @param dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2648,9 +2873,10 @@ private Mono updateDhcpAsync(String resourceGroupName, * @return nSX DHCP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId, - WorkloadNetworkDhcpInner workloadNetworkDhcp) { - return updateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).block(); + public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp) { + return updateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp) + .block(); } /** @@ -2658,6 +2884,7 @@ public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String priv * * @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 dhcpId The ID of the DHCP configuration. * @param workloadNetworkDhcp The resource properties to be updated. * @param context The context to associate with this operation. @@ -2667,9 +2894,10 @@ public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String priv * @return nSX DHCP. */ @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 WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context) { + return updateDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, workloadNetworkDhcp, + context).block(); } /** @@ -2677,6 +2905,7 @@ public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String priv * * @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 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. @@ -2685,7 +2914,7 @@ public WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String priv */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId) { + 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.")); @@ -2702,13 +2931,18 @@ private Mono>> deleteDhcpWithResponseAsync(String reso 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.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2717,6 +2951,7 @@ private Mono>> deleteDhcpWithResponseAsync(String reso * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2726,7 +2961,7 @@ private Mono>> deleteDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteDhcpWithResponseAsync(String resourceGroupName, - String privateCloudName, String dhcpId, Context context) { + 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.")); @@ -2743,13 +2978,18 @@ private Mono>> deleteDhcpWithResponseAsync(String reso 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.deleteDhcp(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dhcpId, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, accept, + context); } /** @@ -2757,6 +2997,7 @@ private Mono>> deleteDhcpWithResponseAsync(String reso * * @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 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. @@ -2765,9 +3006,9 @@ private Mono>> deleteDhcpWithResponseAsync(String reso */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId) { + String workloadNetworkName, String dhcpId) { Mono>> mono - = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId); + = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2777,6 +3018,7 @@ private PollerFlux, Void> beginDeleteDhcpAsync(String resourceG * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2786,10 +3028,10 @@ private PollerFlux, Void> beginDeleteDhcpAsync(String resourceG */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteDhcpAsync(String resourceGroupName, String privateCloudName, - String dhcpId, Context context) { + String workloadNetworkName, String dhcpId, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, dhcpId, context); + = deleteDhcpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -2799,6 +3041,7 @@ private PollerFlux, Void> beginDeleteDhcpAsync(String resourceG * * @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 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. @@ -2807,8 +3050,9 @@ private PollerFlux, Void> beginDeleteDhcpAsync(String resourceG */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, - String dhcpId) { - return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).getSyncPoller(); + String workloadNetworkName, String dhcpId) { + return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId) + .getSyncPoller(); } /** @@ -2816,6 +3060,7 @@ public SyncPoller, Void> beginDeleteDhcp(String resourceGroupNa * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2825,8 +3070,9 @@ public SyncPoller, Void> beginDeleteDhcp(String resourceGroupNa */ @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(); + String workloadNetworkName, String dhcpId, Context context) { + return this.beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context) + .getSyncPoller(); } /** @@ -2834,6 +3080,7 @@ public SyncPoller, Void> beginDeleteDhcp(String resourceGroupNa * * @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 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. @@ -2841,8 +3088,9 @@ public SyncPoller, Void> beginDeleteDhcp(String resourceGroupNa * @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 deleteDhcpAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2851,6 +3099,7 @@ private Mono deleteDhcpAsync(String resourceGroupName, String privateCloud * * @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 dhcpId The ID of the DHCP configuration. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2859,9 +3108,9 @@ 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 deleteDhcpAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId, Context context) { + return beginDeleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2870,14 +3119,16 @@ private Mono deleteDhcpAsync(String resourceGroupName, String privateCloud * * @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 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 deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId) { - deleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).block(); + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + deleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId).block(); } /** @@ -2885,6 +3136,7 @@ public void deleteDhcp(String resourceGroupName, String privateCloudName, 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. * @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. @@ -2892,8 +3144,9 @@ public void deleteDhcp(String resourceGroupName, String privateCloudName, String * @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 deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + Context context) { + deleteDhcpAsync(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context).block(); } /** @@ -2901,6 +3154,7 @@ public void deleteDhcp(String resourceGroupName, String privateCloudName, 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. @@ -2909,7 +3163,7 @@ public void deleteDhcp(String resourceGroupName, String privateCloudName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listGatewaysSinglePageAsync(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2926,10 +3180,15 @@ private Mono> listGatewaysSinglePageA 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.listGateways(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + 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())); @@ -2940,6 +3199,7 @@ private Mono> listGatewaysSinglePageA * * @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. @@ -2949,7 +3209,7 @@ private Mono> listGatewaysSinglePageA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listGatewaysSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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.")); @@ -2966,11 +3226,15 @@ private Mono> listGatewaysSinglePageA 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 .listGateways(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -2980,15 +3244,17 @@ private Mono> listGatewaysSinglePageA * * @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 WorkloadNetworkGateway list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listGatewaysAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName), + private PagedFlux listGatewaysAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listGatewaysNextSinglePageAsync(nextLink)); } @@ -2997,6 +3263,7 @@ private PagedFlux listGatewaysAsync(String resource * * @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. @@ -3005,8 +3272,9 @@ private PagedFlux listGatewaysAsync(String resource */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listGatewaysAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, context), + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listGatewaysSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listGatewaysNextSinglePageAsync(nextLink, context)); } @@ -3015,14 +3283,16 @@ private PagedFlux listGatewaysAsync(String resource * * @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 WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGateways(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName)); + public PagedIterable listGateways(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -3030,6 +3300,7 @@ public PagedIterable listGateways(String resourceGr * * @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. @@ -3038,8 +3309,9 @@ public PagedIterable listGateways(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listGateways(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listGatewaysAsync(resourceGroupName, privateCloudName, context)); + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listGatewaysAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -3047,6 +3319,7 @@ public PagedIterable listGateways(String resourceGr * * @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 ManagementException thrown if the request is rejected by server. @@ -3055,7 +3328,7 @@ public PagedIterable listGateways(String resourceGr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getGatewayWithResponseAsync(String resourceGroupName, - String privateCloudName, String gatewayId) { + 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.")); @@ -3072,13 +3345,18 @@ private Mono> getGatewayWithResponseAsync( 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 (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)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3087,6 +3365,7 @@ private Mono> getGatewayWithResponseAsync( * * @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. @@ -3096,7 +3375,7 @@ private Mono> getGatewayWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getGatewayWithResponseAsync(String resourceGroupName, - String privateCloudName, String gatewayId, Context context) { + 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.")); @@ -3113,13 +3392,18 @@ private Mono> getGatewayWithResponseAsync( 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 (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); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, + accept, context); } /** @@ -3127,6 +3411,7 @@ private Mono> getGatewayWithResponseAsync( * * @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 ManagementException thrown if the request is rejected by server. @@ -3135,8 +3420,8 @@ private Mono> getGatewayWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getGatewayAsync(String resourceGroupName, String privateCloudName, - String gatewayId) { - return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, gatewayId) + String workloadNetworkName, String gatewayId) { + return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -3145,6 +3430,7 @@ private Mono getGatewayAsync(String resourceGroupNa * * @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. @@ -3154,8 +3440,9 @@ private Mono getGatewayAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getGatewayWithResponse(String resourceGroupName, - String privateCloudName, String gatewayId, Context context) { - return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, gatewayId, context).block(); + String privateCloudName, String workloadNetworkName, String gatewayId, Context context) { + return getGatewayWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, context) + .block(); } /** @@ -3163,6 +3450,7 @@ public Response getGatewayWithResponse(String resou * * @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 ManagementException thrown if the request is rejected by server. @@ -3170,8 +3458,10 @@ public Response getGatewayWithResponse(String resou * @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 WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String gatewayId) { + return getGatewayWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, gatewayId, Context.NONE) + .getValue(); } /** @@ -3179,6 +3469,7 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p * * @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. @@ -3186,8 +3477,8 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listPortMirroringSinglePageAsync(String resourceGroupName, String privateCloudName) { + 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.")); @@ -3204,10 +3495,15 @@ 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)) + 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())); @@ -3218,6 +3514,7 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p * * @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. @@ -3226,8 +3523,8 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listPortMirroringSinglePageAsync(String resourceGroupName, String privateCloudName, 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.")); @@ -3244,11 +3541,15 @@ 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"; context = this.client.mergeContext(context); return service .listPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -3258,6 +3559,7 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p * * @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. @@ -3266,8 +3568,9 @@ public WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String p */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listPortMirroringAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName), + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listPortMirroringNextSinglePageAsync(nextLink)); } @@ -3276,6 +3579,7 @@ private PagedFlux listPortMirroringAsync(Stri * * @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. @@ -3285,8 +3589,9 @@ private PagedFlux listPortMirroringAsync(Stri */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listPortMirroringAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, context), + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listPortMirroringSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listPortMirroringNextSinglePageAsync(nextLink, context)); } @@ -3295,6 +3600,7 @@ private PagedFlux listPortMirroringAsync(Stri * * @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. @@ -3303,8 +3609,8 @@ private PagedFlux listPortMirroringAsync(Stri */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName)); + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -3312,6 +3618,7 @@ public PagedIterable listPortMirroring(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. * @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. @@ -3321,8 +3628,9 @@ public PagedIterable listPortMirroring(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listPortMirroring(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listPortMirroringAsync(resourceGroupName, privateCloudName, context)); + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -3330,6 +3638,7 @@ public PagedIterable listPortMirroring(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. * @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. @@ -3337,8 +3646,8 @@ public PagedIterable listPortMirroring(String * @return a WorkloadNetworkPortMirroring 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> 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.")); @@ -3355,6 +3664,10 @@ public PagedIterable listPortMirroring(String 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.")); @@ -3362,7 +3675,8 @@ public PagedIterable listPortMirroring(String 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)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3371,6 +3685,7 @@ public PagedIterable listPortMirroring(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. * @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. @@ -3380,7 +3695,8 @@ public PagedIterable listPortMirroring(String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getPortMirroringWithResponseAsync( - String resourceGroupName, String privateCloudName, String portMirroringId, Context context) { + 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.")); @@ -3397,6 +3713,10 @@ private Mono> getPortMirroringWithRe 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.")); @@ -3404,7 +3724,8 @@ private Mono> getPortMirroringWithRe 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); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, context); } /** @@ -3412,6 +3733,7 @@ private Mono> getPortMirroringWithRe * * @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 ManagementException thrown if the request is rejected by server. @@ -3420,9 +3742,9 @@ private Mono> getPortMirroringWithRe */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId) { - return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, portMirroringId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + String privateCloudName, String workloadNetworkName, String portMirroringId) { + return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -3430,6 +3752,7 @@ private Mono getPortMirroringAsync(String res * * @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. @@ -3439,8 +3762,9 @@ private Mono getPortMirroringAsync(String res */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getPortMirroringWithResponse(String resourceGroupName, - String privateCloudName, String portMirroringId, Context context) { - return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, portMirroringId, context).block(); + String privateCloudName, String workloadNetworkName, String portMirroringId, Context context) { + return getPortMirroringWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, context).block(); } /** @@ -3448,6 +3772,7 @@ public Response getPortMirroringWithResponse( * * @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 ManagementException thrown if the request is rejected by server. @@ -3456,9 +3781,9 @@ public Response getPortMirroringWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId) { - return getPortMirroringWithResponse(resourceGroupName, privateCloudName, portMirroringId, Context.NONE) - .getValue(); + String workloadNetworkName, String portMirroringId) { + return getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + Context.NONE).getValue(); } /** @@ -3466,6 +3791,7 @@ public WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupNa * * @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. @@ -3475,7 +3801,7 @@ public WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3493,6 +3819,10 @@ private Mono>> createPortMirroringWithResponseAsync(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.")); + } if (portMirroringId == null) { return Mono .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); @@ -3506,8 +3836,8 @@ private Mono>> createPortMirroringWithResponseAsync(St final String accept = "application/json"; return FluxUtil .withContext(context -> service.createPortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, accept, - workloadNetworkPortMirroring, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, workloadNetworkPortMirroring, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3516,6 +3846,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3526,8 +3857,8 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createPortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { + 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.")); @@ -3544,6 +3875,10 @@ private Mono>> createPortMirroringWithResponseAsync(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.")); + } if (portMirroringId == null) { return Mono .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); @@ -3557,8 +3892,8 @@ private Mono>> createPortMirroringWithResponseAsync(St 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, accept, - workloadNetworkPortMirroring, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, workloadNetworkPortMirroring, context); } /** @@ -3566,6 +3901,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3575,10 +3911,10 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring); + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, WorkloadNetworkPortMirroringInner.class, this.client.getContext()); @@ -3589,6 +3925,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3599,11 +3936,11 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + beginCreatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { context = this.client.mergeContext(context); Mono>> mono = createPortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring, context); + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, WorkloadNetworkPortMirroringInner.class, context); @@ -3614,6 +3951,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3623,10 +3961,10 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkPortMirroringInner> - beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { return this - .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring) .getSyncPoller(); } @@ -3636,6 +3974,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3646,10 +3985,10 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public 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) { return this - .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + .beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context) .getSyncPoller(); } @@ -3659,6 +3998,7 @@ private Mono>> createPortMirroringWithResponseAsync(St * * @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. @@ -3668,9 +4008,9 @@ private Mono>> createPortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3679,6 +4019,7 @@ private Mono createPortMirroringAsync(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. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @param context The context to associate with this operation. @@ -3689,9 +4030,9 @@ private Mono createPortMirroringAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createPortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { - return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return beginCreatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3700,6 +4041,7 @@ private Mono createPortMirroringAsync(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. * @param portMirroringId ID of the NSX port mirroring profile. * @param workloadNetworkPortMirroring Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3709,8 +4051,9 @@ private Mono createPortMirroringAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return createPortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return createPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring).block(); } @@ -3719,6 +4062,7 @@ public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGrou * * @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. @@ -3729,8 +4073,9 @@ public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { - return createPortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return createPortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context).block(); } @@ -3739,6 +4084,7 @@ public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGrou * * @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. @@ -3748,7 +4094,7 @@ public WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -3766,6 +4112,10 @@ private Mono>> updatePortMirroringWithResponseAsync(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.")); + } if (portMirroringId == null) { return Mono .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); @@ -3779,8 +4129,8 @@ private Mono>> updatePortMirroringWithResponseAsync(St final String accept = "application/json"; return FluxUtil .withContext(context -> service.updatePortMirroring(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, portMirroringId, accept, - workloadNetworkPortMirroring, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, accept, workloadNetworkPortMirroring, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -3789,6 +4139,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3799,8 +4150,8 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updatePortMirroringWithResponseAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { + 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.")); @@ -3817,6 +4168,10 @@ private Mono>> updatePortMirroringWithResponseAsync(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.")); + } if (portMirroringId == null) { return Mono .error(new IllegalArgumentException("Parameter portMirroringId is required and cannot be null.")); @@ -3830,8 +4185,8 @@ private Mono>> updatePortMirroringWithResponseAsync(St 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, accept, - workloadNetworkPortMirroring, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, + accept, workloadNetworkPortMirroring, context); } /** @@ -3839,6 +4194,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3848,10 +4204,10 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring); + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, WorkloadNetworkPortMirroringInner.class, this.client.getContext()); @@ -3862,6 +4218,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3872,11 +4229,11 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + beginUpdatePortMirroringAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { context = this.client.mergeContext(context); Mono>> mono = updatePortMirroringWithResponseAsync(resourceGroupName, - privateCloudName, portMirroringId, workloadNetworkPortMirroring, context); + privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPortMirroringInner.class, WorkloadNetworkPortMirroringInner.class, context); @@ -3887,6 +4244,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3896,10 +4254,10 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkPortMirroringInner> - beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId, - WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { return this - .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring) .getSyncPoller(); } @@ -3909,6 +4267,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3919,10 +4278,10 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public 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) { return this - .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + .beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context) .getSyncPoller(); } @@ -3932,6 +4291,7 @@ private Mono>> updatePortMirroringWithResponseAsync(St * * @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. @@ -3941,9 +4301,9 @@ private Mono>> updatePortMirroringWithResponseAsync(St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updatePortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3952,6 +4312,7 @@ private Mono updatePortMirroringAsync(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. * @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. @@ -3962,9 +4323,9 @@ private Mono updatePortMirroringAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updatePortMirroringAsync(String resourceGroupName, - String privateCloudName, String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, - Context context) { - return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String privateCloudName, String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return beginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context).last().flatMap(this.client::getLroFinalResultOrError); } @@ -3973,6 +4334,7 @@ private Mono updatePortMirroringAsync(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. * @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. @@ -3982,8 +4344,9 @@ private Mono updatePortMirroringAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { - return updatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring) { + return updatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring).block(); } @@ -3992,6 +4355,7 @@ public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGrou * * @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. @@ -4002,8 +4366,9 @@ public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName, - String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { - return updatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, + String workloadNetworkName, String portMirroringId, + WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context) { + return updatePortMirroringAsync(resourceGroupName, privateCloudName, workloadNetworkName, portMirroringId, workloadNetworkPortMirroring, context).block(); } @@ -4241,6 +4606,7 @@ public void deletePortMirroring(String resourceGroupName, String portMirroringId * * @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. @@ -4249,7 +4615,7 @@ public void deletePortMirroring(String resourceGroupName, String portMirroringId */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4266,10 +4632,15 @@ private Mono> listVMGroupsSinglePageA 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.listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + 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())); @@ -4280,6 +4651,7 @@ private Mono> listVMGroupsSinglePageA * * @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. @@ -4289,7 +4661,7 @@ private Mono> listVMGroupsSinglePageA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listVMGroupsSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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.")); @@ -4306,11 +4678,15 @@ private Mono> listVMGroupsSinglePageA 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 .listVMGroups(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, privateCloudName, accept, context) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -4320,15 +4696,17 @@ private Mono> listVMGroupsSinglePageA * * @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 WorkloadNetworkVMGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listVMGroupsAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName), + private PagedFlux listVMGroupsAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listVMGroupsNextSinglePageAsync(nextLink)); } @@ -4337,6 +4715,7 @@ private PagedFlux listVMGroupsAsync(String resource * * @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. @@ -4345,8 +4724,9 @@ private PagedFlux listVMGroupsAsync(String resource */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listVMGroupsAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, context), + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listVMGroupsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listVMGroupsNextSinglePageAsync(nextLink, context)); } @@ -4355,14 +4735,16 @@ private PagedFlux listVMGroupsAsync(String resource * * @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 WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName)); + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -4370,6 +4752,7 @@ public PagedIterable listVMGroups(String resourceGr * * @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. @@ -4378,8 +4761,9 @@ public PagedIterable listVMGroups(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listVMGroupsAsync(resourceGroupName, privateCloudName, context)); + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listVMGroupsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -4387,6 +4771,7 @@ public PagedIterable listVMGroups(String resourceGr * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4395,7 +4780,7 @@ public PagedIterable listVMGroups(String resourceGr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId) { + 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.")); @@ -4412,13 +4797,18 @@ private Mono> getVMGroupWithResponseAsync( 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 (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)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4427,6 +4817,7 @@ private Mono> getVMGroupWithResponseAsync( * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4436,7 +4827,7 @@ private Mono> getVMGroupWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, Context context) { + 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.")); @@ -4453,13 +4844,18 @@ private Mono> getVMGroupWithResponseAsync( 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 (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); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, context); } /** @@ -4467,6 +4863,7 @@ private Mono> getVMGroupWithResponseAsync( * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4475,8 +4872,8 @@ private Mono> getVMGroupWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId) { - return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId) + String workloadNetworkName, String vmGroupId) { + return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -4485,6 +4882,7 @@ private Mono getVMGroupAsync(String resourceGroupNa * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4494,8 +4892,9 @@ private Mono getVMGroupAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getVMGroupWithResponse(String resourceGroupName, - String privateCloudName, String vmGroupId, Context context) { - return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, context).block(); + String privateCloudName, String workloadNetworkName, String vmGroupId, Context context) { + return getVMGroupWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, context) + .block(); } /** @@ -4503,6 +4902,7 @@ public Response getVMGroupWithResponse(String resou * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4510,8 +4910,10 @@ public Response getVMGroupWithResponse(String resou * @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 WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId) { + return getVMGroupWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, Context.NONE) + .getValue(); } /** @@ -4519,6 +4921,7 @@ public WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String p * * @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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4528,7 +4931,7 @@ public WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String p */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { + 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.")); @@ -4545,6 +4948,10 @@ private Mono>> createVMGroupWithResponseAsync(String r 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 (vmGroupId == null) { return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } @@ -4556,8 +4963,8 @@ private Mono>> createVMGroupWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.createVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, accept, resource, - context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4566,6 +4973,7 @@ private Mono>> createVMGroupWithResponseAsync(String r * * @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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -4576,7 +4984,8 @@ private Mono>> createVMGroupWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { + String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4593,6 +5002,10 @@ private Mono>> createVMGroupWithResponseAsync(String r 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 (vmGroupId == null) { return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } @@ -4604,7 +5017,8 @@ private Mono>> createVMGroupWithResponseAsync(String r 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, accept, resource, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, resource, context); } /** @@ -4612,6 +5026,7 @@ private Mono>> createVMGroupWithResponseAsync(String r * * @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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4621,9 +5036,10 @@ private Mono>> createVMGroupWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { - Mono>> mono - = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, resource); + 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()); @@ -4634,6 +5050,7 @@ private PollerFlux, WorkloadNetworkVMGro * * @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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -4644,11 +5061,11 @@ private PollerFlux, WorkloadNetworkVMGro */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkVMGroupInner> beginCreateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource, - Context context) { + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, resource, context); + Mono>> mono = createVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, resource, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, context); @@ -4659,6 +5076,7 @@ private PollerFlux, WorkloadNetworkVMGro * * @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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4668,8 +5086,11 @@ private PollerFlux, WorkloadNetworkVMGro */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { - return this.beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource).getSyncPoller(); + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource) { + return this + .beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) + .getSyncPoller(); } /** @@ -4677,6 +5098,7 @@ public SyncPoller, WorkloadNetworkVMGrou * * @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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -4687,9 +5109,11 @@ public SyncPoller, WorkloadNetworkVMGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner resource, - Context context) { - return this.beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource, context) + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, + WorkloadNetworkVMGroupInner resource, Context context) { + return this + .beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context) .getSyncPoller(); } @@ -4698,6 +5122,7 @@ public SyncPoller, WorkloadNetworkVMGrou * * @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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4707,8 +5132,9 @@ public SyncPoller, WorkloadNetworkVMGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner resource) { - return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource).last() + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { + return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -4717,6 +5143,7 @@ private Mono createVMGroupAsync(String resourceGrou * * @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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -4727,9 +5154,9 @@ private Mono createVMGroupAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createVMGroupAsync(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { - return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { + return beginCreateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -4737,6 +5164,7 @@ private Mono createVMGroupAsync(String resourceGrou * * @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 resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4746,8 +5174,9 @@ private Mono createVMGroupAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner resource) { - return createVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource).block(); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource) { + return createVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource) + .block(); } /** @@ -4755,6 +5184,7 @@ public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, Strin * * @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 resource Resource create parameters. * @param context The context to associate with this operation. @@ -4765,8 +5195,9 @@ public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { - return createVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, resource, context).block(); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context) { + return createVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, resource, + context).block(); } /** @@ -4774,6 +5205,7 @@ public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, Strin * * @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. @@ -4783,7 +5215,8 @@ public WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + 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.")); @@ -4800,6 +5233,10 @@ private Mono>> updateVMGroupWithResponseAsync(String r 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 (vmGroupId == null) { return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } @@ -4812,8 +5249,8 @@ private Mono>> updateVMGroupWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateVMGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, vmGroupId, accept, - workloadNetworkVMGroup, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, workloadNetworkVMGroup, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -4822,6 +5259,7 @@ private Mono>> updateVMGroupWithResponseAsync(String r * * @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. @@ -4832,8 +5270,8 @@ private Mono>> updateVMGroupWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateVMGroupWithResponseAsync(String resourceGroupName, - String privateCloudName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, - Context context) { + 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.")); @@ -4850,6 +5288,10 @@ private Mono>> updateVMGroupWithResponseAsync(String r 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 (vmGroupId == null) { return Mono.error(new IllegalArgumentException("Parameter vmGroupId is required and cannot be null.")); } @@ -4862,8 +5304,8 @@ private Mono>> updateVMGroupWithResponseAsync(String r 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, accept, - workloadNetworkVMGroup, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + accept, workloadNetworkVMGroup, context); } /** @@ -4871,6 +5313,7 @@ private Mono>> updateVMGroupWithResponseAsync(String r * * @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. @@ -4880,10 +5323,10 @@ private Mono>> updateVMGroupWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - Mono>> mono - = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup); + Mono>> mono = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, vmGroupId, workloadNetworkVMGroup); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, this.client.getContext()); @@ -4894,6 +5337,7 @@ private PollerFlux, WorkloadNetworkVMGro * * @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. @@ -4904,11 +5348,11 @@ private PollerFlux, WorkloadNetworkVMGro */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkVMGroupInner> beginUpdateVMGroupAsync( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { context = this.client.mergeContext(context); Mono>> mono = updateVMGroupWithResponseAsync(resourceGroupName, privateCloudName, - vmGroupId, workloadNetworkVMGroup, context); + workloadNetworkName, vmGroupId, workloadNetworkVMGroup, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkVMGroupInner.class, WorkloadNetworkVMGroupInner.class, context); @@ -4919,6 +5363,7 @@ private PollerFlux, WorkloadNetworkVMGro * * @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. @@ -4928,9 +5373,11 @@ private PollerFlux, WorkloadNetworkVMGro */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return this.beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup) + return this + .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup) .getSyncPoller(); } @@ -4939,6 +5386,7 @@ public SyncPoller, WorkloadNetworkVMGrou * * @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. @@ -4949,10 +5397,11 @@ public SyncPoller, WorkloadNetworkVMGrou */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup( - String resourceGroupName, String privateCloudName, String vmGroupId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context) { return this - .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, context) + .beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context) .getSyncPoller(); } @@ -4961,6 +5410,7 @@ public SyncPoller, WorkloadNetworkVMGrou * * @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. @@ -4970,9 +5420,9 @@ public SyncPoller, WorkloadNetworkVMGrou */ @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); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -4980,6 +5430,7 @@ private Mono updateVMGroupAsync(String resourceGrou * * @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. @@ -4990,10 +5441,10 @@ private Mono updateVMGroupAsync(String resourceGrou */ @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); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, + Context context) { + return beginUpdateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -5001,6 +5452,7 @@ private Mono updateVMGroupAsync(String resourceGrou * * @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. @@ -5010,8 +5462,9 @@ private Mono updateVMGroupAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, - String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { - return updateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).block(); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup) { + return updateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup).block(); } /** @@ -5019,6 +5472,7 @@ public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, Strin * * @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. @@ -5029,9 +5483,10 @@ public WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, Strin */ @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(); + String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup, + Context context) { + return updateVMGroupAsync(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId, + workloadNetworkVMGroup, context).block(); } /** @@ -5263,6 +5718,7 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5270,8 +5726,8 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesSinglePageAsync(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.")); @@ -5288,10 +5744,15 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri 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.listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, accept, context)) + 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())); @@ -5302,6 +5763,7 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, 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. @@ -5310,8 +5772,8 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listVirtualMachinesSinglePageAsync(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.")); @@ -5328,11 +5790,14 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri 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 - .listVirtualMachines(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)); } @@ -5342,6 +5807,7 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5350,8 +5816,9 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listVirtualMachinesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName), + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink)); } @@ -5360,6 +5827,7 @@ private PagedFlux listVirtualMachinesAsync(S * * @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. @@ -5369,8 +5837,9 @@ private PagedFlux listVirtualMachinesAsync(S */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listVirtualMachinesAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, context), + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listVirtualMachinesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink, context)); } @@ -5379,6 +5848,7 @@ private PagedFlux listVirtualMachinesAsync(S * * @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. @@ -5387,8 +5857,8 @@ private PagedFlux listVirtualMachinesAsync(S */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName)); + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -5396,6 +5866,7 @@ public PagedIterable listVirtualMachines(Str * * @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. @@ -5405,8 +5876,9 @@ public PagedIterable listVirtualMachines(Str */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listVirtualMachinesAsync(resourceGroupName, privateCloudName, context)); + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listVirtualMachinesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -5414,6 +5886,7 @@ public PagedIterable listVirtualMachines(Str * * @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 ManagementException thrown if the request is rejected by server. @@ -5421,8 +5894,8 @@ public PagedIterable listVirtualMachines(Str * @return a WorkloadNetworkVirtualMachine along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getVirtualMachineWithResponseAsync(String resourceGroupName, String privateCloudName, String virtualMachineId) { + 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.")); @@ -5439,6 +5912,10 @@ public PagedIterable listVirtualMachines(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 (virtualMachineId == null) { return Mono .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); @@ -5446,8 +5923,8 @@ public PagedIterable listVirtualMachines(Str 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)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5456,6 +5933,7 @@ public PagedIterable listVirtualMachines(Str * * @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. @@ -5465,7 +5943,8 @@ public PagedIterable listVirtualMachines(Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getVirtualMachineWithResponseAsync( - String resourceGroupName, String privateCloudName, String virtualMachineId, Context context) { + 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.")); @@ -5482,6 +5961,10 @@ private Mono> getVirtualMachineWith 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 (virtualMachineId == null) { return Mono .error(new IllegalArgumentException("Parameter virtualMachineId is required and cannot be null.")); @@ -5489,7 +5972,8 @@ private Mono> getVirtualMachineWith 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); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + accept, context); } /** @@ -5497,6 +5981,7 @@ private Mono> getVirtualMachineWith * * @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 ManagementException thrown if the request is rejected by server. @@ -5505,9 +5990,9 @@ private Mono> getVirtualMachineWith */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getVirtualMachineAsync(String resourceGroupName, - String privateCloudName, String virtualMachineId) { - return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, virtualMachineId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + String privateCloudName, String workloadNetworkName, String virtualMachineId) { + return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -5515,6 +6000,7 @@ private Mono getVirtualMachineAsync(String r * * @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. @@ -5524,9 +6010,9 @@ private Mono getVirtualMachineAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context) { - return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, virtualMachineId, context) - .block(); + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context) { + return getVirtualMachineWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, + virtualMachineId, context).block(); } /** @@ -5534,6 +6020,7 @@ public Response getVirtualMachineWithRespons * * @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 ManagementException thrown if the request is rejected by server. @@ -5542,9 +6029,9 @@ public Response getVirtualMachineWithRespons */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId) { - return getVirtualMachineWithResponse(resourceGroupName, privateCloudName, virtualMachineId, Context.NONE) - .getValue(); + String workloadNetworkName, String virtualMachineId) { + return getVirtualMachineWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + Context.NONE).getValue(); } /** @@ -5552,6 +6039,7 @@ public WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroup * * @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. @@ -5560,7 +6048,7 @@ public WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroup */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5577,10 +6065,15 @@ 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)) + 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())); @@ -5591,6 +6084,7 @@ private Mono> listDnsServicesSingl * * @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. @@ -5600,7 +6094,7 @@ private Mono> listDnsServicesSingl */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDnsServicesSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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.")); @@ -5617,11 +6111,15 @@ 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) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -5631,6 +6129,7 @@ private Mono> listDnsServicesSingl * * @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. @@ -5638,8 +6137,9 @@ private Mono> listDnsServicesSingl */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDnsServicesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName), + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listDnsServicesNextSinglePageAsync(nextLink)); } @@ -5648,6 +6148,7 @@ private PagedFlux listDnsServicesAsync(String re * * @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. @@ -5656,8 +6157,9 @@ private PagedFlux listDnsServicesAsync(String re */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDnsServicesAsync(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedFlux<>(() -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, context), + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDnsServicesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listDnsServicesNextSinglePageAsync(nextLink, context)); } @@ -5666,6 +6168,7 @@ private PagedFlux listDnsServicesAsync(String re * * @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. @@ -5674,8 +6177,8 @@ private PagedFlux listDnsServicesAsync(String re */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDnsServices(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName)); + String privateCloudName, String workloadNetworkName) { + return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -5683,6 +6186,7 @@ public PagedIterable listDnsServices(String reso * * @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. @@ -5692,8 +6196,9 @@ public PagedIterable listDnsServices(String reso */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDnsServices(String resourceGroupName, - String privateCloudName, Context context) { - return new PagedIterable<>(listDnsServicesAsync(resourceGroupName, privateCloudName, context)); + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedIterable<>( + listDnsServicesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -5701,6 +6206,7 @@ public PagedIterable listDnsServices(String reso * * @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. @@ -5709,7 +6215,7 @@ public PagedIterable listDnsServices(String reso */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId) { + 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.")); @@ -5726,13 +6232,18 @@ private Mono> getDnsServiceWithResponse 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, dnsServiceId, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5741,6 +6252,7 @@ private Mono> getDnsServiceWithResponse * * @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. @@ -5750,7 +6262,7 @@ private Mono> getDnsServiceWithResponse */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { + 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.")); @@ -5767,13 +6279,18 @@ private Mono> getDnsServiceWithResponse 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, dnsServiceId, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, context); } /** @@ -5781,6 +6298,7 @@ private Mono> getDnsServiceWithResponse * * @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. @@ -5789,8 +6307,8 @@ private Mono> getDnsServiceWithResponse */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getDnsServiceAsync(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, dnsServiceId) + String workloadNetworkName, String dnsServiceId) { + return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -5799,6 +6317,7 @@ private Mono getDnsServiceAsync(String resourceG * * @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. @@ -5808,8 +6327,9 @@ private Mono getDnsServiceAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { - return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, dnsServiceId, context).block(); + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context) { + return getDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + context).block(); } /** @@ -5817,6 +6337,7 @@ public Response getDnsServiceWithResponse(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. * @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. @@ -5825,8 +6346,9 @@ public Response getDnsServiceWithResponse(String */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - return getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, Context.NONE).getValue(); + String workloadNetworkName, String dnsServiceId) { + return getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + Context.NONE).getValue(); } /** @@ -5834,6 +6356,7 @@ public WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, St * * @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. @@ -5843,7 +6366,8 @@ public WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + 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.")); @@ -5860,6 +6384,10 @@ private Mono>> createDnsServiceWithResponseAsync(Strin 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.")); } @@ -5872,8 +6400,8 @@ private Mono>> createDnsServiceWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.createDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, accept, - workloadNetworkDnsService, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -5882,6 +6410,7 @@ private Mono>> createDnsServiceWithResponseAsync(Strin * * @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. @@ -5892,8 +6421,8 @@ private Mono>> createDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { + 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.")); @@ -5910,6 +6439,10 @@ private Mono>> createDnsServiceWithResponseAsync(Strin 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.")); } @@ -5922,8 +6455,8 @@ private Mono>> createDnsServiceWithResponseAsync(Strin 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, accept, - workloadNetworkDnsService, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context); } /** @@ -5931,6 +6464,7 @@ private Mono>> createDnsServiceWithResponseAsync(Strin * * @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. @@ -5940,10 +6474,10 @@ private Mono>> createDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsServiceInner> - beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService); + workloadNetworkName, dnsServiceId, workloadNetworkDnsService); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, this.client.getContext()); @@ -5954,6 +6488,7 @@ private Mono>> createDnsServiceWithResponseAsync(Strin * * @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. @@ -5964,11 +6499,11 @@ private Mono>> createDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsServiceInner> - beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + beginCreateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { context = this.client.mergeContext(context); Mono>> mono = createDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService, context); + workloadNetworkName, dnsServiceId, workloadNetworkDnsService, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, context); @@ -5979,6 +6514,7 @@ private Mono>> createDnsServiceWithResponseAsync(Strin * * @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. @@ -5988,10 +6524,11 @@ private Mono>> createDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { return this - .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService) .getSyncPoller(); } @@ -6000,6 +6537,7 @@ public SyncPoller, WorkloadNetworkDns * * @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. @@ -6010,11 +6548,11 @@ public SyncPoller, WorkloadNetworkDns */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { return this - .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context) + .beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context) .getSyncPoller(); } @@ -6023,6 +6561,7 @@ public SyncPoller, WorkloadNetworkDns * * @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. @@ -6032,10 +6571,10 @@ public SyncPoller, WorkloadNetworkDns */ @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); + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -6043,6 +6582,7 @@ private Mono createDnsServiceAsync(String resour * * @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. @@ -6053,10 +6593,10 @@ private Mono createDnsServiceAsync(String resour */ @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); + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return beginCreateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -6064,6 +6604,7 @@ private Mono createDnsServiceAsync(String resour * * @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. @@ -6073,9 +6614,9 @@ private Mono createDnsServiceAsync(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return createDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) - .block(); + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return createDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).block(); } /** @@ -6083,6 +6624,7 @@ public WorkloadNetworkDnsServiceInner createDnsService(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. * @param dnsServiceId ID of the DNS service. * @param workloadNetworkDnsService Resource create parameters. * @param context The context to associate with this operation. @@ -6093,9 +6635,10 @@ public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { - return createDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context).block(); + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context) { + return createDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).block(); } /** @@ -6103,6 +6646,7 @@ public WorkloadNetworkDnsServiceInner createDnsService(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. * @param dnsServiceId ID of the DNS service. * @param workloadNetworkDnsService The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6112,7 +6656,8 @@ public WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + 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.")); @@ -6129,6 +6674,10 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin 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.")); } @@ -6141,8 +6690,8 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateDnsService(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsServiceId, accept, - workloadNetworkDnsService, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6151,6 +6700,7 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin * * @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. @@ -6161,8 +6711,8 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDnsServiceWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, - Context context) { + 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.")); @@ -6179,6 +6729,10 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin 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.")); } @@ -6191,8 +6745,8 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin 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, accept, - workloadNetworkDnsService, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + accept, workloadNetworkDnsService, context); } /** @@ -6200,6 +6754,7 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin * * @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. @@ -6209,10 +6764,10 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsServiceInner> - beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService); + workloadNetworkName, dnsServiceId, workloadNetworkDnsService); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, this.client.getContext()); @@ -6223,6 +6778,7 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin * * @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. @@ -6233,11 +6789,11 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsServiceInner> - beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String dnsServiceId, - WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + beginUpdateDnsServiceAsync(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { context = this.client.mergeContext(context); Mono>> mono = updateDnsServiceWithResponseAsync(resourceGroupName, privateCloudName, - dnsServiceId, workloadNetworkDnsService, context); + workloadNetworkName, dnsServiceId, workloadNetworkDnsService, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsServiceInner.class, WorkloadNetworkDnsServiceInner.class, context); @@ -6248,6 +6804,7 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin * * @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. @@ -6257,10 +6814,11 @@ private Mono>> updateDnsServiceWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { return this - .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) + .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService) .getSyncPoller(); } @@ -6269,6 +6827,7 @@ public SyncPoller, WorkloadNetworkDns * * @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. @@ -6279,11 +6838,11 @@ public SyncPoller, WorkloadNetworkDns */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService( - String resourceGroupName, String privateCloudName, String dnsServiceId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { return this - .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context) + .beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context) .getSyncPoller(); } @@ -6292,6 +6851,7 @@ public SyncPoller, WorkloadNetworkDns * * @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. @@ -6301,10 +6861,10 @@ public SyncPoller, WorkloadNetworkDns */ @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); + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -6312,6 +6872,7 @@ private Mono updateDnsServiceAsync(String resour * * @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. @@ -6322,10 +6883,10 @@ private Mono updateDnsServiceAsync(String resour */ @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); + String privateCloudName, String workloadNetworkName, String dnsServiceId, + WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { + return beginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -6333,6 +6894,7 @@ private Mono updateDnsServiceAsync(String resour * * @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. @@ -6342,9 +6904,9 @@ private Mono updateDnsServiceAsync(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { - return updateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService) - .block(); + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { + return updateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService).block(); } /** @@ -6352,6 +6914,7 @@ public WorkloadNetworkDnsServiceInner updateDnsService(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. * @param dnsServiceId ID of the DNS service. * @param workloadNetworkDnsService The resource properties to be updated. * @param context The context to associate with this operation. @@ -6362,9 +6925,10 @@ public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context) { - return updateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, - context).block(); + String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, + Context context) { + return updateDnsServiceAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + workloadNetworkDnsService, context).block(); } /** @@ -6598,6 +7162,7 @@ public void deleteDnsService(String resourceGroupName, String dnsServiceId, Stri * * @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. @@ -6606,7 +7171,7 @@ public void deleteDnsService(String resourceGroupName, String dnsServiceId, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -6623,10 +7188,15 @@ 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)) + 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())); @@ -6637,6 +7207,7 @@ private Mono> listDnsZonesSinglePageA * * @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. @@ -6646,7 +7217,7 @@ private Mono> listDnsZonesSinglePageA */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDnsZonesSinglePageAsync(String resourceGroupName, - String privateCloudName, Context context) { + 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.")); @@ -6663,11 +7234,15 @@ 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) + resourceGroupName, privateCloudName, workloadNetworkName, accept, context) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } @@ -6677,15 +7252,17 @@ private Mono> listDnsZonesSinglePageA * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listDnsZonesAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName), + private PagedFlux listDnsZonesAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedFlux<>( + () -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), nextLink -> listDnsZonesNextSinglePageAsync(nextLink)); } @@ -6694,6 +7271,7 @@ private PagedFlux listDnsZonesAsync(String resource * * @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. @@ -6702,8 +7280,9 @@ private PagedFlux listDnsZonesAsync(String resource */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDnsZonesAsync(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedFlux<>(() -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, context), + String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listDnsZonesSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), nextLink -> listDnsZonesNextSinglePageAsync(nextLink, context)); } @@ -6712,14 +7291,16 @@ private PagedFlux listDnsZonesAsync(String resource * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName) { - return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName)); + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -6727,6 +7308,7 @@ public PagedIterable listDnsZones(String resourceGr * * @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. @@ -6735,8 +7317,9 @@ public PagedIterable listDnsZones(String resourceGr */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listDnsZonesAsync(resourceGroupName, privateCloudName, context)); + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listDnsZonesAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -6744,6 +7327,7 @@ public PagedIterable listDnsZones(String resourceGr * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6752,7 +7336,7 @@ public PagedIterable listDnsZones(String resourceGr */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId) { + 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.")); @@ -6769,13 +7353,18 @@ private Mono> getDnsZoneWithResponseAsync( 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, dnsZoneId, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6784,6 +7373,7 @@ private Mono> getDnsZoneWithResponseAsync( * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6793,7 +7383,7 @@ private Mono> getDnsZoneWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, Context context) { + 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.")); @@ -6810,13 +7400,18 @@ private Mono> getDnsZoneWithResponseAsync( 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, dnsZoneId, accept, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, context); } /** @@ -6824,6 +7419,7 @@ private Mono> getDnsZoneWithResponseAsync( * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6832,8 +7428,8 @@ private Mono> getDnsZoneWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getDnsZoneAsync(String resourceGroupName, String privateCloudName, - String dnsZoneId) { - return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId) + String workloadNetworkName, String dnsZoneId) { + return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -6842,6 +7438,7 @@ private Mono getDnsZoneAsync(String resourceGroupNa * * @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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -6851,8 +7448,9 @@ private Mono getDnsZoneAsync(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getDnsZoneWithResponse(String resourceGroupName, - String privateCloudName, String dnsZoneId, Context context) { - return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, context).block(); + String privateCloudName, String workloadNetworkName, String dnsZoneId, Context context) { + return getDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, context) + .block(); } /** @@ -6860,6 +7458,7 @@ public Response getDnsZoneWithResponse(String resou * * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -6867,8 +7466,10 @@ public Response getDnsZoneWithResponse(String resou * @return a WorkloadNetworkDnsZone. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId) { - return getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, Context.NONE).getValue(); + public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId) { + return getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, Context.NONE) + .getValue(); } /** @@ -6876,6 +7477,7 @@ public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String p * * @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. @@ -6885,7 +7487,8 @@ public WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String p */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + 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.")); @@ -6902,6 +7505,10 @@ private Mono>> createDnsZoneWithResponseAsync(String r 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.")); } @@ -6914,8 +7521,8 @@ private Mono>> createDnsZoneWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.createDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, accept, - workloadNetworkDnsZone, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -6924,6 +7531,7 @@ private Mono>> createDnsZoneWithResponseAsync(String r * * @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. * @param context The context to associate with this operation. @@ -6934,8 +7542,8 @@ private Mono>> createDnsZoneWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - Context context) { + 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.")); @@ -6952,6 +7560,10 @@ private Mono>> createDnsZoneWithResponseAsync(String r 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.")); } @@ -6964,8 +7576,8 @@ private Mono>> createDnsZoneWithResponseAsync(String r 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, accept, - workloadNetworkDnsZone, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context); } /** @@ -6973,6 +7585,7 @@ private Mono>> createDnsZoneWithResponseAsync(String r * * @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. @@ -6982,10 +7595,10 @@ private Mono>> createDnsZoneWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - Mono>> mono - = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone); + Mono>> mono = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, this.client.getContext()); @@ -6996,6 +7609,7 @@ private PollerFlux, WorkloadNetworkDnsZo * * @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. * @param context The context to associate with this operation. @@ -7006,11 +7620,11 @@ private PollerFlux, WorkloadNetworkDnsZo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsZoneInner> beginCreateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { context = this.client.mergeContext(context); Mono>> mono = createDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, - dnsZoneId, workloadNetworkDnsZone, context); + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, context); @@ -7021,6 +7635,7 @@ private PollerFlux, WorkloadNetworkDnsZo * * @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. @@ -7030,9 +7645,11 @@ private PollerFlux, WorkloadNetworkDnsZo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return this.beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone) + return this + .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone) .getSyncPoller(); } @@ -7041,6 +7658,7 @@ public SyncPoller, WorkloadNetworkDnsZon * * @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. * @param context The context to associate with this operation. @@ -7051,10 +7669,11 @@ public SyncPoller, WorkloadNetworkDnsZon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { return this - .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) + .beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context) .getSyncPoller(); } @@ -7063,6 +7682,7 @@ public SyncPoller, WorkloadNetworkDnsZon * * @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. @@ -7072,9 +7692,9 @@ public SyncPoller, WorkloadNetworkDnsZon */ @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); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -7082,6 +7702,7 @@ private Mono createDnsZoneAsync(String resourceGrou * * @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. * @param context The context to associate with this operation. @@ -7092,10 +7713,10 @@ private Mono createDnsZoneAsync(String resourceGrou */ @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); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return beginCreateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -7103,6 +7724,7 @@ private Mono createDnsZoneAsync(String resourceGrou * * @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. @@ -7112,8 +7734,9 @@ private Mono createDnsZoneAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return createDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).block(); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return createDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).block(); } /** @@ -7121,6 +7744,7 @@ public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, Strin * * @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. * @param context The context to associate with this operation. @@ -7131,9 +7755,10 @@ public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, Strin */ @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(); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return createDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).block(); } /** @@ -7141,6 +7766,7 @@ public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, Strin * * @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. @@ -7150,7 +7776,8 @@ public WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + 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.")); @@ -7167,6 +7794,10 @@ private Mono>> updateDnsZoneWithResponseAsync(String r 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.")); } @@ -7179,8 +7810,8 @@ private Mono>> updateDnsZoneWithResponseAsync(String r final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateDnsZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, dnsZoneId, accept, - workloadNetworkDnsZone, context)) + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -7189,6 +7820,7 @@ private Mono>> updateDnsZoneWithResponseAsync(String r * * @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. @@ -7199,8 +7831,8 @@ private Mono>> updateDnsZoneWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateDnsZoneWithResponseAsync(String resourceGroupName, - String privateCloudName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, - Context context) { + 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.")); @@ -7217,6 +7849,10 @@ private Mono>> updateDnsZoneWithResponseAsync(String r 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.")); } @@ -7229,8 +7865,8 @@ private Mono>> updateDnsZoneWithResponseAsync(String r 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, accept, - workloadNetworkDnsZone, context); + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + accept, workloadNetworkDnsZone, context); } /** @@ -7238,6 +7874,7 @@ private Mono>> updateDnsZoneWithResponseAsync(String r * * @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. @@ -7247,10 +7884,10 @@ private Mono>> updateDnsZoneWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - Mono>> mono - = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone); + Mono>> mono = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, this.client.getContext()); @@ -7261,6 +7898,7 @@ private PollerFlux, WorkloadNetworkDnsZo * * @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. @@ -7271,11 +7909,11 @@ private PollerFlux, WorkloadNetworkDnsZo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadNetworkDnsZoneInner> beginUpdateDnsZoneAsync( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { context = this.client.mergeContext(context); Mono>> mono = updateDnsZoneWithResponseAsync(resourceGroupName, privateCloudName, - dnsZoneId, workloadNetworkDnsZone, context); + workloadNetworkName, dnsZoneId, workloadNetworkDnsZone, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkDnsZoneInner.class, WorkloadNetworkDnsZoneInner.class, context); @@ -7286,6 +7924,7 @@ private PollerFlux, WorkloadNetworkDnsZo * * @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. @@ -7295,9 +7934,11 @@ private PollerFlux, WorkloadNetworkDnsZo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return this.beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone) + return this + .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone) .getSyncPoller(); } @@ -7306,6 +7947,7 @@ public SyncPoller, WorkloadNetworkDnsZon * * @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. @@ -7316,10 +7958,11 @@ public SyncPoller, WorkloadNetworkDnsZon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone( - String resourceGroupName, String privateCloudName, String dnsZoneId, + String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context) { return this - .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, context) + .beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context) .getSyncPoller(); } @@ -7328,6 +7971,7 @@ public SyncPoller, WorkloadNetworkDnsZon * * @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. @@ -7337,9 +7981,9 @@ public SyncPoller, WorkloadNetworkDnsZon */ @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); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -7347,6 +7991,7 @@ private Mono updateDnsZoneAsync(String resourceGrou * * @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. @@ -7357,10 +8002,10 @@ private Mono updateDnsZoneAsync(String resourceGrou */ @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); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return beginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -7368,6 +8013,7 @@ private Mono updateDnsZoneAsync(String resourceGrou * * @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. @@ -7377,8 +8023,9 @@ private Mono updateDnsZoneAsync(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, - String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { - return updateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).block(); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone) { + return updateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone).block(); } /** @@ -7386,6 +8033,7 @@ public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, Strin * * @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. @@ -7396,9 +8044,10 @@ public WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, Strin */ @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(); + String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, + Context context) { + return updateDnsZoneAsync(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + workloadNetworkDnsZone, context).block(); } /** @@ -7630,6 +8279,7 @@ public void deleteDnsZone(String resourceGroupName, String dnsZoneId, 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -7637,8 +8287,8 @@ public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String pri * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsSinglePageAsync(String resourceGroupName, - String privateCloudName) { + 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.")); @@ -7655,10 +8305,15 @@ 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)) + .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())); @@ -7669,6 +8324,7 @@ private Mono> listPublicIPsSinglePag * * @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. @@ -7677,8 +8333,8 @@ private Mono> listPublicIPsSinglePag * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsSinglePageAsync(String resourceGroupName, - String privateCloudName, 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.")); @@ -7695,11 +8351,15 @@ 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) + .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)); } @@ -7709,16 +8369,18 @@ private Mono> listPublicIPsSinglePag * * @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}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listPublicIPsAsync(String resourceGroupName, - String privateCloudName) { - return new PagedFlux<>(() -> listPublicIPsSinglePageAsync(resourceGroupName, privateCloudName), - nextLink -> listPublicIPsNextSinglePageAsync(nextLink)); + private PagedFlux listPublicIpsAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName) { + return new PagedFlux<>( + () -> listPublicIpsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName), + nextLink -> listPublicIpsNextSinglePageAsync(nextLink)); } /** @@ -7726,6 +8388,7 @@ private PagedFlux listPublicIPsAsync(String resour * * @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. @@ -7733,10 +8396,11 @@ private PagedFlux listPublicIPsAsync(String resour * @return the response of a WorkloadNetworkPublicIP 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 listPublicIpsAsync(String resourceGroupName, + String privateCloudName, String workloadNetworkName, Context context) { + return new PagedFlux<>( + () -> listPublicIpsSinglePageAsync(resourceGroupName, privateCloudName, workloadNetworkName, context), + nextLink -> listPublicIpsNextSinglePageAsync(nextLink, context)); } /** @@ -7744,6 +8408,7 @@ private PagedFlux listPublicIPsAsync(String resour * * @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. @@ -7751,9 +8416,9 @@ private PagedFlux listPublicIPsAsync(String resour * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPublicIPs(String resourceGroupName, - String privateCloudName) { - return new PagedIterable<>(listPublicIPsAsync(resourceGroupName, privateCloudName)); + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { + return new PagedIterable<>(listPublicIpsAsync(resourceGroupName, privateCloudName, workloadNetworkName)); } /** @@ -7761,6 +8426,7 @@ public PagedIterable listPublicIPs(String resource * * @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. @@ -7769,9 +8435,10 @@ public PagedIterable listPublicIPs(String resource * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context) { - return new PagedIterable<>(listPublicIPsAsync(resourceGroupName, privateCloudName, context)); + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { + return new PagedIterable<>( + listPublicIpsAsync(resourceGroupName, privateCloudName, workloadNetworkName, context)); } /** @@ -7779,6 +8446,7 @@ public PagedIterable listPublicIPs(String resource * * @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 ManagementException thrown if the request is rejected by server. @@ -7786,8 +8454,8 @@ public PagedIterable listPublicIPs(String resource * @return a WorkloadNetworkPublicIP 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> 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.")); @@ -7804,13 +8472,18 @@ private Mono> getPublicIPWithResponseAsyn 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, publicIPId, accept, context)) + .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())); } @@ -7819,6 +8492,7 @@ private Mono> getPublicIPWithResponseAsyn * * @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. @@ -7827,8 +8501,8 @@ private Mono> getPublicIPWithResponseAsyn * @return a WorkloadNetworkPublicIP 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> 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.")); @@ -7845,13 +8519,18 @@ private Mono> getPublicIPWithResponseAsyn 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, publicIPId, accept, context); + return service.getPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, context); } /** @@ -7859,6 +8538,7 @@ private Mono> getPublicIPWithResponseAsyn * * @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 ManagementException thrown if the request is rejected by server. @@ -7866,9 +8546,9 @@ private Mono> getPublicIPWithResponseAsyn * @return a WorkloadNetworkPublicIP on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getPublicIPAsync(String resourceGroupName, String privateCloudName, - String publicIPId) { - return getPublicIPWithResponseAsync(resourceGroupName, privateCloudName, publicIPId) + private Mono getPublicIpAsync(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { + return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -7877,6 +8557,7 @@ private Mono getPublicIPAsync(String resourceGroup * * @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. @@ -7885,9 +8566,10 @@ private Mono getPublicIPAsync(String resourceGroup * @return a WorkloadNetworkPublicIP 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 getPublicIpWithResponse(String resourceGroupName, + String privateCloudName, String workloadNetworkName, String publicIPId, Context context) { + return getPublicIpWithResponseAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + context).block(); } /** @@ -7895,6 +8577,7 @@ public Response getPublicIPWithResponse(String res * * @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 ManagementException thrown if the request is rejected by server. @@ -7902,9 +8585,10 @@ public Response getPublicIPWithResponse(String res * @return a WorkloadNetworkPublicIP. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPublicIpInner getPublicIP(String resourceGroupName, String privateCloudName, - String publicIPId) { - return getPublicIPWithResponse(resourceGroupName, privateCloudName, publicIPId, Context.NONE).getValue(); + public WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { + return getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + Context.NONE).getValue(); } /** @@ -7912,6 +8596,7 @@ public WorkloadNetworkPublicIpInner getPublicIP(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. * @param publicIPId ID of the DNS zone. * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -7920,8 +8605,9 @@ public WorkloadNetworkPublicIpInner getPublicIP(String resourceGroupName, String * @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 publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + 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.")); @@ -7938,6 +8624,10 @@ private Mono>> createPublicIPWithResponseAsync(String 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.")); } @@ -7949,9 +8639,9 @@ private Mono>> createPublicIPWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createPublicIP(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, privateCloudName, publicIPId, accept, - workloadNetworkPublicIP, 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())); } @@ -7960,6 +8650,7 @@ private Mono>> createPublicIPWithResponseAsync(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. * @param publicIPId ID of the DNS zone. * @param workloadNetworkPublicIP Resource create parameters. * @param context The context to associate with this operation. @@ -7969,9 +8660,9 @@ private Mono>> createPublicIPWithResponseAsync(String * @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 publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, - 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.")); @@ -7988,6 +8679,10 @@ private Mono>> createPublicIPWithResponseAsync(String 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.")); } @@ -7999,9 +8694,9 @@ private Mono>> createPublicIPWithResponseAsync(String } 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, accept, - workloadNetworkPublicIP, context); + return service.createPublicIp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + accept, workloadNetworkPublicIP, context); } /** @@ -8009,6 +8704,7 @@ private Mono>> createPublicIPWithResponseAsync(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. * @param publicIPId ID of the DNS zone. * @param workloadNetworkPublicIP Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -8017,11 +8713,11 @@ private Mono>> createPublicIPWithResponseAsync(String * @return the {@link PollerFlux} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIPAsync( - String resourceGroupName, String privateCloudName, String publicIPId, + private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { - Mono>> mono - = createPublicIPWithResponseAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP); + Mono>> mono = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, publicIPId, workloadNetworkPublicIP); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, this.client.getContext()); @@ -8032,6 +8728,7 @@ private PollerFlux, WorkloadNetworkPubl * * @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. * @param context The context to associate with this operation. @@ -8041,12 +8738,12 @@ private PollerFlux, WorkloadNetworkPubl * @return the {@link PollerFlux} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIPAsync( - String resourceGroupName, String privateCloudName, String publicIPId, + private PollerFlux, WorkloadNetworkPublicIpInner> beginCreatePublicIpAsync( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context) { context = this.client.mergeContext(context); - Mono>> mono = createPublicIPWithResponseAsync(resourceGroupName, privateCloudName, - publicIPId, workloadNetworkPublicIP, context); + Mono>> mono = createPublicIpWithResponseAsync(resourceGroupName, privateCloudName, + workloadNetworkName, publicIPId, workloadNetworkPublicIP, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), WorkloadNetworkPublicIpInner.class, WorkloadNetworkPublicIpInner.class, context); @@ -8057,6 +8754,7 @@ private PollerFlux, WorkloadNetworkPubl * * @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. @@ -8065,10 +8763,12 @@ private PollerFlux, WorkloadNetworkPubl * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIP( - String resourceGroupName, String privateCloudName, String publicIPId, + public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { - return this.beginCreatePublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP) + return this + .beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP) .getSyncPoller(); } @@ -8077,6 +8777,7 @@ public SyncPoller, WorkloadNetworkPubli * * @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. * @param context The context to associate with this operation. @@ -8086,11 +8787,12 @@ public SyncPoller, WorkloadNetworkPubli * @return the {@link SyncPoller} for polling of nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIP( - String resourceGroupName, String privateCloudName, String publicIPId, + public SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp( + String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context) { return this - .beginCreatePublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, context) + .beginCreatePublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP, context) .getSyncPoller(); } @@ -8099,6 +8801,7 @@ public SyncPoller, WorkloadNetworkPubli * * @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. @@ -8107,10 +8810,10 @@ public SyncPoller, WorkloadNetworkPubli * @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) { - return beginCreatePublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP).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); } /** @@ -8118,6 +8821,7 @@ private Mono createPublicIPAsync(String resourceGr * * @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. * @param context The context to associate with this operation. @@ -8127,10 +8831,11 @@ private Mono createPublicIPAsync(String resourceGr * @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); + 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); } /** @@ -8138,6 +8843,7 @@ private Mono createPublicIPAsync(String resourceGr * * @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. @@ -8146,9 +8852,10 @@ private Mono createPublicIPAsync(String resourceGr * @return nSX Public IP Block. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, String privateCloudName, - String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { - return createPublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP).block(); + public WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP) { + return createPublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP).block(); } /** @@ -8156,6 +8863,7 @@ public WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, Str * * @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. * @param context The context to associate with this operation. @@ -8165,10 +8873,11 @@ public WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, Str * @return nSX Public IP Block. */ @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 WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP, + Context context) { + return createPublicIpAsync(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + workloadNetworkPublicIP, context).block(); } /** @@ -8183,7 +8892,7 @@ public WorkloadNetworkPublicIpInner createPublicIP(String resourceGroupName, Str * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePublicIPWithResponseAsync(String resourceGroupName, + private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, String publicIPId, String privateCloudName) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -8206,7 +8915,7 @@ private Mono>> deletePublicIPWithResponseAsync(String } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.deletePublicIP(this.client.getEndpoint(), this.client.getApiVersion(), + .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())); } @@ -8224,7 +8933,7 @@ private Mono>> deletePublicIPWithResponseAsync(String * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deletePublicIPWithResponseAsync(String resourceGroupName, + private Mono>> deletePublicIpWithResponseAsync(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -8247,7 +8956,7 @@ private Mono>> deletePublicIPWithResponseAsync(String } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.deletePublicIP(this.client.getEndpoint(), this.client.getApiVersion(), + return service.deletePublicIp(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, publicIPId, privateCloudName, accept, context); } @@ -8263,10 +8972,10 @@ private Mono>> deletePublicIPWithResponseAsync(String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePublicIPAsync(String resourceGroupName, String publicIPId, + private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName) { Mono>> mono - = deletePublicIPWithResponseAsync(resourceGroupName, publicIPId, privateCloudName); + = deletePublicIpWithResponseAsync(resourceGroupName, publicIPId, privateCloudName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -8284,11 +8993,11 @@ private PollerFlux, Void> beginDeletePublicIPAsync(String resou * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeletePublicIPAsync(String resourceGroupName, String publicIPId, + private PollerFlux, Void> beginDeletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deletePublicIPWithResponseAsync(resourceGroupName, publicIPId, privateCloudName, context); + = deletePublicIpWithResponseAsync(resourceGroupName, publicIPId, privateCloudName, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -8305,9 +9014,9 @@ private PollerFlux, Void> beginDeletePublicIPAsync(String resou * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePublicIP(String resourceGroupName, String publicIPId, + public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName) { - return this.beginDeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName).getSyncPoller(); + return this.beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).getSyncPoller(); } /** @@ -8323,9 +9032,9 @@ public SyncPoller, Void> beginDeletePublicIP(String resourceGro * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDeletePublicIP(String resourceGroupName, String publicIPId, + public SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { - return this.beginDeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName, context).getSyncPoller(); + return this.beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).getSyncPoller(); } /** @@ -8340,8 +9049,8 @@ public SyncPoller, Void> beginDeletePublicIP(String resourceGro * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePublicIPAsync(String resourceGroupName, String publicIPId, String privateCloudName) { - return beginDeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName).last() + private Mono deletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName) { + return beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -8358,9 +9067,9 @@ private Mono deletePublicIPAsync(String resourceGroupName, String publicIP * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deletePublicIPAsync(String resourceGroupName, String publicIPId, String privateCloudName, + private Mono deletePublicIpAsync(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { - return beginDeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName, context).last() + return beginDeletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -8375,8 +9084,8 @@ private Mono deletePublicIPAsync(String resourceGroupName, String publicIP * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePublicIP(String resourceGroupName, String publicIPId, String privateCloudName) { - deletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName).block(); + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName) { + deletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName).block(); } /** @@ -8391,8 +9100,8 @@ public void deletePublicIP(String resourceGroupName, String publicIPId, String p * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void deletePublicIP(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { - deletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName, context).block(); + public void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { + deletePublicIpAsync(resourceGroupName, publicIPId, privateCloudName, context).block(); } /** @@ -8902,7 +9611,7 @@ private Mono> listDnsZonesNextSingleP * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsNextSinglePageAsync(String nextLink) { + private Mono> listPublicIpsNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -8912,7 +9621,7 @@ private Mono> listPublicIPsNextSingl } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listPublicIPsNext(nextLink, this.client.getEndpoint(), accept, context)) + .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())); @@ -8930,7 +9639,7 @@ private Mono> listPublicIPsNextSingl * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listPublicIPsNextSinglePageAsync(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.")); @@ -8941,7 +9650,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.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 fd8ce26bdd7fe..f546d44d1f412 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 @@ -45,10 +45,21 @@ public WorkloadNetworksImpl(WorkloadNetworksClient innerClient, this.serviceManager = serviceManager; } + public PagedIterable list(String resourceGroupName, String privateCloudName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, privateCloudName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String privateCloudName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, privateCloudName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkImpl(inner1, this.manager())); + } + 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())); @@ -57,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 { @@ -66,34 +77,24 @@ public WorkloadNetwork get(String resourceGroupName, String privateCloudName) { } } - public PagedIterable list(String resourceGroupName, String privateCloudName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, privateCloudName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String privateCloudName, Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, privateCloudName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkImpl(inner1, this.manager())); - } - - public PagedIterable listSegments(String resourceGroupName, String privateCloudName) { + public PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listSegments(resourceGroupName, privateCloudName); + = this.serviceClient().listSegments(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); } public PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listSegments(resourceGroupName, privateCloudName, context); + = this.serviceClient().listSegments(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkSegmentImpl(inner1, this.manager())); } public Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context) { - Response inner - = this.serviceClient().getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, context); + 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 WorkloadNetworkSegmentImpl(inner.getValue(), this.manager())); @@ -102,9 +103,10 @@ public Response getSegmentWithResponse(String resourceGr } } - public WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String segmentId) { + public WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String segmentId) { WorkloadNetworkSegmentInner inner - = this.serviceClient().getSegment(resourceGroupName, privateCloudName, segmentId); + = this.serviceClient().getSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); if (inner != null) { return new WorkloadNetworkSegmentImpl(inner, this.manager()); } else { @@ -112,24 +114,28 @@ public WorkloadNetworkSegment getSegment(String resourceGroupName, String privat } } - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId) { - this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, segmentId); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId) { + this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId); } - public void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context) { - this.serviceClient().deleteSegment(resourceGroupName, privateCloudName, segmentId, context); + public void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId, Context context) { + this.serviceClient() + .deleteSegment(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, context); } - public PagedIterable listDhcp(String resourceGroupName, String privateCloudName) { + public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listDhcp(resourceGroupName, privateCloudName); + = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); } public PagedIterable listDhcp(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, context); + = this.serviceClient().listDhcp(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDhcpImpl(inner1, this.manager())); } @@ -154,31 +160,34 @@ public WorkloadNetworkDhcp getDhcp(String resourceGroupName, String dhcpId, Stri } } - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId) { - this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, dhcpId); + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dhcpId) { + this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId); } - public void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context) { - this.serviceClient().deleteDhcp(resourceGroupName, privateCloudName, dhcpId, context); + public void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId, + Context 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())); @@ -187,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 { @@ -198,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())); @@ -226,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 { @@ -245,23 +256,24 @@ public void deletePortMirroring(String resourceGroupName, String portMirroringId this.serviceClient().deletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, context); } - public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName) { + public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName); + = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); } public PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, context); + = this.serviceClient().listVMGroups(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVMGroupImpl(inner1, this.manager())); } public Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context) { - Response inner - = this.serviceClient().getVMGroupWithResponse(resourceGroupName, privateCloudName, vmGroupId, context); + 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 WorkloadNetworkVMGroupImpl(inner.getValue(), this.manager())); @@ -270,9 +282,10 @@ public Response getVMGroupWithResponse(String resourceGr } } - public WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId) { + public WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String vmGroupId) { WorkloadNetworkVMGroupInner inner - = this.serviceClient().getVMGroup(resourceGroupName, privateCloudName, vmGroupId); + = this.serviceClient().getVMGroup(resourceGroupName, privateCloudName, workloadNetworkName, vmGroupId); if (inner != null) { return new WorkloadNetworkVMGroupImpl(inner, this.manager()); } else { @@ -289,25 +302,26 @@ public void deleteVMGroup(String resourceGroupName, String vmGroupId, String pri } public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName) { + String privateCloudName, String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName); + = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkVirtualMachineImpl(inner1, this.manager())); } public PagedIterable listVirtualMachines(String resourceGroupName, - String privateCloudName, Context context) { - PagedIterable inner - = this.serviceClient().listVirtualMachines(resourceGroupName, privateCloudName, context); + 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 getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context) { + String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context) { Response inner = this.serviceClient() - .getVirtualMachineWithResponse(resourceGroupName, privateCloudName, virtualMachineId, context); + .getVirtualMachineWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId, + context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadNetworkVirtualMachineImpl(inner.getValue(), this.manager())); @@ -317,9 +331,9 @@ public Response getVirtualMachineWithResponse(Str } public WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId) { - WorkloadNetworkVirtualMachineInner inner - = this.serviceClient().getVirtualMachine(resourceGroupName, privateCloudName, virtualMachineId); + String workloadNetworkName, String virtualMachineId) { + WorkloadNetworkVirtualMachineInner inner = this.serviceClient() + .getVirtualMachine(resourceGroupName, privateCloudName, workloadNetworkName, virtualMachineId); if (inner != null) { return new WorkloadNetworkVirtualMachineImpl(inner, this.manager()); } else { @@ -327,23 +341,24 @@ public WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, } } - public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName) { + public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName); + = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); } public PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, context); + = this.serviceClient().listDnsServices(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsServiceImpl(inner1, this.manager())); } public Response getDnsServiceWithResponse(String resourceGroupName, - String privateCloudName, String dnsServiceId, Context context) { + String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context) { Response inner = this.serviceClient() - .getDnsServiceWithResponse(resourceGroupName, privateCloudName, dnsServiceId, context); + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, context); if (inner != null) { return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadNetworkDnsServiceImpl(inner.getValue(), this.manager())); @@ -353,9 +368,9 @@ public Response getDnsServiceWithResponse(String reso } public WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, - String dnsServiceId) { - WorkloadNetworkDnsServiceInner inner - = this.serviceClient().getDnsService(resourceGroupName, privateCloudName, dnsServiceId); + String workloadNetworkName, String dnsServiceId) { + WorkloadNetworkDnsServiceInner inner = this.serviceClient() + .getDnsService(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId); if (inner != null) { return new WorkloadNetworkDnsServiceImpl(inner, this.manager()); } else { @@ -372,23 +387,24 @@ public void deleteDnsService(String resourceGroupName, String dnsServiceId, Stri this.serviceClient().deleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, context); } - public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName) { + public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName); + = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkDnsZoneImpl(inner1, this.manager())); } public PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context) { + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listDnsZones(resourceGroupName, privateCloudName, context); + = 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 dnsZoneId, Context context) { - Response inner - = this.serviceClient().getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, context); + 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 WorkloadNetworkDnsZoneImpl(inner.getValue(), this.manager())); @@ -397,9 +413,10 @@ public Response getDnsZoneWithResponse(String resourceGr } } - public WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId) { + public WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsZoneId) { WorkloadNetworkDnsZoneInner inner - = this.serviceClient().getDnsZone(resourceGroupName, privateCloudName, dnsZoneId); + = this.serviceClient().getDnsZone(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId); if (inner != null) { return new WorkloadNetworkDnsZoneImpl(inner, this.manager()); } else { @@ -415,23 +432,24 @@ public void deleteDnsZone(String resourceGroupName, String dnsZoneId, String pri this.serviceClient().deleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, context); } - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName) { + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName) { PagedIterable inner - = this.serviceClient().listPublicIPs(resourceGroupName, privateCloudName); + = this.serviceClient().listPublicIps(resourceGroupName, privateCloudName, workloadNetworkName); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(inner1, this.manager())); } - public PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context) { + public PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context) { PagedIterable inner - = this.serviceClient().listPublicIPs(resourceGroupName, privateCloudName, context); + = this.serviceClient().listPublicIps(resourceGroupName, privateCloudName, workloadNetworkName, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadNetworkPublicIpImpl(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 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())); @@ -440,9 +458,10 @@ public Response getPublicIPWithResponse(String resource } } - public WorkloadNetworkPublicIp getPublicIP(String resourceGroupName, String privateCloudName, String publicIPId) { + public WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId) { WorkloadNetworkPublicIpInner inner - = this.serviceClient().getPublicIP(resourceGroupName, privateCloudName, publicIPId); + = this.serviceClient().getPublicIp(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId); if (inner != null) { return new WorkloadNetworkPublicIpImpl(inner, this.manager()); } else { @@ -450,12 +469,12 @@ public WorkloadNetworkPublicIp getPublicIP(String resourceGroupName, String priv } } - public void deletePublicIP(String resourceGroupName, String publicIPId, String privateCloudName) { - this.serviceClient().deletePublicIP(resourceGroupName, publicIPId, privateCloudName); + 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 void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context) { + this.serviceClient().deletePublicIp(resourceGroupName, publicIPId, privateCloudName, context); } public WorkloadNetworkSegment getSegmentById(String id) { @@ -469,12 +488,19 @@ public WorkloadNetworkSegment getSegmentById(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))); } - return this.getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, Context.NONE).getValue(); + return this + .getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, Context.NONE) + .getValue(); } public Response getSegmentByIdWithResponse(String id, Context context) { @@ -488,69 +514,44 @@ 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 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))); } - return this.getSegmentWithResponse(resourceGroupName, privateCloudName, segmentId, context); + return this.getSegmentWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, segmentId, + context); } - 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 Response getDhcpByIdWithResponse(String id, Context context) { + public WorkloadNetworkPortMirroring getPortMirroringById(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); - } - - public WorkloadNetworkPortMirroring getPortMirroringById(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 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(); } @@ -565,12 +566,18 @@ 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); + return this.getPortMirroringWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, + portMirroringId, context); } public WorkloadNetworkVMGroup getVMGroupById(String id) { @@ -584,12 +591,19 @@ public WorkloadNetworkVMGroup getVMGroupById(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 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) { @@ -603,12 +617,18 @@ 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 WorkloadNetworkDnsService getDnsServiceById(String id) { @@ -622,12 +642,19 @@ public WorkloadNetworkDnsService getDnsServiceById(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 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) + return this + .getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + Context.NONE) .getValue(); } @@ -642,12 +669,18 @@ public Response getDnsServiceByIdWithResponse(String 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 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); + return this.getDnsServiceWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsServiceId, + context); } public WorkloadNetworkDnsZone getDnsZoneById(String id) { @@ -661,12 +694,19 @@ 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 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 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))); } - return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, Context.NONE).getValue(); + return this + .getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, Context.NONE) + .getValue(); } public Response getDnsZoneByIdWithResponse(String id, Context context) { @@ -680,15 +720,21 @@ 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 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 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))); } - return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, dnsZoneId, context); + return this.getDnsZoneWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, dnsZoneId, + context); } - public WorkloadNetworkPublicIp getPublicIPById(String id) { + public WorkloadNetworkPublicIp getPublicIpById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -699,15 +745,22 @@ public WorkloadNetworkPublicIp getPublicIPById(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 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(); + return this + .getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, Context.NONE) + .getValue(); } - public Response getPublicIPByIdWithResponse(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( @@ -718,12 +771,18 @@ public Response getPublicIPByIdWithResponse(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 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); + return this.getPublicIpWithResponse(resourceGroupName, privateCloudName, workloadNetworkName, publicIPId, + context); } public void deleteSegmentById(String id) { @@ -737,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) { @@ -756,12 +820,17 @@ 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 deleteDhcpById(String id) { @@ -775,221 +844,41 @@ 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) { - 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.NONE); - } - - 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 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 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 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) { - 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.NONE); - } - - public void deletePortMirroringByIdWithResponse(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 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 deleteVMGroupById(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); - } - - public void deleteVMGroupByIdWithResponse(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); - } - - public void deleteDnsServiceById(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.NONE); - } - - public void deleteDnsServiceByIdWithResponse(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 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) { - 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.NONE); - } - - public void deleteDnsZoneByIdWithResponse(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); + this.deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, Context.NONE); } - public void deletePublicIPById(String id) { + 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 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); - } - - public void deletePublicIPByIdWithResponse(String id, Context context) { - 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) { - 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) { + 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 'privateClouds'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'dhcpConfigurations'.", id))); } - this.deletePublicIP(resourceGroupName, publicIPId, privateCloudName, context); + this.deleteDhcp(resourceGroupName, privateCloudName, workloadNetworkName, dhcpId, context); } private WorkloadNetworksClient serviceClient() { @@ -1024,7 +913,7 @@ public WorkloadNetworkDnsZoneImpl defineDnsZone(String name) { return new WorkloadNetworkDnsZoneImpl(name, this.manager()); } - public WorkloadNetworkPublicIpImpl definePublicIP(String name) { + public WorkloadNetworkPublicIpImpl definePublicIp(String name) { return new WorkloadNetworkPublicIpImpl(name, this.manager()); } } 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 04599dbf8543d..be3c45e47abb4 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 @@ -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 f2a981b779e64..31ecea9573328 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 @@ -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/AddonSrmProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonSrmProperties.java index a31a2bca88646..ae9697f2c0895 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 @@ -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/AddonVrProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/AddonVrProperties.java index 1fa733b29ffb2..7bbaeffd48e31 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 @@ -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/IscsiPath.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPath.java index 5f993e09c4f10..dcf8ca9ba2050 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 @@ -5,6 +5,7 @@ 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/IscsiPaths.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/IscsiPaths.java index f73c348581079..99731a7191ff1 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 @@ -7,7 +7,6 @@ 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/PSCredentialExecutionParameter.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PSCredentialExecutionParameter.java index 3bed16e484c12..e247a66552c75 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PSCredentialExecutionParameter.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PSCredentialExecutionParameter.java @@ -5,6 +5,7 @@ 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; @@ -102,9 +103,15 @@ public PSCredentialExecutionParameter withName(String name) { */ @Override public void validate() { - super.validate(); + if (name() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model PSCredentialExecutionParameter")); + } } + private static final ClientLogger LOGGER = new ClientLogger(PSCredentialExecutionParameter.class); + /** * {@inheritDoc} */ 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 463da8ee5d634..107e3af026980 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 @@ -5,6 +5,7 @@ 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 d960180ba1c52..ff4a7444e24ff 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 @@ -5,6 +5,7 @@ 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/VmHostPlacementPolicyProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VmHostPlacementPolicyProperties.java index f0074a9c0aff8..bb5e56a0366a5 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 @@ -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 f0c46c0c4db1d..9a3967299e16b 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 @@ -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/WorkloadNetworkDhcp.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcp.java index adad0ea38981f..c3b35ecd53f8f 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 @@ -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/WorkloadNetworkDhcpRelay.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDhcpRelay.java index 455cd083ce9a3..3464adc06543e 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 @@ -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 f1593985e73a0..1cb4a0e847f20 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 @@ -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 02b5b76dac316..ba1164bea099f 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 @@ -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/WorkloadNetworkDnsZone.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkDnsZone.java index 7fc1a1f4f7960..e10c06df311e2 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 @@ -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/WorkloadNetworkPortMirroring.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPortMirroring.java index e9fe2eadd5cd2..d6e9cbc05a437 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 @@ -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/WorkloadNetworkPublicIp.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkPublicIp.java index 13b6a50c67f19..e78c192d71988 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 @@ -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/WorkloadNetworkSegment.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkSegment.java index 5d92d9259dd11..03d139ad909df 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 @@ -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/WorkloadNetworkVMGroup.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroup.java index 5da5fa4d3d880..f1e4a4345df5e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroup.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworkVMGroup.java @@ -112,13 +112,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/WorkloadNetworks.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworks.java index 3a10764e9607e..f38224fa60633 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworks.java +++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/WorkloadNetworks.java @@ -13,72 +13,78 @@ */ public interface WorkloadNetworks { /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 a WorkloadNetwork along with {@link Response}. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. */ - Response getWithResponse(String resourceGroupName, String privateCloudName, Context context); + PagedIterable list(String resourceGroupName, String privateCloudName); /** - * Get a WorkloadNetwork. + * List WorkloadNetwork resources by PrivateCloud. * * @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 a WorkloadNetwork. + * @return the response of a WorkloadNetwork list operation as paginated response with {@link PagedIterable}. */ - WorkloadNetwork get(String resourceGroupName, String privateCloudName); + PagedIterable list(String resourceGroupName, String privateCloudName, Context context); /** - * List WorkloadNetwork resources by PrivateCloud. + * 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. + * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String privateCloudName); + Response getWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** - * List WorkloadNetwork resources by PrivateCloud. + * Get a 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. + * @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 WorkloadNetwork list operation as paginated response with {@link PagedIterable}. + * @return a WorkloadNetwork. */ - PagedIterable list(String resourceGroupName, String privateCloudName, Context context); + WorkloadNetwork get(String resourceGroupName, String privateCloudName, String workloadNetworkName); /** * 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 WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listSegments(String resourceGroupName, String privateCloudName); + PagedIterable listSegments(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -86,13 +92,14 @@ public interface WorkloadNetworks { * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}. */ PagedIterable listSegments(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get 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. @@ -101,70 +108,79 @@ PagedIterable listSegments(String resourceGroupName, Str * @return a WorkloadNetworkSegment along with {@link Response}. */ Response getSegmentWithResponse(String resourceGroupName, String privateCloudName, - String segmentId, Context context); + String workloadNetworkName, String segmentId, Context context); /** * Get 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 a WorkloadNetworkSegment. */ - WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String segmentId); + WorkloadNetworkSegment getSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String segmentId); /** * 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. */ - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId); /** * 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. */ - void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context); + void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId, + Context context); /** * 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 WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listDhcp(String resourceGroupName, String privateCloudName); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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 WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listDhcp(String resourceGroupName, String privateCloudName, Context context); + PagedIterable listDhcp(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** * Get a WorkloadNetworkDhcp. @@ -199,43 +215,49 @@ Response getDhcpWithResponse(String resourceGroupName, Stri * * @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 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 deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId); + void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId); /** * Delete a WorkloadNetworkDhcp. * * @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 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 deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, 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. @@ -243,13 +265,14 @@ Response getDhcpWithResponse(String resourceGroupName, Stri * @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. @@ -258,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. @@ -299,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. @@ -314,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. @@ -328,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. @@ -361,18 +391,21 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin * * @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}. */ - PagedIterable listVMGroups(String resourceGroupName, String privateCloudName); + PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -380,13 +413,14 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}. */ PagedIterable listVMGroups(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, Context context); /** * Get 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -395,20 +429,22 @@ PagedIterable listVMGroups(String resourceGroupName, Str * @return a WorkloadNetworkVMGroup along with {@link Response}. */ Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName, - String vmGroupId, Context context); + String workloadNetworkName, String vmGroupId, Context context); /** * Get 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. * @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. */ - WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId); + WorkloadNetworkVMGroup getVMGroup(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String vmGroupId); /** * Delete a WorkloadNetworkVMGroup. @@ -440,19 +476,22 @@ Response getVMGroupWithResponse(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 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}. */ - PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName); + PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -461,13 +500,14 @@ Response getVMGroupWithResponse(String resourceGroupName * {@link PagedIterable}. */ PagedIterable listVirtualMachines(String resourceGroupName, String privateCloudName, - Context context); + 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. @@ -476,13 +516,14 @@ PagedIterable listVirtualMachines(String resource * @return a WorkloadNetworkVirtualMachine along with {@link Response}. */ Response getVirtualMachineWithResponse(String resourceGroupName, - String privateCloudName, String virtualMachineId, Context context); + 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. @@ -490,26 +531,29 @@ Response getVirtualMachineWithResponse(String res * @return a WorkloadNetworkVirtualMachine. */ WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String privateCloudName, - String virtualMachineId); + 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}. */ - PagedIterable listDnsServices(String resourceGroupName, String privateCloudName); + 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. @@ -518,13 +562,14 @@ WorkloadNetworkVirtualMachine getVirtualMachine(String resourceGroupName, String * {@link PagedIterable}. */ PagedIterable listDnsServices(String resourceGroupName, String privateCloudName, - Context context); + 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. @@ -533,20 +578,22 @@ PagedIterable listDnsServices(String resourceGroupNam * @return a WorkloadNetworkDnsService along with {@link Response}. */ Response getDnsServiceWithResponse(String resourceGroupName, String privateCloudName, - String dnsServiceId, Context context); + 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. */ - WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, String dnsServiceId); + WorkloadNetworkDnsService getDnsService(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String dnsServiceId); /** * Delete a WorkloadNetworkDnsService. @@ -578,18 +625,21 @@ Response getDnsServiceWithResponse(String resourceGro * * @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 WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listDnsZones(String resourceGroupName, String privateCloudName); + PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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. @@ -597,13 +647,14 @@ Response getDnsServiceWithResponse(String resourceGro * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}. */ PagedIterable listDnsZones(String resourceGroupName, String privateCloudName, - Context context); + String workloadNetworkName, 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 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. @@ -612,20 +663,22 @@ PagedIterable listDnsZones(String resourceGroupName, Str * @return a WorkloadNetworkDnsZone along with {@link Response}. */ Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName, - String dnsZoneId, Context context); + String workloadNetworkName, 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 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 WorkloadNetworkDnsZone. */ - WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId); + WorkloadNetworkDnsZone getDnsZone(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String dnsZoneId); /** * Delete a WorkloadNetworkDnsZone. @@ -657,19 +710,22 @@ Response getDnsZoneWithResponse(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 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}. */ - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName); /** * 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 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. @@ -677,14 +733,15 @@ Response getDnsZoneWithResponse(String resourceGroupName * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with * {@link PagedIterable}. */ - PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName, - Context context); + PagedIterable listPublicIps(String resourceGroupName, String privateCloudName, + String workloadNetworkName, Context context); /** * Get 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -692,21 +749,23 @@ PagedIterable listPublicIPs(String resourceGroupName, S * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - Response getPublicIPWithResponse(String resourceGroupName, String privateCloudName, - String publicIPId, Context context); + Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName, + String workloadNetworkName, String publicIPId, Context context); /** * Get 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. * @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. */ - WorkloadNetworkPublicIp getPublicIP(String resourceGroupName, String privateCloudName, String publicIPId); + WorkloadNetworkPublicIp getPublicIp(String resourceGroupName, String privateCloudName, String workloadNetworkName, + String publicIPId); /** * Delete a WorkloadNetworkPublicIP. @@ -718,7 +777,7 @@ Response getPublicIPWithResponse(String resourceGroupNa * @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 deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName); /** * Delete a WorkloadNetworkPublicIP. @@ -731,7 +790,7 @@ Response getPublicIPWithResponse(String resourceGroupNa * @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 deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context); /** * Get a WorkloadNetworkSegment. @@ -756,29 +815,6 @@ Response getPublicIPWithResponse(String resourceGroupNa */ Response getSegmentByIdWithResponse(String id, Context context); - /** - * Get 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. - * @return a WorkloadNetworkDhcp along with {@link Response}. - */ - WorkloadNetworkDhcp getDhcpById(String id); - - /** - * Get a WorkloadNetworkDhcp. - * - * @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 WorkloadNetworkDhcp along with {@link Response}. - */ - Response getDhcpByIdWithResponse(String id, Context context); - /** * Get a WorkloadNetworkPortMirroring. * @@ -880,7 +916,7 @@ Response getPublicIPWithResponse(String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - WorkloadNetworkPublicIp getPublicIPById(String id); + WorkloadNetworkPublicIp getPublicIpById(String id); /** * Get a WorkloadNetworkPublicIP. @@ -892,7 +928,7 @@ Response getPublicIPWithResponse(String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a WorkloadNetworkPublicIP along with {@link Response}. */ - Response getPublicIPByIdWithResponse(String id, Context context); + Response getPublicIpByIdWithResponse(String id, Context context); /** * Delete a WorkloadNetworkSegment. @@ -936,111 +972,6 @@ Response getPublicIPWithResponse(String resourceGroupNa */ void deleteDhcpByIdWithResponse(String id, Context context); - /** - * Delete 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. - */ - void deletePortMirroringById(String id); - - /** - * Delete 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. - */ - void deletePortMirroringByIdWithResponse(String id, Context context); - - /** - * Delete a WorkloadNetworkVMGroup. - * - * @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 deleteVMGroupById(String id); - - /** - * Delete a WorkloadNetworkVMGroup. - * - * @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 deleteVMGroupByIdWithResponse(String id, Context context); - - /** - * Delete 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. - */ - void deleteDnsServiceById(String id); - - /** - * Delete 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. - */ - void deleteDnsServiceByIdWithResponse(String id, Context context); - - /** - * Delete 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. - */ - void deleteDnsZoneById(String id); - - /** - * Delete 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. - */ - void deleteDnsZoneByIdWithResponse(String id, Context context); - - /** - * Delete 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. - */ - void deletePublicIPById(String id); - - /** - * Delete 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. - */ - void deletePublicIPByIdWithResponse(String id, Context context); - /** * Begins definition for a new WorkloadNetworkSegment resource. * @@ -1095,5 +1026,5 @@ Response getPublicIPWithResponse(String resourceGroupNa * @param name resource name. * @return the first stage of the new WorkloadNetworkPublicIp definition. */ - WorkloadNetworkPublicIp.DefinitionStages.Blank definePublicIP(String name); + WorkloadNetworkPublicIp.DefinitionStages.Blank definePublicIp(String name); } 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 b92f135b8da27..4c04471a4cd30 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 8878e547a7984..0637a088a01e8 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 c859a728e850c..99c218d7df9ac 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 @@ -5,14 +5,48 @@ package com.azure.resourcemanager.avs.generated; import com.azure.resourcemanager.avs.models.AddonArcProperties; +import com.azure.resourcemanager.avs.models.AddonHcxProperties; +import com.azure.resourcemanager.avs.models.AddonSrmProperties; +import com.azure.resourcemanager.avs.models.AddonVrProperties; /** * Samples for Addons CreateOrUpdate. */ public final class AddonsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_CreateOrUpdate_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_HCX.json + */ + /** + * Sample code: Addons_CreateOrUpdate_HCX. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateHCX(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("hcx") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonHcxProperties().withOffer("VMware MaaS Cloud Provider (Enterprise)")) + .create(); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_SRM.json + */ + /** + * Sample code: Addons_CreateOrUpdate_SRM. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateSRM(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("srm") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonSrmProperties().withLicenseKey("fakeTokenPlaceholder")) + .create(); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_ArcReg.json */ /** * Sample code: Addons_CreateOrUpdate_ArcReg. @@ -27,4 +61,20 @@ public static void addonsCreateOrUpdateArcReg(com.azure.resourcemanager.avs.AvsM "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter")) .create(); } + + /* + * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_VR.json + */ + /** + * Sample code: Addons_CreateOrUpdate_VR. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsCreateOrUpdateVR(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons() + .define("vr") + .withExistingPrivateCloud("group1", "cloud1") + .withProperties(new AddonVrProperties().withVrsCount(1)) + .create(); + } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/AddonsDeleteSamples.java index b63c1d7f322ca..38af8a525e771 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 @@ -9,7 +9,7 @@ */ public final class AddonsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 d3b46acc022c6..4b36e1f78c2b2 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 @@ -9,7 +9,43 @@ */ public final class AddonsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Addons_Get_ArcReg.json + * x-ms-original-file: 2023-09-01/Addons_Get_SRM.json + */ + /** + * Sample code: Addons_Get_SRM. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetSRM(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "srm", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_Get_VR.json + */ + /** + * Sample code: Addons_Get_VR. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetVR(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "vr", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2023-09-01/Addons_Get_HCX.json + */ + /** + * Sample code: Addons_Get_HCX. + * + * @param manager Entry point to AvsManager. + */ + public static void addonsGetHCX(com.azure.resourcemanager.avs.AvsManager manager) { + manager.addons().getWithResponse("group1", "cloud1", "hcx", com.azure.core.util.Context.NONE); + } + + /* + * 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 a553d0a24d38e..4fe53707f4b89 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 @@ -9,7 +9,7 @@ */ public final class AddonsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 47cc84eb230cb..d855c150654fa 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 @@ -9,8 +9,7 @@ */ public final class AuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 9ef256db374c2..826a796e7f51b 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 @@ -9,7 +9,7 @@ */ public final class AuthorizationsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 1df19a8b67764..48e6cbd2d6956 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 @@ -9,7 +9,7 @@ */ public final class AuthorizationsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 5f784198d6c02..4fe1f0ce8c4a4 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 @@ -9,7 +9,7 @@ */ public final class AuthorizationsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0b863b3e831bf..5b441269bdfbb 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 @@ -9,8 +9,7 @@ */ public final class CloudLinksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 b7bb30199007d..dd290f68a12a3 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 @@ -9,7 +9,7 @@ */ public final class CloudLinksDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 9034f188e6a45..119cdccaba230 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 @@ -9,7 +9,7 @@ */ public final class CloudLinksGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 386347cbbb0af..8218784c8d913 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 @@ -9,7 +9,7 @@ */ public final class CloudLinksListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 9fc41ed6e5219..3bdb04e22c853 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 @@ -11,8 +11,7 @@ */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 78e982a65841e..447d846b4dd29 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 @@ -9,7 +9,7 @@ */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0e20645b0e5c4..d9978e9ada05e 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 @@ -9,7 +9,7 @@ */ public final class ClustersGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 12dd55afb08c0..152dbdfe4dbb6 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 @@ -9,7 +9,7 @@ */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 4d23f537a684a..1a3d4971d678d 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 @@ -9,7 +9,7 @@ */ public final class ClustersListZonesSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Clusters_ListZones.json + * x-ms-original-file: 2023-09-01/Clusters_ListZones.json */ /** * Sample code: Clusters_ListZones. @@ -19,4 +19,16 @@ public final class ClustersListZonesSamples { public static void clustersListZones(com.azure.resourcemanager.avs.AvsManager manager) { manager.clusters().listZonesWithResponse("group1", "cloud1", "cluster1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/Clusters_ListZones_Stretched.json + */ + /** + * Sample code: Clusters_ListZones_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void clustersListZonesStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.clusters().listZonesWithResponse("group1", "cloud1", "cluster1", com.azure.core.util.Context.NONE); + } } 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 ab51b287c3a9c..3a35b645dc5a4 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 @@ -11,7 +11,7 @@ */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 ef1a2be5e9247..fdcd7cb681b7e 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 @@ -11,8 +11,7 @@ */ public final class DatastoresCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 b45dad3ae403a..d4bdc9b393972 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 @@ -9,7 +9,7 @@ */ public final class DatastoresDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 2c5247f2f96c3..cdedc047a1693 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 @@ -9,7 +9,7 @@ */ public final class DatastoresGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 58045a6f322fd..e4f593ee080d5 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 @@ -9,7 +9,7 @@ */ public final class DatastoresListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 5aecbd81a48c4..af9bdab17c9d0 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 @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 06f1615a7ee29..d0d32f674d7a5 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 @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 b1f7b81354758..244ae79e617c0 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 @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsGetSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 5f0e4f082a6df..526bcf1dc6c80 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 @@ -9,8 +9,7 @@ */ public final class GlobalReachConnectionsListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 a849f8bcecd47..54b2916e32c0b 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 @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 2b06e2096f613..e1775f255ed32 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 @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 1eddf2c336155..4bbba06b1c95e 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 @@ -9,7 +9,7 @@ */ public final class HcxEnterpriseSitesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 05ca3e74c74c1..2361969998599 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 @@ -9,8 +9,7 @@ */ public final class HcxEnterpriseSitesListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 1d9cc088d027e..42811d10f5688 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 @@ -4,15 +4,12 @@ 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/Microsoft.AVS.Management/examples/2023-09-01/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 f708583471a04..c58d0df671c7d 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 @@ -9,7 +9,7 @@ */ public final class IscsiPathsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_Delete.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Delete.json */ /** * Sample code: IscsiPaths_Delete. @@ -17,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 f9cd3dd1ace64..ada3aaca2eb44 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 @@ -9,7 +9,7 @@ */ public final class IscsiPathsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/IscsiPaths_Get.json + * x-ms-original-file: 2023-09-01/IscsiPaths_Get.json */ /** * Sample code: IscsiPaths_Get. @@ -17,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 b899da4906bad..615d3491ee536 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 @@ -9,7 +9,7 @@ */ public final class IscsiPathsListByPrivateCloudSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 299af5e659fbf..859d6a7a24e1a 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 @@ -9,8 +9,7 @@ */ public final class LocationsCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 e1a9a86f9cfd3..33afcb0f6e121 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 @@ -4,13 +4,14 @@ package com.azure.resourcemanager.avs.generated; +import com.azure.resourcemanager.avs.models.Sku; + /** * Samples for Locations CheckTrialAvailability. */ public final class LocationsCheckTrialAvailabilitySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/Locations_CheckTrialAvailability.json + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailability.json */ /** * Sample code: Locations_CheckTrialAvailability. @@ -20,4 +21,18 @@ public final class LocationsCheckTrialAvailabilitySamples { public static void locationsCheckTrialAvailability(com.azure.resourcemanager.avs.AvsManager manager) { manager.locations().checkTrialAvailabilityWithResponse("eastus", null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailabilityWithSku.json + */ + /** + * Sample code: Locations_CheckTrialAvailabilityWithSku. + * + * @param manager Entry point to AvsManager. + */ + public static void locationsCheckTrialAvailabilityWithSku(com.azure.resourcemanager.avs.AvsManager manager) { + manager.locations() + .checkTrialAvailabilityWithResponse("eastus", new Sku().withName("avs52t"), + com.azure.core.util.Context.NONE); + } } 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 b845b9ddbba5f..0de704a244661 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 @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 9938adc789f6f..9852dd85c61c4 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 @@ -15,8 +15,7 @@ */ public final class PlacementPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0db89e1afb8de..4c3650a02edc2 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 @@ -9,8 +9,7 @@ */ public final class PlacementPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 85f3661839764..2c7bd809c49ba 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 @@ -9,7 +9,7 @@ */ public final class PlacementPoliciesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 ccb6906c45cfa..2e9840f7ba7b4 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 @@ -9,7 +9,7 @@ */ public final class PlacementPoliciesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 2aa70ada3c2e2..36fb4cbcd554e 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 @@ -15,8 +15,7 @@ */ public final class PlacementPoliciesUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 735c044008b30..1f408cf052281 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 @@ -4,6 +4,8 @@ package com.azure.resourcemanager.avs.generated; +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.Sku; @@ -16,8 +18,7 @@ */ public final class PrivateCloudsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_CreateOrUpdate.json + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate.json */ /** * Sample code: PrivateClouds_CreateOrUpdate. @@ -37,6 +38,29 @@ public static void privateCloudsCreateOrUpdate(com.azure.resourcemanager.avs.Avs .create(); } + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate_Stretched.json + */ + /** + * Sample code: PrivateClouds_CreateOrUpdate_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsCreateOrUpdateStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds() + .define("cloud1") + .withRegion("eastus2") + .withExistingResourceGroup("group1") + .withSku(new Sku().withName("AV36")) + .withTags(mapOf()) + .withManagementCluster(new ManagementCluster().withClusterSize(4)) + .withAvailability(new AvailabilityProperties().withStrategy(AvailabilityStrategy.DUAL_ZONE) + .withZone(1) + .withSecondaryZone(2)) + .withNetworkBlock("192.168.48.0/22") + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { 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 e8298c35a8001..f74012d575712 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 @@ -9,7 +9,7 @@ */ public final class PrivateCloudsDeleteSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 711c342163e6c..422068808cd73 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 @@ -9,7 +9,7 @@ */ public final class PrivateCloudsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_Get.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Get.json */ /** * Sample code: PrivateClouds_Get. @@ -19,4 +19,16 @@ public final class PrivateCloudsGetByResourceGroupSamples { public static void privateCloudsGet(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_Get_Stretched.json + */ + /** + * Sample code: PrivateClouds_Get_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsGetStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE); + } } 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 ce4ac12400ab2..912647f5371c3 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 @@ -9,8 +9,7 @@ */ public final class PrivateCloudsListAdminCredentialsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 79301dacaabe2..f4888704a40e0 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 @@ -9,7 +9,7 @@ */ public final class PrivateCloudsListByResourceGroupSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_List.json + * x-ms-original-file: 2023-09-01/PrivateClouds_List.json */ /** * Sample code: PrivateClouds_List. @@ -19,4 +19,16 @@ public final class PrivateCloudsListByResourceGroupSamples { public static void privateCloudsList(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().listByResourceGroup("group1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_List_Stretched.json + */ + /** + * Sample code: PrivateClouds_List_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsListStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().listByResourceGroup("group1", com.azure.core.util.Context.NONE); + } } 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 ce4eeaeff954e..fe504809a978b 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 @@ -9,8 +9,7 @@ */ public final class PrivateCloudsListSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_ListInSubscription.json + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription.json */ /** * Sample code: PrivateClouds_ListInSubscription. @@ -20,4 +19,16 @@ public final class PrivateCloudsListSamples { public static void privateCloudsListInSubscription(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription_Stretched.json + */ + /** + * Sample code: PrivateClouds_ListInSubscription_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsListInSubscriptionStretched(com.azure.resourcemanager.avs.AvsManager manager) { + manager.privateClouds().list(com.azure.core.util.Context.NONE); + } } 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 516dd157deb4e..8164f1b0e498d 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 @@ -9,8 +9,7 @@ */ public final class PrivateCloudsRotateNsxtPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 37e9f2c2e2c49..0bf05f7fb4bae 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 @@ -9,8 +9,7 @@ */ public final class PrivateCloudsRotateVcenterPasswordSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 d9855b0745b5e..3ef6fdf94d56a 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 @@ -17,7 +17,7 @@ */ public final class PrivateCloudsUpdateSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/PrivateClouds_Update.json + * x-ms-original-file: 2023-09-01/PrivateClouds_Update.json */ /** * Sample code: PrivateClouds_Update. @@ -37,4 +37,19 @@ public static void privateCloudsUpdate(com.azure.resourcemanager.avs.AvsManager .withKeyVaultUrl("fakeTokenPlaceholder"))) .apply(); } + + /* + * x-ms-original-file: 2023-09-01/PrivateClouds_Update_Stretched.json + */ + /** + * Sample code: PrivateClouds_Update_Stretched. + * + * @param manager Entry point to AvsManager. + */ + public static void privateCloudsUpdateStretched(com.azure.resourcemanager.avs.AvsManager manager) { + PrivateCloud resource = manager.privateClouds() + .getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withManagementCluster(new ManagementCluster().withClusterSize(4)).apply(); + } } diff --git a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/ScriptCmdletsGetSamples.java index aa56cd829f728..679e1ee08e02b 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 @@ -9,7 +9,7 @@ */ public final class ScriptCmdletsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 e1766cd9f2fe0..94aa48e6ec447 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 @@ -9,7 +9,7 @@ */ public final class ScriptCmdletsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 5c50d779a52fb..02ca2420899f5 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 @@ -13,8 +13,7 @@ */ public final class ScriptExecutionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 c590bfe9df601..e93310ceaaa2f 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 @@ -9,8 +9,7 @@ */ public final class ScriptExecutionsDeleteSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 603de6272b4a0..7af4f8aab76fa 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 @@ -12,8 +12,7 @@ */ public final class ScriptExecutionsGetExecutionLogsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 bf38624b65e48..1c73dbbf16584 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 @@ -9,7 +9,7 @@ */ public final class ScriptExecutionsGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 5a1d7a66607cd..62fee2a96ac79 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 @@ -9,7 +9,7 @@ */ public final class ScriptExecutionsListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 98629fafecf0e..19d3459e59286 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 @@ -9,7 +9,7 @@ */ public final class ScriptPackagesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 d49cb339e8f2a..27c0b803c92a1 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 @@ -9,7 +9,7 @@ */ public final class ScriptPackagesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 784edb01eafcc..6f445a8908276 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 @@ -9,7 +9,7 @@ */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0a83950edafc7..1f75c5c89e6a1 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 @@ -9,7 +9,7 @@ */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 60447a8fe5dfd..390fd2255871f 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 @@ -12,8 +12,7 @@ */ public final class VirtualMachinesRestrictMovementSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 7942d907a1a65..5318f3540c7fa 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 @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksCreateDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 db65e3183bfeb..3bca1c2055ae2 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 @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksCreateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsService.json */ /** * Sample code: WorkloadNetworks_CreateDnsService. @@ -23,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 2ce9039aa855c..a692751dce4c0 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 @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksCreateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsZone.json */ /** * Sample code: WorkloadNetworks_CreateDnsZone. @@ -22,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 254f01f339d8f..6cf645277cc96 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 @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksCreatePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 index 614b73f06cdda..1e628f38e4b72 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 @@ -5,12 +5,11 @@ package com.azure.resourcemanager.avs.generated; /** - * Samples for WorkloadNetworks CreatePublicIP. + * Samples for WorkloadNetworks CreatePublicIp. */ -public final class WorkloadNetworksCreatePublicIPSamples { +public final class WorkloadNetworksCreatePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreatePublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePublicIP.json */ /** * Sample code: WorkloadNetworks_CreatePublicIP. @@ -19,8 +18,8 @@ public final class WorkloadNetworksCreatePublicIPSamples { */ public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() - .definePublicIP("publicIP1") - .withExistingPrivateCloud("group1", "cloud1") + .definePublicIp("publicIP1") + .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/WorkloadNetworksCreateSegmentSamples.java b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java index ee83f47100613..fd24142bf8e2e 100644 --- a/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java +++ b/sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateSegmentSamples.java @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksCreateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateSegments.json */ /** * Sample code: WorkloadNetworks_CreateSegments. @@ -23,7 +22,7 @@ public final class WorkloadNetworksCreateSegmentSamples { public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager manager) { manager.workloadNetworks() .defineSegment("segment1") - .withExistingPrivateCloud("group1", "cloud1") + .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 76ee167004457..d680ee269e279 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksCreateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_CreateVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateVMGroup.json */ /** * Sample code: WorkloadNetworks_CreateVMGroup. @@ -18,6 +17,9 @@ public final class WorkloadNetworksCreateVMGroupSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().defineVMGroup("vmGroup1").withExistingPrivateCloud("group1", "cloud1").create(); + manager.workloadNetworks() + .defineVMGroup("vmGroup1") + .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 a0136f0a77906..55f0964ae2154 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 46045808df2cc..80f911798e291 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 7dd438a13588a..3aac62c89d403 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 004215f222580..27d4638ac918c 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeletePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 index 3d99b8cfec69e..de590aaf117c7 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 @@ -5,12 +5,11 @@ package com.azure.resourcemanager.avs.generated; /** - * Samples for WorkloadNetworks DeletePublicIP. + * Samples for WorkloadNetworks DeletePublicIp. */ -public final class WorkloadNetworksDeletePublicIPSamples { +public final class WorkloadNetworksDeletePublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeletePublicIP.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePublicIP.json */ /** * Sample code: WorkloadNetworks_DeletePublicIP. @@ -18,6 +17,6 @@ public final class WorkloadNetworksDeletePublicIPSamples { * @param manager Entry point to AvsManager. */ public static void workloadNetworksDeletePublicIP(com.azure.resourcemanager.avs.AvsManager manager) { - manager.workloadNetworks().deletePublicIP("group1", "publicIP1", "cloud1", com.azure.core.util.Context.NONE); + manager.workloadNetworks().deletePublicIp("group1", "publicIP1", "cloud1", com.azure.core.util.Context.NONE); } } 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 a881d250b2612..6157b021ff2e7 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_DeleteSegment.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteSegment.json */ /** * Sample code: WorkloadNetworks_DeleteSegment. @@ -18,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 b37fb6c3591a7..33e96f4a784cf 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksDeleteVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 71d91ef04f5af..af258ade33e73 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 a3c3bd7bcb5f4..dc96930cd9061 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsService.json */ /** * Sample code: WorkloadNetworks_GetDnsService. @@ -19,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 7468c4b6d09c2..9119dde3a2e3b 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 9764bbf374593..6ca4de6b65b9f 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetGatewaySamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 7bbfab2540c2e..a4b30f8df574e 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetPortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPortMirroring.json */ /** * Sample code: WorkloadNetworks_GetPortMirroring. @@ -19,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 index 4f8c1c88ede1c..513b3818d75f5 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 @@ -5,12 +5,11 @@ package com.azure.resourcemanager.avs.generated; /** - * Samples for WorkloadNetworks GetPublicIP. + * Samples for WorkloadNetworks GetPublicIp. */ -public final class WorkloadNetworksGetPublicIPSamples { +public final class WorkloadNetworksGetPublicIpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 330f7c14d3f16..0618a3ec89de1 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 @@ -9,7 +9,7 @@ */ public final class WorkloadNetworksGetSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_Get.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_Get.json */ /** * Sample code: WorkloadNetworks_Get. @@ -17,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 b869e28121648..e1d5deff8e16d 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 c5fe6c5436e11..ce403e012b265 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 1ffc781982ded..704ecf6f0627a 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksGetVirtualMachineSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_GetVirtualMachine.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVirtualMachine.json */ /** * Sample code: WorkloadNetworks_GetVirtualMachine. @@ -19,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 d6aa6028e7b61..c6df4c634fd54 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListDhcpSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 ccc7aba5d323c..24d16711729f9 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListDnsServicesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListDnsServices.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsServices.json */ /** * Sample code: WorkloadNetworks_ListDnsServices. @@ -18,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 ae4a063c9f614..c74950bf52317 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListDnsZonesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0a44150ae976b..4a45358671a14 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListGatewaysSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 a8ff0a1586959..e928f321298a9 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListPortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListPortMirroring.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPortMirroring.json */ /** * Sample code: WorkloadNetworks_ListPortMirroring. @@ -18,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 167687973fdb1..7ebdc21f49d5e 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 @@ -5,12 +5,11 @@ 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/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_ListPublicIPs.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPublicIPs.json */ /** * Sample code: WorkloadNetworks_ListPublicIPs. @@ -18,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 4acc7badb600f..06cd2407ed047 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 @@ -9,7 +9,7 @@ */ public final class WorkloadNetworksListSamples { /* - * x-ms-original-file: specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 0e8c5a2c73704..7eb9313d40e91 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListSegmentsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 8344435748828..b833e19e6e192 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListVMGroupsSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 ec6af352fa6e7..d9602593cb7d1 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 @@ -9,8 +9,7 @@ */ public final class WorkloadNetworksListVirtualMachinesSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 15f50b1a67704..0000000000000 --- 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) TypeSpec 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/Microsoft.AVS.Management/examples/2023-09-01/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 dee30a4fc79d8..1eef1c4a98e3e 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 @@ -13,8 +13,7 @@ */ public final class WorkloadNetworksUpdateDnsServiceSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateDnsService.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsService.json */ /** * Sample code: WorkloadNetworks_UpdateDnsService. @@ -23,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 58d7a4f11ca07..fec2f14848de8 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 @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksUpdateDnsZoneSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateDnsZone.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsZone.json */ /** * Sample code: WorkloadNetworks_UpdateDnsZone. @@ -22,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 a104f86d757af..b86335da2b025 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 @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksUpdatePortMirroringSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/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 index f6e23c523516a..c8c5809dba247 100644 --- 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 @@ -11,8 +11,7 @@ */ public final class WorkloadNetworksUpdateSegmentSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateSegments.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateSegments.json */ /** * Sample code: WorkloadNetworks_UpdateSegments. @@ -21,7 +20,7 @@ public final class WorkloadNetworksUpdateSegmentSamples { */ 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().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 6bf6950349e74..6ebdd5eb0d046 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 @@ -12,8 +12,7 @@ */ public final class WorkloadNetworksUpdateVMGroupSamples { /* - * x-ms-original-file: - * specification/vmware/Microsoft.AVS.Management/examples/2023-09-01/WorkloadNetworks_UpdateVMGroup.json + * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateVMGroup.json */ /** * Sample code: WorkloadNetworks_UpdateVMGroup. @@ -22,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/generated/AddonArcPropertiesTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/AddonArcPropertiesTests.java index fc9ad39c0d99a..6f83330019136 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 @@ -12,15 +12,15 @@ public final class AddonArcPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonArcProperties model - = BinaryData.fromString("{\"addonType\":\"Arc\",\"vCenter\":\"sz\",\"provisioningState\":\"Succeeded\"}") + = BinaryData.fromString("{\"addonType\":\"Arc\",\"vCenter\":\"hxw\",\"provisioningState\":\"Succeeded\"}") .toObject(AddonArcProperties.class); - Assertions.assertEquals("sz", model.vCenter()); + Assertions.assertEquals("hxw", model.vCenter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddonArcProperties model = new AddonArcProperties().withVCenter("sz"); + AddonArcProperties model = new AddonArcProperties().withVCenter("hxw"); model = BinaryData.fromObject(model).toObject(AddonArcProperties.class); - Assertions.assertEquals("sz", 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 9dab1f86e4f5c..b5ec19a965364 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 @@ -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\":\"jervtia\",\"provisioningState\":\"Failed\"}") + = BinaryData.fromString("{\"addonType\":\"HCX\",\"offer\":\"bzpfzab\",\"provisioningState\":\"Failed\"}") .toObject(AddonHcxProperties.class); - Assertions.assertEquals("jervtia", model.offer()); + Assertions.assertEquals("bzpfzab", model.offer()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddonHcxProperties model = new AddonHcxProperties().withOffer("jervtia"); + AddonHcxProperties model = new AddonHcxProperties().withOffer("bzpfzab"); model = BinaryData.fromObject(model).toObject(AddonHcxProperties.class); - Assertions.assertEquals("jervtia", 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 e01043bc81917..e2eecf1a228ef 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 @@ -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\":\"Succeeded\"},\"id\":\"rodtjinfwjlfl\",\"name\":\"kacjvefkdlfo\",\"type\":\"kggkfpa\"}") + "{\"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 532901e961325..fc8929eac5850 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 @@ -12,8 +12,8 @@ public final class AddonListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddonList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Cancelled\"},\"id\":\"kqb\",\"name\":\"qu\",\"type\":\"paxh\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"},\"id\":\"ivpdtiir\",\"name\":\"tdqoaxoruzfgsq\",\"type\":\"yfxrx\"},{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Deleting\"},\"id\":\"ramxjezwlwnw\",\"name\":\"uqlcvydy\",\"type\":\"atdooaojkniod\"}],\"nextLink\":\"oebwnujhemms\"}") + "{\"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("oebwnujhemms", 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 984df8afb9dad..b74cc70828d46 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 @@ -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\":\"Succeeded\"}") + = 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 a83ae07bf20bf..6029f4e9f425a 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 @@ -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\":1554130145,\"provisioningState\":\"Deleting\"}") - .toObject(AddonVrProperties.class); - Assertions.assertEquals(1554130145, 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(1554130145); + AddonVrProperties model = new AddonVrProperties().withVrsCount(1275335894); model = BinaryData.fromObject(model).toObject(AddonVrProperties.class); - Assertions.assertEquals(1554130145, 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 3ba074494e4af..325740d309225 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 @@ -21,7 +21,7 @@ public final class AddonsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Succeeded\"},\"id\":\"fifhxwrsnew\",\"name\":\"ozqvbubqmam\",\"type\":\"sycxhxzgaz\"}"; + = "{\"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("ogphuartvtiu") - .withExistingPrivateCloud("foiyjwpfilk", "kkholvdndvia") + .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 04c57c6263fb4..4345543505ab6 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 @@ -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("xoe", "qinjipnwjf", "jqlafcbahhpzp", 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 40c81c46b64b6..b39facc42c5d8 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 @@ -20,7 +20,7 @@ public final class AddonsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Updating\"},\"id\":\"wjedmurrxxgew\",\"name\":\"ktvqylkmqpzoy\",\"type\":\"lfbcgwgcl\"}"; + = "{\"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("dkvgfabuiyjibuzp", "dugneiknp", "oxgjiuqhibt", 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 04e1a79b9d16b..52310e01b3f40 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 @@ -21,7 +21,7 @@ public final class AddonsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Cancelled\"},\"id\":\"swvxwlmzqwmv\",\"name\":\"xnjmxm\",\"type\":\"uqudtcvclxyn\"}]}"; + = "{\"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("vmribiat", "gplucfotangcfhny", 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 b87cca7611437..9eb6e420d7e78 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 @@ -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("jrajcivm", "ghfcfiwrxgkneuvy", "nzqodfvpg", 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/CloudLinkInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/CloudLinkInnerTests.java index db8cd6890a4e4..07b525e0f8c0d 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 @@ -12,15 +12,15 @@ public final class CloudLinkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudLinkInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Deleting\",\"linkedCloud\":\"vayffimrzrt\"},\"id\":\"qogsexnevfd\",\"name\":\"wnwmewzs\",\"type\":\"yceuzsoib\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":\"Deleting\",\"linkedCloud\":\"rgvtqag\"},\"id\":\"uynhijg\",\"name\":\"mebf\",\"type\":\"iarbutrcvpna\"}") .toObject(CloudLinkInner.class); - Assertions.assertEquals("vayffimrzrt", model.linkedCloud()); + Assertions.assertEquals("rgvtqag", model.linkedCloud()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudLinkInner model = new CloudLinkInner().withLinkedCloud("vayffimrzrt"); + CloudLinkInner model = new CloudLinkInner().withLinkedCloud("rgvtqag"); model = BinaryData.fromObject(model).toObject(CloudLinkInner.class); - Assertions.assertEquals("vayffimrzrt", 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 959612d1c009c..55d540f1fdff7 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 @@ -12,9 +12,9 @@ public final class CloudLinkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudLinkList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Failed\",\"linkedCloud\":\"tcs\"},\"id\":\"cktqumiekkezzi\",\"name\":\"hlyfjhdgqgg\",\"type\":\"bdunygaeqid\"},{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Disconnected\",\"linkedCloud\":\"llrxcyjmoad\"},\"id\":\"varmywdmj\",\"name\":\"jqbjhhy\",\"type\":\"xrwlyc\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Disconnected\",\"linkedCloud\":\"kgymareqnajxqug\"},\"id\":\"ky\",\"name\":\"ubeddg\",\"type\":\"sofwqmzqalkrmnji\"}],\"nextLink\":\"xacqqudfnbyx\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Active\",\"linkedCloud\":\"mpvecxgodebfqk\"},\"id\":\"bmpukgriwflz\",\"name\":\"fbxzpuzycisp\",\"type\":\"qzahmgkbrp\"}],\"nextLink\":\"dhibnuq\"}") .toObject(CloudLinkList.class); - Assertions.assertEquals("tcs", model.value().get(0).linkedCloud()); - Assertions.assertEquals("xacqqudfnbyx", 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 b4f81c7d08f86..85e2b65b0da1c 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 @@ -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\":\"Disconnected\",\"linkedCloud\":\"xtrthz\"}") + .fromString("{\"provisioningState\":\"Failed\",\"status\":\"Deleting\",\"linkedCloud\":\"unmpxttd\"}") .toObject(CloudLinkProperties.class); - Assertions.assertEquals("xtrthz", model.linkedCloud()); + Assertions.assertEquals("unmpxttd", model.linkedCloud()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudLinkProperties model = new CloudLinkProperties().withLinkedCloud("xtrthz"); + CloudLinkProperties model = new CloudLinkProperties().withLinkedCloud("unmpxttd"); model = BinaryData.fromObject(model).toObject(CloudLinkProperties.class); - Assertions.assertEquals("xtrthz", 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 e0632a8852e97..3785a1c3d23aa 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 @@ -21,7 +21,7 @@ public final class CloudLinksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":\"Deleting\",\"linkedCloud\":\"iibakcl\"},\"id\":\"jfrnxousxauzlwv\",\"name\":\"gmwohqfzizvu\",\"type\":\"mmkjsvthnwpztek\"}"; + = "{\"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("vkhlggdhbemz") - .withExistingPrivateCloud("kfvxcnq", "xqpswok") - .withLinkedCloud("iwtglxxhljfpg") + .define("uxswqrntvl") + .withExistingPrivateCloud("chzyvlixqnrk", "xkjibnxmy") + .withLinkedCloud("exoqqpwcyyufm") .create(); - Assertions.assertEquals("iibakcl", 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 1ec44341e0ed5..3fd2f64f5f430 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 @@ -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("hgovfgp", "kqmhhaowjr", "zvuporqzdfuydz", 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 e20fa18dc661f..908971421d8b0 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 @@ -21,7 +21,7 @@ public final class CloudLinksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Building\",\"linkedCloud\":\"ubcpzgpxti\"},\"id\":\"j\",\"name\":\"nidibgqjxg\",\"type\":\"n\"}"; + = "{\"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("nkvxlxpaglqi", "bgkc", "khpzvuqdflv", com.azure.core.util.Context.NONE) + .getWithResponse("oldforobw", "lvizb", "hfovvacqpbtu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ubcpzgpxti", 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 de9ce779b9d2d..250b2c2a48974 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 @@ -22,7 +22,7 @@ public final class CloudLinksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":\"Building\",\"linkedCloud\":\"hckfkyjpmspbps\"},\"id\":\"fppyogtieyujtvcz\",\"name\":\"cnyxrxmunjd\",\"type\":\"vg\"}]}"; + = "{\"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))); @@ -32,8 +32,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.cloudLinks().list("xqszdtmaajquh", "xylrjvmtygjbmz", com.azure.core.util.Context.NONE); + = manager.cloudLinks().list("lpmjerb", "kelvidizozsdb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hckfkyjpmspbps", 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/ClustersCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ClustersCreateOrUpdateMockTests.java index 4adc81db767ca..0407118906b9e 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 @@ -24,7 +24,7 @@ public final class ClustersCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"clusterSize\":687861741,\"provisioningState\":\"Succeeded\",\"clusterId\":1053518025,\"hosts\":[\"vluwmncsttij\",\"y\",\"vpo\"],\"vsanDatastoreName\":\"rsg\"},\"sku\":{\"name\":\"gbdhuzqgnjdg\",\"tier\":\"Premium\",\"size\":\"cli\",\"family\":\"zvhxnk\",\"capacity\":144563900},\"id\":\"u\",\"name\":\"otppnv\",\"type\":\"xz\"}"; + = "{\"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("mlqtmldgxob") - .withExistingPrivateCloud("gzuriglaecxndt", "cokpv") - .withSku(new Sku().withName("fvjlboxqvkjlmx") - .withTier(SkuTier.FREE) - .withSize("ynhdwdigum") - .withFamily("raauzzpt") - .withCapacity(1518095696)) - .withClusterSize(1763053171) - .withHosts(Arrays.asList("ayzri")) - .withVsanDatastoreName("hya") + .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("gbdhuzqgnjdg", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("cli", response.sku().size()); - Assertions.assertEquals("zvhxnk", response.sku().family()); - Assertions.assertEquals(144563900, response.sku().capacity()); - Assertions.assertEquals(687861741, response.clusterSize()); - Assertions.assertEquals("vluwmncsttij", response.hosts().get(0)); - Assertions.assertEquals("rsg", 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 b53342f54c418..6705a89a67cda 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 @@ -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("ril", "zapeewchpx", "ktwkuziyc", 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 cc8f6a8a6854b..c3d95b75444c2 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 @@ -22,7 +22,7 @@ public final class ClustersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"clusterSize\":1933240221,\"provisioningState\":\"Failed\",\"clusterId\":1386214001,\"hosts\":[\"ulapzwyrp\",\"ogtqxepnylbf\",\"ajlyjtlvofqzhv\",\"cib\"],\"vsanDatastoreName\":\"mowuxrk\"},\"sku\":{\"name\":\"pvdwxf\",\"tier\":\"Premium\",\"size\":\"vwzjbhyz\",\"family\":\"jrkambtrnegvmnv\",\"capacity\":531370640},\"id\":\"vldspa\",\"name\":\"tjb\",\"type\":\"kdmflvestmjlx\"}"; + = "{\"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("xkzb", "msgeivsiykzk", "ncj", com.azure.core.util.Context.NONE) + .getWithResponse("pimaqxzhemjyh", "hujswtwkozzwcul", "bawpfajnjwltlwt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pvdwxf", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("vwzjbhyz", response.sku().size()); - Assertions.assertEquals("jrkambtrnegvmnv", response.sku().family()); - Assertions.assertEquals(531370640, response.sku().capacity()); - Assertions.assertEquals(1933240221, response.clusterSize()); - Assertions.assertEquals("ulapzwyrp", response.hosts().get(0)); - Assertions.assertEquals("mowuxrk", 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 2569bc7d8aacb..4633281c2a5cc 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 @@ -23,7 +23,7 @@ public final class ClustersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"clusterSize\":1426712657,\"provisioningState\":\"Cancelled\",\"clusterId\":128886656,\"hosts\":[\"l\",\"chp\",\"db\"],\"vsanDatastoreName\":\"vwrdnhfukuvsj\"},\"sku\":{\"name\":\"swsmys\",\"tier\":\"Premium\",\"size\":\"qypfcv\",\"family\":\"rchpqbmfpjbabwid\",\"capacity\":1095864620},\"id\":\"spuunnoxyhkxgq\",\"name\":\"drihpfhoqcaaewda\",\"type\":\"mdjvlpj\"}]}"; + = "{\"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("n", "ntfpmvmemfnc", com.azure.core.util.Context.NONE); + = manager.clusters().list("metttwgd", "lqxihhrmooiz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("swsmys", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.iterator().next().sku().tier()); - Assertions.assertEquals("qypfcv", response.iterator().next().sku().size()); - Assertions.assertEquals("rchpqbmfpjbabwid", response.iterator().next().sku().family()); - Assertions.assertEquals(1095864620, response.iterator().next().sku().capacity()); - Assertions.assertEquals(1426712657, response.iterator().next().clusterSize()); - Assertions.assertEquals("l", response.iterator().next().hosts().get(0)); - Assertions.assertEquals("vwrdnhfukuvsj", 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 3578bd3d3dea5..af8b76f84f5d2 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 @@ -20,7 +20,7 @@ public final class ClustersListZonesWithResponseMockTests { @Test public void testListZonesWithResponse() throws Exception { String responseStr - = "{\"zones\":[{\"hosts\":[\"gl\",\"dzgkr\"],\"zone\":\"eevt\"},{\"hosts\":[\"r\"],\"zone\":\"t\"},{\"hosts\":[\"tpzdmovzvfvaawzq\"],\"zone\":\"f\"}]}"; + = "{\"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("levufuztcktyhj", "qedcgzulwm", "rqzz", 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/DatastoresCreateOrUpdateMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/DatastoresCreateOrUpdateMockTests.java index 143833b2880da..cd84a2972633e 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 @@ -25,7 +25,7 @@ public final class DatastoresCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"t\"},\"diskPoolVolume\":{\"targetId\":\"dslqxihhrmooizqs\",\"lunName\":\"ypxiutcxap\",\"mountOption\":\"MOUNT\",\"path\":\"petogebjox\"},\"elasticSanVolume\":{\"targetId\":\"hvnh\"},\"status\":\"Unknown\"},\"id\":\"q\",\"name\":\"kkzjcjbtrga\",\"type\":\"hvv\"}"; + = "{\"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,19 +35,18 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Datastore response = manager.datastores() - .define("teyowclu") - .withExistingCluster("cuplcplcwkhih", "hlhzdsqtzbsrgno", "cjhfgmvecactxmw") - .withNetAppVolume(new NetAppVolume().withId("qvgqouw")) - .withDiskPoolVolume(new DiskPoolVolume().withTargetId("zmpjwyiv") - .withLunName("ikf") - .withMountOption(MountOptionEnum.ATTACH)) - .withElasticSanVolume(new ElasticSanVolume().withTargetId("kteusqczk")) + .define("zrcxfailcfxwmdbo") + .withExistingCluster("z", "mes", "kdlpa") + .withNetAppVolume(new NetAppVolume().withId("ft")) + .withDiskPoolVolume( + new DiskPoolVolume().withTargetId("qobr").withLunName("lnacgcc").withMountOption(MountOptionEnum.MOUNT)) + .withElasticSanVolume(new ElasticSanVolume().withTargetId("rzvul")) .create(); - Assertions.assertEquals("t", response.netAppVolume().id()); - Assertions.assertEquals("dslqxihhrmooizqs", response.diskPoolVolume().targetId()); - Assertions.assertEquals("ypxiutcxap", response.diskPoolVolume().lunName()); + 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("hvnh", response.elasticSanVolume().targetId()); + 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 3be3a4c511f63..f4143a2646446 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 @@ -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("nbtgkbugrjqctoj", "mi", "of", "eypefojyqd", 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 cd551340a1ee0..3338e7cf74caa 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 @@ -22,7 +22,7 @@ public final class DatastoresGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"netAppVolume\":{\"id\":\"hycav\"},\"diskPoolVolume\":{\"targetId\":\"ggxdb\",\"lunName\":\"esmi\",\"mountOption\":\"ATTACH\",\"path\":\"ra\"},\"elasticSanVolume\":{\"targetId\":\"aawiuagydwqfb\"},\"status\":\"Detached\"},\"id\":\"fgiagtcojocqwo\",\"name\":\"fnzjvusfzldm\",\"type\":\"zuxylfsbtkadpyso\"}"; + = "{\"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,14 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Datastore response = manager.datastores() - .getWithResponse("fcjnaeoisrvhmgor", "fukiscvwmzhw", "lefaxvxilcbtgn", "nzeyqxtjj", - com.azure.core.util.Context.NONE) + .getWithResponse("xcktpiymerteeamm", "qiekkkzddrt", "g", "ojbmxv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hycav", response.netAppVolume().id()); - Assertions.assertEquals("ggxdb", response.diskPoolVolume().targetId()); - Assertions.assertEquals("esmi", 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("aawiuagydwqfb", 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 aedf1e64269c0..e0c0c278d01fb 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 @@ -23,7 +23,7 @@ public final class DatastoresListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"netAppVolume\":{\"id\":\"nysuxmprafwgckh\"},\"diskPoolVolume\":{\"targetId\":\"xvd\",\"lunName\":\"ffwafq\",\"mountOption\":\"ATTACH\",\"path\":\"aspavehhr\"},\"elasticSanVolume\":{\"targetId\":\"bunzozudh\"},\"status\":\"DeadOrError\"},\"id\":\"moy\",\"name\":\"cdyuibhmfdnbzyd\",\"type\":\"f\"}]}"; + = "{\"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))); @@ -32,13 +32,13 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.datastores() - .list("hihfrbbcevqagtlt", "hlfkqojpy", "vgtrdcnifmzzs", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.datastores().list("hzbezkgi", "sidxasicdd", "vvjskgfmocwahp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nysuxmprafwgckh", response.iterator().next().netAppVolume().id()); - Assertions.assertEquals("xvd", response.iterator().next().diskPoolVolume().targetId()); - Assertions.assertEquals("ffwafq", 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("bunzozudh", 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/GlobalReachConnectionsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/GlobalReachConnectionsDeleteMockTests.java index 47232aba946a1..ce4408e445e51 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 @@ -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("hyuemslyn", "qyrp", "oobrlttyms", 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 e6d7606867a65..f2c35160b81ac 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 @@ -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("j", "uktalhsnvkcdmxz", "poaimlnwiaaomyl", 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 563c4efc19b22..5582cd1018cfd 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 @@ -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\":\"kjprvk\"},\"id\":\"fz\",\"name\":\"ljyxgtczhe\",\"type\":\"dbsdshm\"}") + "{\"properties\":{\"provisioningState\":\"Updating\",\"networkBlock\":\"ufoxc\"},\"id\":\"opidoamciodh\",\"name\":\"haz\",\"type\":\"khnzbonlw\"}") .toObject(IscsiPathInner.class); - Assertions.assertEquals("kjprvk", model.networkBlock()); + Assertions.assertEquals("ufoxc", model.networkBlock()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IscsiPathInner model = new IscsiPathInner().withNetworkBlock("kjprvk"); + IscsiPathInner model = new IscsiPathInner().withNetworkBlock("ufoxc"); model = BinaryData.fromObject(model).toObject(IscsiPathInner.class); - Assertions.assertEquals("kjprvk", 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 489c2c71d2501..1a84e128943f9 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 @@ -12,9 +12,9 @@ public final class IscsiPathListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IscsiPathListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"networkBlock\":\"mvikl\"},\"id\":\"dvk\",\"name\":\"bejdznxcv\",\"type\":\"srhnjivo\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"networkBlock\":\"ovqfzge\"},\"id\":\"dftuljltduce\",\"name\":\"mtmczuome\",\"type\":\"wcw\"}],\"nextLink\":\"ioknssxmoj\"}") + "{\"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("mvikl", model.value().get(0).networkBlock()); - Assertions.assertEquals("ioknssxmoj", 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 db8a538a1cd77..7872b097ba5ba 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 @@ -12,15 +12,15 @@ public final class IscsiPathPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IscsiPathProperties model - = BinaryData.fromString("{\"provisioningState\":\"Building\",\"networkBlock\":\"aehvbbxuri\"}") + = BinaryData.fromString("{\"provisioningState\":\"Canceled\",\"networkBlock\":\"egokdwbwhkszzcmr\"}") .toObject(IscsiPathProperties.class); - Assertions.assertEquals("aehvbbxuri", model.networkBlock()); + Assertions.assertEquals("egokdwbwhkszzcmr", model.networkBlock()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IscsiPathProperties model = new IscsiPathProperties().withNetworkBlock("aehvbbxuri"); + IscsiPathProperties model = new IscsiPathProperties().withNetworkBlock("egokdwbwhkszzcmr"); model = BinaryData.fromObject(model).toObject(IscsiPathProperties.class); - Assertions.assertEquals("aehvbbxuri", 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 b7c94847759b1..783e84f7bd670 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 @@ -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\":\"qyzqedikdfrdb\"},\"id\":\"mrjgeihfqlggwfi\",\"name\":\"zcxmjpbyep\",\"type\":\"mgtvlj\"}"; + = "{\"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("sbbjpmcu", "kmifoxxkub", new IscsiPathInner().withNetworkBlock("v"), - com.azure.core.util.Context.NONE); + .define("cgbjbgdlfgt") + .withExistingPrivateCloud("xncnwfe", "bnwgfmxj") + .withNetworkBlock("aquflqbctqha") + .create(); - Assertions.assertEquals("qyzqedikdfrdb", 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 9f64e3eed2b27..f7c89834acbfc 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 @@ -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("rc", "yfqi", 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 3267bd12311ab..bb6c643049623 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 @@ -21,7 +21,7 @@ public final class IscsiPathsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Deleting\",\"networkBlock\":\"qlkccuzgygqwaho\"},\"id\":\"lwgniiprglvawu\",\"name\":\"z\",\"type\":\"ufypiv\"}"; + = "{\"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("e", "dptjgwdtgukranb", com.azure.core.util.Context.NONE).getValue(); + IscsiPath response = manager.iscsiPaths() + .getWithResponse("tjvidt", "gepuslvyjtc", "uwkasiz", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("qlkccuzgygqwaho", 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 a1e25d8971756..1d6fd83538cd7 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 @@ -22,7 +22,7 @@ public final class IscsiPathsListByPrivateCloudMockTests { @Test public void testListByPrivateCloud() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"networkBlock\":\"lrmymyincqlhri\"},\"id\":\"sl\",\"name\":\"iiiovgqcgxuugq\",\"type\":\"ctotiowlx\"}]}"; + = "{\"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))); @@ -32,8 +32,8 @@ public void testListByPrivateCloud() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.iscsiPaths().listByPrivateCloud("j", "emmucfxh", com.azure.core.util.Context.NONE); + = manager.iscsiPaths().listByPrivateCloud("iropionszon", "pngajin", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lrmymyincqlhri", 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 f617dc3425cf2..e8ea3f70361c3 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 @@ -19,7 +19,7 @@ public final class LocationsCheckQuotaAvailabilityWithResponseMockTests { @Test public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"hostsRemaining\":{\"vyvnqqyb\":382394727},\"quotaEnabled\":\"Enabled\"}"; + String responseStr = "{\"hostsRemaining\":{\"yutnwytpzdmov\":254109783},\"quotaEnabled\":\"Enabled\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testCheckQuotaAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Quota response = manager.locations() - .checkQuotaAvailabilityWithResponse("orfmluiqt", 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 313c8a65432be..09267a3cae90c 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 @@ -21,7 +21,7 @@ public final class LocationsCheckTrialAvailabilityWithResponseMockTests { @Test public void testCheckTrialAvailabilityWithResponse() throws Exception { - String responseStr = "{\"status\":\"TrialUsed\",\"availableHosts\":1122494487}"; + 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("dlwwqfbumlkxt", - new Sku().withName("qjfsmlmbtxhw") - .withTier(SkuTier.FREE) - .withSize("rtawcoezb") - .withFamily("ubskhudygoookkq") - .withCapacity(280222728), + .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/OperationsListMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/OperationsListMockTests.java index 0df2cf6cdc7a5..c939939f04c07 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 @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"tfnhtbaxkgxywr\",\"isDataAction\":true,\"display\":{\"provider\":\"lyhpluodpvruud\",\"resource\":\"zibt\",\"operation\":\"stgktst\",\"description\":\"xeclzedqbcvhzlhp\"},\"origin\":\"system\",\"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))); 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 a144f64201283..edbde6a79750b 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 @@ -23,7 +23,7 @@ public final class PlacementPoliciesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"fdjktsysidfvclgl\",\"provisioningState\":\"Succeeded\"},\"id\":\"ijtk\",\"name\":\"usqogsfikayia\",\"type\":\"sharujtj\"}"; + = "{\"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("dirazf") - .withExistingCluster("tdtpdelqacslmo", "oebn", "xofvcjk") - .withProperties( - new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED).withDisplayName("ab")) + .define("ljgkyex") + .withExistingCluster("pud", "dabtqwp", "yawbzasqbu") + .withProperties(new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED) + .withDisplayName("aipidsdaultxi")) .create(); Assertions.assertEquals(PlacementPolicyState.DISABLED, response.properties().state()); - Assertions.assertEquals("fdjktsysidfvclgl", response.properties().displayName()); + 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 1028e52b134db..90bf6780eceb9 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 @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.placementPolicies() - .delete("eqacjjvpilguooq", "agmdit", "ueio", "kjbsah", 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 92947d11d8512..ea365105d3787 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 @@ -22,7 +22,7 @@ public final class PlacementPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"lqbctqhamzjrw\",\"provisioningState\":\"Canceled\"},\"id\":\"eqyj\",\"name\":\"eziunjxdfzant\",\"type\":\"wcegyamlbn\"}"; + = "{\"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("jqatucoigebxn", "nwfepbnwg", "m", "jgcgbjbgdlfgtdys", 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("lqbctqhamzjrw", 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 2683a265525af..7e3c0acf056b8 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 @@ -23,7 +23,7 @@ public final class PlacementPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"uhxu\",\"provisioningState\":\"Canceled\"},\"id\":\"ewmrswnjlxu\",\"name\":\"rhwpus\",\"type\":\"jbaqehgpdoh\"}]}"; + = "{\"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("vidttgepuslvyjt", "vuwkasiziesfuugh", "uqfecj", 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("uhxu", 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 812ec7103817d..3c64dba063b69 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 @@ -13,10 +13,10 @@ public final class PlacementPoliciesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPoliciesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"wyznkbyku\",\"provisioningState\":\"Deleting\"},\"id\":\"hpagm\",\"name\":\"r\",\"type\":\"kdsnfdsdoakgtdl\"}],\"nextLink\":\"kzevdlhewpusds\"}") + "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"kdeemaofmxagkvtm\",\"provisioningState\":\"Failed\"},\"id\":\"krh\",\"name\":\"hvljuahaquh\",\"type\":\"dhmdua\"}],\"nextLink\":\"exq\"}") .toObject(PlacementPoliciesList.class); Assertions.assertEquals(PlacementPolicyState.ENABLED, model.value().get(0).properties().state()); - Assertions.assertEquals("wyznkbyku", model.value().get(0).properties().displayName()); - Assertions.assertEquals("kzevdlhewpusds", model.nextLink()); + 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 b2f59ceaa089b..a73cdd2edb51e 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 @@ -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\":\"gvbbejdcng\",\"provisioningState\":\"Deleting\"},\"id\":\"akufgmjz\",\"name\":\"wr\",\"type\":\"grtwae\"}") + "{\"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("gvbbejdcng", 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("gvbbejdcng")); + new PlacementPolicyProperties().withState(PlacementPolicyState.ENABLED).withDisplayName("mwsrcrgvxpvgo")); model = BinaryData.fromObject(model).toObject(PlacementPolicyInner.class); - Assertions.assertEquals(PlacementPolicyState.DISABLED, model.properties().state()); - Assertions.assertEquals("gvbbejdcng", 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 2649024e7c2cb..b1d6ade40407f 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 @@ -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\":\"Disabled\",\"displayName\":\"kopbminrf\",\"provisioningState\":\"Canceled\"}") + "{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"hakauhashsf\",\"provisioningState\":\"Building\"}") .toObject(PlacementPolicyProperties.class); Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); - Assertions.assertEquals("kopbminrf", model.displayName()); + Assertions.assertEquals("hakauhashsf", model.displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyProperties model - = new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("kopbminrf"); + = new PlacementPolicyProperties().withState(PlacementPolicyState.DISABLED).withDisplayName("hakauhashsf"); model = BinaryData.fromObject(model).toObject(PlacementPolicyProperties.class); Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); - Assertions.assertEquals("kopbminrf", model.displayName()); + 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 89896d66e5826..25b7682321511 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 @@ -16,28 +16,28 @@ public final class PlacementPolicyUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyUpdateProperties model = BinaryData.fromString( - "{\"state\":\"Enabled\",\"vmMembers\":[\"lfeadcygq\"],\"hostMembers\":[\"hejhzisx\",\"fpel\",\"lppvksrpq\"],\"affinityStrength\":\"Must\",\"azureHybridBenefitType\":\"None\"}") + "{\"state\":\"Disabled\",\"vmMembers\":[\"lrbpbewtghfgbl\",\"gw\",\"zvlvqhjkbegib\"],\"hostMembers\":[\"xiebwwaloayqcg\",\"rtzju\"],\"affinityStrength\":\"Must\",\"azureHybridBenefitType\":\"SqlHost\"}") .toObject(PlacementPolicyUpdateProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("lfeadcygq", model.vmMembers().get(0)); - Assertions.assertEquals("hejhzisx", model.hostMembers().get(0)); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("lrbpbewtghfgbl", model.vmMembers().get(0)); + Assertions.assertEquals("xiebwwaloayqcg", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); - Assertions.assertEquals(AzureHybridBenefitType.NONE, model.azureHybridBenefitType()); + Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyUpdateProperties model - = new PlacementPolicyUpdateProperties().withState(PlacementPolicyState.ENABLED) - .withVmMembers(Arrays.asList("lfeadcygq")) - .withHostMembers(Arrays.asList("hejhzisx", "fpel", "lppvksrpq")) + = new PlacementPolicyUpdateProperties().withState(PlacementPolicyState.DISABLED) + .withVmMembers(Arrays.asList("lrbpbewtghfgbl", "gw", "zvlvqhjkbegib")) + .withHostMembers(Arrays.asList("xiebwwaloayqcg", "rtzju")) .withAffinityStrength(AffinityStrength.MUST) - .withAzureHybridBenefitType(AzureHybridBenefitType.NONE); + .withAzureHybridBenefitType(AzureHybridBenefitType.SQL_HOST); model = BinaryData.fromObject(model).toObject(PlacementPolicyUpdateProperties.class); - Assertions.assertEquals(PlacementPolicyState.ENABLED, model.state()); - Assertions.assertEquals("lfeadcygq", model.vmMembers().get(0)); - Assertions.assertEquals("hejhzisx", model.hostMembers().get(0)); + Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); + Assertions.assertEquals("lrbpbewtghfgbl", model.vmMembers().get(0)); + Assertions.assertEquals("xiebwwaloayqcg", model.hostMembers().get(0)); Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); - Assertions.assertEquals(AzureHybridBenefitType.NONE, model.azureHybridBenefitType()); + 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 f5dfd57f44288..600d871dc3cc9 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 @@ -16,27 +16,27 @@ public final class PlacementPolicyUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlacementPolicyUpdate model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Enabled\",\"vmMembers\":[\"msweypqwdxggicc\",\"n\",\"qhuexm\"],\"hostMembers\":[\"lstvlzywe\",\"hz\",\"ncsdtclusiyp\"],\"affinityStrength\":\"Must\",\"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("msweypqwdxggicc", model.vmMembers().get(0)); - Assertions.assertEquals("lstvlzywe", model.hostMembers().get(0)); - Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); + 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()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PlacementPolicyUpdate model = new PlacementPolicyUpdate().withState(PlacementPolicyState.ENABLED) - .withVmMembers(Arrays.asList("msweypqwdxggicc", "n", "qhuexm")) - .withHostMembers(Arrays.asList("lstvlzywe", "hz", "ncsdtclusiyp")) - .withAffinityStrength(AffinityStrength.MUST) + .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("msweypqwdxggicc", model.vmMembers().get(0)); - Assertions.assertEquals("lstvlzywe", model.hostMembers().get(0)); - Assertions.assertEquals(AffinityStrength.MUST, model.affinityStrength()); + 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/PrivateCloudsDeleteMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/PrivateCloudsDeleteMockTests.java index 145be9812bdc5..2f446791b8eed 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 @@ -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("owzfttsttkt", "ahbqactxtgzuk", 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/ScriptCmdletInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/ScriptCmdletInnerTests.java index 607e7710d1c35..f70d02327ead1 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 @@ -11,7 +11,7 @@ public final class ScriptCmdletInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"ujxukndxd\",\"timeout\":\"rjguufzdmsyqtf\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"String\",\"name\":\"ingamvp\",\"description\":\"o\",\"visibility\":\"Visible\",\"optional\":\"Required\"},{\"type\":\"Int\",\"name\":\"qamvdkfwynwcvtbv\",\"description\":\"yhmtnvyqiat\",\"visibility\":\"Visible\",\"optional\":\"Required\"},{\"type\":\"Float\",\"name\":\"zcjaesgvvsccy\",\"description\":\"g\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Bool\",\"name\":\"lvdnkfx\",\"description\":\"emdwzrmuhapfc\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"qvpsvuoymg\",\"name\":\"celve\",\"type\":\"rypqlmfeo\"}") + "{\"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); } } 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 dd91bd4e542b0..c92df1128224d 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 @@ -11,7 +11,7 @@ public final class ScriptCmdletPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"description\":\"wkyhkobopgxe\",\"timeout\":\"owepbqpcrfkb\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Int\",\"name\":\"dw\",\"description\":\"p\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"}]}") + "{\"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); } } 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 0ce8b4364f000..626bd9e7f9252 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 @@ -20,7 +20,7 @@ public final class ScriptCmdletsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"vudb\",\"timeout\":\"aqdtvqecrqctmxxd\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"Int\",\"name\":\"ytxzvtznapxbanno\",\"description\":\"oxczytp\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Int\",\"name\":\"vytlyokrrrouuxvn\",\"description\":\"sbcrymodizrxklo\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"SecureString\",\"name\":\"kml\",\"description\":\"evfxzopjhbzxlioh\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"gxqbawpcb\",\"name\":\"nzqcy\",\"type\":\"napqo\"}"; + = "{\"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("lcqxypokk", "minqcym", "zng", "bdxxe", 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 7e3093b95e1e7..62816bfcdf737 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 @@ -21,7 +21,7 @@ public final class ScriptCmdletsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"arfdlpukhpyrnei\",\"timeout\":\"cpeogkhnmgbrou\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"SecureString\",\"name\":\"fpazjzoywjxhpd\",\"description\":\"ontacnpq\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"String\",\"name\":\"rhrljyoogwxhn\",\"description\":\"uug\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"}]},\"id\":\"rfqkfuar\",\"name\":\"nlvhhtklnvnafvv\",\"type\":\"yfedevjbo\"}]}"; + = "{\"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("kzmkwklsnoxaxmqe", "alhhjnhgwydyynfs", "khgb", 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 a924ce6c52659..4208c68360a8c 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 @@ -12,8 +12,8 @@ public final class ScriptCmdletsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptCmdletsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"bbqwrvtldg\",\"timeout\":\"pgvmpipaslthaqfx\",\"audience\":\"Any\",\"parameters\":[{\"type\":\"SecureString\",\"name\":\"dsrezpdrhneuyow\",\"description\":\"d\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"bi\",\"name\":\"cgpik\",\"type\":\"zimejzanlfzx\"},{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"bzonok\",\"timeout\":\"rjqc\",\"audience\":\"Automation\",\"parameters\":[{\"type\":\"Float\",\"name\":\"azszrnwoiindfpw\",\"description\":\"ylwbtlhflsjcdhsz\",\"visibility\":\"Hidden\",\"optional\":\"Required\"},{\"type\":\"Credential\",\"name\":\"eljag\",\"description\":\"mqhldvrii\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}]},\"id\":\"ghfkvtvsexs\",\"name\":\"wueluqhhahhxv\",\"type\":\"hmzk\"}],\"nextLink\":\"jgwwspughftq\"}") + "{\"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("jgwwspughftq", 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 3546c3688a252..c6a8f9831f392 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 @@ -17,40 +17,41 @@ public final class ScriptExecutionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionInner model = BinaryData.fromString( - "{\"properties\":{\"scriptCmdletId\":\"wct\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"zj\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"uu\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"lwg\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ytsbwtovv\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"gseinq\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"iufxqknpir\"}],\"failureReason\":\"epttwqmsniff\",\"timeout\":\"dmqnrojlpij\",\"retention\":\"rxfrddhc\",\"submittedAt\":\"2021-06-05T19:19:34Z\",\"startedAt\":\"2021-09-16T04:19:40Z\",\"finishedAt\":\"2021-03-09T16:30:01Z\",\"provisioningState\":\"Failed\",\"output\":[\"xi\",\"tozqyzhftwesgo\"],\"namedOutputs\":{\"honnxkrlgnyhmos\":{},\"xkk\":{},\"thrrgh\":{},\"jbdhqxvc\":{}},\"information\":[\"rpdsof\",\"shrnsvbuswdvz\",\"ybycnunvj\",\"rtkfawnopq\"],\"warnings\":[\"yzirtxdyuxzejn\",\"psew\",\"ioilqukrydxtq\"],\"errors\":[\"ox\",\"rgguf\",\"yaomtb\",\"hhavgrvkffovjz\"]},\"id\":\"jbibg\",\"name\":\"mfxumvfcluyovw\",\"type\":\"nbkfezzxscy\"}") + "{\"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("wct", model.scriptCmdletId()); - Assertions.assertEquals("zj", model.parameters().get(0).name()); - Assertions.assertEquals("lwg", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("epttwqmsniff", model.failureReason()); - Assertions.assertEquals("dmqnrojlpij", model.timeout()); - Assertions.assertEquals("rxfrddhc", model.retention()); - Assertions.assertEquals("xi", 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("wct") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("zj"), - new ScriptExecutionParameter().withName("uu"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("lwg"), - new ScriptExecutionParameter().withName("ytsbwtovv"), new ScriptExecutionParameter().withName("gseinq"), - new ScriptExecutionParameter().withName("iufxqknpir"))) - .withFailureReason("epttwqmsniff") - .withTimeout("dmqnrojlpij") - .withRetention("rxfrddhc") - .withOutput(Arrays.asList("xi", "tozqyzhftwesgo")) - .withNamedOutputs(mapOf("honnxkrlgnyhmos", new ScriptExecutionPropertiesNamedOutput(), "xkk", - new ScriptExecutionPropertiesNamedOutput(), "thrrgh", new ScriptExecutionPropertiesNamedOutput(), - "jbdhqxvc", new ScriptExecutionPropertiesNamedOutput())); + 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("wct", model.scriptCmdletId()); - Assertions.assertEquals("zj", model.parameters().get(0).name()); - Assertions.assertEquals("lwg", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("epttwqmsniff", model.failureReason()); - Assertions.assertEquals("dmqnrojlpij", model.timeout()); - Assertions.assertEquals("rxfrddhc", model.retention()); - Assertions.assertEquals("xi", 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 40fa91549dd47..19bb6f0a086f0 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 @@ -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\":\"zjxvydfcea\"}") + = BinaryData.fromString("{\"type\":\"ScriptExecutionParameter\",\"name\":\"sdbnwdcfhucqdpf\"}") .toObject(ScriptExecutionParameter.class); - Assertions.assertEquals("zjxvydfcea", model.name()); + Assertions.assertEquals("sdbnwdcfhucqdpf", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScriptExecutionParameter model = new ScriptExecutionParameter().withName("zjxvydfcea"); + ScriptExecutionParameter model = new ScriptExecutionParameter().withName("sdbnwdcfhucqdpf"); model = BinaryData.fromObject(model).toObject(ScriptExecutionParameter.class); - Assertions.assertEquals("zjxvydfcea", model.name()); + Assertions.assertEquals("sdbnwdcfhucqdpf", model.name()); } } 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 50ea1c22d39e7..376ded2ac3994 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 @@ -17,39 +17,40 @@ public final class ScriptExecutionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionProperties model = BinaryData.fromString( - "{\"scriptCmdletId\":\"zdgiruj\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"omvzzbtd\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"qvpn\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"yujviylwdshfssn\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"ye\"}],\"failureReason\":\"ymsgaojfmwnc\",\"timeout\":\"tmr\",\"retention\":\"irctymoxoftpipiw\",\"submittedAt\":\"2021-04-10T00:16:32Z\",\"startedAt\":\"2021-03-13T17:37:26Z\",\"finishedAt\":\"2021-05-14T09:28:57Z\",\"provisioningState\":\"Cancelling\",\"output\":[\"lihhyuspskasdvlm\",\"wdgzxulucv\"],\"namedOutputs\":{\"rsre\":{},\"zvxurisjnhny\":{},\"xifqjzgxm\":{},\"hu\":{}},\"information\":[\"pcesutrg\"],\"warnings\":[\"auutpwoqhihe\",\"qg\"],\"errors\":[\"nfqn\",\"cypsxjv\",\"oimwkslirc\"]}") + "{\"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("zdgiruj", model.scriptCmdletId()); - Assertions.assertEquals("omvzzbtd", model.parameters().get(0).name()); - Assertions.assertEquals("ye", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("ymsgaojfmwnc", model.failureReason()); - Assertions.assertEquals("tmr", model.timeout()); - Assertions.assertEquals("irctymoxoftpipiw", model.retention()); - Assertions.assertEquals("lihhyuspskasdvlm", 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("zdgiruj") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("omvzzbtd"), - new ScriptExecutionParameter().withName("qvpn"), - new ScriptExecutionParameter().withName("yujviylwdshfssn"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("ye"))) - .withFailureReason("ymsgaojfmwnc") - .withTimeout("tmr") - .withRetention("irctymoxoftpipiw") - .withOutput(Arrays.asList("lihhyuspskasdvlm", "wdgzxulucv")) - .withNamedOutputs(mapOf("rsre", new ScriptExecutionPropertiesNamedOutput(), "zvxurisjnhny", - new ScriptExecutionPropertiesNamedOutput(), "xifqjzgxm", new ScriptExecutionPropertiesNamedOutput(), - "hu", new ScriptExecutionPropertiesNamedOutput())); + 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("zdgiruj", model.scriptCmdletId()); - Assertions.assertEquals("omvzzbtd", model.parameters().get(0).name()); - Assertions.assertEquals("ye", model.hiddenParameters().get(0).name()); - Assertions.assertEquals("ymsgaojfmwnc", model.failureReason()); - Assertions.assertEquals("tmr", model.timeout()); - Assertions.assertEquals("irctymoxoftpipiw", model.retention()); - Assertions.assertEquals("lihhyuspskasdvlm", 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 92794a7b7f888..11b2be388a4c5 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 @@ -26,7 +26,7 @@ public final class ScriptExecutionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"owxwcomli\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"wvczcswkacve\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"dvlvhbwrnfxtgdd\"}],\"failureReason\":\"th\",\"timeout\":\"hn\",\"retention\":\"aoyankcoeqswa\",\"submittedAt\":\"2021-01-30T05:03:50Z\",\"startedAt\":\"2021-08-12T07:23:05Z\",\"finishedAt\":\"2021-02-02T11:22:23Z\",\"provisioningState\":\"Succeeded\",\"output\":[\"znnhd\",\"lktgjc\",\"gguxhemlwyw\"],\"namedOutputs\":{\"czg\":{},\"bukklels\":{}},\"information\":[\"lycsxz\",\"jks\",\"lsmdesqplpvmjc\"],\"warnings\":[\"wb\",\"dyvt\",\"owx\",\"gpiudeug\"],\"errors\":[\"zec\",\"axwk\",\"fykhvuhxepmru\",\"znabaobns\"]},\"id\":\"jdjltymkmvgui\",\"name\":\"ywart\",\"type\":\"pphkixkykxds\"}"; + = "{\"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))); @@ -36,31 +36,30 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); ScriptExecution response = manager.scriptExecutions() - .define("b") - .withExistingPrivateCloud("hzdtxetlgydlh", "vlnnpx") - .withScriptCmdletId("q") - .withParameters(Arrays.asList(new ScriptExecutionParameter().withName("arbgjekgl"), - new ScriptExecutionParameter().withName("lbyulidwcwvmze"), - new ScriptExecutionParameter().withName("jonfhjirwgdnqzbr"))) - .withHiddenParameters(Arrays.asList(new ScriptExecutionParameter().withName("pzhz"), - new ScriptExecutionParameter().withName("tk"), - new ScriptExecutionParameter().withName("jcitdigsxcdglj"))) - .withFailureReason("keuachtomf") - .withTimeout("rytswfpf") - .withRetention("gycxnmskwhqjjys") - .withOutput(Arrays.asList("edwqslsrh", "pq")) - .withNamedOutputs(mapOf("skondcbrwimu", new ScriptExecutionPropertiesNamedOutput(), "qejo", - new ScriptExecutionPropertiesNamedOutput(), "ovyrrleaesinu", new ScriptExecutionPropertiesNamedOutput(), - "tljqobbpih", new ScriptExecutionPropertiesNamedOutput())) + .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("owxwcomli", response.scriptCmdletId()); - Assertions.assertEquals("wvczcswkacve", response.parameters().get(0).name()); - Assertions.assertEquals("dvlvhbwrnfxtgdd", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("th", response.failureReason()); - Assertions.assertEquals("hn", response.timeout()); - Assertions.assertEquals("aoyankcoeqswa", response.retention()); - Assertions.assertEquals("znnhd", 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 7627288242c9c..759974f095eae 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 @@ -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("sfuztlvtmv", "gbwidqlvh", "koveof", 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 bf3a5e6d77a08..d875c3480d5a8 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 @@ -23,7 +23,7 @@ public final class ScriptExecutionsGetExecutionLogsWithResponseMockTests { @Test public void testGetExecutionLogsWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"ikzoeovvtzejetj\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"tikyj\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"dbqzolxrzvhqjw\"}],\"failureReason\":\"htgv\",\"timeout\":\"zpcrrkolawj\",\"retention\":\"smwr\",\"submittedAt\":\"2021-09-09T22:55:06Z\",\"startedAt\":\"2021-04-12T00:09:13Z\",\"finishedAt\":\"2021-04-09T17:42:23Z\",\"provisioningState\":\"Cancelling\",\"output\":[\"jafi\"],\"namedOutputs\":{\"guyn\":{},\"chl\":{},\"mltx\":{},\"whmozusgzvlnsnnj\":{}},\"information\":[\"afolpymwamxqzrag\",\"gdphtvdula\"],\"warnings\":[\"ejchcsrlz\",\"nmzlanru\"],\"errors\":[\"vnphc\",\"zqtpjhmq\"]},\"id\":\"v\",\"name\":\"hlaiwd\",\"type\":\"xsmlz\"}"; + = "{\"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("zrvjfnmjmvlwyzgi", "lkujrllfojui", "jpu", - Arrays.asList(ScriptOutputStreamType.ERROR, ScriptOutputStreamType.ERROR, - ScriptOutputStreamType.INFORMATION), + .getExecutionLogsWithResponse("gqoweyirdhlisn", "wfl", "qmp", + Arrays.asList(ScriptOutputStreamType.OUTPUT, ScriptOutputStreamType.ERROR), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ikzoeovvtzejetj", response.scriptCmdletId()); - Assertions.assertEquals("tikyj", response.parameters().get(0).name()); - Assertions.assertEquals("dbqzolxrzvhqjw", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("htgv", response.failureReason()); - Assertions.assertEquals("zpcrrkolawj", response.timeout()); - Assertions.assertEquals("smwr", response.retention()); - Assertions.assertEquals("jafi", 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 0499b94a81183..2ab1d6699d502 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 @@ -21,7 +21,7 @@ public final class ScriptExecutionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"scriptCmdletId\":\"mzgwe\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"sxwef\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"hecbvopwndyq\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"llklmtk\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"lowkxxpvb\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"dfjmzsyzfhotlh\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"k\"}],\"failureReason\":\"ychunsjlpjrtwszh\",\"timeout\":\"vuicp\",\"retention\":\"trrmhwrb\",\"submittedAt\":\"2021-03-14T13:08:25Z\",\"startedAt\":\"2021-02-16T07:42:20Z\",\"finishedAt\":\"2021-04-11T17:40:45Z\",\"provisioningState\":\"Failed\",\"output\":[\"glrocuy\"],\"namedOutputs\":{\"hhmemhooclutnp\":{},\"memczjkmmyk\":{},\"ujxsglhsr\":{}},\"information\":[\"ejylmbkzu\",\"nigrfihotjewl\",\"xuzzjgnrefq\",\"hqo\"],\"warnings\":[\"hiqakydiwfbrk\",\"pzdqtvhcspod\",\"qaxsipietgbebjf\"],\"errors\":[\"moichdlpnfpubntn\",\"atzviqsowsaael\"]},\"id\":\"ttcjuhplrvkmjc\",\"name\":\"mjvlgfgg\",\"type\":\"vkyylizrzbjpsf\"}"; + = "{\"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("kizmdksaoafclu", "v", "xmycjimryvwgcw", com.azure.core.util.Context.NONE) + .getWithResponse("vefloccsrmozihmi", "g", "wtxxpkyjcx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mzgwe", response.scriptCmdletId()); - Assertions.assertEquals("sxwef", response.parameters().get(0).name()); - Assertions.assertEquals("llklmtk", response.hiddenParameters().get(0).name()); - Assertions.assertEquals("ychunsjlpjrtwszh", response.failureReason()); - Assertions.assertEquals("vuicp", response.timeout()); - Assertions.assertEquals("trrmhwrb", response.retention()); - Assertions.assertEquals("glrocuy", 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 0df6c29a203ef..c2357e4c96892 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 @@ -22,7 +22,7 @@ public final class ScriptExecutionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"dmhm\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"plfmuvapckccrrvw\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"xoy\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"ukphaimmoiroq\"}],\"failureReason\":\"shbraga\",\"timeout\":\"yyrmfsvbp\",\"retention\":\"bopfppdbwnup\",\"submittedAt\":\"2021-06-30T02:41:40Z\",\"startedAt\":\"2021-01-01T09:29:45Z\",\"finishedAt\":\"2021-06-18T09:33:58Z\",\"provisioningState\":\"Deleting\",\"output\":[\"aacfdmmc\"],\"namedOutputs\":{\"mehqepvufh\":{}},\"information\":[\"h\",\"whoqhnlbqnbldxe\"],\"warnings\":[\"gschorimkrsrr\"],\"errors\":[\"cso\",\"ldpuviy\",\"caab\",\"olhbhlvb\"]},\"id\":\"uqibsxtkcu\",\"name\":\"fbsfarfsiow\",\"type\":\"kjxnqpvwgfstmhq\"}]}"; + = "{\"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("yuicdhzbdy", "wwgbdv", com.azure.core.util.Context.NONE); + = manager.scriptExecutions().list("kjexfdeqvhp", "ylkkshkbffmbm", com.azure.core.util.Context.NONE); - Assertions.assertEquals("dmhm", response.iterator().next().scriptCmdletId()); - Assertions.assertEquals("plfmuvapckccrrvw", response.iterator().next().parameters().get(0).name()); - Assertions.assertEquals("xoy", response.iterator().next().hiddenParameters().get(0).name()); - Assertions.assertEquals("shbraga", response.iterator().next().failureReason()); - Assertions.assertEquals("yyrmfsvbp", response.iterator().next().timeout()); - Assertions.assertEquals("bopfppdbwnup", response.iterator().next().retention()); - Assertions.assertEquals("aacfdmmc", 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 ea46c5a7a1f64..648ed438566f5 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 @@ -12,15 +12,15 @@ public final class ScriptExecutionsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptExecutionsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"scriptCmdletId\":\"dvypgikdgsz\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"birryuzhl\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"oqrvqqaatjin\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"vgoup\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"fiibfggjioolvr\"}],\"failureReason\":\"kvtkkg\",\"timeout\":\"lqwjygvjayvblm\",\"retention\":\"k\",\"submittedAt\":\"2021-12-10T06:42:49Z\",\"startedAt\":\"2020-12-21T03:49:07Z\",\"finishedAt\":\"2021-08-14T02:32:59Z\",\"provisioningState\":\"Cancelled\",\"output\":[\"pbyrqufegxu\",\"wz\",\"bnhlmc\"],\"namedOutputs\":{\"dn\":{}},\"information\":[\"vgbmhr\",\"xkw\",\"yijejvegrhbpnaix\",\"xccbdreaxhcex\"],\"warnings\":[\"vqahqkghtpwi\",\"nhyjsv\",\"ycxzbfvoo\",\"vrvmtgjqppyost\"],\"errors\":[\"zm\"]},\"id\":\"gfipnsxk\",\"name\":\"cwaekrrjre\",\"type\":\"fxtsgum\"},{\"properties\":{\"scriptCmdletId\":\"lik\",\"parameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"slol\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"qpvuzlmvfelf\"}],\"hiddenParameters\":[{\"type\":\"ScriptExecutionParameter\",\"name\":\"plcrpwjxeznoig\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"rnjwmw\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"pn\"},{\"type\":\"ScriptExecutionParameter\",\"name\":\"saz\"}],\"failureReason\":\"joqkagfhsxt\",\"timeout\":\"augzxnfaazpxdtn\",\"retention\":\"mkqjj\",\"submittedAt\":\"2020-12-21T21:02:08Z\",\"startedAt\":\"2021-06-14T14:36:08Z\",\"finishedAt\":\"2021-07-12T10:16:15Z\",\"provisioningState\":\"Deleting\",\"output\":[\"uaibrebqaaysj\"],\"namedOutputs\":{\"qtnqtt\":{},\"zlwfffiakp\":{}},\"information\":[\"qmt\",\"d\",\"tmmjihyeozph\"],\"warnings\":[\"uyqncygupkvipmd\",\"cwxqu\",\"evzhfsto\"],\"errors\":[\"ojujbyp\",\"lmcuvhixb\",\"xyfwnylrcool\",\"ttpkiwkkbnujrywv\"]},\"id\":\"lbfpncurd\",\"name\":\"iwii\",\"type\":\"htywubxcbihwq\"}],\"nextLink\":\"fdntwjchrdgoih\"}") + "{\"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("dvypgikdgsz", model.value().get(0).scriptCmdletId()); - Assertions.assertEquals("birryuzhl", model.value().get(0).parameters().get(0).name()); - Assertions.assertEquals("oqrvqqaatjin", model.value().get(0).hiddenParameters().get(0).name()); - Assertions.assertEquals("kvtkkg", model.value().get(0).failureReason()); - Assertions.assertEquals("lqwjygvjayvblm", model.value().get(0).timeout()); + 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("pbyrqufegxu", model.value().get(0).output().get(0)); - Assertions.assertEquals("fdntwjchrdgoih", model.nextLink()); + 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 ebf1513c85539..98978693aadd0 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 @@ -11,7 +11,7 @@ public final class ScriptPackageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackageInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"ibdeibq\",\"version\":\"qkgh\",\"company\":\"ndzwmkrefa\",\"uri\":\"jorwkqnyhgbij\"},\"id\":\"ivfxzsjabibsyst\",\"name\":\"wfsdjpvkvpbj\",\"type\":\"bkzbzkd\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"ceopzfqrhhuaopp\",\"version\":\"qeqxo\",\"company\":\"dahzxctobg\",\"uri\":\"dmoizpostmg\"},\"id\":\"fbunrmfqjhhk\",\"name\":\"bpvjymjhx\",\"type\":\"j\"}") .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 527d80dd6da4d..1f73f547a5c3b 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 @@ -11,7 +11,7 @@ public final class ScriptPackagePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackageProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"description\":\"abudurgk\",\"version\":\"mokzhjjklf\",\"company\":\"mouwqlgzrfzeey\",\"uri\":\"izikayuhq\"}") + "{\"provisioningState\":\"Canceled\",\"description\":\"divkrt\",\"version\":\"bxqz\",\"company\":\"zjf\",\"uri\":\"vjfdx\"}") .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 049876f888557..f1b33974a5d10 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 @@ -20,7 +20,7 @@ public final class ScriptPackagesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"oyuelyetn\",\"version\":\"bf\",\"company\":\"ggagfln\",\"uri\":\"mtrwah\"},\"id\":\"mu\",\"name\":\"ftbyrplro\",\"type\":\"kpigqfusu\"}"; + = "{\"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("lwntsjgqrs", "y", "ruuuybnch", 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 a39b6199cafd8..978a6d365720e 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 @@ -21,7 +21,7 @@ public final class ScriptPackagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"description\":\"wv\",\"version\":\"vcdlg\",\"company\":\"ucmfdj\",\"uri\":\"laxpunj\"},\"id\":\"kczvvita\",\"name\":\"gx\",\"type\":\"fcsserxhtvsox\"}]}"; + = "{\"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("qxfzyjqttvwk", "qhjpenuygbqe", 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 f57ed436104fe..b107c5926b920 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 @@ -12,8 +12,8 @@ public final class ScriptPackagesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptPackagesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"description\":\"dw\",\"version\":\"tswiby\",\"company\":\"dl\",\"uri\":\"shfwpracstwity\"},\"id\":\"evxccedcp\",\"name\":\"md\",\"type\":\"odn\"},{\"properties\":{\"provisioningState\":\"Failed\",\"description\":\"jc\",\"version\":\"hlt\",\"company\":\"gcxn\",\"uri\":\"vwxqibyqunyo\"},\"id\":\"wlmdjrkv\",\"name\":\"g\",\"type\":\"vfvpdbodaciz\"}],\"nextLink\":\"q\"}") + "{\"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("q", 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 3ae8c767b79ca..15351aeb1b8ad 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 @@ -12,8 +12,8 @@ public final class ScriptParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptParameter model = BinaryData.fromString( - "{\"type\":\"Int\",\"name\":\"tjsyin\",\"description\":\"fq\",\"visibility\":\"Visible\",\"optional\":\"Required\"}") + "{\"type\":\"String\",\"name\":\"lauwzizxbmpgcjef\",\"description\":\"muvp\",\"visibility\":\"Visible\",\"optional\":\"Optional\"}") .toObject(ScriptParameter.class); - Assertions.assertEquals("tjsyin", 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 032f311acefa7..41b0ace68d201 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 @@ -11,19 +11,19 @@ public final class ScriptSecureStringExecutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ScriptSecureStringExecutionParameter model = BinaryData - .fromString("{\"type\":\"SecureValue\",\"secureValue\":\"lhvygdyftu\",\"name\":\"rtwnawjslbi\"}") - .toObject(ScriptSecureStringExecutionParameter.class); - Assertions.assertEquals("rtwnawjslbi", model.name()); - Assertions.assertEquals("lhvygdyftu", model.secureValue()); + ScriptSecureStringExecutionParameter model + = BinaryData.fromString("{\"type\":\"SecureValue\",\"secureValue\":\"glsbjjc\",\"name\":\"nvxbvt\"}") + .toObject(ScriptSecureStringExecutionParameter.class); + 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("rtwnawjslbi").withSecureValue("lhvygdyftu"); + = new ScriptSecureStringExecutionParameter().withName("nvxbvt").withSecureValue("glsbjjc"); model = BinaryData.fromObject(model).toObject(ScriptSecureStringExecutionParameter.class); - Assertions.assertEquals("rtwnawjslbi", model.name()); - Assertions.assertEquals("lhvygdyftu", 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 7f091137fd91d..9dd63f31474d0 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 @@ -12,18 +12,17 @@ public final class ScriptStringExecutionParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScriptStringExecutionParameter model - = BinaryData.fromString("{\"type\":\"Value\",\"value\":\"ojgcyzt\",\"name\":\"fmznba\"}") + = BinaryData.fromString("{\"type\":\"Value\",\"value\":\"dut\",\"name\":\"cormr\"}") .toObject(ScriptStringExecutionParameter.class); - Assertions.assertEquals("fmznba", model.name()); - Assertions.assertEquals("ojgcyzt", 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("fmznba").withValue("ojgcyzt"); + ScriptStringExecutionParameter model = new ScriptStringExecutionParameter().withName("cormr").withValue("dut"); model = BinaryData.fromObject(model).toObject(ScriptStringExecutionParameter.class); - Assertions.assertEquals("fmznba", model.name()); - Assertions.assertEquals("ojgcyzt", 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/VirtualMachineInnerTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/VirtualMachineInnerTests.java index 1d156729303d0..5fc63066e5f3a 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 @@ -11,7 +11,7 @@ public final class VirtualMachineInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"v\",\"moRefId\":\"pzfoqoui\",\"folderPath\":\"bxarzgszufoxci\",\"restrictMovement\":\"Enabled\"},\"id\":\"doamciodhkha\",\"name\":\"xkhnzbonlwnto\",\"type\":\"gokdwbwhks\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"xv\",\"moRefId\":\"u\",\"folderPath\":\"pz\",\"restrictMovement\":\"Disabled\"},\"id\":\"dzhlrq\",\"name\":\"bh\",\"type\":\"kfrlhrxsbky\"}") .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 862c0d7469fd4..dc545be2675b6 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 @@ -11,7 +11,7 @@ public final class VirtualMachinePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"displayName\":\"rvexztvb\",\"moRefId\":\"gsfraoyzkoow\",\"folderPath\":\"mnguxawqaldsyu\",\"restrictMovement\":\"Disabled\"}") + "{\"provisioningState\":\"Succeeded\",\"displayName\":\"anuzbpzkafkuw\",\"moRefId\":\"rnwb\",\"folderPath\":\"hhseyv\",\"restrictMovement\":\"Disabled\"}") .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 ea199a37c62ba..38137b2b78ded 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 @@ -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 f60ca505da8be..6f67a1b45def2 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 @@ -20,7 +20,7 @@ public final class VirtualMachinesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"au\",\"moRefId\":\"opionszon\",\"folderPath\":\"ngajinnixjawrtmj\",\"restrictMovement\":\"Enabled\"},\"id\":\"ccxlzhcoxovnek\",\"name\":\"enlusfn\",\"type\":\"dtjxtxrdcqt\"}"; + = "{\"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("fugsnnfhyetefy", "oc", "ctfjgtixr", "vzuyturmlmu", 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 02d306b728712..7e994a9b99348 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 @@ -21,7 +21,7 @@ public final class VirtualMachinesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"hokq\",\"moRefId\":\"bkau\",\"folderPath\":\"fshfph\",\"restrictMovement\":\"Disabled\"},\"id\":\"lai\",\"name\":\"wzejywhslw\",\"type\":\"ojpllndnpdwrpqaf\"}]}"; + = "{\"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("taboidvmf", "hppubowsepdfgkmt", "herngb", 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 9eece92dc090f..39d6765a9f00c 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 @@ -12,8 +12,8 @@ public final class VirtualMachinesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachinesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"f\",\"moRefId\":\"eyvpnqicvinvkj\",\"folderPath\":\"dxrbuukzcle\",\"restrictMovement\":\"Disabled\"},\"id\":\"lw\",\"name\":\"aztz\",\"type\":\"ofncckwyfzqwhxxb\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"zfeqztppri\",\"moRefId\":\"xorjaltolmncwsob\",\"folderPath\":\"csdbnwdcfhuc\",\"restrictMovement\":\"Disabled\"},\"id\":\"uvglsbjjcanvx\",\"name\":\"vtvudutncormr\",\"type\":\"xqtvcofu\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"gj\",\"moRefId\":\"gdknnqv\",\"folderPath\":\"znqntoru\",\"restrictMovement\":\"Disabled\"},\"id\":\"a\",\"name\":\"mkycgra\",\"type\":\"wjue\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ruvdmov\",\"moRefId\":\"zlxwabmqoefkifr\",\"folderPath\":\"puqujmqlgkfbtn\",\"restrictMovement\":\"Enabled\"},\"id\":\"n\",\"name\":\"bjcntujitc\",\"type\":\"ed\"}],\"nextLink\":\"wwa\"}") + "{\"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("wwa", 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 cf5482ae4d22e..1e66b68afba4a 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 @@ -17,13 +17,13 @@ public final class VmHostPlacementPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmHostPlacementPolicyProperties model = BinaryData.fromString( - "{\"type\":\"VmHost\",\"vmMembers\":[\"icslfaoq\",\"piyylhalnswhccsp\"],\"hostMembers\":[\"aivwitqscywu\",\"gwol\"],\"affinityType\":\"Affinity\",\"affinityStrength\":\"Should\",\"azureHybridBenefitType\":\"SqlHost\",\"state\":\"Disabled\",\"displayName\":\"ai\",\"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.DISABLED, model.state()); - Assertions.assertEquals("ai", model.displayName()); - Assertions.assertEquals("icslfaoq", model.vmMembers().get(0)); - Assertions.assertEquals("aivwitqscywu", model.hostMembers().get(0)); - Assertions.assertEquals(AffinityType.AFFINITY, model.affinityType()); + 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.SHOULD, model.affinityStrength()); Assertions.assertEquals(AzureHybridBenefitType.SQL_HOST, model.azureHybridBenefitType()); } @@ -32,18 +32,18 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { VmHostPlacementPolicyProperties model = new VmHostPlacementPolicyProperties().withState(PlacementPolicyState.DISABLED) - .withDisplayName("ai") - .withVmMembers(Arrays.asList("icslfaoq", "piyylhalnswhccsp")) - .withHostMembers(Arrays.asList("aivwitqscywu", "gwol")) - .withAffinityType(AffinityType.AFFINITY) + .withDisplayName("gxhnisk") + .withVmMembers(Arrays.asList("uojgj", "wjue", "otwmcdyt")) + .withHostMembers(Arrays.asList("wit")) + .withAffinityType(AffinityType.ANTI_AFFINITY) .withAffinityStrength(AffinityStrength.SHOULD) .withAzureHybridBenefitType(AzureHybridBenefitType.SQL_HOST); model = BinaryData.fromObject(model).toObject(VmHostPlacementPolicyProperties.class); Assertions.assertEquals(PlacementPolicyState.DISABLED, model.state()); - Assertions.assertEquals("ai", model.displayName()); - Assertions.assertEquals("icslfaoq", model.vmMembers().get(0)); - Assertions.assertEquals("aivwitqscywu", model.hostMembers().get(0)); - Assertions.assertEquals(AffinityType.AFFINITY, model.affinityType()); + 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.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 80c50dd45481f..9dfee0659c2ee 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 @@ -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\":[\"uhhziuiefozbhdm\",\"mlmz\"],\"affinityType\":\"Affinity\",\"state\":\"Enabled\",\"displayName\":\"rmaequ\",\"provisioningState\":\"Deleting\"}") + "{\"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("rmaequ", model.displayName()); - Assertions.assertEquals("uhhziuiefozbhdm", model.vmMembers().get(0)); + 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("rmaequ") - .withVmMembers(Arrays.asList("uhhziuiefozbhdm", "mlmz")) + .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("rmaequ", model.displayName()); - Assertions.assertEquals("uhhziuiefozbhdm", model.vmMembers().get(0)); + 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 b0e37493d43aa..0613cdd311b82 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 @@ -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\":\"kv\",\"segments\":[\"lmqkrhahvlj\",\"ahaquh\"],\"provisioningState\":\"Failed\",\"revision\":4716171323603349027}") + "{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"rv\",\"segments\":[\"pmfi\",\"bfggjioolvr\",\"x\"],\"provisioningState\":\"Building\",\"revision\":201556653544263409}") .toObject(WorkloadNetworkDhcpEntity.class); - Assertions.assertEquals("kv", model.displayName()); - Assertions.assertEquals(4716171323603349027L, 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("kv").withRevision(4716171323603349027L); + = new WorkloadNetworkDhcpEntity().withDisplayName("rv").withRevision(201556653544263409L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpEntity.class); - Assertions.assertEquals("kv", model.displayName()); - Assertions.assertEquals(4716171323603349027L, 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 5f5137d2db097..8c319f9f5f17e 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 @@ -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\":\"uwbc\",\"segments\":[\"bmehh\"],\"provisioningState\":\"Deleting\",\"revision\":2958870513291350994},\"id\":\"rts\",\"name\":\"hspkdeemao\",\"type\":\"mx\"}") + "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"tjsyin\",\"segments\":[\"qatmtdhtmdvy\"],\"provisioningState\":\"Succeeded\",\"revision\":7953248130446233855},\"id\":\"zywkb\",\"name\":\"rryuzhlhkjo\",\"type\":\"rvqqaatj\"}") .toObject(WorkloadNetworkDhcpInner.class); - Assertions.assertEquals("uwbc", model.properties().displayName()); - Assertions.assertEquals(2958870513291350994L, 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("uwbc").withRevision(2958870513291350994L)); + WorkloadNetworkDhcpInner model = new WorkloadNetworkDhcpInner().withProperties( + new WorkloadNetworkDhcpEntity().withDisplayName("tjsyin").withRevision(7953248130446233855L)); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpInner.class); - Assertions.assertEquals("uwbc", model.properties().displayName()); - Assertions.assertEquals(2958870513291350994L, 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 2524648dd187c..f28a48bc3a12b 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 @@ -12,10 +12,10 @@ public final class WorkloadNetworkDhcpListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDhcpList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"mgyudxytlmoyrxv\",\"segments\":[\"dw\"],\"provisioningState\":\"Building\",\"revision\":6478150774243714531},\"id\":\"zhlrqjb\",\"name\":\"ck\",\"type\":\"rlhrxs\"}],\"nextLink\":\"yvpycanuzbpzk\"}") + "{\"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("mgyudxytlmoyrxv", model.value().get(0).properties().displayName()); - Assertions.assertEquals(6478150774243714531L, model.value().get(0).properties().revision()); - Assertions.assertEquals("yvpycanuzbpzk", 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 ae22f0c35bcd6..451801be224b2 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 @@ -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\":[\"isgwbnbbeldawkz\",\"ali\"],\"displayName\":\"rqhakauha\",\"segments\":[\"fwxosowzxcu\",\"i\",\"jooxdjebw\"],\"provisioningState\":\"Succeeded\",\"revision\":7246200145127571189}") + "{\"dhcpType\":\"RELAY\",\"serverAddresses\":[\"tlpdn\",\"itvgbmhrixkwm\",\"ijejvegrhbpn\"],\"displayName\":\"xexccbdreaxhcexd\",\"segments\":[\"qahqkghtpwijn\",\"yjsvfyc\",\"z\"],\"provisioningState\":\"Building\",\"revision\":7035584365835539552}") .toObject(WorkloadNetworkDhcpRelay.class); - Assertions.assertEquals("rqhakauha", model.displayName()); - Assertions.assertEquals(7246200145127571189L, model.revision()); - Assertions.assertEquals("isgwbnbbeldawkz", 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("rqhakauha") - .withRevision(7246200145127571189L) - .withServerAddresses(Arrays.asList("isgwbnbbeldawkz", "ali")); + WorkloadNetworkDhcpRelay model = new WorkloadNetworkDhcpRelay().withDisplayName("xexccbdreaxhcexd") + .withRevision(7035584365835539552L) + .withServerAddresses(Arrays.asList("tlpdn", "itvgbmhrixkwm", "ijejvegrhbpn")); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpRelay.class); - Assertions.assertEquals("rqhakauha", model.displayName()); - Assertions.assertEquals(7246200145127571189L, model.revision()); - Assertions.assertEquals("isgwbnbbeldawkz", 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 8517c0d6855b9..efb6b0ce98137 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 @@ -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\":\"laexqp\",\"leaseTime\":3403871146459803360,\"displayName\":\"ws\",\"segments\":[\"gvxp\"],\"provisioningState\":\"Deleting\",\"revision\":7205793596406177755}") + "{\"dhcpType\":\"SERVER\",\"serverAddress\":\"lqwjygvjayvblm\",\"leaseTime\":593391508400046676,\"displayName\":\"hbxvvyhgsopbyrqu\",\"segments\":[\"xuvw\"],\"provisioningState\":\"Failed\",\"revision\":8014747037216452315}") .toObject(WorkloadNetworkDhcpServer.class); - Assertions.assertEquals("ws", model.displayName()); - Assertions.assertEquals(7205793596406177755L, model.revision()); - Assertions.assertEquals("laexqp", model.serverAddress()); - Assertions.assertEquals(3403871146459803360L, 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("ws") - .withRevision(7205793596406177755L) - .withServerAddress("laexqp") - .withLeaseTime(3403871146459803360L); + WorkloadNetworkDhcpServer model = new WorkloadNetworkDhcpServer().withDisplayName("hbxvvyhgsopbyrqu") + .withRevision(8014747037216452315L) + .withServerAddress("lqwjygvjayvblm") + .withLeaseTime(593391508400046676L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDhcpServer.class); - Assertions.assertEquals("ws", model.displayName()); - Assertions.assertEquals(7205793596406177755L, model.revision()); - Assertions.assertEquals("laexqp", model.serverAddress()); - Assertions.assertEquals(3403871146459803360L, 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 da403e9b2681e..5ddcd297d33cf 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 @@ -14,30 +14,30 @@ public final class WorkloadNetworkDnsServiceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServiceInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"utiiswacf\",\"dnsServiceIp\":\"dkzzewkfvhqcrail\",\"defaultDnsZone\":\"n\",\"fqdnZones\":[\"uflrwd\",\"hdlxyjrxsagafcn\",\"hgw\"],\"logLevel\":\"WARNING\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":3702419407947008695},\"id\":\"kcvqvpke\",\"name\":\"dcvd\",\"type\":\"hvoodsotbobzd\"}") + "{\"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("utiiswacf", model.displayName()); - Assertions.assertEquals("dkzzewkfvhqcrail", model.dnsServiceIp()); - Assertions.assertEquals("n", model.defaultDnsZone()); - Assertions.assertEquals("uflrwd", model.fqdnZones().get(0)); + 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(3702419407947008695L, model.revision()); + Assertions.assertEquals(3925666504611058153L, model.revision()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkloadNetworkDnsServiceInner model = new WorkloadNetworkDnsServiceInner().withDisplayName("utiiswacf") - .withDnsServiceIp("dkzzewkfvhqcrail") - .withDefaultDnsZone("n") - .withFqdnZones(Arrays.asList("uflrwd", "hdlxyjrxsagafcn", "hgw")) + WorkloadNetworkDnsServiceInner model = new WorkloadNetworkDnsServiceInner().withDisplayName("ywjhhgdnhx") + .withDnsServiceIp("ivfomiloxgg") + .withDefaultDnsZone("fi") + .withFqdnZones(Arrays.asList("ieuzaofjchvcyyy", "fgdo", "cubiipuipw")) .withLogLevel(DnsServiceLogLevelEnum.WARNING) - .withRevision(3702419407947008695L); + .withRevision(3925666504611058153L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkDnsServiceInner.class); - Assertions.assertEquals("utiiswacf", model.displayName()); - Assertions.assertEquals("dkzzewkfvhqcrail", model.dnsServiceIp()); - Assertions.assertEquals("n", model.defaultDnsZone()); - Assertions.assertEquals("uflrwd", model.fqdnZones().get(0)); + 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(3702419407947008695L, model.revision()); + 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 18344793c00e5..5a115f87d50f1 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 @@ -14,30 +14,31 @@ public final class WorkloadNetworkDnsServicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServiceProperties model = BinaryData.fromString( - "{\"displayName\":\"cjwvn\",\"dnsServiceIp\":\"ld\",\"defaultDnsZone\":\"gx\",\"fqdnZones\":[\"slpmutwuo\",\"grpkhjwniyqs\",\"uicpd\"],\"logLevel\":\"DEBUG\",\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":2377355799268639179}") + "{\"displayName\":\"ywdxsmic\",\"dnsServiceIp\":\"rwfscjfnynszquj\",\"defaultDnsZone\":\"dvoqyt\",\"fqdnZones\":[\"owbb\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":805790317647492283}") .toObject(WorkloadNetworkDnsServiceProperties.class); - Assertions.assertEquals("cjwvn", model.displayName()); - Assertions.assertEquals("ld", model.dnsServiceIp()); - Assertions.assertEquals("gx", model.defaultDnsZone()); - Assertions.assertEquals("slpmutwuo", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.DEBUG, model.logLevel()); - Assertions.assertEquals(2377355799268639179L, 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("cjwvn") - .withDnsServiceIp("ld") - .withDefaultDnsZone("gx") - .withFqdnZones(Arrays.asList("slpmutwuo", "grpkhjwniyqs", "uicpd")) - .withLogLevel(DnsServiceLogLevelEnum.DEBUG) - .withRevision(2377355799268639179L); + 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("cjwvn", model.displayName()); - Assertions.assertEquals("ld", model.dnsServiceIp()); - Assertions.assertEquals("gx", model.defaultDnsZone()); - Assertions.assertEquals("slpmutwuo", model.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.DEBUG, model.logLevel()); - Assertions.assertEquals(2377355799268639179L, 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 6b536cdc00c87..349b7cd8f0798 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 @@ -13,14 +13,14 @@ public final class WorkloadNetworkDnsServicesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsServicesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"xe\",\"dnsServiceIp\":\"nzbtbhj\",\"defaultDnsZone\":\"lkfg\",\"fqdnZones\":[\"neuelfphsdyhtoz\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Deleting\",\"revision\":5092229497552336172},\"id\":\"xzxcl\",\"name\":\"ithhqzon\",\"type\":\"sg\"}],\"nextLink\":\"hcohfwdsjnk\"}") + "{\"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("xe", model.value().get(0).displayName()); - Assertions.assertEquals("nzbtbhj", model.value().get(0).dnsServiceIp()); - Assertions.assertEquals("lkfg", model.value().get(0).defaultDnsZone()); - Assertions.assertEquals("neuelfphsdyhtoz", model.value().get(0).fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.ERROR, model.value().get(0).logLevel()); - Assertions.assertEquals(5092229497552336172L, model.value().get(0).revision()); - Assertions.assertEquals("hcohfwdsjnk", 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 595d674a2b4b8..5e9d3120f54ce 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 @@ -13,30 +13,30 @@ public final class WorkloadNetworkDnsZoneInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZoneInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"smypyynpc\",\"domain\":[\"mnzgmwznmabi\",\"nsorgjhxbldt\",\"wwrlkdmtncv\",\"kotl\"],\"dnsServerIps\":[\"yhgsy\"],\"sourceIp\":\"ogjltdtbnnhad\",\"dnsServices\":2230966046874594524,\"provisioningState\":\"Canceled\",\"revision\":5398551830021510565},\"id\":\"nvpamq\",\"name\":\"x\",\"type\":\"queziky\"}") + "{\"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("smypyynpc", model.displayName()); - Assertions.assertEquals("mnzgmwznmabi", model.domain().get(0)); - Assertions.assertEquals("yhgsy", model.dnsServerIps().get(0)); - Assertions.assertEquals("ogjltdtbnnhad", model.sourceIp()); - Assertions.assertEquals(2230966046874594524L, model.dnsServices()); - Assertions.assertEquals(5398551830021510565L, 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("smypyynpc") - .withDomain(Arrays.asList("mnzgmwznmabi", "nsorgjhxbldt", "wwrlkdmtncv", "kotl")) - .withDnsServerIps(Arrays.asList("yhgsy")) - .withSourceIp("ogjltdtbnnhad") - .withDnsServices(2230966046874594524L) - .withRevision(5398551830021510565L); + 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("smypyynpc", model.displayName()); - Assertions.assertEquals("mnzgmwznmabi", model.domain().get(0)); - Assertions.assertEquals("yhgsy", model.dnsServerIps().get(0)); - Assertions.assertEquals("ogjltdtbnnhad", model.sourceIp()); - Assertions.assertEquals(2230966046874594524L, model.dnsServices()); - Assertions.assertEquals(5398551830021510565L, 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 024e18631d993..6fbcf6f68e10f 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 @@ -13,30 +13,31 @@ public final class WorkloadNetworkDnsZonePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZoneProperties model = BinaryData.fromString( - "{\"displayName\":\"gxk\",\"domain\":[\"atmelwui\"],\"dnsServerIps\":[\"cjzkzivgvvcna\",\"rhyrnxxmueed\",\"drd\"],\"sourceIp\":\"tkwqqtchealm\",\"dnsServices\":2875480604821792642,\"provisioningState\":\"Canceled\",\"revision\":2951445315314991952}") + "{\"displayName\":\"obaiyhddviaceg\",\"domain\":[\"ntfpmvmemfnc\"],\"dnsServerIps\":[\"vvbalx\"],\"sourceIp\":\"lchpodbzevwrdn\",\"dnsServices\":4609142412513709253,\"provisioningState\":\"Canceled\",\"revision\":9047416798509661707}") .toObject(WorkloadNetworkDnsZoneProperties.class); - Assertions.assertEquals("gxk", model.displayName()); - Assertions.assertEquals("atmelwui", model.domain().get(0)); - Assertions.assertEquals("cjzkzivgvvcna", model.dnsServerIps().get(0)); - Assertions.assertEquals("tkwqqtchealm", model.sourceIp()); - Assertions.assertEquals(2875480604821792642L, model.dnsServices()); - Assertions.assertEquals(2951445315314991952L, 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("gxk") - .withDomain(Arrays.asList("atmelwui")) - .withDnsServerIps(Arrays.asList("cjzkzivgvvcna", "rhyrnxxmueed", "drd")) - .withSourceIp("tkwqqtchealm") - .withDnsServices(2875480604821792642L) - .withRevision(2951445315314991952L); + 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("gxk", model.displayName()); - Assertions.assertEquals("atmelwui", model.domain().get(0)); - Assertions.assertEquals("cjzkzivgvvcna", model.dnsServerIps().get(0)); - Assertions.assertEquals("tkwqqtchealm", model.sourceIp()); - Assertions.assertEquals(2875480604821792642L, model.dnsServices()); - Assertions.assertEquals(2951445315314991952L, 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 e774e2d7a96ba..5c13c35f14019 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 @@ -12,14 +12,14 @@ public final class WorkloadNetworkDnsZonesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkDnsZonesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"modfvuefywsbpfvm\",\"domain\":[\"rfouyftaakcpw\",\"yzvqt\"],\"dnsServerIps\":[\"bexkpzksmondj\"],\"sourceIp\":\"uxvypomgkopkwh\",\"dnsServices\":47183864428618035,\"provisioningState\":\"Canceled\",\"revision\":6027886219408436897},\"id\":\"smocmbq\",\"name\":\"qvmkcxo\",\"type\":\"apvhelxprgly\"},{\"properties\":{\"displayName\":\"dckcbc\",\"domain\":[\"rjxgciqib\",\"hos\",\"sdqrhzoymibmrq\",\"ibahwflus\"],\"dnsServerIps\":[\"mhrkwofyyvoqacp\",\"expbtg\",\"wbwo\",\"nwashrtd\"],\"sourceIp\":\"cnqxwbpokulpi\",\"dnsServices\":6830630218833714201,\"provisioningState\":\"Deleting\",\"revision\":1202571290361403211},\"id\":\"iobyu\",\"name\":\"erpqlpqwcciuqg\",\"type\":\"dbutauvfbtkuwhh\"},{\"properties\":{\"displayName\":\"k\",\"domain\":[\"xafnndlpichko\",\"mkcdyhbpkkpwdre\"],\"dnsServerIps\":[\"vvqfovljxyws\",\"w\",\"yrs\",\"dsytgadgvr\"],\"sourceIp\":\"aeneqnzarrwl\",\"dnsServices\":6003700384655384876,\"provisioningState\":\"Updating\",\"revision\":1802422075284970664},\"id\":\"e\",\"name\":\"iipfpubj\",\"type\":\"bwwift\"},{\"properties\":{\"displayName\":\"kvpuvksgplsaknyn\",\"domain\":[\"n\"],\"dnsServerIps\":[\"huopxodlqiynto\"],\"sourceIp\":\"ihleos\",\"dnsServices\":1042560535262747024,\"provisioningState\":\"Failed\",\"revision\":9060898955426619734},\"id\":\"rpzbchckqqzqi\",\"name\":\"xiy\",\"type\":\"uiizynke\"}],\"nextLink\":\"atrwyhqmibzyh\"}") + "{\"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("modfvuefywsbpfvm", model.value().get(0).displayName()); - Assertions.assertEquals("rfouyftaakcpw", model.value().get(0).domain().get(0)); - Assertions.assertEquals("bexkpzksmondj", model.value().get(0).dnsServerIps().get(0)); - Assertions.assertEquals("uxvypomgkopkwh", model.value().get(0).sourceIp()); - Assertions.assertEquals(47183864428618035L, model.value().get(0).dnsServices()); - Assertions.assertEquals(6027886219408436897L, model.value().get(0).revision()); - Assertions.assertEquals("atrwyhqmibzyh", 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 c2f559508cd7a..9d1591a3d226a 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 @@ -12,8 +12,8 @@ public final class WorkloadNetworkGatewayInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkGatewayInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"auwhvylwzbtdhx\",\"path\":\"znbmpowuwprzq\"},\"id\":\"eualupjmkhf\",\"name\":\"obbc\",\"type\":\"wsrtjriplrbpbe\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"xhojuj\",\"path\":\"pelmcuvhixbjxyf\"},\"id\":\"yl\",\"name\":\"coolsttpkiwkkb\",\"type\":\"ujrywvtyl\"}") .toObject(WorkloadNetworkGatewayInner.class); - Assertions.assertEquals("auwhvylwzbtdhx", 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 d263d1eb89651..ab9ae6c6763d0 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 @@ -12,9 +12,9 @@ public final class WorkloadNetworkGatewayListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkGatewayList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"meue\",\"path\":\"vyhzceuojgjrwj\"},\"id\":\"iotwmcdytdxwit\",\"name\":\"nrjawgqwg\",\"type\":\"hniskxfbkpyc\"}],\"nextLink\":\"lwn\"}") + "{\"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("meue", model.value().get(0).displayName()); - Assertions.assertEquals("lwn", 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 8dcb6adc036ab..c753364b64811 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 @@ -11,9 +11,9 @@ public final class WorkloadNetworkGatewayPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WorkloadNetworkGatewayProperties model - = BinaryData.fromString("{\"provisioningState\":\"Updating\",\"displayName\":\"fgb\",\"path\":\"gw\"}") - .toObject(WorkloadNetworkGatewayProperties.class); - Assertions.assertEquals("fgb", model.displayName()); + WorkloadNetworkGatewayProperties model = BinaryData + .fromString("{\"provisioningState\":\"Building\",\"displayName\":\"curdoiwiitht\",\"path\":\"ubxcbihw\"}") + .toObject(WorkloadNetworkGatewayProperties.class); + 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 012f68835bfe6..f5c9499b60b69 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 @@ -11,7 +11,7 @@ public final class WorkloadNetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"nehmpvecx\",\"name\":\"odebfqkkrbmpu\",\"type\":\"gr\"}") + "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"sdsttwvog\",\"name\":\"bbejdcngqqm\",\"type\":\"akufgmjz\"}") .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 abe447675fb70..6a0984ab5e757 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 @@ -12,8 +12,8 @@ public final class WorkloadNetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Building\"},\"id\":\"xzpuzycisp\",\"name\":\"qzahmgkbrp\",\"type\":\"y\"},{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"uqqkpik\",\"name\":\"drgvtqagn\",\"type\":\"uynhijg\"},{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"siarbutrcvpn\",\"name\":\"zzmhjrunmpxttd\",\"type\":\"hrbnlankxmyskpbh\"}],\"nextLink\":\"btkcxywnytnrsyn\"}") + "{\"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("btkcxywnytnrsyn", 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 ba2f8da9bad0b..4be2e2b56f488 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 @@ -13,27 +13,27 @@ public final class WorkloadNetworkPortMirroringInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"xknalaulppg\",\"direction\":\"INGRESS\",\"source\":\"napnyiropuhpigv\",\"destination\":\"ylgqgitxmedjvcsl\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":1214544725492398973},\"id\":\"zhxgktrmgucn\",\"name\":\"pkteo\",\"type\":\"llwptfdy\"}") + "{\"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("xknalaulppg", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); - Assertions.assertEquals("napnyiropuhpigv", model.source()); - Assertions.assertEquals("ylgqgitxmedjvcsl", model.destination()); - Assertions.assertEquals(1214544725492398973L, 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("xknalaulppg") - .withDirection(PortMirroringDirectionEnum.INGRESS) - .withSource("napnyiropuhpigv") - .withDestination("ylgqgitxmedjvcsl") - .withRevision(1214544725492398973L); + WorkloadNetworkPortMirroringInner model = new WorkloadNetworkPortMirroringInner().withDisplayName("ojlpijnkrxf") + .withDirection(PortMirroringDirectionEnum.EGRESS) + .withSource("c") + .withDestination("tizzronasxif") + .withRevision(319144288054659459L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPortMirroringInner.class); - Assertions.assertEquals("xknalaulppg", model.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); - Assertions.assertEquals("napnyiropuhpigv", model.source()); - Assertions.assertEquals("ylgqgitxmedjvcsl", model.destination()); - Assertions.assertEquals(1214544725492398973L, 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 dc6928bc6a1bd..c9d9728a5899e 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 @@ -13,13 +13,13 @@ public final class WorkloadNetworkPortMirroringListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"v\",\"direction\":\"EGRESS\",\"source\":\"begibtnmxiebwwa\",\"destination\":\"ayqcgw\",\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":4790866258005538380},\"id\":\"zmh\",\"name\":\"xongmtsavjcbpwxq\",\"type\":\"srknftguv\"},{\"properties\":{\"displayName\":\"hprwmdyv\",\"direction\":\"INGRESS\",\"source\":\"yriwwroyqb\",\"destination\":\"rmcqiby\",\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":6160997583833316786},\"id\":\"fqsgzvahapjy\",\"name\":\"hpvgqz\",\"type\":\"j\"},{\"properties\":{\"displayName\":\"djzlmwlx\",\"direction\":\"EGRESS\",\"source\":\"fhzovawjvzunluth\",\"destination\":\"prnxipeil\",\"status\":\"SUCCESS\",\"provisioningState\":\"Canceled\",\"revision\":7642090703106785822},\"id\":\"ultskzbbtdz\",\"name\":\"mv\",\"type\":\"ekg\"},{\"properties\":{\"displayName\":\"zuhkfpbsjyof\",\"direction\":\"INGRESS\",\"source\":\"us\",\"destination\":\"touwaboekqv\",\"status\":\"SUCCESS\",\"provisioningState\":\"Building\",\"revision\":2434745920403430654},\"id\":\"wyjsflhhcaalnjix\",\"name\":\"sxyawjoyaqcs\",\"type\":\"yjpkiidzyexz\"}],\"nextLink\":\"lixhnrztfol\"}") + "{\"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("v", model.value().get(0).displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, model.value().get(0).direction()); - Assertions.assertEquals("begibtnmxiebwwa", model.value().get(0).source()); - Assertions.assertEquals("ayqcgw", model.value().get(0).destination()); - Assertions.assertEquals(4790866258005538380L, model.value().get(0).revision()); - Assertions.assertEquals("lixhnrztfol", 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 62efeb475301b..9102d8a114889 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 @@ -13,28 +13,28 @@ public final class WorkloadNetworkPortMirroringPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPortMirroringProperties model = BinaryData.fromString( - "{\"displayName\":\"fqbuaceopzf\",\"direction\":\"INGRESS\",\"source\":\"uaopppcqeq\",\"destination\":\"lzdahzxctobgbkdm\",\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":753837388632017239}") + "{\"displayName\":\"xkk\",\"direction\":\"INGRESS\",\"source\":\"rghxjb\",\"destination\":\"qxvcxgfrpdsofb\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":20984502868975858}") .toObject(WorkloadNetworkPortMirroringProperties.class); - Assertions.assertEquals("fqbuaceopzf", model.displayName()); + Assertions.assertEquals("xkk", model.displayName()); Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); - Assertions.assertEquals("uaopppcqeq", model.source()); - Assertions.assertEquals("lzdahzxctobgbkdm", model.destination()); - Assertions.assertEquals(753837388632017239L, model.revision()); + 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("fqbuaceopzf") + = new WorkloadNetworkPortMirroringProperties().withDisplayName("xkk") .withDirection(PortMirroringDirectionEnum.INGRESS) - .withSource("uaopppcqeq") - .withDestination("lzdahzxctobgbkdm") - .withRevision(753837388632017239L); + .withSource("rghxjb") + .withDestination("qxvcxgfrpdsofb") + .withRevision(20984502868975858L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPortMirroringProperties.class); - Assertions.assertEquals("fqbuaceopzf", model.displayName()); + Assertions.assertEquals("xkk", model.displayName()); Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, model.direction()); - Assertions.assertEquals("uaopppcqeq", model.source()); - Assertions.assertEquals("lzdahzxctobgbkdm", model.destination()); - Assertions.assertEquals(753837388632017239L, model.revision()); + 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/WorkloadNetworkPublicIPsListTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworkPublicIPsListTests.java index 1284594ed1830..1294038584249 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 @@ -12,10 +12,10 @@ public final class WorkloadNetworkPublicIPsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIPsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"gpiohgwxrtfudxe\",\"numberOfPublicIPs\":6514858021429691884,\"publicIPBlock\":\"agvrvmnpkuk\",\"provisioningState\":\"Building\"},\"id\":\"dblx\",\"name\":\"wi\",\"type\":\"fnjhfjxwmszkkfo\"}],\"nextLink\":\"eyfkzikfja\"}") + "{\"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("gpiohgwxrtfudxe", model.value().get(0).displayName()); - Assertions.assertEquals(6514858021429691884L, model.value().get(0).numberOfPublicIPs()); - Assertions.assertEquals("eyfkzikfja", 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 eae414653df60..c5cda7b61762f 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 @@ -12,18 +12,18 @@ public final class WorkloadNetworkPublicIpInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIpInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"a\",\"numberOfPublicIPs\":2753110503115800438,\"publicIPBlock\":\"zel\",\"provisioningState\":\"Canceled\"},\"id\":\"elsfeaen\",\"name\":\"abfatkl\",\"type\":\"dxbjhwuaanozj\"}") + "{\"properties\":{\"displayName\":\"rpgogtqxep\",\"numberOfPublicIPs\":4258812781218679511,\"publicIPBlock\":\"uajlyj\",\"provisioningState\":\"Building\"},\"id\":\"fqzhv\",\"name\":\"cib\",\"type\":\"fmo\"}") .toObject(WorkloadNetworkPublicIpInner.class); - Assertions.assertEquals("a", model.displayName()); - Assertions.assertEquals(2753110503115800438L, 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("a").withNumberOfPublicIPs(2753110503115800438L); + WorkloadNetworkPublicIpInner model = new WorkloadNetworkPublicIpInner().withDisplayName("rpgogtqxep") + .withNumberOfPublicIPs(4258812781218679511L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPublicIpInner.class); - Assertions.assertEquals("a", model.displayName()); - Assertions.assertEquals(2753110503115800438L, 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 ec8cfb0dbb53f..e12a3097dfba5 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 @@ -12,18 +12,18 @@ public final class WorkloadNetworkPublicIpPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkPublicIpProperties model = BinaryData.fromString( - "{\"displayName\":\"ph\",\"numberOfPublicIPs\":5037944209655699604,\"publicIPBlock\":\"jrvxaglrv\",\"provisioningState\":\"Canceled\"}") + "{\"displayName\":\"xrkjpvdw\",\"numberOfPublicIPs\":4789424331234549662,\"publicIPBlock\":\"ivwzjbhyzs\",\"provisioningState\":\"Updating\"}") .toObject(WorkloadNetworkPublicIpProperties.class); - Assertions.assertEquals("ph", model.displayName()); - Assertions.assertEquals(5037944209655699604L, 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("ph").withNumberOfPublicIPs(5037944209655699604L); + WorkloadNetworkPublicIpProperties model = new WorkloadNetworkPublicIpProperties().withDisplayName("xrkjpvdw") + .withNumberOfPublicIPs(4789424331234549662L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkPublicIpProperties.class); - Assertions.assertEquals("ph", model.displayName()); - Assertions.assertEquals(5037944209655699604L, 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 49a43344844b9..d2062517029df 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 @@ -14,28 +14,27 @@ public final class WorkloadNetworkSegmentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"iuebbaumny\",\"connectedGateway\":\"ped\",\"subnet\":{\"dhcpRanges\":[\"a\",\"ckhsmtxpsieb\",\"fhvpesaps\"],\"gatewayAddress\":\"dqmh\"},\"portVif\":[{\"portName\":\"tldwkyzxuutk\"},{\"portName\":\"ws\"},{\"portName\":\"svlxotogtwrup\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":896120017372838413},\"id\":\"kvceoveilovnotyf\",\"name\":\"fcnj\",\"type\":\"k\"}") + "{\"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("iuebbaumny", model.displayName()); - Assertions.assertEquals("ped", model.connectedGateway()); - Assertions.assertEquals("a", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("dqmh", model.subnet().gatewayAddress()); - Assertions.assertEquals(896120017372838413L, 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("iuebbaumny") - .withConnectedGateway("ped") - .withSubnet( - new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("a", "ckhsmtxpsieb", "fhvpesaps")) - .withGatewayAddress("dqmh")) - .withRevision(896120017372838413L); + 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("iuebbaumny", model.displayName()); - Assertions.assertEquals("ped", model.connectedGateway()); - Assertions.assertEquals("a", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("dqmh", model.subnet().gatewayAddress()); - Assertions.assertEquals(896120017372838413L, 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 cc647a81f2d17..e8b62179f2fb8 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 @@ -12,7 +12,7 @@ public final class WorkloadNetworkSegmentPortVifTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentPortVif model - = BinaryData.fromString("{\"portName\":\"nobglaocq\"}").toObject(WorkloadNetworkSegmentPortVif.class); - Assertions.assertEquals("nobglaocq", 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 4ad02aec5b62d..01443c72ec230 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 @@ -14,27 +14,28 @@ public final class WorkloadNetworkSegmentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentProperties model = BinaryData.fromString( - "{\"displayName\":\"x\",\"connectedGateway\":\"bttk\",\"subnet\":{\"dhcpRanges\":[\"pnvjtoqnermclf\"],\"gatewayAddress\":\"phoxus\"},\"portVif\":[{\"portName\":\"bgyepsbj\"},{\"portName\":\"zq\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":5351409570335896037}") + "{\"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("x", model.displayName()); - Assertions.assertEquals("bttk", model.connectedGateway()); - Assertions.assertEquals("pnvjtoqnermclf", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("phoxus", model.subnet().gatewayAddress()); - Assertions.assertEquals(5351409570335896037L, 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("x") - .withConnectedGateway("bttk") - .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("pnvjtoqnermclf")) - .withGatewayAddress("phoxus")) - .withRevision(5351409570335896037L); + 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("x", model.displayName()); - Assertions.assertEquals("bttk", model.connectedGateway()); - Assertions.assertEquals("pnvjtoqnermclf", model.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("phoxus", model.subnet().gatewayAddress()); - Assertions.assertEquals(5351409570335896037L, 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 7370e0bf9ca90..2133394c7181a 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 @@ -12,19 +12,20 @@ public final class WorkloadNetworkSegmentSubnetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WorkloadNetworkSegmentSubnet model - = BinaryData.fromString("{\"dhcpRanges\":[\"fjz\"],\"gatewayAddress\":\"qkqujidsu\"}") - .toObject(WorkloadNetworkSegmentSubnet.class); - Assertions.assertEquals("fjz", model.dhcpRanges().get(0)); - Assertions.assertEquals("qkqujidsu", 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("fjz")).withGatewayAddress("qkqujidsu"); + WorkloadNetworkSegmentSubnet model = new WorkloadNetworkSegmentSubnet() + .withDhcpRanges(Arrays.asList("udphqamvdkfwyn", "cvtbv", "ayhmtnvyqiatkz", "pcnp")) + .withGatewayAddress("cjaesgvvs"); model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentSubnet.class); - Assertions.assertEquals("fjz", model.dhcpRanges().get(0)); - Assertions.assertEquals("qkqujidsu", 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 e0d5505ca2cad..0f49df96e10b3 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 @@ -12,13 +12,13 @@ public final class WorkloadNetworkSegmentsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkSegmentsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"ybyxc\",\"connectedGateway\":\"clha\",\"subnet\":{\"dhcpRanges\":[\"abphlw\",\"qlfktsths\",\"cocmnyyaztt\"],\"gatewayAddress\":\"wwrq\"},\"portVif\":[{\"portName\":\"ckzywbiexzfeyue\"},{\"portName\":\"ibx\"},{\"portName\":\"wbhqwal\"},{\"portName\":\"zyoxaepdkzjan\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":3067424612233139925},\"id\":\"v\",\"name\":\"bniwdj\",\"type\":\"wz\"},{\"properties\":{\"displayName\":\"bpg\",\"connectedGateway\":\"ytxhp\",\"subnet\":{\"dhcpRanges\":[\"pfza\",\"glcuhxwtctyqi\",\"lbbovplw\"],\"gatewayAddress\":\"hvgyuguosvmk\"},\"portVif\":[{\"portName\":\"qukkfp\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Canceled\",\"revision\":6280051526633281163},\"id\":\"zkd\",\"name\":\"slpvlop\",\"type\":\"i\"}],\"nextLink\":\"ghxpkdw\"}") + "{\"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("ybyxc", model.value().get(0).displayName()); - Assertions.assertEquals("clha", model.value().get(0).connectedGateway()); - Assertions.assertEquals("abphlw", model.value().get(0).subnet().dhcpRanges().get(0)); - Assertions.assertEquals("wwrq", model.value().get(0).subnet().gatewayAddress()); - Assertions.assertEquals(3067424612233139925L, model.value().get(0).revision()); - Assertions.assertEquals("ghxpkdw", 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 d59b437cb8cf1..27fdc501eba14 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 @@ -13,21 +13,21 @@ public final class WorkloadNetworkVMGroupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupInner model = BinaryData.fromString( - "{\"properties\":{\"displayName\":\"fqqnvwpmqtaruo\",\"members\":[\"kcjhwqytjrybnwj\",\"wgdrjervnaenqp\",\"hin\",\"oygmift\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":1265885080326792756},\"id\":\"nayqi\",\"name\":\"ynduha\",\"type\":\"hqlkthumaqo\"}") + "{\"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("fqqnvwpmqtaruo", model.displayName()); - Assertions.assertEquals("kcjhwqytjrybnwj", model.members().get(0)); - Assertions.assertEquals(1265885080326792756L, 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("fqqnvwpmqtaruo") - .withMembers(Arrays.asList("kcjhwqytjrybnwj", "wgdrjervnaenqp", "hin", "oygmift")) - .withRevision(1265885080326792756L); + WorkloadNetworkVMGroupInner model = new WorkloadNetworkVMGroupInner().withDisplayName("umrtwnawjsl") + .withMembers(Arrays.asList("kojgcyzts", "mznbaeqphch", "nrnrp", "ehuwrykqgaifmvik")) + .withRevision(8629783382496754434L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkVMGroupInner.class); - Assertions.assertEquals("fqqnvwpmqtaruo", model.displayName()); - Assertions.assertEquals("kcjhwqytjrybnwj", model.members().get(0)); - Assertions.assertEquals(1265885080326792756L, 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 dfed30858cd42..eefcd87ba814b 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 @@ -13,21 +13,22 @@ public final class WorkloadNetworkVMGroupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupProperties model = BinaryData.fromString( - "{\"displayName\":\"gycdu\",\"members\":[\"tgccymvaolpss\"],\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":940610692718193227}") + "{\"displayName\":\"tnovqfzgemjdftul\",\"members\":[\"duceamtmc\",\"u\"],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":708418830447367497}") .toObject(WorkloadNetworkVMGroupProperties.class); - Assertions.assertEquals("gycdu", model.displayName()); - Assertions.assertEquals("tgccymvaolpss", model.members().get(0)); - Assertions.assertEquals(940610692718193227L, 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("gycdu") - .withMembers(Arrays.asList("tgccymvaolpss")) - .withRevision(940610692718193227L); + WorkloadNetworkVMGroupProperties model + = new WorkloadNetworkVMGroupProperties().withDisplayName("tnovqfzgemjdftul") + .withMembers(Arrays.asList("duceamtmc", "u")) + .withRevision(708418830447367497L); model = BinaryData.fromObject(model).toObject(WorkloadNetworkVMGroupProperties.class); - Assertions.assertEquals("gycdu", model.displayName()); - Assertions.assertEquals("tgccymvaolpss", model.members().get(0)); - Assertions.assertEquals(940610692718193227L, 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 2f8d1b6195561..1924248c3d56f 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 @@ -12,11 +12,11 @@ public final class WorkloadNetworkVMGroupsListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVMGroupsList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"displayName\":\"fbunrmfqjhhk\",\"members\":[\"vjymjhxxjyngud\",\"vkr\",\"swbxqz\",\"szjfauvjfdxxivet\"],\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":3137986994872936614},\"id\":\"qmcbxvwvxyslqbhs\",\"name\":\"xoblytkbl\",\"type\":\"pe\"},{\"properties\":{\"displayName\":\"fbkrvrnsvs\",\"members\":[\"ohxcrsbfova\",\"rruvwbhsq\"],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":2319304863641210663},\"id\":\"rxbpyb\",\"name\":\"rfbjf\",\"type\":\"twss\"}],\"nextLink\":\"ftpvjzbexil\"}") + "{\"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("fbunrmfqjhhk", model.value().get(0).displayName()); - Assertions.assertEquals("vjymjhxxjyngud", model.value().get(0).members().get(0)); - Assertions.assertEquals(3137986994872936614L, model.value().get(0).revision()); - Assertions.assertEquals("ftpvjzbexil", 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 a167d2907bd09..efc1e08f2c55a 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 @@ -12,8 +12,8 @@ public final class WorkloadNetworkVirtualMachineInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachineInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"xunkbebxmubyynt\",\"vmType\":\"SERVICE\"},\"id\":\"qtkoievs\",\"name\":\"otgqrlltmu\",\"type\":\"lauwzizxbmpgcjef\"}") + "{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"txhwgfws\",\"vmType\":\"EDGE\"},\"id\":\"coezbrhubskh\",\"name\":\"dyg\",\"type\":\"ookk\"}") .toObject(WorkloadNetworkVirtualMachineInner.class); - Assertions.assertEquals("xunkbebxmubyynt", 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 a87f6c2b74998..8b4e138445626 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 @@ -12,8 +12,8 @@ public final class WorkloadNetworkVirtualMachinePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachineProperties model = BinaryData - .fromString("{\"provisioningState\":\"Building\",\"displayName\":\"vpbttd\",\"vmType\":\"REGULAR\"}") + .fromString("{\"provisioningState\":\"Failed\",\"displayName\":\"bvleorfmluiqtqzf\",\"vmType\":\"EDGE\"}") .toObject(WorkloadNetworkVirtualMachineProperties.class); - Assertions.assertEquals("vpbttd", 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 ab236e256490a..4ef437d6a5754 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 @@ -12,9 +12,9 @@ public final class WorkloadNetworkVirtualMachinesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadNetworkVirtualMachinesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"pswiydmcwyh\",\"vmType\":\"EDGE\"},\"id\":\"sadbz\",\"name\":\"nvdfznuda\",\"type\":\"dvxzbncblylpst\"},{\"properties\":{\"provisioningState\":\"Updating\",\"displayName\":\"srzdzucerscdn\",\"vmType\":\"EDGE\"},\"id\":\"fiwjmygtdssls\",\"name\":\"tmweriofzpyq\",\"type\":\"emwabnet\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"h\",\"vmType\":\"SERVICE\"},\"id\":\"vwiwubmwmbesld\",\"name\":\"k\",\"type\":\"wtppjflcxogaoko\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ikvmkqzeqqk\",\"vmType\":\"EDGE\"},\"id\":\"zxmhhvhgu\",\"name\":\"eodkwobda\",\"type\":\"xtibqdxbxwakbog\"}],\"nextLink\":\"ndlkzgxhurip\"}") + "{\"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("pswiydmcwyh", model.value().get(0).displayName()); - Assertions.assertEquals("ndlkzgxhurip", 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 c29ddab9b2146..81abc9e056cd0 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateDhcpMockTests { @Test public void testCreateDhcp() throws Exception { String responseStr - = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"dbxiqx\",\"segments\":[\"qbi\"],\"provisioningState\":\"Succeeded\",\"revision\":8599129879041195157},\"id\":\"nhe\",\"name\":\"f\",\"type\":\"pofvwb\"}"; + = "{\"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("gzwywak") - .withExistingPrivateCloud("s", "sphaivmxyasflvg") + .defineDhcp("a") + .withExistingWorkloadNetwork("urnnqbnqbpiz", "qltgrd", "gypxrxvbfihwuhvc") .withProperties( - new WorkloadNetworkDhcpEntity().withDisplayName("knsmjblmljhlnymz").withRevision(2855783179854311369L)) + new WorkloadNetworkDhcpEntity().withDisplayName("bxrblmliowxihspn").withRevision(5731341152723748479L)) .create(); - Assertions.assertEquals("dbxiqx", response.properties().displayName()); - Assertions.assertEquals(8599129879041195157L, 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 ec2dc3ae5e397..b7976d21a479f 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 @@ -23,7 +23,7 @@ public final class WorkloadNetworksCreateDnsServiceMockTests { @Test public void testCreateDnsService() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"lzok\",\"dnsServiceIp\":\"ox\",\"defaultDnsZone\":\"lnjetaglt\",\"fqdnZones\":[\"atftgzpnpbsw\",\"e\",\"loccsrmozihm\",\"pgawtxxpkyjcxcjx\"],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":7160892458188162484},\"id\":\"lrmcaykg\",\"name\":\"noxuztrksx\",\"type\":\"pndfcpfnznt\"}"; + = "{\"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("jizcilnghgs") - .withExistingPrivateCloud("xgvelfclduccbird", "vuwcobiegstmnin") - .withDisplayName("jtbxqmuluxlx") - .withDnsServiceIp("vnersbycucrw") - .withDefaultDnsZone("mikzeb") - .withFqdnZones(Arrays.asList("smswziqgfuh", "kzruswh", "hczznvf")) - .withLogLevel(DnsServiceLogLevelEnum.ERROR) - .withRevision(2787720683354183168L) + .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("lzok", response.displayName()); - Assertions.assertEquals("ox", response.dnsServiceIp()); - Assertions.assertEquals("lnjetaglt", response.defaultDnsZone()); - Assertions.assertEquals("atftgzpnpbsw", 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(7160892458188162484L, 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 c94613fc5951e..5cd00e3fbbc55 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateDnsZoneMockTests { @Test public void testCreateDnsZone() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"kpak\",\"domain\":[\"fmjnnawtqa\",\"pxuckpggq\"],\"dnsServerIps\":[\"yirdhlisngwflqq\",\"pizruwnpqxpxiw\",\"cng\"],\"sourceIp\":\"aas\",\"dnsServices\":4326560645886577311,\"provisioningState\":\"Succeeded\",\"revision\":6093602471363921614},\"id\":\"viirhgfgrws\",\"name\":\"pgratzvzbglbyvi\",\"type\":\"tctbrxkjzwrgxffm\"}"; + = "{\"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("smgbzahgxqdl") - .withExistingPrivateCloud("jtwkjaos", "xuzvoamktcqi") - .withDisplayName("ltlaprltzkatbhj") - .withDomain(Arrays.asList("nbsoqeqalarv", "agunbtgfebw", "nbmhyree")) - .withDnsServerIps(Arrays.asList("qavbpdqmj", "lyyzglgouwtlmjj", "uojqt")) - .withSourceIp("axkjeytunlbfjk") - .withDnsServices(830794053618499369L) - .withRevision(3923529219175299110L) + .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("kpak", response.displayName()); - Assertions.assertEquals("fmjnnawtqa", response.domain().get(0)); - Assertions.assertEquals("yirdhlisngwflqq", response.dnsServerIps().get(0)); - Assertions.assertEquals("aas", response.sourceIp()); - Assertions.assertEquals(4326560645886577311L, response.dnsServices()); - Assertions.assertEquals(6093602471363921614L, 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 c5efa2d3bd6d4..2dcbc01eaefd9 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreatePortMirroringMockTests { @Test public void testCreatePortMirroring() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"l\",\"direction\":\"INGRESS\",\"source\":\"uiiznktwfansnvpd\",\"destination\":\"mik\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":2416325783439778913},\"id\":\"buqny\",\"name\":\"phzfylsgcrp\",\"type\":\"bcunezzceze\"}"; + = "{\"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("duragegizvc") - .withExistingPrivateCloud("blembnkbwvqvxkd", "vqihebwtswbzuwf") - .withDisplayName("lisdjubggbq") - .withDirection(PortMirroringDirectionEnum.INGRESS) - .withSource("kbsazgak") - .withDestination("cyrcmjdmspo") - .withRevision(2234682115333576707L) + .definePortMirroring("eakxcptsoqfyi") + .withExistingWorkloadNetwork("vqvwzkjopwbe", "nrlkwzdqy", "x") + .withDisplayName("qc") + .withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL) + .withSource("tzrazisgyk") + .withDestination("emv") + .withRevision(4183468401672567495L) .create(); - Assertions.assertEquals("l", response.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, response.direction()); - Assertions.assertEquals("uiiznktwfansnvpd", response.source()); - Assertions.assertEquals("mik", response.destination()); - Assertions.assertEquals(2416325783439778913L, 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 index 390d4cd7e9496..d99812ee13060 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 @@ -17,11 +17,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class WorkloadNetworksCreatePublicIPMockTests { +public final class WorkloadNetworksCreatePublicIpMockTests { @Test - public void testCreatePublicIP() throws Exception { + public void testCreatePublicIp() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"nfprnjletlxs\",\"numberOfPublicIPs\":8927877098345650470,\"publicIPBlock\":\"ou\",\"provisioningState\":\"Succeeded\"},\"id\":\"owa\",\"name\":\"iynknlq\",\"type\":\"zdvpiw\"}"; + = "{\"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("yg") - .withExistingPrivateCloud("hkwfbkgozxwop", "bydpizqaclnapxb") - .withDisplayName("j") - .withNumberOfPublicIPs(5251325077784054834L) + .definePublicIp("pydjfboc") + .withExistingWorkloadNetwork("wqejpmvsse", "aepwamcxtcz", "upeuknijduyye") + .withDisplayName("hulrtywikdmhla") + .withNumberOfPublicIPs(8589946500530915839L) .create(); - Assertions.assertEquals("nfprnjletlxs", response.displayName()); - Assertions.assertEquals(8927877098345650470L, 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 index 6f4fd56ecc7a7..815e9842ad484 100644 --- 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 @@ -23,7 +23,7 @@ public final class WorkloadNetworksCreateSegmentMockTests { @Test public void testCreateSegment() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"hslhca\",\"connectedGateway\":\"u\",\"subnet\":{\"dhcpRanges\":[\"wfmvigorqjbt\",\"zhraglkafh\",\"n\"],\"gatewayAddress\":\"ujeickp\"},\"portVif\":[{\"portName\":\"opmx\"},{\"portName\":\"nwcl\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":6137899211514369318},\"id\":\"lfmk\",\"name\":\"scazuawxtzxpu\",\"type\":\"mwabzxrvxc\"}"; + = "{\"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))); @@ -33,19 +33,19 @@ public void testCreateSegment() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkSegment response = manager.workloadNetworks() - .defineSegment("jqg") - .withExistingPrivateCloud("svtui", "zh") - .withDisplayName("hm") - .withConnectedGateway("qryxyn") - .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("dpsovwxznptgo")) - .withGatewayAddress("ybbabpfhvfsl")) - .withRevision(4417408561997868139L) + .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("hslhca", response.displayName()); - Assertions.assertEquals("u", response.connectedGateway()); - Assertions.assertEquals("wfmvigorqjbt", response.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("ujeickp", response.subnet().gatewayAddress()); - Assertions.assertEquals(6137899211514369318L, response.revision()); + 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/WorkloadNetworksCreateVMGroupMockTests.java b/sdk/avs/azure-resourcemanager-avs/src/test/java/com/azure/resourcemanager/avs/generated/WorkloadNetworksCreateVMGroupMockTests.java index af5cd18a29fa3..3c42d01dae3ee 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksCreateVMGroupMockTests { @Test public void testCreateVMGroup() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"jgehkf\",\"members\":[\"rtixokff\"],\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":3258323746921369776},\"id\":\"qwhix\",\"name\":\"onsts\",\"type\":\"i\"}"; + = "{\"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("zvaylptrsqqw") - .withExistingPrivateCloud("fwyfwlwxjwet", "psihcla") - .withDisplayName("mwqkchcxwaxf") - .withMembers(Arrays.asList("jkjexf", "eqvhpsylkk", "hkbffmbm")) - .withRevision(3427888664971158449L) + .defineVMGroup("ebwgga") + .withExistingWorkloadNetwork("jj", "cqtjzmi", "vgbgatzuuvbxng") + .withDisplayName("zlswvajqf") + .withMembers(Arrays.asList("x")) + .withRevision(5388655277273530028L) .create(); - Assertions.assertEquals("jgehkf", response.displayName()); - Assertions.assertEquals("rtixokff", response.members().get(0)); - Assertions.assertEquals(3258323746921369776L, 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 a9a0375eb34e2..3a30d2448da8a 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 @@ -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("rjeuut", "wxezwzhok", "bwnhhtql", 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 87fb33766e600..ac0a20a24aaa6 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 @@ -27,7 +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("nlj", "nmgixh", "mavmq", 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 492355d3d9b5b..3d21d6cfcfaa7 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 @@ -28,7 +28,7 @@ public void testDeleteDnsZone() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deleteDnsZone("la", "utmzlbiojlvfhrbb", "neqvcwwyyurmo", 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 3689ba659b2bd..d6779a0a2dc35 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 @@ -28,7 +28,7 @@ public void testDeletePortMirroring() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deletePortMirroring("os", "sjuivfcdisyir", "xzhczexrxz", 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 index 2313f42a67c09..d42953b4f39cc 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 @@ -15,9 +15,9 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class WorkloadNetworksDeletePublicIPMockTests { +public final class WorkloadNetworksDeletePublicIpMockTests { @Test - public void testDeletePublicIP() throws Exception { + public void testDeletePublicIp() throws Exception { String responseStr = "{}"; HttpClient httpClient @@ -28,7 +28,7 @@ public void testDeletePublicIP() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deletePublicIP("qwazlnqnmcjngzq", "qxtbjwgnyf", "sf", com.azure.core.util.Context.NONE); + .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 fa8572ae49f59..16ff836de5078 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 @@ -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("ecdmdqbwpy", "q", "gsfjac", 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 67255e3815704..ed2b6851a15d0 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 @@ -28,7 +28,7 @@ public void testDeleteVMGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.workloadNetworks() - .deleteVMGroup("cwyhahno", "drkywuhps", "fuurutlwexx", 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 0849623f708fe..da529d0314514 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetDhcpWithResponseMockTests { @Test public void testGetDhcpWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"ycy\",\"segments\":[\"lxgccknfnwmbtm\"],\"provisioningState\":\"Building\",\"revision\":4849320902219836691},\"id\":\"ttzaefed\",\"name\":\"ihchrphkmcrjdqn\",\"type\":\"dfzpbgtgkylkdg\"}"; + = "{\"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("a", "xulcdisdos", "jbjsvgjrwh", com.azure.core.util.Context.NONE) + .getDhcpWithResponse("tlyo", "rrrouuxvnsa", "bcrymodizrx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ycy", response.properties().displayName()); - Assertions.assertEquals(4849320902219836691L, 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 c5bc3cfcec852..ca1c2948b6dda 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksGetDnsServiceWithResponseMockTests { @Test public void testGetDnsServiceWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"acevehjkuyx\",\"dnsServiceIp\":\"fgaoq\",\"defaultDnsZone\":\"faey\",\"fqdnZones\":[\"mfgvxirpghriypo\"],\"logLevel\":\"FATAL\",\"status\":\"FAILURE\",\"provisioningState\":\"Succeeded\",\"revision\":1589497887711034264},\"id\":\"lpyznuciqdsmexi\",\"name\":\"tdfuxt\",\"type\":\"asiibmiybnnust\"}"; + = "{\"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("tnluankrr", "xeeebtijvacvbmqz", "qqxlajr", com.azure.core.util.Context.NONE) + .getDnsServiceWithResponse("dgycxnmskwhqjjy", "lurlpshhkvp", "dwqslsrhmpqvw", "skondcbrwimu", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("acevehjkuyx", response.displayName()); - Assertions.assertEquals("fgaoq", response.dnsServiceIp()); - Assertions.assertEquals("faey", response.defaultDnsZone()); - Assertions.assertEquals("mfgvxirpghriypo", response.fqdnZones().get(0)); - Assertions.assertEquals(DnsServiceLogLevelEnum.FATAL, response.logLevel()); - Assertions.assertEquals(1589497887711034264L, 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 8362170793534..9ea857d15c706 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetDnsZoneWithResponseMockTests { @Test public void testGetDnsZoneWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"xeyskonqzinkfkbg\",\"domain\":[\"owxeqocljmy\",\"vkzqk\"],\"dnsServerIps\":[\"okbzef\",\"zrxcczurt\"],\"sourceIp\":\"ipqxbkwvzgnzv\",\"dnsServices\":8865201443625196451,\"provisioningState\":\"Updating\",\"revision\":8445410138304519082},\"id\":\"pnodawopqhe\",\"name\":\"jptmcgsbost\",\"type\":\"eln\"}"; + = "{\"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("cohdx", "zlmcmuapcvhdb", "v", com.azure.core.util.Context.NONE) + .getDnsZoneWithResponse("ktgj", "sggux", "eml", "ywaeeczgf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xeyskonqzinkfkbg", response.displayName()); - Assertions.assertEquals("owxeqocljmy", response.domain().get(0)); - Assertions.assertEquals("okbzef", response.dnsServerIps().get(0)); - Assertions.assertEquals("ipqxbkwvzgnzv", response.sourceIp()); - Assertions.assertEquals(8865201443625196451L, response.dnsServices()); - Assertions.assertEquals(8445410138304519082L, 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 b731274ab87d8..2ce3a981ff75f 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetGatewayWithResponseMockTests { @Test public void testGetGatewayWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"ibph\",\"path\":\"zmizakakan\"},\"id\":\"p\",\"name\":\"n\",\"type\":\"zhajoylhjlmuo\"}"; + = "{\"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("qtgdqohmcwsl", "riz", "tpwb", com.azure.core.util.Context.NONE) + .getGatewayWithResponse("jcaacfdmmcpugm", "hqepvufhbzehewh", "qhnlbqnbld", "eaclgschorimk", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ibph", 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 6676affc033ed..fd65c44a700aa 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksGetPortMirroringWithResponseMockTests { @Test public void testGetPortMirroringWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"bu\",\"direction\":\"BIDIRECTIONAL\",\"source\":\"xebeybpmz\",\"destination\":\"rtffyaqitmh\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":1147864952141338837},\"id\":\"seufuqy\",\"name\":\"xpdlcgqlsis\",\"type\":\"jqfrddgamquh\"}"; + = "{\"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,14 +32,14 @@ public void testGetPortMirroringWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkPortMirroring response = manager.workloadNetworks() - .getPortMirroringWithResponse("yijddtvqcttad", "jaeukmrsieekpn", "zaapmudqmeqwi", + .getPortMirroringWithResponse("mtkhlowkxxpvbr", "fjmzsyzfho", "lhikcyychunsj", "pjrtws", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bu", response.displayName()); - Assertions.assertEquals(PortMirroringDirectionEnum.BIDIRECTIONAL, response.direction()); - Assertions.assertEquals("xebeybpmz", response.source()); - Assertions.assertEquals("rtffyaqitmh", response.destination()); - Assertions.assertEquals(1147864952141338837L, response.revision()); + Assertions.assertEquals("vuicp", response.displayName()); + Assertions.assertEquals(PortMirroringDirectionEnum.EGRESS, response.direction()); + 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 index 137474ea5bff7..ef67773d57b7e 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 @@ -17,11 +17,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class WorkloadNetworksGetPublicIPWithResponseMockTests { +public final class WorkloadNetworksGetPublicIpWithResponseMockTests { @Test - public void testGetPublicIPWithResponse() throws Exception { + public void testGetPublicIpWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"dcdab\",\"numberOfPublicIPs\":8090697821679343432,\"publicIPBlock\":\"yawbzasqbu\",\"provisioningState\":\"Updating\"},\"id\":\"kyexaoguyaipi\",\"name\":\"sdaultxij\",\"type\":\"um\"}"; + = "{\"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("ex", "kmfx", "pjwogqqno", com.azure.core.util.Context.NONE) + .getPublicIpWithResponse("wdtgukranblw", "hqlkccuzgygqwaho", "ulwgniiprglvawuw", "d", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dcdab", response.displayName()); - Assertions.assertEquals(8090697821679343432L, 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 11eb745d8adea..d88f84c1ce456 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetSegmentWithResponseMockTests { @Test public void testGetSegmentWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"erteeammxqiekk\",\"connectedGateway\":\"ddrtkgdojb\",\"subnet\":{\"dhcpRanges\":[\"vrefdeesv\"],\"gatewayAddress\":\"uij\"},\"portVif\":[{\"portName\":\"s\"}],\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":4136420798110514219},\"id\":\"awddjibab\",\"name\":\"vit\",\"type\":\"tvtzeexavoxtfg\"}"; + = "{\"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,13 +31,14 @@ public void testGetSegmentWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkSegment response = manager.workloadNetworks() - .getSegmentWithResponse("svxeizzgwklnsr", "ffeycx", "ktp", com.azure.core.util.Context.NONE) + .getSegmentWithResponse("etndnbfqyggagf", "nlgmtrwahzjmu", "ftbyrplro", "kpigqfusu", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("erteeammxqiekk", response.displayName()); - Assertions.assertEquals("ddrtkgdojb", response.connectedGateway()); - Assertions.assertEquals("vrefdeesv", response.subnet().dhcpRanges().get(0)); - Assertions.assertEquals("uij", response.subnet().gatewayAddress()); - Assertions.assertEquals(4136420798110514219L, 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 a2a416b7b7fec..7dba8d84d8aa2 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetVMGroupWithResponseMockTests { @Test public void testGetVMGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"displayName\":\"uuwwltv\",\"members\":[\"ctzenkeifzzhmkd\",\"svflyhbxcudch\",\"gsrboldforobw\"],\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":6875255372638477871},\"id\":\"ovvacqpbt\",\"name\":\"odxeszabbela\",\"type\":\"umuaslzkwrrwoycq\"}"; + = "{\"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("lvidizozs", "bccxjmonfdgn", "n", com.azure.core.util.Context.NONE) + .getVMGroupWithResponse("plrvkmjcwmjvlg", "ggcvk", "y", "izrzb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("uuwwltv", response.displayName()); - Assertions.assertEquals("ctzenkeifzzhmkd", response.members().get(0)); - Assertions.assertEquals(6875255372638477871L, 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 d4c6863087bad..e6f1aa02c54fa 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksGetVirtualMachineWithResponseMockTests { @Test public void testGetVirtualMachineWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"dyfpchrqbnj\",\"vmType\":\"REGULAR\"},\"id\":\"egy\",\"name\":\"cw\",\"type\":\"oxjumvqqo\"}"; + = "{\"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,10 +31,10 @@ public void testGetVirtualMachineWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); WorkloadNetworkVirtualMachine response = manager.workloadNetworks() - .getVirtualMachineWithResponse("ttexoqqpwcyyufmh", "uncuw", "qspkcdqzhlctd", + .getVirtualMachineWithResponse("gzvlnsnn", "zfpafolpymwamxqz", "agpgdph", "vdulajv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dyfpchrqbnj", 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 e2bd5a1187dfe..15790d2d04796 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 @@ -20,7 +20,7 @@ public final class WorkloadNetworksGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\"},\"id\":\"pmyyefrpmpdnqq\",\"name\":\"ka\",\"type\":\"ao\"}"; + = "{\"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("vcpwpgclrc", "vtsoxf", 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 31561d1835e2c..cfb414071c2dc 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListDhcpMockTests { @Test public void testListDhcp() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"dhcpType\":\"WorkloadNetworkDhcpEntity\",\"displayName\":\"sirudhzmmesckdlp\",\"segments\":[\"rcxfailcfxwmdb\",\"xdfgsftufqobr\",\"lnacgcc\",\"knh\"],\"provisioningState\":\"Succeeded\",\"revision\":589895181395208986},\"id\":\"nrzvuljraaer\",\"name\":\"nok\",\"type\":\"gukkjqnvbroy\"}]}"; + = "{\"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("slhhxudbxv", "d", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDhcp("ugwbsreurfqkf", "arenlvhhtklnvnaf", "vkyfedevjbosl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("sirudhzmmesckdlp", response.iterator().next().properties().displayName()); - Assertions.assertEquals(589895181395208986L, 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 ea6c126886246..569dd7f137262 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 @@ -23,7 +23,7 @@ public final class WorkloadNetworksListDnsServicesMockTests { @Test public void testListDnsServices() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"uojrngiflr\",\"dnsServiceIp\":\"asccbiui\",\"defaultDnsZone\":\"dlyjdf\",\"fqdnZones\":[\"kyoqufdv\",\"uzslzojhpctfnmdx\",\"tngfdgugeyzihgr\",\"yui\"],\"logLevel\":\"ERROR\",\"status\":\"SUCCESS\",\"provisioningState\":\"Succeeded\",\"revision\":1993582902542449094},\"id\":\"jee\",\"name\":\"yhyhsgzfczb\",\"type\":\"omfgbeglqgleohib\"}]}"; + = "{\"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("ihrraiouaub", "jtlo", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDnsServices("iwdcxsmlzzhzd", "xetlgydlhqv", "n", com.azure.core.util.Context.NONE); - Assertions.assertEquals("uojrngiflr", response.iterator().next().displayName()); - Assertions.assertEquals("asccbiui", response.iterator().next().dnsServiceIp()); - Assertions.assertEquals("dlyjdf", response.iterator().next().defaultDnsZone()); - Assertions.assertEquals("kyoqufdv", response.iterator().next().fqdnZones().get(0)); + 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(1993582902542449094L, response.iterator().next().revision()); + 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 ae462ada475dc..2d5f64efeb206 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListDnsZonesMockTests { @Test public void testListDnsZones() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"gcmjkavl\",\"domain\":[\"bmftpmdt\"],\"dnsServerIps\":[\"ltfvnz\",\"yj\",\"otp\",\"opv\"],\"sourceIp\":\"dbzqgqqihed\",\"dnsServices\":7204032751679115216,\"provisioningState\":\"Failed\",\"revision\":1811434069334068168},\"id\":\"bcysih\",\"name\":\"gqcwdhohsdtmc\",\"type\":\"zsu\"}]}"; + = "{\"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("oudorhcgyyp", "otwypundmb", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listDnsZones("gkkumuikjcj", "aztb", "snsqowxwcoml", com.azure.core.util.Context.NONE); - Assertions.assertEquals("gcmjkavl", response.iterator().next().displayName()); - Assertions.assertEquals("bmftpmdt", response.iterator().next().domain().get(0)); - Assertions.assertEquals("ltfvnz", response.iterator().next().dnsServerIps().get(0)); - Assertions.assertEquals("dbzqgqqihed", response.iterator().next().sourceIp()); - Assertions.assertEquals(7204032751679115216L, response.iterator().next().dnsServices()); - Assertions.assertEquals(1811434069334068168L, 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 9d81e912cff7f..3d7858ee4aabe 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListGatewaysMockTests { @Test public void testListGateways() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"afidltugsres\",\"path\":\"ssjhoiftxfkf\"},\"id\":\"gpr\",\"name\":\"ptil\",\"type\":\"ucb\"}]}"; + = "{\"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("ehgpp", "pifhpfeoajvgcxtx", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listGateways("ibidmhmwffp", "fmuvapckccr", "vwe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("afidltugsres", 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 b22e288cdd161..15f5cebd68825 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 @@ -21,7 +21,7 @@ public final class WorkloadNetworksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\"},\"id\":\"kxlzyqdrfeg\",\"name\":\"ealzxwhcansymoyq\",\"type\":\"lwigdivbkbx\"}]}"; + = "{\"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("vmm", "npqfrtqlkzmeg", 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 29fe67b6717e0..25ca3976156a2 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 @@ -23,7 +23,7 @@ public final class WorkloadNetworksListPortMirroringMockTests { @Test public void testListPortMirroring() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"vasylwxdzau\",\"direction\":\"INGRESS\",\"source\":\"ohguuf\",\"destination\":\"boyjathwt\",\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":7359436654104402484},\"id\":\"dxmeb\",\"name\":\"jscjpahl\",\"type\":\"veabfqxnmwmqtib\"}]}"; + = "{\"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))); @@ -33,12 +33,12 @@ public void testListPortMirroring() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.workloadNetworks().listPortMirroring("xprimrsop", "eecjmeis", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().listPortMirroring("gf", "tmhqykiz", "d", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vasylwxdzau", response.iterator().next().displayName()); + Assertions.assertEquals("oafcluqvox", response.iterator().next().displayName()); Assertions.assertEquals(PortMirroringDirectionEnum.INGRESS, response.iterator().next().direction()); - Assertions.assertEquals("ohguuf", response.iterator().next().source()); - Assertions.assertEquals("boyjathwt", response.iterator().next().destination()); - Assertions.assertEquals(7359436654104402484L, response.iterator().next().revision()); + 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 0742933babc0e..4f99313c8a9c4 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 @@ -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\":\"yzejnhlbk\",\"numberOfPublicIPs\":72002495094677042,\"publicIPBlock\":\"piljhahzvech\",\"provisioningState\":\"Failed\"},\"id\":\"wieholewjwiu\",\"name\":\"bwefqsfapaqtfer\",\"type\":\"q\"}]}"; + = "{\"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))); @@ -31,10 +31,10 @@ public void testListPublicIPs() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.workloadNetworks().listPublicIPs("hppr", "rsnm", com.azure.core.util.Context.NONE); + PagedIterable response = manager.workloadNetworks() + .listPublicIps("pphkixkykxds", "j", "emmucfxh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yzejnhlbk", response.iterator().next().displayName()); - Assertions.assertEquals(72002495094677042L, 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 07aa48edd3ffc..63f5287ffacb1 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListSegmentsMockTests { @Test public void testListSegments() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"kjsqzhzbezkgi\",\"connectedGateway\":\"idxas\",\"subnet\":{\"dhcpRanges\":[\"yvvjskgfmo\",\"wa\",\"pqg\",\"tjeaahhvjhh\"],\"gatewayAddress\":\"kzyb\"},\"portVif\":[{\"portName\":\"dj\"}],\"status\":\"SUCCESS\",\"provisioningState\":\"Failed\",\"revision\":8248669428764587059},\"id\":\"evblbje\",\"name\":\"nljlageuaulx\",\"type\":\"nsmjbnkppxynen\"}]}"; + = "{\"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("omfaj", "wasqvdaeyyg", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().listSegments("qogsfikayian", "haru", "t", com.azure.core.util.Context.NONE); - Assertions.assertEquals("kjsqzhzbezkgi", response.iterator().next().displayName()); - Assertions.assertEquals("idxas", response.iterator().next().connectedGateway()); - Assertions.assertEquals("yvvjskgfmo", response.iterator().next().subnet().dhcpRanges().get(0)); - Assertions.assertEquals("kzyb", response.iterator().next().subnet().gatewayAddress()); - Assertions.assertEquals(8248669428764587059L, 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 9b63368eafb34..8b164c9c6b1d6 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListVMGroupsMockTests { @Test public void testListVMGroups() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"displayName\":\"lnzonzlrpiqywn\",\"members\":[\"tszcofizehtdhgb\",\"k\"],\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":5299106895755673529},\"id\":\"rvzmlovuana\",\"name\":\"hcxlpm\",\"type\":\"erbdk\"}]}"; + = "{\"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("ujrtrhqvwr", "vk", com.azure.core.util.Context.NONE); + = manager.workloadNetworks().listVMGroups("fihotj", "wlpxuzzjg", "refqy", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lnzonzlrpiqywn", response.iterator().next().displayName()); - Assertions.assertEquals("tszcofizehtdhgb", response.iterator().next().members().get(0)); - Assertions.assertEquals(5299106895755673529L, 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 035035102ee25..a57b56c80a252 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 @@ -22,7 +22,7 @@ public final class WorkloadNetworksListVirtualMachinesMockTests { @Test public void testListVirtualMachines() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Building\",\"displayName\":\"chzyvlixqnrk\",\"vmType\":\"REGULAR\"},\"id\":\"ibn\",\"name\":\"mysu\",\"type\":\"swqrntvlwijp\"}]}"; + = "{\"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("lalniex", "srzpgepqtybbww", com.azure.core.util.Context.NONE); + .listVirtualMachines("yjuzkdb", "zolxrzvhqjwtr", "tgvgzp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("chzyvlixqnrk", response.iterator().next().displayName()); + Assertions.assertEquals("lawjmjsmwrok", response.iterator().next().displayName()); } }