diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 1db80605f0e6..f37a3901ed7a 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -330,7 +330,7 @@ com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0-beta.7;1.
com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6
-com.azure.resourcemanager:azure-resourcemanager-avs;1.1.0;1.2.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-avs;1.1.0;1.2.0
com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0-beta.3;1.0.0-beta.4
diff --git a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md
index 10ee5adb4973..a46cdf75fb6b 100644
--- a/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md
+++ b/sdk/avs/azure-resourcemanager-avs/CHANGELOG.md
@@ -1,14 +1,8 @@
# Release History
-## 1.2.0-beta.2 (Unreleased)
+## 1.2.0 (Unreleased)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
+- Azure Resource Manager Avs client library for Java. This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.2.0-beta.1 (2024-06-25)
diff --git a/sdk/avs/azure-resourcemanager-avs/README.md b/sdk/avs/azure-resourcemanager-avs/README.md
index 918077b00d36..5a84283b99c2 100644
--- a/sdk/avs/azure-resourcemanager-avs/README.md
+++ b/sdk/avs/azure-resourcemanager-avs/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Avs client library for Java.
-This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. Package tag package-2023-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Avs Management SDK. Azure VMware Solution API. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-avs
- 1.2.0-beta.1
+ 1.2.0
```
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -74,17 +70,6 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
-```java
-privateCloud = avsManager.privateClouds()
- .define(privateCloudsName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withSku(new Sku().withName("av36p"))
- .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
- .withNetworkBlock("192.168.48.0/22")
- .withManagementCluster(new ManagementCluster().withClusterSize(4))
- .create();
-```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/avs/azure-resourcemanager-avs/SAMPLE.md)
@@ -108,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md
index 7cc376ef9f14..d6c3eb91c086 100644
--- a/sdk/avs/azure-resourcemanager-avs/SAMPLE.md
+++ b/sdk/avs/azure-resourcemanager-avs/SAMPLE.md
@@ -119,7 +119,7 @@
- [CreateDnsZone](#workloadnetworks_creatednszone)
- [CreatePortMirroring](#workloadnetworks_createportmirroring)
- [CreatePublicIp](#workloadnetworks_createpublicip)
-- [CreateSegments](#workloadnetworks_createsegments)
+- [CreateSegment](#workloadnetworks_createsegment)
- [CreateVMGroup](#workloadnetworks_createvmgroup)
- [DeleteDhcp](#workloadnetworks_deletedhcp)
- [DeleteDnsService](#workloadnetworks_deletednsservice)
@@ -144,15 +144,14 @@
- [ListDnsZones](#workloadnetworks_listdnszones)
- [ListGateways](#workloadnetworks_listgateways)
- [ListPortMirroring](#workloadnetworks_listportmirroring)
-- [ListPublicIPs](#workloadnetworks_listpublicips)
+- [ListPublicIps](#workloadnetworks_listpublicips)
- [ListSegments](#workloadnetworks_listsegments)
- [ListVMGroups](#workloadnetworks_listvmgroups)
- [ListVirtualMachines](#workloadnetworks_listvirtualmachines)
-- [UpdateDhcp](#workloadnetworks_updatedhcp)
- [UpdateDnsService](#workloadnetworks_updatednsservice)
- [UpdateDnsZone](#workloadnetworks_updatednszone)
- [UpdatePortMirroring](#workloadnetworks_updateportmirroring)
-- [UpdateSegments](#workloadnetworks_updatesegments)
+- [UpdateSegment](#workloadnetworks_updatesegment)
- [UpdateVMGroup](#workloadnetworks_updatevmgroup)
### Addons_CreateOrUpdate
@@ -167,8 +166,7 @@ import com.azure.resourcemanager.avs.models.AddonVrProperties;
*/
public final class AddonsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_HCX.json
+ * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_HCX.json
*/
/**
* Sample code: Addons_CreateOrUpdate_HCX.
@@ -184,8 +182,7 @@ public final class AddonsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_SRM.json
+ * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_SRM.json
*/
/**
* Sample code: Addons_CreateOrUpdate_SRM.
@@ -201,8 +198,7 @@ public final class AddonsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_ArcReg.json
+ * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_ArcReg.json
*/
/**
* Sample code: Addons_CreateOrUpdate_ArcReg.
@@ -219,8 +215,7 @@ public final class AddonsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_CreateOrUpdate_VR.json
+ * x-ms-original-file: 2023-09-01/Addons_CreateOrUpdate_VR.json
*/
/**
* Sample code: Addons_CreateOrUpdate_VR.
@@ -245,8 +240,7 @@ public final class AddonsCreateOrUpdateSamples {
*/
public final class AddonsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Delete.json
+ * x-ms-original-file: 2023-09-01/Addons_Delete.json
*/
/**
* Sample code: Addons_Delete.
@@ -267,8 +261,7 @@ public final class AddonsDeleteSamples {
*/
public final class AddonsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_SRM.json
+ * x-ms-original-file: 2023-09-01/Addons_Get_SRM.json
*/
/**
* Sample code: Addons_Get_SRM.
@@ -280,8 +273,7 @@ public final class AddonsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_VR.json
+ * x-ms-original-file: 2023-09-01/Addons_Get_VR.json
*/
/**
* Sample code: Addons_Get_VR.
@@ -293,8 +285,7 @@ public final class AddonsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_HCX.json
+ * x-ms-original-file: 2023-09-01/Addons_Get_HCX.json
*/
/**
* Sample code: Addons_Get_HCX.
@@ -306,8 +297,7 @@ public final class AddonsGetSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_Get_ArcReg.json
+ * x-ms-original-file: 2023-09-01/Addons_Get_ArcReg.json
*/
/**
* Sample code: Addons_Get_ArcReg.
@@ -328,8 +318,7 @@ public final class AddonsGetSamples {
*/
public final class AddonsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Addons_List.json
+ * x-ms-original-file: 2023-09-01/Addons_List.json
*/
/**
* Sample code: Addons_List.
@@ -350,8 +339,7 @@ public final class AddonsListSamples {
*/
public final class AuthorizationsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/Authorizations_CreateOrUpdate.json
*/
/**
* Sample code: Authorizations_CreateOrUpdate.
@@ -372,8 +360,7 @@ public final class AuthorizationsCreateOrUpdateSamples {
*/
public final class AuthorizationsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Delete.json
+ * x-ms-original-file: 2023-09-01/Authorizations_Delete.json
*/
/**
* Sample code: Authorizations_Delete.
@@ -394,8 +381,7 @@ public final class AuthorizationsDeleteSamples {
*/
public final class AuthorizationsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_Get.json
+ * x-ms-original-file: 2023-09-01/Authorizations_Get.json
*/
/**
* Sample code: Authorizations_Get.
@@ -417,8 +403,7 @@ public final class AuthorizationsGetSamples {
*/
public final class AuthorizationsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Authorizations_List.json
+ * x-ms-original-file: 2023-09-01/Authorizations_List.json
*/
/**
* Sample code: Authorizations_List.
@@ -439,8 +424,7 @@ public final class AuthorizationsListSamples {
*/
public final class CloudLinksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/CloudLinks_CreateOrUpdate.json
*/
/**
* Sample code: CloudLinks_CreateOrUpdate.
@@ -466,8 +450,7 @@ public final class CloudLinksCreateOrUpdateSamples {
*/
public final class CloudLinksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Delete.json
+ * x-ms-original-file: 2023-09-01/CloudLinks_Delete.json
*/
/**
* Sample code: CloudLinks_Delete.
@@ -488,8 +471,7 @@ public final class CloudLinksDeleteSamples {
*/
public final class CloudLinksGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_Get.json
+ * x-ms-original-file: 2023-09-01/CloudLinks_Get.json
*/
/**
* Sample code: CloudLinks_Get.
@@ -510,8 +492,7 @@ public final class CloudLinksGetSamples {
*/
public final class CloudLinksListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/CloudLinks_List.json
+ * x-ms-original-file: 2023-09-01/CloudLinks_List.json
*/
/**
* Sample code: CloudLinks_List.
@@ -534,8 +515,7 @@ import com.azure.resourcemanager.avs.models.Sku;
*/
public final class ClustersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/Clusters_CreateOrUpdate.json
*/
/**
* Sample code: Clusters_CreateOrUpdate.
@@ -561,8 +541,7 @@ public final class ClustersCreateOrUpdateSamples {
*/
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Delete.json
+ * x-ms-original-file: 2023-09-01/Clusters_Delete.json
*/
/**
* Sample code: Clusters_Delete.
@@ -583,8 +562,7 @@ public final class ClustersDeleteSamples {
*/
public final class ClustersGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Get.json
+ * x-ms-original-file: 2023-09-01/Clusters_Get.json
*/
/**
* Sample code: Clusters_Get.
@@ -605,8 +583,7 @@ public final class ClustersGetSamples {
*/
public final class ClustersListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_List.json
+ * x-ms-original-file: 2023-09-01/Clusters_List.json
*/
/**
* Sample code: Clusters_List.
@@ -627,8 +604,7 @@ public final class ClustersListSamples {
*/
public final class ClustersListZonesSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones.json
+ * x-ms-original-file: 2023-09-01/Clusters_ListZones.json
*/
/**
* Sample code: Clusters_ListZones.
@@ -640,8 +616,7 @@ public final class ClustersListZonesSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_ListZones_Stretched.json
+ * x-ms-original-file: 2023-09-01/Clusters_ListZones_Stretched.json
*/
/**
* Sample code: Clusters_ListZones_Stretched.
@@ -664,8 +639,7 @@ import com.azure.resourcemanager.avs.models.Cluster;
*/
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Clusters_Update.json
+ * x-ms-original-file: 2023-09-01/Clusters_Update.json
*/
/**
* Sample code: Clusters_Update.
@@ -691,8 +665,7 @@ import com.azure.resourcemanager.avs.models.NetAppVolume;
*/
public final class DatastoresCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/Datastores_CreateOrUpdate.json
*/
/**
* Sample code: Datastores_CreateOrUpdate.
@@ -718,8 +691,7 @@ public final class DatastoresCreateOrUpdateSamples {
*/
public final class DatastoresDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Delete.json
+ * x-ms-original-file: 2023-09-01/Datastores_Delete.json
*/
/**
* Sample code: Datastores_Delete.
@@ -740,8 +712,7 @@ public final class DatastoresDeleteSamples {
*/
public final class DatastoresGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_Get.json
+ * x-ms-original-file: 2023-09-01/Datastores_Get.json
*/
/**
* Sample code: Datastores_Get.
@@ -763,8 +734,7 @@ public final class DatastoresGetSamples {
*/
public final class DatastoresListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Datastores_List.json
+ * x-ms-original-file: 2023-09-01/Datastores_List.json
*/
/**
* Sample code: Datastores_List.
@@ -785,8 +755,7 @@ public final class DatastoresListSamples {
*/
public final class GlobalReachConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * GlobalReachConnections_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/GlobalReachConnections_CreateOrUpdate.json
*/
/**
* Sample code: GlobalReachConnections_CreateOrUpdate.
@@ -813,8 +782,7 @@ public final class GlobalReachConnectionsCreateOrUpdateSamples {
*/
public final class GlobalReachConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Delete.json
+ * x-ms-original-file: 2023-09-01/GlobalReachConnections_Delete.json
*/
/**
* Sample code: GlobalReachConnections_Delete.
@@ -835,8 +803,7 @@ public final class GlobalReachConnectionsDeleteSamples {
*/
public final class GlobalReachConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_Get.json
+ * x-ms-original-file: 2023-09-01/GlobalReachConnections_Get.json
*/
/**
* Sample code: GlobalReachConnections_Get.
@@ -858,8 +825,7 @@ public final class GlobalReachConnectionsGetSamples {
*/
public final class GlobalReachConnectionsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/GlobalReachConnections_List.json
+ * x-ms-original-file: 2023-09-01/GlobalReachConnections_List.json
*/
/**
* Sample code: GlobalReachConnections_List.
@@ -880,9 +846,7 @@ public final class GlobalReachConnectionsListSamples {
*/
public final class HcxEnterpriseSitesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_CreateOrUpdate.json
*/
/**
* Sample code: HcxEnterpriseSites_CreateOrUpdate.
@@ -903,8 +867,7 @@ public final class HcxEnterpriseSitesCreateOrUpdateSamples {
*/
public final class HcxEnterpriseSitesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Delete.json
+ * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Delete.json
*/
/**
* Sample code: HcxEnterpriseSites_Delete.
@@ -925,8 +888,7 @@ public final class HcxEnterpriseSitesDeleteSamples {
*/
public final class HcxEnterpriseSitesGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_Get.json
+ * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_Get.json
*/
/**
* Sample code: HcxEnterpriseSites_Get.
@@ -947,8 +909,7 @@ public final class HcxEnterpriseSitesGetSamples {
*/
public final class HcxEnterpriseSitesListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/HcxEnterpriseSites_List.json
+ * x-ms-original-file: 2023-09-01/HcxEnterpriseSites_List.json
*/
/**
* Sample code: HcxEnterpriseSites_List.
@@ -964,15 +925,12 @@ public final class HcxEnterpriseSitesListSamples {
### IscsiPaths_CreateOrUpdate
```java
-import com.azure.resourcemanager.avs.fluent.models.IscsiPathInner;
-
/**
* Samples for IscsiPaths CreateOrUpdate.
*/
public final class IscsiPathsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/IscsiPaths_CreateOrUpdate.json
*/
/**
* Sample code: IscsiPaths_CreateOrUpdate.
@@ -981,8 +939,10 @@ public final class IscsiPathsCreateOrUpdateSamples {
*/
public static void iscsiPathsCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager manager) {
manager.iscsiPaths()
- .createOrUpdate("group1", "cloud1", new IscsiPathInner().withNetworkBlock("192.168.0.0/24"),
- com.azure.core.util.Context.NONE);
+ .define("default")
+ .withExistingPrivateCloud("group1", "cloud1")
+ .withNetworkBlock("192.168.0.0/24")
+ .create();
}
}
```
@@ -995,8 +955,7 @@ public final class IscsiPathsCreateOrUpdateSamples {
*/
public final class IscsiPathsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Delete.json
+ * x-ms-original-file: 2023-09-01/IscsiPaths_Delete.json
*/
/**
* Sample code: IscsiPaths_Delete.
@@ -1004,7 +963,7 @@ public final class IscsiPathsDeleteSamples {
* @param manager Entry point to AvsManager.
*/
public static void iscsiPathsDelete(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.iscsiPaths().delete("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.iscsiPaths().delete("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1017,8 +976,7 @@ public final class IscsiPathsDeleteSamples {
*/
public final class IscsiPathsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_Get.json
+ * x-ms-original-file: 2023-09-01/IscsiPaths_Get.json
*/
/**
* Sample code: IscsiPaths_Get.
@@ -1026,7 +984,7 @@ public final class IscsiPathsGetSamples {
* @param manager Entry point to AvsManager.
*/
public static void iscsiPathsGet(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.iscsiPaths().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.iscsiPaths().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1039,8 +997,7 @@ public final class IscsiPathsGetSamples {
*/
public final class IscsiPathsListByPrivateCloudSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/IscsiPaths_List.json
+ * x-ms-original-file: 2023-09-01/IscsiPaths_List.json
*/
/**
* Sample code: IscsiPaths_ListByPrivateCloud.
@@ -1061,9 +1018,7 @@ public final class IscsiPathsListByPrivateCloudSamples {
*/
public final class LocationsCheckQuotaAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckQuotaAvailability.
- * json
+ * x-ms-original-file: 2023-09-01/Locations_CheckQuotaAvailability.json
*/
/**
* Sample code: Locations_CheckQuotaAvailability.
@@ -1086,9 +1041,7 @@ import com.azure.resourcemanager.avs.models.Sku;
*/
public final class LocationsCheckTrialAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Locations_CheckTrialAvailability.
- * json
+ * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailability.json
*/
/**
* Sample code: Locations_CheckTrialAvailability.
@@ -1100,8 +1053,7 @@ public final class LocationsCheckTrialAvailabilitySamples {
}
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * Locations_CheckTrialAvailabilityWithSku.json
+ * x-ms-original-file: 2023-09-01/Locations_CheckTrialAvailabilityWithSku.json
*/
/**
* Sample code: Locations_CheckTrialAvailabilityWithSku.
@@ -1124,8 +1076,7 @@ public final class LocationsCheckTrialAvailabilitySamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/Operations_List.json
+ * x-ms-original-file: 2023-09-01/Operations_List.json
*/
/**
* Sample code: Operations_List.
@@ -1152,9 +1103,7 @@ import java.util.Arrays;
*/
public final class PlacementPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2023-09-01/PlacementPolicies_CreateOrUpdate.json
*/
/**
* Sample code: PlacementPolicies_CreateOrUpdate.
@@ -1186,8 +1135,7 @@ public final class PlacementPoliciesCreateOrUpdateSamples {
*/
public final class PlacementPoliciesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Delete.json
+ * x-ms-original-file: 2023-09-01/PlacementPolicies_Delete.json
*/
/**
* Sample code: PlacementPolicies_Delete.
@@ -1208,8 +1156,7 @@ public final class PlacementPoliciesDeleteSamples {
*/
public final class PlacementPoliciesGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Get.json
+ * x-ms-original-file: 2023-09-01/PlacementPolicies_Get.json
*/
/**
* Sample code: PlacementPolicies_Get.
@@ -1231,8 +1178,7 @@ public final class PlacementPoliciesGetSamples {
*/
public final class PlacementPoliciesListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_List.json
+ * x-ms-original-file: 2023-09-01/PlacementPolicies_List.json
*/
/**
* Sample code: PlacementPolicies_List.
@@ -1259,8 +1205,7 @@ import java.util.Arrays;
*/
public final class PlacementPoliciesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PlacementPolicies_Update.json
+ * x-ms-original-file: 2023-09-01/PlacementPolicies_Update.json
*/
/**
* Sample code: PlacementPolicies_Update.
@@ -1292,8 +1237,8 @@ import com.azure.resourcemanager.avs.models.AvailabilityProperties;
import com.azure.resourcemanager.avs.models.AvailabilityStrategy;
import com.azure.resourcemanager.avs.models.ManagementCluster;
import com.azure.resourcemanager.avs.models.PrivateCloudIdentity;
-import com.azure.resourcemanager.avs.models.ResourceIdentityType;
import com.azure.resourcemanager.avs.models.Sku;
+import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType;
import java.util.HashMap;
import java.util.Map;
@@ -1302,8 +1247,7 @@ import java.util.Map;
*/
public final class PrivateCloudsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_CreateOrUpdate.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate.json
*/
/**
* Sample code: PrivateClouds_CreateOrUpdate.
@@ -1317,15 +1261,14 @@ public final class PrivateCloudsCreateOrUpdateSamples {
.withExistingResourceGroup("group1")
.withSku(new Sku().withName("AV36"))
.withTags(mapOf())
- .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED))
.withManagementCluster(new ManagementCluster().withClusterSize(4))
.withNetworkBlock("192.168.48.0/22")
.create();
}
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * PrivateClouds_CreateOrUpdate_Stretched.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_CreateOrUpdate_Stretched.json
*/
/**
* Sample code: PrivateClouds_CreateOrUpdate_Stretched.
@@ -1369,8 +1312,7 @@ public final class PrivateCloudsCreateOrUpdateSamples {
*/
public final class PrivateCloudsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Delete.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_Delete.json
*/
/**
* Sample code: PrivateClouds_Delete.
@@ -1391,8 +1333,7 @@ public final class PrivateCloudsDeleteSamples {
*/
public final class PrivateCloudsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_Get.json
*/
/**
* Sample code: PrivateClouds_Get.
@@ -1404,8 +1345,7 @@ public final class PrivateCloudsGetByResourceGroupSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Get_Stretched.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_Get_Stretched.json
*/
/**
* Sample code: PrivateClouds_Get_Stretched.
@@ -1426,9 +1366,7 @@ public final class PrivateCloudsGetByResourceGroupSamples {
*/
public final class PrivateCloudsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListInSubscription.
- * json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription.json
*/
/**
* Sample code: PrivateClouds_ListInSubscription.
@@ -1440,8 +1378,7 @@ public final class PrivateCloudsListSamples {
}
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * PrivateClouds_ListInSubscription_Stretched.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_ListInSubscription_Stretched.json
*/
/**
* Sample code: PrivateClouds_ListInSubscription_Stretched.
@@ -1462,9 +1399,7 @@ public final class PrivateCloudsListSamples {
*/
public final class PrivateCloudsListAdminCredentialsSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_ListAdminCredentials
- * .json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_ListAdminCredentials.json
*/
/**
* Sample code: PrivateClouds_ListAdminCredentials.
@@ -1485,8 +1420,7 @@ public final class PrivateCloudsListAdminCredentialsSamples {
*/
public final class PrivateCloudsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_List.json
*/
/**
* Sample code: PrivateClouds_List.
@@ -1498,8 +1432,7 @@ public final class PrivateCloudsListByResourceGroupSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_List_Stretched.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_List_Stretched.json
*/
/**
* Sample code: PrivateClouds_List_Stretched.
@@ -1520,9 +1453,7 @@ public final class PrivateCloudsListByResourceGroupSamples {
*/
public final class PrivateCloudsRotateNsxtPasswordSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_RotateNsxtPassword.
- * json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_RotateNsxtPassword.json
*/
/**
* Sample code: PrivateClouds_RotateNsxtPassword.
@@ -1543,8 +1474,7 @@ public final class PrivateCloudsRotateNsxtPasswordSamples {
*/
public final class PrivateCloudsRotateVcenterPasswordSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * PrivateClouds_RotateVcenterPassword.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_RotateVcenterPassword.json
*/
/**
* Sample code: PrivateClouds_RotateVcenterPassword.
@@ -1566,15 +1496,14 @@ import com.azure.resourcemanager.avs.models.EncryptionState;
import com.azure.resourcemanager.avs.models.ManagementCluster;
import com.azure.resourcemanager.avs.models.PrivateCloud;
import com.azure.resourcemanager.avs.models.PrivateCloudIdentity;
-import com.azure.resourcemanager.avs.models.ResourceIdentityType;
+import com.azure.resourcemanager.avs.models.SystemAssignedServiceIdentityType;
/**
* Samples for PrivateClouds Update.
*/
public final class PrivateCloudsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update.json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_Update.json
*/
/**
* Sample code: PrivateClouds_Update.
@@ -1586,7 +1515,7 @@ public final class PrivateCloudsUpdateSamples {
.getByResourceGroupWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withIdentity(new PrivateCloudIdentity().withType(ResourceIdentityType.NONE))
+ .withIdentity(new PrivateCloudIdentity().withType(SystemAssignedServiceIdentityType.NONE))
.withManagementCluster(new ManagementCluster().withClusterSize(4))
.withEncryption(new Encryption().withStatus(EncryptionState.ENABLED)
.withKeyVaultProperties(new EncryptionKeyVaultProperties().withKeyName("fakeTokenPlaceholder")
@@ -1596,9 +1525,7 @@ public final class PrivateCloudsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/PrivateClouds_Update_Stretched.
- * json
+ * x-ms-original-file: 2023-09-01/PrivateClouds_Update_Stretched.json
*/
/**
* Sample code: PrivateClouds_Update_Stretched.
@@ -1622,8 +1549,7 @@ public final class PrivateCloudsUpdateSamples {
*/
public final class ScriptCmdletsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_Get.json
+ * x-ms-original-file: 2023-09-01/ScriptCmdlets_Get.json
*/
/**
* Sample code: ScriptCmdlets_Get.
@@ -1646,8 +1572,7 @@ public final class ScriptCmdletsGetSamples {
*/
public final class ScriptCmdletsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptCmdlets_List.json
+ * x-ms-original-file: 2023-09-01/ScriptCmdlets_List.json
*/
/**
* Sample code: ScriptCmdlets_List.
@@ -1672,9 +1597,7 @@ import java.util.Arrays;
*/
public final class ScriptExecutionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2023-09-01/ScriptExecutions_CreateOrUpdate.json
*/
/**
* Sample code: ScriptExecutions_CreateOrUpdate.
@@ -1708,8 +1631,7 @@ public final class ScriptExecutionsCreateOrUpdateSamples {
*/
public final class ScriptExecutionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Delete.json
+ * x-ms-original-file: 2023-09-01/ScriptExecutions_Delete.json
*/
/**
* Sample code: ScriptExecutions_Delete.
@@ -1730,8 +1652,7 @@ public final class ScriptExecutionsDeleteSamples {
*/
public final class ScriptExecutionsGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_Get.json
+ * x-ms-original-file: 2023-09-01/ScriptExecutions_Get.json
*/
/**
* Sample code: ScriptExecutions_Get.
@@ -1756,9 +1677,7 @@ import java.util.Arrays;
*/
public final class ScriptExecutionsGetExecutionLogsSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_GetExecutionLogs.
- * json
+ * x-ms-original-file: 2023-09-01/ScriptExecutions_GetExecutionLogs.json
*/
/**
* Sample code: ScriptExecutions_GetExecutionLogs.
@@ -1783,8 +1702,7 @@ public final class ScriptExecutionsGetExecutionLogsSamples {
*/
public final class ScriptExecutionsListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptExecutions_List.json
+ * x-ms-original-file: 2023-09-01/ScriptExecutions_List.json
*/
/**
* Sample code: ScriptExecutions_List.
@@ -1805,8 +1723,7 @@ public final class ScriptExecutionsListSamples {
*/
public final class ScriptPackagesGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_Get.json
+ * x-ms-original-file: 2023-09-01/ScriptPackages_Get.json
*/
/**
* Sample code: ScriptPackages_Get.
@@ -1828,8 +1745,7 @@ public final class ScriptPackagesGetSamples {
*/
public final class ScriptPackagesListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/ScriptPackages_List.json
+ * x-ms-original-file: 2023-09-01/ScriptPackages_List.json
*/
/**
* Sample code: ScriptPackages_List.
@@ -1850,8 +1766,7 @@ public final class ScriptPackagesListSamples {
*/
public final class VirtualMachinesGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_Get.json
+ * x-ms-original-file: 2023-09-01/VirtualMachines_Get.json
*/
/**
* Sample code: VirtualMachines_Get.
@@ -1873,8 +1788,7 @@ public final class VirtualMachinesGetSamples {
*/
public final class VirtualMachinesListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_List.json
+ * x-ms-original-file: 2023-09-01/VirtualMachines_List.json
*/
/**
* Sample code: VirtualMachines_List.
@@ -1898,9 +1812,7 @@ import com.azure.resourcemanager.avs.models.VirtualMachineRestrictMovementState;
*/
public final class VirtualMachinesRestrictMovementSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/VirtualMachines_RestrictMovement.
- * json
+ * x-ms-original-file: 2023-09-01/VirtualMachines_RestrictMovement.json
*/
/**
* Sample code: VirtualMachines_RestrictMovement.
@@ -1926,8 +1838,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer;
*/
public final class WorkloadNetworksCreateDhcpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDhcp.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDhcp.json
*/
/**
* Sample code: WorkloadNetworks_CreateDhcp.
@@ -1937,7 +1848,7 @@ public final class WorkloadNetworksCreateDhcpSamples {
public static void workloadNetworksCreateDhcp(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.defineDhcp("dhcp1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withProperties(new WorkloadNetworkDhcpServer().withDisplayName("dhcpConfigurations1")
.withRevision(1L)
.withServerAddress("40.1.5.1/24")
@@ -1958,9 +1869,7 @@ import java.util.Arrays;
*/
public final class WorkloadNetworksCreateDnsServiceSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsService.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsService.json
*/
/**
* Sample code: WorkloadNetworks_CreateDnsService.
@@ -1970,7 +1879,7 @@ public final class WorkloadNetworksCreateDnsServiceSamples {
public static void workloadNetworksCreateDnsService(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.defineDnsService("dnsService1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withDisplayName("dnsService1")
.withDnsServiceIp("5.5.5.5")
.withDefaultDnsZone("defaultDnsZone1")
@@ -1992,9 +1901,7 @@ import java.util.Arrays;
*/
public final class WorkloadNetworksCreateDnsZoneSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateDnsZone.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateDnsZone.json
*/
/**
* Sample code: WorkloadNetworks_CreateDnsZone.
@@ -2004,7 +1911,7 @@ public final class WorkloadNetworksCreateDnsZoneSamples {
public static void workloadNetworksCreateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.defineDnsZone("dnsZone1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withDisplayName("dnsZone1")
.withDomain(Arrays.asList())
.withDnsServerIps(Arrays.asList("1.1.1.1"))
@@ -2025,8 +1932,7 @@ import com.azure.resourcemanager.avs.models.PortMirroringDirectionEnum;
*/
public final class WorkloadNetworksCreatePortMirroringSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * WorkloadNetworks_CreatePortMirroring.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePortMirroring.json
*/
/**
* Sample code: WorkloadNetworks_CreatePortMirroring.
@@ -2036,7 +1942,7 @@ public final class WorkloadNetworksCreatePortMirroringSamples {
public static void workloadNetworksCreatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.definePortMirroring("portMirroring1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withDisplayName("portMirroring1")
.withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL)
.withSource("vmGroup1")
@@ -2055,9 +1961,7 @@ public final class WorkloadNetworksCreatePortMirroringSamples {
*/
public final class WorkloadNetworksCreatePublicIpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreatePublicIP.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreatePublicIP.json
*/
/**
* Sample code: WorkloadNetworks_CreatePublicIP.
@@ -2067,7 +1971,7 @@ public final class WorkloadNetworksCreatePublicIpSamples {
public static void workloadNetworksCreatePublicIP(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.definePublicIp("publicIP1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withDisplayName("publicIP1")
.withNumberOfPublicIPs(32L)
.create();
@@ -2075,20 +1979,18 @@ public final class WorkloadNetworksCreatePublicIpSamples {
}
```
-### WorkloadNetworks_CreateSegments
+### WorkloadNetworks_CreateSegment
```java
import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet;
import java.util.Arrays;
/**
- * Samples for WorkloadNetworks CreateSegments.
+ * Samples for WorkloadNetworks CreateSegment.
*/
-public final class WorkloadNetworksCreateSegmentsSamples {
+public final class WorkloadNetworksCreateSegmentSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateSegments.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateSegments.json
*/
/**
* Sample code: WorkloadNetworks_CreateSegments.
@@ -2097,8 +1999,8 @@ public final class WorkloadNetworksCreateSegmentsSamples {
*/
public static void workloadNetworksCreateSegments(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .defineSegments("segment1")
- .withExistingPrivateCloud("group1", "cloud1")
+ .defineSegment("segment1")
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.withDisplayName("segment1")
.withConnectedGateway("/infra/tier-1s/gateway")
.withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1"))
@@ -2112,16 +2014,12 @@ public final class WorkloadNetworksCreateSegmentsSamples {
### WorkloadNetworks_CreateVMGroup
```java
-import java.util.Arrays;
-
/**
* Samples for WorkloadNetworks CreateVMGroup.
*/
public final class WorkloadNetworksCreateVMGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_CreateVMGroup.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_CreateVMGroup.json
*/
/**
* Sample code: WorkloadNetworks_CreateVMGroup.
@@ -2131,10 +2029,7 @@ public final class WorkloadNetworksCreateVMGroupSamples {
public static void workloadNetworksCreateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
.defineVMGroup("vmGroup1")
- .withExistingPrivateCloud("group1", "cloud1")
- .withDisplayName("vmGroup1")
- .withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50"))
- .withRevision(1L)
+ .withExistingWorkloadNetwork("group1", "cloud1", null)
.create();
}
}
@@ -2148,8 +2043,7 @@ public final class WorkloadNetworksCreateVMGroupSamples {
*/
public final class WorkloadNetworksDeleteDhcpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDhcp.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDhcp.json
*/
/**
* Sample code: WorkloadNetworks_DeleteDhcp.
@@ -2157,7 +2051,7 @@ public final class WorkloadNetworksDeleteDhcpSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksDeleteDhcp(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().deleteDhcp("group1", "cloud1", "dhcp1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().deleteDhcp("group1", "cloud1", null, "dhcp1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2170,9 +2064,7 @@ public final class WorkloadNetworksDeleteDhcpSamples {
*/
public final class WorkloadNetworksDeleteDnsServiceSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsService.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsService.json
*/
/**
* Sample code: WorkloadNetworks_DeleteDnsService.
@@ -2194,9 +2086,7 @@ public final class WorkloadNetworksDeleteDnsServiceSamples {
*/
public final class WorkloadNetworksDeleteDnsZoneSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteDnsZone.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteDnsZone.json
*/
/**
* Sample code: WorkloadNetworks_DeleteDnsZone.
@@ -2217,8 +2107,7 @@ public final class WorkloadNetworksDeleteDnsZoneSamples {
*/
public final class WorkloadNetworksDeletePortMirroringSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * WorkloadNetworks_DeletePortMirroring.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePortMirroring.json
*/
/**
* Sample code: WorkloadNetworks_DeletePortMirroring.
@@ -2240,9 +2129,7 @@ public final class WorkloadNetworksDeletePortMirroringSamples {
*/
public final class WorkloadNetworksDeletePublicIpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeletePublicIP.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeletePublicIP.json
*/
/**
* Sample code: WorkloadNetworks_DeletePublicIP.
@@ -2263,9 +2150,7 @@ public final class WorkloadNetworksDeletePublicIpSamples {
*/
public final class WorkloadNetworksDeleteSegmentSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteSegment.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteSegment.json
*/
/**
* Sample code: WorkloadNetworks_DeleteSegment.
@@ -2273,7 +2158,8 @@ public final class WorkloadNetworksDeleteSegmentSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksDeleteSegment(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().deleteSegment("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks()
+ .deleteSegment("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2286,9 +2172,7 @@ public final class WorkloadNetworksDeleteSegmentSamples {
*/
public final class WorkloadNetworksDeleteVMGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_DeleteVMGroup.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_DeleteVMGroup.json
*/
/**
* Sample code: WorkloadNetworks_DeleteVMGroup.
@@ -2309,8 +2193,7 @@ public final class WorkloadNetworksDeleteVMGroupSamples {
*/
public final class WorkloadNetworksGetSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_Get.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_Get.json
*/
/**
* Sample code: WorkloadNetworks_Get.
@@ -2318,7 +2201,7 @@ public final class WorkloadNetworksGetSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksGet(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().getWithResponse("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().getWithResponse("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2331,8 +2214,7 @@ public final class WorkloadNetworksGetSamples {
*/
public final class WorkloadNetworksGetDhcpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDhcp.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDhcp.json
*/
/**
* Sample code: WorkloadNetworks_GetDhcp.
@@ -2353,9 +2235,7 @@ public final class WorkloadNetworksGetDhcpSamples {
*/
public final class WorkloadNetworksGetDnsServiceSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsService.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsService.json
*/
/**
* Sample code: WorkloadNetworks_GetDnsService.
@@ -2364,7 +2244,7 @@ public final class WorkloadNetworksGetDnsServiceSamples {
*/
public static void workloadNetworksGetDnsService(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE);
+ .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2377,8 +2257,7 @@ public final class WorkloadNetworksGetDnsServiceSamples {
*/
public final class WorkloadNetworksGetDnsZoneSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetDnsZone.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetDnsZone.json
*/
/**
* Sample code: WorkloadNetworks_GetDnsZone.
@@ -2387,7 +2266,7 @@ public final class WorkloadNetworksGetDnsZoneSamples {
*/
public static void workloadNetworksGetDnsZone(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE);
+ .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2400,8 +2279,7 @@ public final class WorkloadNetworksGetDnsZoneSamples {
*/
public final class WorkloadNetworksGetGatewaySamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetGateway.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetGateway.json
*/
/**
* Sample code: WorkloadNetworks_GetGateway.
@@ -2410,7 +2288,7 @@ public final class WorkloadNetworksGetGatewaySamples {
*/
public static void workloadNetworksGetGateway(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getGatewayWithResponse("group1", "cloud1", "gateway1", com.azure.core.util.Context.NONE);
+ .getGatewayWithResponse("group1", "cloud1", null, "gateway1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2423,9 +2301,7 @@ public final class WorkloadNetworksGetGatewaySamples {
*/
public final class WorkloadNetworksGetPortMirroringSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPortMirroring.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPortMirroring.json
*/
/**
* Sample code: WorkloadNetworks_GetPortMirroring.
@@ -2434,7 +2310,7 @@ public final class WorkloadNetworksGetPortMirroringSamples {
*/
public static void workloadNetworksGetPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE);
+ .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2447,8 +2323,7 @@ public final class WorkloadNetworksGetPortMirroringSamples {
*/
public final class WorkloadNetworksGetPublicIpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetPublicIP.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetPublicIP.json
*/
/**
* Sample code: WorkloadNetworks_GetPublicIP.
@@ -2457,7 +2332,7 @@ public final class WorkloadNetworksGetPublicIpSamples {
*/
public static void workloadNetworksGetPublicIP(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getPublicIpWithResponse("group1", "cloud1", "publicIP1", com.azure.core.util.Context.NONE);
+ .getPublicIpWithResponse("group1", "cloud1", null, "publicIP1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2470,8 +2345,7 @@ public final class WorkloadNetworksGetPublicIpSamples {
*/
public final class WorkloadNetworksGetSegmentSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetSegment.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetSegment.json
*/
/**
* Sample code: WorkloadNetworks_GetSegment.
@@ -2480,7 +2354,7 @@ public final class WorkloadNetworksGetSegmentSamples {
*/
public static void workloadNetworksGetSegment(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE);
+ .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2493,8 +2367,7 @@ public final class WorkloadNetworksGetSegmentSamples {
*/
public final class WorkloadNetworksGetVMGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVMGroup.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVMGroup.json
*/
/**
* Sample code: WorkloadNetworks_GetVMGroup.
@@ -2503,7 +2376,7 @@ public final class WorkloadNetworksGetVMGroupSamples {
*/
public static void workloadNetworksGetVMGroup(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE);
+ .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2516,9 +2389,7 @@ public final class WorkloadNetworksGetVMGroupSamples {
*/
public final class WorkloadNetworksGetVirtualMachineSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_GetVirtualMachine
- * .json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_GetVirtualMachine.json
*/
/**
* Sample code: WorkloadNetworks_GetVirtualMachine.
@@ -2527,7 +2398,7 @@ public final class WorkloadNetworksGetVirtualMachineSamples {
*/
public static void workloadNetworksGetVirtualMachine(com.azure.resourcemanager.avs.AvsManager manager) {
manager.workloadNetworks()
- .getVirtualMachineWithResponse("group1", "cloud1", "vm1", com.azure.core.util.Context.NONE);
+ .getVirtualMachineWithResponse("group1", "cloud1", null, "vm1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2540,8 +2411,7 @@ public final class WorkloadNetworksGetVirtualMachineSamples {
*/
public final class WorkloadNetworksListSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_List.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_List.json
*/
/**
* Sample code: WorkloadNetworks_List.
@@ -2562,8 +2432,7 @@ public final class WorkloadNetworksListSamples {
*/
public final class WorkloadNetworksListDhcpSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDhcp.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDhcp.json
*/
/**
* Sample code: WorkloadNetworks_ListDhcp.
@@ -2571,7 +2440,7 @@ public final class WorkloadNetworksListDhcpSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListDhcp(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listDhcp("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listDhcp("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2584,9 +2453,7 @@ public final class WorkloadNetworksListDhcpSamples {
*/
public final class WorkloadNetworksListDnsServicesSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsServices.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsServices.json
*/
/**
* Sample code: WorkloadNetworks_ListDnsServices.
@@ -2594,7 +2461,7 @@ public final class WorkloadNetworksListDnsServicesSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListDnsServices(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listDnsServices("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listDnsServices("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2607,8 +2474,7 @@ public final class WorkloadNetworksListDnsServicesSamples {
*/
public final class WorkloadNetworksListDnsZonesSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListDnsZones.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListDnsZones.json
*/
/**
* Sample code: WorkloadNetworks_ListDnsZones.
@@ -2616,7 +2482,7 @@ public final class WorkloadNetworksListDnsZonesSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListDnsZones(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listDnsZones("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listDnsZones("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2629,8 +2495,7 @@ public final class WorkloadNetworksListDnsZonesSamples {
*/
public final class WorkloadNetworksListGatewaysSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListGateways.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListGateways.json
*/
/**
* Sample code: WorkloadNetworks_ListGateways.
@@ -2638,7 +2503,7 @@ public final class WorkloadNetworksListGatewaysSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListGateways(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listGateways("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listGateways("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2651,9 +2516,7 @@ public final class WorkloadNetworksListGatewaysSamples {
*/
public final class WorkloadNetworksListPortMirroringSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPortMirroring
- * .json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPortMirroring.json
*/
/**
* Sample code: WorkloadNetworks_ListPortMirroring.
@@ -2661,22 +2524,20 @@ public final class WorkloadNetworksListPortMirroringSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListPortMirroring(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listPortMirroring("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listPortMirroring("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
-### WorkloadNetworks_ListPublicIPs
+### WorkloadNetworks_ListPublicIps
```java
/**
- * Samples for WorkloadNetworks ListPublicIPs.
+ * Samples for WorkloadNetworks ListPublicIps.
*/
-public final class WorkloadNetworksListPublicIPsSamples {
+public final class WorkloadNetworksListPublicIpsSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListPublicIPs.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListPublicIPs.json
*/
/**
* Sample code: WorkloadNetworks_ListPublicIPs.
@@ -2684,7 +2545,7 @@ public final class WorkloadNetworksListPublicIPsSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListPublicIPs(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listPublicIPs("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listPublicIps("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2697,8 +2558,7 @@ public final class WorkloadNetworksListPublicIPsSamples {
*/
public final class WorkloadNetworksListSegmentsSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListSegments.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListSegments.json
*/
/**
* Sample code: WorkloadNetworks_ListSegments.
@@ -2706,7 +2566,7 @@ public final class WorkloadNetworksListSegmentsSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListSegments(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listSegments("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listSegments("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2719,8 +2579,7 @@ public final class WorkloadNetworksListSegmentsSamples {
*/
public final class WorkloadNetworksListVMGroupsSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_ListVMGroups.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVMGroups.json
*/
/**
* Sample code: WorkloadNetworks_ListVMGroups.
@@ -2728,7 +2587,7 @@ public final class WorkloadNetworksListVMGroupsSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListVMGroups(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listVMGroups("group1", "cloud1", com.azure.core.util.Context.NONE);
+ manager.workloadNetworks().listVMGroups("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2741,8 +2600,7 @@ public final class WorkloadNetworksListVMGroupsSamples {
*/
public final class WorkloadNetworksListVirtualMachinesSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * WorkloadNetworks_ListVirtualMachines.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_ListVirtualMachines.json
*/
/**
* Sample code: WorkloadNetworks_ListVirtualMachines.
@@ -2750,38 +2608,7 @@ public final class WorkloadNetworksListVirtualMachinesSamples {
* @param manager Entry point to AvsManager.
*/
public static void workloadNetworksListVirtualMachines(com.azure.resourcemanager.avs.AvsManager manager) {
- manager.workloadNetworks().listVirtualMachines("group1", "cloud1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### WorkloadNetworks_UpdateDhcp
-
-```java
-import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcp;
-import com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer;
-
-/**
- * Samples for WorkloadNetworks UpdateDhcp.
- */
-public final class WorkloadNetworksUpdateDhcpSamples {
- /*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDhcp.json
- */
- /**
- * Sample code: WorkloadNetworks_UpdateDhcp.
- *
- * @param manager Entry point to AvsManager.
- */
- public static void workloadNetworksUpdateDhcp(com.azure.resourcemanager.avs.AvsManager manager) {
- WorkloadNetworkDhcp resource = manager.workloadNetworks()
- .getDhcpWithResponse("group1", "dhcp1", "cloud1", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withProperties(
- new WorkloadNetworkDhcpServer().withRevision(1L).withServerAddress("40.1.5.1/24").withLeaseTime(86400L))
- .apply();
+ manager.workloadNetworks().listVirtualMachines("group1", "cloud1", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -2798,9 +2625,7 @@ import java.util.Arrays;
*/
public final class WorkloadNetworksUpdateDnsServiceSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsService.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsService.json
*/
/**
* Sample code: WorkloadNetworks_UpdateDnsService.
@@ -2809,7 +2634,7 @@ public final class WorkloadNetworksUpdateDnsServiceSamples {
*/
public static void workloadNetworksUpdateDnsService(com.azure.resourcemanager.avs.AvsManager manager) {
WorkloadNetworkDnsService resource = manager.workloadNetworks()
- .getDnsServiceWithResponse("group1", "cloud1", "dnsService1", com.azure.core.util.Context.NONE)
+ .getDnsServiceWithResponse("group1", "cloud1", null, "dnsService1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withDisplayName("dnsService1")
@@ -2834,9 +2659,7 @@ import java.util.Arrays;
*/
public final class WorkloadNetworksUpdateDnsZoneSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateDnsZone.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateDnsZone.json
*/
/**
* Sample code: WorkloadNetworks_UpdateDnsZone.
@@ -2845,7 +2668,7 @@ public final class WorkloadNetworksUpdateDnsZoneSamples {
*/
public static void workloadNetworksUpdateDnsZone(com.azure.resourcemanager.avs.AvsManager manager) {
WorkloadNetworkDnsZone resource = manager.workloadNetworks()
- .getDnsZoneWithResponse("group1", "cloud1", "dnsZone1", com.azure.core.util.Context.NONE)
+ .getDnsZoneWithResponse("group1", "cloud1", null, "dnsZone1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withDisplayName("dnsZone1")
@@ -2869,8 +2692,7 @@ import com.azure.resourcemanager.avs.models.WorkloadNetworkPortMirroring;
*/
public final class WorkloadNetworksUpdatePortMirroringSamples {
/*
- * x-ms-original-file: specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/
- * WorkloadNetworks_UpdatePortMirroring.json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdatePortMirroring.json
*/
/**
* Sample code: WorkloadNetworks_UpdatePortMirroring.
@@ -2879,7 +2701,7 @@ public final class WorkloadNetworksUpdatePortMirroringSamples {
*/
public static void workloadNetworksUpdatePortMirroring(com.azure.resourcemanager.avs.AvsManager manager) {
WorkloadNetworkPortMirroring resource = manager.workloadNetworks()
- .getPortMirroringWithResponse("group1", "cloud1", "portMirroring1", com.azure.core.util.Context.NONE)
+ .getPortMirroringWithResponse("group1", "cloud1", null, "portMirroring1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withDirection(PortMirroringDirectionEnum.BIDIRECTIONAL)
@@ -2891,21 +2713,17 @@ public final class WorkloadNetworksUpdatePortMirroringSamples {
}
```
-### WorkloadNetworks_UpdateSegments
+### WorkloadNetworks_UpdateSegment
```java
import com.azure.resourcemanager.avs.models.WorkloadNetworkSegment;
-import com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet;
-import java.util.Arrays;
/**
- * Samples for WorkloadNetworks UpdateSegments.
+ * Samples for WorkloadNetworks UpdateSegment.
*/
-public final class WorkloadNetworksUpdateSegmentsSamples {
+public final class WorkloadNetworksUpdateSegmentSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateSegments.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateSegments.json
*/
/**
* Sample code: WorkloadNetworks_UpdateSegments.
@@ -2914,14 +2732,9 @@ public final class WorkloadNetworksUpdateSegmentsSamples {
*/
public static void workloadNetworksUpdateSegments(com.azure.resourcemanager.avs.AvsManager manager) {
WorkloadNetworkSegment resource = manager.workloadNetworks()
- .getSegmentWithResponse("group1", "cloud1", "segment1", com.azure.core.util.Context.NONE)
+ .getSegmentWithResponse("group1", "cloud1", null, "segment1", com.azure.core.util.Context.NONE)
.getValue();
- resource.update()
- .withConnectedGateway("/infra/tier-1s/gateway")
- .withSubnet(new WorkloadNetworkSegmentSubnet().withDhcpRanges(Arrays.asList("40.20.0.0-40.20.0.1"))
- .withGatewayAddress("40.20.20.20/16"))
- .withRevision(1L)
- .apply();
+ resource.update().apply();
}
}
```
@@ -2937,9 +2750,7 @@ import java.util.Arrays;
*/
public final class WorkloadNetworksUpdateVMGroupSamples {
/*
- * x-ms-original-file:
- * specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/examples/WorkloadNetworks_UpdateVMGroup.
- * json
+ * x-ms-original-file: 2023-09-01/WorkloadNetworks_UpdateVMGroup.json
*/
/**
* Sample code: WorkloadNetworks_UpdateVMGroup.
@@ -2948,7 +2759,7 @@ public final class WorkloadNetworksUpdateVMGroupSamples {
*/
public static void workloadNetworksUpdateVMGroup(com.azure.resourcemanager.avs.AvsManager manager) {
WorkloadNetworkVMGroup resource = manager.workloadNetworks()
- .getVMGroupWithResponse("group1", "cloud1", "vmGroup1", com.azure.core.util.Context.NONE)
+ .getVMGroupWithResponse("group1", "cloud1", null, "vmGroup1", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withMembers(Arrays.asList("564d43da-fefc-2a3b-1d92-42855622fa50")).withRevision(1L).apply();
}
diff --git a/sdk/avs/azure-resourcemanager-avs/pom.xml b/sdk/avs/azure-resourcemanager-avs/pom.xml
index 1a80bfe5eeec..47df8b338b9d 100644
--- a/sdk/avs/azure-resourcemanager-avs/pom.xml
+++ b/sdk/avs/azure-resourcemanager-avs/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-avs
- 1.2.0-beta.2
+ 1.2.0
jar
Microsoft Azure SDK for Avs Management
- This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API. Package tag package-2023-09-01.
+ This package contains Microsoft Azure SDK for Avs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure VMware Solution API.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java
index f858dc2cdc60..085c3f9c42b6 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/AvsManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs;
@@ -77,32 +77,32 @@ public final class AvsManager {
private PrivateClouds privateClouds;
- private Addons addons;
-
- private Authorizations authorizations;
-
- private CloudLinks cloudLinks;
-
private Clusters clusters;
private Datastores datastores;
- private PlacementPolicies placementPolicies;
+ private HcxEnterpriseSites hcxEnterpriseSites;
- private VirtualMachines virtualMachines;
+ private Authorizations authorizations;
private GlobalReachConnections globalReachConnections;
- private HcxEnterpriseSites hcxEnterpriseSites;
+ private CloudLinks cloudLinks;
- private IscsiPaths iscsiPaths;
+ private Addons addons;
- private ScriptExecutions scriptExecutions;
+ private VirtualMachines virtualMachines;
+
+ private PlacementPolicies placementPolicies;
private ScriptPackages scriptPackages;
private ScriptCmdlets scriptCmdlets;
+ private ScriptExecutions scriptExecutions;
+
+ private IscsiPaths iscsiPaths;
+
private WorkloadNetworks workloadNetworks;
private final AvsClient clientObject;
@@ -269,7 +269,7 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile)
.append("-")
.append("com.azure.resourcemanager.avs")
.append("/")
- .append("1.2.0-beta.1");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -351,42 +351,6 @@ public PrivateClouds privateClouds() {
return privateClouds;
}
- /**
- * Gets the resource collection API of Addons. It manages Addon.
- *
- * @return Resource collection API of Addons.
- */
- public Addons addons() {
- if (this.addons == null) {
- this.addons = new AddonsImpl(clientObject.getAddons(), this);
- }
- return addons;
- }
-
- /**
- * Gets the resource collection API of Authorizations. It manages ExpressRouteAuthorization.
- *
- * @return Resource collection API of Authorizations.
- */
- public Authorizations authorizations() {
- if (this.authorizations == null) {
- this.authorizations = new AuthorizationsImpl(clientObject.getAuthorizations(), this);
- }
- return authorizations;
- }
-
- /**
- * Gets the resource collection API of CloudLinks. It manages CloudLink.
- *
- * @return Resource collection API of CloudLinks.
- */
- public CloudLinks cloudLinks() {
- if (this.cloudLinks == null) {
- this.cloudLinks = new CloudLinksImpl(clientObject.getCloudLinks(), this);
- }
- return cloudLinks;
- }
-
/**
* Gets the resource collection API of Clusters. It manages Cluster.
*
@@ -412,27 +376,27 @@ public Datastores datastores() {
}
/**
- * Gets the resource collection API of PlacementPolicies. It manages PlacementPolicy.
+ * Gets the resource collection API of HcxEnterpriseSites. It manages HcxEnterpriseSite.
*
- * @return Resource collection API of PlacementPolicies.
+ * @return Resource collection API of HcxEnterpriseSites.
*/
- public PlacementPolicies placementPolicies() {
- if (this.placementPolicies == null) {
- this.placementPolicies = new PlacementPoliciesImpl(clientObject.getPlacementPolicies(), this);
+ public HcxEnterpriseSites hcxEnterpriseSites() {
+ if (this.hcxEnterpriseSites == null) {
+ this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(clientObject.getHcxEnterpriseSites(), this);
}
- return placementPolicies;
+ return hcxEnterpriseSites;
}
/**
- * Gets the resource collection API of VirtualMachines.
+ * Gets the resource collection API of Authorizations. It manages ExpressRouteAuthorization.
*
- * @return Resource collection API of VirtualMachines.
+ * @return Resource collection API of Authorizations.
*/
- public VirtualMachines virtualMachines() {
- if (this.virtualMachines == null) {
- this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
+ public Authorizations authorizations() {
+ if (this.authorizations == null) {
+ this.authorizations = new AuthorizationsImpl(clientObject.getAuthorizations(), this);
}
- return virtualMachines;
+ return authorizations;
}
/**
@@ -449,39 +413,51 @@ public GlobalReachConnections globalReachConnections() {
}
/**
- * Gets the resource collection API of HcxEnterpriseSites. It manages HcxEnterpriseSite.
+ * Gets the resource collection API of CloudLinks. It manages CloudLink.
*
- * @return Resource collection API of HcxEnterpriseSites.
+ * @return Resource collection API of CloudLinks.
*/
- public HcxEnterpriseSites hcxEnterpriseSites() {
- if (this.hcxEnterpriseSites == null) {
- this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(clientObject.getHcxEnterpriseSites(), this);
+ public CloudLinks cloudLinks() {
+ if (this.cloudLinks == null) {
+ this.cloudLinks = new CloudLinksImpl(clientObject.getCloudLinks(), this);
}
- return hcxEnterpriseSites;
+ return cloudLinks;
}
/**
- * Gets the resource collection API of IscsiPaths.
+ * Gets the resource collection API of Addons. It manages Addon.
*
- * @return Resource collection API of IscsiPaths.
+ * @return Resource collection API of Addons.
*/
- public IscsiPaths iscsiPaths() {
- if (this.iscsiPaths == null) {
- this.iscsiPaths = new IscsiPathsImpl(clientObject.getIscsiPaths(), this);
+ public Addons addons() {
+ if (this.addons == null) {
+ this.addons = new AddonsImpl(clientObject.getAddons(), this);
}
- return iscsiPaths;
+ return addons;
}
/**
- * Gets the resource collection API of ScriptExecutions. It manages ScriptExecution.
+ * Gets the resource collection API of VirtualMachines.
*
- * @return Resource collection API of ScriptExecutions.
+ * @return Resource collection API of VirtualMachines.
*/
- public ScriptExecutions scriptExecutions() {
- if (this.scriptExecutions == null) {
- this.scriptExecutions = new ScriptExecutionsImpl(clientObject.getScriptExecutions(), this);
+ public VirtualMachines virtualMachines() {
+ if (this.virtualMachines == null) {
+ this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
}
- return scriptExecutions;
+ return virtualMachines;
+ }
+
+ /**
+ * Gets the resource collection API of PlacementPolicies. It manages PlacementPolicy.
+ *
+ * @return Resource collection API of PlacementPolicies.
+ */
+ public PlacementPolicies placementPolicies() {
+ if (this.placementPolicies == null) {
+ this.placementPolicies = new PlacementPoliciesImpl(clientObject.getPlacementPolicies(), this);
+ }
+ return placementPolicies;
}
/**
@@ -509,9 +485,33 @@ public ScriptCmdlets scriptCmdlets() {
}
/**
- * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkDhcp, WorkloadNetworkDnsService,
- * WorkloadNetworkDnsZone, WorkloadNetworkPortMirroring, WorkloadNetworkPublicIp, WorkloadNetworkSegment,
- * WorkloadNetworkVMGroup.
+ * Gets the resource collection API of ScriptExecutions. It manages ScriptExecution.
+ *
+ * @return Resource collection API of ScriptExecutions.
+ */
+ public ScriptExecutions scriptExecutions() {
+ if (this.scriptExecutions == null) {
+ this.scriptExecutions = new ScriptExecutionsImpl(clientObject.getScriptExecutions(), this);
+ }
+ return scriptExecutions;
+ }
+
+ /**
+ * Gets the resource collection API of IscsiPaths. It manages IscsiPath.
+ *
+ * @return Resource collection API of IscsiPaths.
+ */
+ public IscsiPaths iscsiPaths() {
+ if (this.iscsiPaths == null) {
+ this.iscsiPaths = new IscsiPathsImpl(clientObject.getIscsiPaths(), this);
+ }
+ return iscsiPaths;
+ }
+
+ /**
+ * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkSegment, WorkloadNetworkDhcp,
+ * WorkloadNetworkPortMirroring, WorkloadNetworkVMGroup, WorkloadNetworkDnsService, WorkloadNetworkDnsZone,
+ * WorkloadNetworkPublicIp.
*
* @return Resource collection API of WorkloadNetworks.
*/
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java
index afdf1f6ba3ed..c7fcac6a3974 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AddonsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java
index a7e16f2f83b9..ff65cfeb48ae 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AuthorizationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java
index c21c292eb9e4..73c423f679dd 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/AvsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
@@ -12,26 +12,26 @@
*/
public interface AvsClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Server parameter.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -67,27 +67,6 @@ public interface AvsClient {
*/
PrivateCloudsClient getPrivateClouds();
- /**
- * Gets the AddonsClient object to access its operations.
- *
- * @return the AddonsClient object.
- */
- AddonsClient getAddons();
-
- /**
- * Gets the AuthorizationsClient object to access its operations.
- *
- * @return the AuthorizationsClient object.
- */
- AuthorizationsClient getAuthorizations();
-
- /**
- * Gets the CloudLinksClient object to access its operations.
- *
- * @return the CloudLinksClient object.
- */
- CloudLinksClient getCloudLinks();
-
/**
* Gets the ClustersClient object to access its operations.
*
@@ -103,18 +82,18 @@ public interface AvsClient {
DatastoresClient getDatastores();
/**
- * Gets the PlacementPoliciesClient object to access its operations.
+ * Gets the HcxEnterpriseSitesClient object to access its operations.
*
- * @return the PlacementPoliciesClient object.
+ * @return the HcxEnterpriseSitesClient object.
*/
- PlacementPoliciesClient getPlacementPolicies();
+ HcxEnterpriseSitesClient getHcxEnterpriseSites();
/**
- * Gets the VirtualMachinesClient object to access its operations.
+ * Gets the AuthorizationsClient object to access its operations.
*
- * @return the VirtualMachinesClient object.
+ * @return the AuthorizationsClient object.
*/
- VirtualMachinesClient getVirtualMachines();
+ AuthorizationsClient getAuthorizations();
/**
* Gets the GlobalReachConnectionsClient object to access its operations.
@@ -124,25 +103,32 @@ public interface AvsClient {
GlobalReachConnectionsClient getGlobalReachConnections();
/**
- * Gets the HcxEnterpriseSitesClient object to access its operations.
+ * Gets the CloudLinksClient object to access its operations.
*
- * @return the HcxEnterpriseSitesClient object.
+ * @return the CloudLinksClient object.
*/
- HcxEnterpriseSitesClient getHcxEnterpriseSites();
+ CloudLinksClient getCloudLinks();
/**
- * Gets the IscsiPathsClient object to access its operations.
+ * Gets the AddonsClient object to access its operations.
*
- * @return the IscsiPathsClient object.
+ * @return the AddonsClient object.
*/
- IscsiPathsClient getIscsiPaths();
+ AddonsClient getAddons();
/**
- * Gets the ScriptExecutionsClient object to access its operations.
+ * Gets the VirtualMachinesClient object to access its operations.
*
- * @return the ScriptExecutionsClient object.
+ * @return the VirtualMachinesClient object.
*/
- ScriptExecutionsClient getScriptExecutions();
+ VirtualMachinesClient getVirtualMachines();
+
+ /**
+ * Gets the PlacementPoliciesClient object to access its operations.
+ *
+ * @return the PlacementPoliciesClient object.
+ */
+ PlacementPoliciesClient getPlacementPolicies();
/**
* Gets the ScriptPackagesClient object to access its operations.
@@ -158,6 +144,20 @@ public interface AvsClient {
*/
ScriptCmdletsClient getScriptCmdlets();
+ /**
+ * Gets the ScriptExecutionsClient object to access its operations.
+ *
+ * @return the ScriptExecutionsClient object.
+ */
+ ScriptExecutionsClient getScriptExecutions();
+
+ /**
+ * Gets the IscsiPathsClient object to access its operations.
+ *
+ * @return the IscsiPathsClient object.
+ */
+ IscsiPathsClient getIscsiPaths();
+
/**
* Gets the WorkloadNetworksClient object to access its operations.
*
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java
index b8cb20adc8e1..c6a3a980d869 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/CloudLinksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java
index 4dcbd4af4e20..647f1a6eabda 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ClustersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java
index 327061fc2d0c..0e7ccac05a54 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/DatastoresClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java
index ce9a7351d72b..937d58ed9148 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/GlobalReachConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java
index 63409fe329fd..d9e88bc7c1d7 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java
index 43d5ec7ade27..b17dab94dbc9 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/IscsiPathsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
@@ -50,6 +50,7 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,26 +58,29 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin
* @return a IscsiPath along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String privateCloudName, Context context);
+ Response getWithResponse(String resourceGroupName, String privateCloudName, String iscsiPathName,
+ Context context);
/**
* Get a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a IscsiPath.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IscsiPathInner get(String resourceGroupName, String privateCloudName);
+ IscsiPathInner get(String resourceGroupName, String privateCloudName, String iscsiPathName);
/**
* Create a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -85,13 +89,14 @@ PagedIterable listByPrivateCloud(String resourceGroupName, Strin
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName,
- String privateCloudName, IscsiPathInner resource);
+ String privateCloudName, String iscsiPathName, IscsiPathInner resource);
/**
* Create a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -101,13 +106,14 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, IscsiPathInner> beginCreateOrUpdate(String resourceGroupName,
- String privateCloudName, IscsiPathInner resource, Context context);
+ String privateCloudName, String iscsiPathName, IscsiPathInner resource, Context context);
/**
* Create a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -115,13 +121,15 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin
* @return an iSCSI path resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource);
+ IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName,
+ IscsiPathInner resource);
/**
* Create a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -130,27 +138,30 @@ SyncPoller, IscsiPathInner> beginCreateOrUpdate(Strin
* @return an iSCSI path resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, IscsiPathInner resource,
- Context context);
+ IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName, String iscsiPathName,
+ IscsiPathInner resource, Context context);
/**
* Delete a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName,
+ String iscsiPathName);
/**
* Delete a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -158,30 +169,33 @@ IscsiPathInner createOrUpdate(String resourceGroupName, String privateCloudName,
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName,
+ String iscsiPathName, Context context);
/**
* Delete a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String privateCloudName);
+ void delete(String resourceGroupName, String privateCloudName, String iscsiPathName);
/**
* Delete a IscsiPath.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param iscsiPathName Name of the iSCSI path resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String privateCloudName, Context context);
+ void delete(String resourceGroupName, String privateCloudName, String iscsiPathName, Context context);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java
index 387314e8244c..86fb94fb5162 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/LocationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
@@ -17,53 +17,53 @@
*/
public interface LocationsClient {
/**
- * Return quota for subscription by region.
+ * Return trial status for subscription by region.
*
- * @param location The name of the Azure region.
+ * @param location A location in a subscription.
+ * @param sku Optionally, check for a specific SKU.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return subscription quotas along with {@link Response}.
+ * @return subscription trial availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkQuotaAvailabilityWithResponse(String location, Context context);
+ Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context);
/**
- * Return quota for subscription by region.
+ * Return trial status for subscription by region.
*
- * @param location The name of the Azure region.
+ * @param location A location in a subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return subscription quotas.
+ * @return subscription trial availability.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- QuotaInner checkQuotaAvailability(String location);
+ TrialInner checkTrialAvailability(String location);
/**
- * Return trial status for subscription by region.
+ * Return quota for subscription by region.
*
- * @param location The name of the Azure region.
- * @param sku Optionally, check for a specific SKU.
+ * @param location A location in a subscription.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return subscription trial availability along with {@link Response}.
+ * @return subscription quotas along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context);
+ Response checkQuotaAvailabilityWithResponse(String location, Context context);
/**
- * Return trial status for subscription by region.
+ * Return quota for subscription by region.
*
- * @param location The name of the Azure region.
+ * @param location A location in a subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return subscription trial availability.
+ * @return subscription quotas.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TrialInner checkTrialAvailability(String location);
+ QuotaInner checkQuotaAvailability(String location);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java
index 5cdf6176912b..87310fdf3ceb 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java
index 1053a2e7d306..4eceff239513 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PlacementPoliciesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java
index 749f3460f4f5..b07cc200e8ff 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/PrivateCloudsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
@@ -20,18 +20,21 @@
*/
public interface PrivateCloudsClient {
/**
- * List PrivateCloud resources by subscription ID.
+ * List PrivateCloud resources by resource group.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * List PrivateCloud resources by subscription ID.
+ * List PrivateCloud resources by resource group.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -39,24 +42,21 @@ public interface PrivateCloudsClient {
* @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * List PrivateCloud resources by resource group.
+ * List PrivateCloud resources by subscription ID.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ PagedIterable list();
/**
- * List PrivateCloud resources by resource group.
+ * List PrivateCloud resources by subscription ID.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -64,7 +64,7 @@ public interface PrivateCloudsClient {
* @return the response of a PrivateCloud list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ PagedIterable list(Context context);
/**
* Get a PrivateCloud.
@@ -269,48 +269,47 @@ PrivateCloudInner update(String resourceGroupName, String privateCloudName, Priv
void delete(String resourceGroupName, String privateCloudName, Context context);
/**
- * List the admin credentials for the private cloud.
+ * Rotate the vCenter password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName);
/**
- * List the admin credentials for the private cloud.
+ * Rotate the vCenter password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return administrative credentials for accessing vCenter and NSX-T.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName,
+ Context context);
/**
- * Rotate the NSX-T Manager password.
+ * Rotate the vCenter password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void rotateVcenterPassword(String resourceGroupName, String privateCloudName);
/**
- * Rotate the NSX-T Manager password.
+ * Rotate the vCenter password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
@@ -318,11 +317,9 @@ Response listAdminCredentialsWithResponse(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context);
/**
* Rotate the NSX-T Manager password.
@@ -332,9 +329,10 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void rotateNsxtPassword(String resourceGroupName, String privateCloudName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName);
/**
* Rotate the NSX-T Manager password.
@@ -345,25 +343,26 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName,
+ Context context);
/**
- * Rotate the vCenter password.
+ * Rotate the NSX-T Manager password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void rotateNsxtPassword(String resourceGroupName, String privateCloudName);
/**
- * Rotate the vCenter password.
+ * Rotate the NSX-T Manager password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
@@ -371,34 +370,35 @@ SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void rotateNsxtPassword(String resourceGroupName, String privateCloudName, Context context);
/**
- * Rotate the vCenter password.
+ * List the admin credentials for the private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return administrative credentials for accessing vCenter and NSX-T along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void rotateVcenterPassword(String resourceGroupName, String privateCloudName);
+ Response listAdminCredentialsWithResponse(String resourceGroupName, String privateCloudName,
+ Context context);
/**
- * Rotate the vCenter password.
+ * List the admin credentials for the private cloud.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return administrative credentials for accessing vCenter and NSX-T.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void rotateVcenterPassword(String resourceGroupName, String privateCloudName, Context context);
+ AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java
index 1cd9ca32de8d..904c45b9afd4 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptCmdletsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java
index f4776b2d7f70..063951a11565 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptExecutionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java
index b5b2ef561f8e..cc7a294c98ef 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/ScriptPackagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java
index 3b7548a5c8ec..46aa47741da4 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/VirtualMachinesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java
index 54139e75dc3c..245f555ccf55 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/WorkloadNetworksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent;
@@ -58,6 +58,7 @@ public interface WorkloadNetworksClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -65,232 +66,255 @@ public interface WorkloadNetworksClient {
* @return a WorkloadNetwork along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String privateCloudName, Context context);
+ Response getWithResponse(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
* Get a WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a WorkloadNetwork.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkInner get(String resourceGroupName, String privateCloudName);
+ WorkloadNetworkInner get(String resourceGroupName, String privateCloudName, String workloadNetworkName);
/**
- * List WorkloadNetworkDhcp resources by WorkloadNetwork.
+ * List WorkloadNetworkSegment resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDhcp(String resourceGroupName, String privateCloudName);
+ PagedIterable listSegments(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
- * List WorkloadNetworkDhcp resources by WorkloadNetwork.
+ * List WorkloadNetworkSegment resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDhcp(String resourceGroupName, String privateCloudName,
- Context context);
+ PagedIterable listSegments(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
- * Get a WorkloadNetworkDhcp.
+ * Get a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dhcpId The ID of the DHCP configuration.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDhcp along with {@link Response}.
+ * @return a WorkloadNetworkSegment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getDhcpWithResponse(String resourceGroupName, String dhcpId,
- String privateCloudName, Context context);
+ Response getSegmentWithResponse(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, Context context);
/**
- * Get a WorkloadNetworkDhcp.
+ * Get a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dhcpId The ID of the DHCP configuration.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDhcp.
+ * @return a WorkloadNetworkSegment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName);
+ WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId);
/**
- * Create a WorkloadNetworkDhcp.
+ * Create a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkSegment Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DHCP.
+ * @return the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName,
- String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp);
+ SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId,
+ WorkloadNetworkSegmentInner workloadNetworkSegment);
/**
- * Create a WorkloadNetworkDhcp.
+ * Create a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkSegment Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DHCP.
+ * @return the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName,
- String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
+ SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegment(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId,
+ WorkloadNetworkSegmentInner workloadNetworkSegment, Context context);
/**
- * Create a WorkloadNetworkDhcp.
+ * Create a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkSegment Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DHCP.
+ * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId,
- WorkloadNetworkDhcpInner workloadNetworkDhcp);
+ WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment);
/**
- * Create a WorkloadNetworkDhcp.
+ * Create a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkSegment Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DHCP.
+ * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String dhcpId,
- WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
+ WorkloadNetworkSegmentInner createSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner workloadNetworkSegment,
+ Context context);
/**
- * Update a WorkloadNetworkDhcp.
+ * Update a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DHCP.
+ * @return the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName,
- String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp);
+ SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId,
+ WorkloadNetworkSegmentInner properties);
/**
- * Update a WorkloadNetworkDhcp.
+ * Update a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DHCP.
+ * @return the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName,
- String privateCloudName, String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
+ SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegment(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId,
+ WorkloadNetworkSegmentInner properties, Context context);
/**
- * Update a WorkloadNetworkDhcp.
+ * Update a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DHCP.
+ * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId,
- WorkloadNetworkDhcpInner workloadNetworkDhcp);
+ WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties);
/**
- * Update a WorkloadNetworkDhcp.
+ * Update a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
- * @param workloadNetworkDhcp The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DHCP.
+ * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String dhcpId,
- WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
+ WorkloadNetworkSegmentInner updateSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, WorkloadNetworkSegmentInner properties, Context context);
/**
- * Delete a WorkloadNetworkDhcp.
+ * Delete a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName,
- String dhcpId);
+ SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId);
/**
- * Delete a WorkloadNetworkDhcp.
+ * Delete a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -298,254 +322,267 @@ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, Str
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId,
- Context context);
+ SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String segmentId, Context context);
/**
- * Delete a WorkloadNetworkDhcp.
+ * Delete a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId);
+ void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId);
/**
- * Delete a WorkloadNetworkDhcp.
+ * Delete a WorkloadNetworkSegment.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param segmentId The ID of the NSX Segment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDhcp(String resourceGroupName, String privateCloudName, String dhcpId, Context context);
+ void deleteSegment(String resourceGroupName, String privateCloudName, String workloadNetworkName, String segmentId,
+ Context context);
/**
- * List WorkloadNetworkDnsService resources by WorkloadNetwork.
+ * List WorkloadNetworkDhcp resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDnsService list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDnsServices(String resourceGroupName, String privateCloudName);
+ PagedIterable listDhcp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
- * List WorkloadNetworkDnsService resources by WorkloadNetwork.
+ * List WorkloadNetworkDhcp resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDnsService list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkDhcp list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDnsServices(String resourceGroupName, String privateCloudName,
- Context context);
+ PagedIterable listDhcp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
- * Get a WorkloadNetworkDnsService.
+ * Get a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dhcpId The ID of the DHCP configuration.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDnsService along with {@link Response}.
+ * @return a WorkloadNetworkDhcp along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getDnsServiceWithResponse(String resourceGroupName,
- String privateCloudName, String dnsServiceId, Context context);
+ Response getDhcpWithResponse(String resourceGroupName, String dhcpId,
+ String privateCloudName, Context context);
/**
- * Get a WorkloadNetworkDnsService.
+ * Get a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dhcpId The ID of the DHCP configuration.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDnsService.
+ * @return a WorkloadNetworkDhcp.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName,
- String dnsServiceId);
+ WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName);
/**
- * Create a WorkloadNetworkDnsService.
+ * Create a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ * @return the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService(
- String resourceGroupName, String privateCloudName, String dnsServiceId,
- WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+ SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String dhcpId,
+ WorkloadNetworkDhcpInner workloadNetworkDhcp);
/**
- * Create a WorkloadNetworkDnsService.
+ * Create a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ * @return the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService(
- String resourceGroupName, String privateCloudName, String dnsServiceId,
- WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+ SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String dhcpId,
+ WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
/**
- * Create a WorkloadNetworkDnsService.
+ * Create a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Service.
+ * @return nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName,
- String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+ WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp);
/**
- * Create a WorkloadNetworkDnsService.
+ * Create a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Service.
+ * @return nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName,
- String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+ WorkloadNetworkDhcpInner createDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
/**
- * Update a WorkloadNetworkDnsService.
+ * Update a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ * @return the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService(
- String resourceGroupName, String privateCloudName, String dnsServiceId,
- WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+ SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String dhcpId,
+ WorkloadNetworkDhcpInner workloadNetworkDhcp);
/**
- * Update a WorkloadNetworkDnsService.
+ * Update a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ * @return the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService(
- String resourceGroupName, String privateCloudName, String dnsServiceId,
- WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+ SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String dhcpId,
+ WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
/**
- * Update a WorkloadNetworkDnsService.
+ * Update a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Service.
+ * @return nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName,
- String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+ WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp);
/**
- * Update a WorkloadNetworkDnsService.
+ * Update a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param dnsServiceId ID of the DNS service.
- * @param workloadNetworkDnsService The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
+ * @param workloadNetworkDhcp The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Service.
+ * @return nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName,
- String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+ WorkloadNetworkDhcpInner updateDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String dhcpId, WorkloadNetworkDhcpInner workloadNetworkDhcp, Context context);
/**
- * Delete a WorkloadNetworkDnsService.
+ * Delete a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId,
- String privateCloudName);
+ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dhcpId);
/**
- * Delete a WorkloadNetworkDnsService.
+ * Delete a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -553,306 +590,60 @@ SyncPoller, Void> beginDeleteDnsService(String resourceGroupNam
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId,
- String privateCloudName, Context context);
+ SyncPoller, Void> beginDeleteDhcp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dhcpId, Context context);
/**
- * Delete a WorkloadNetworkDnsService.
+ * Delete a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName);
+ void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId);
/**
- * Delete a WorkloadNetworkDnsService.
+ * Delete a WorkloadNetworkDhcp.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dhcpId The ID of the DHCP configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context);
-
- /**
- * List WorkloadNetworkDnsZone resources by WorkloadNetwork.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDnsZones(String resourceGroupName, String privateCloudName);
-
- /**
- * List WorkloadNetworkDnsZone resources by WorkloadNetwork.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDnsZones(String resourceGroupName, String privateCloudName,
+ void deleteDhcp(String resourceGroupName, String privateCloudName, String workloadNetworkName, String dhcpId,
Context context);
- /**
- * Get a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDnsZone along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName,
- String dnsZoneId, Context context);
-
- /**
- * Get a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkDnsZone.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId);
-
- /**
- * Create a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone Resource create parameters.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone(
- String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
-
- /**
- * Create a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone Resource create parameters.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone(
- String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
-
- /**
- * Create a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone Resource create parameters.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
-
- /**
- * Create a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone Resource create parameters.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
-
- /**
- * Update a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone The resource properties to be updated.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone(
- String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
-
- /**
- * Update a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone The resource properties to be updated.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone(
- String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
-
- /**
- * Update a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone The resource properties to be updated.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
-
- /**
- * Update a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param privateCloudName Name of the private cloud.
- * @param dnsZoneId ID of the DNS zone.
- * @param workloadNetworkDnsZone The resource properties to be updated.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX DNS Zone.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName, String dnsZoneId,
- WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
-
- /**
- * Delete a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsZoneId ID of the DNS zone.
- * @param privateCloudName Name of the private cloud.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId,
- String privateCloudName);
-
- /**
- * Delete a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsZoneId ID of the DNS zone.
- * @param privateCloudName Name of the private cloud.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId,
- String privateCloudName, Context context);
-
- /**
- * Delete a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsZoneId ID of the DNS zone.
- * @param privateCloudName Name of the private cloud.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName);
-
- /**
- * Delete a WorkloadNetworkDnsZone.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param dnsZoneId ID of the DNS zone.
- * @param privateCloudName Name of the private cloud.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context);
-
/**
* List WorkloadNetworkGateway resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a WorkloadNetworkGateway list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGateways(String resourceGroupName, String privateCloudName);
+ PagedIterable listGateways(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
* List WorkloadNetworkGateway resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -861,13 +652,14 @@ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listGateways(String resourceGroupName, String privateCloudName,
- Context context);
+ String workloadNetworkName, Context context);
/**
* Get a WorkloadNetworkGateway.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param gatewayId The ID of the NSX Gateway.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -877,13 +669,14 @@ PagedIterable listGateways(String resourceGroupName
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getGatewayWithResponse(String resourceGroupName, String privateCloudName,
- String gatewayId, Context context);
+ String workloadNetworkName, String gatewayId, Context context);
/**
* Get a WorkloadNetworkGateway.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param gatewayId The ID of the NSX Gateway.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -891,13 +684,15 @@ Response getGatewayWithResponse(String resourceGrou
* @return a WorkloadNetworkGateway.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, String gatewayId);
+ WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String gatewayId);
/**
* List WorkloadNetworkPortMirroring resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -906,13 +701,14 @@ Response getGatewayWithResponse(String resourceGrou
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listPortMirroring(String resourceGroupName,
- String privateCloudName);
+ String privateCloudName, String workloadNetworkName);
/**
* List WorkloadNetworkPortMirroring resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -922,13 +718,14 @@ PagedIterable listPortMirroring(String resour
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listPortMirroring(String resourceGroupName,
- String privateCloudName, Context context);
+ String privateCloudName, String workloadNetworkName, Context context);
/**
* Get a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -938,13 +735,14 @@ PagedIterable listPortMirroring(String resour
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getPortMirroringWithResponse(String resourceGroupName,
- String privateCloudName, String portMirroringId, Context context);
+ String privateCloudName, String workloadNetworkName, String portMirroringId, Context context);
/**
* Get a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -953,13 +751,14 @@ Response getPortMirroringWithResponse(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, String privateCloudName,
- String portMirroringId);
+ String workloadNetworkName, String portMirroringId);
/**
* Create a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -969,14 +768,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
- beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId,
- WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
+ beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
/**
* Create a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring Resource create parameters.
* @param context The context to associate with this operation.
@@ -987,14 +787,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
- beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId,
- WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
+ beginCreatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
/**
* Create a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1004,13 +805,15 @@ WorkloadNetworkPortMirroringInner getPortMirroring(String resourceGroupName, Str
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName,
- String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
+ String workloadNetworkName, String portMirroringId,
+ WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
/**
* Create a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring Resource create parameters.
* @param context The context to associate with this operation.
@@ -1021,13 +824,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName, String privateCloudName,
- String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
+ String workloadNetworkName, String portMirroringId,
+ WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
/**
* Update a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1037,14 +842,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
- beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId,
- WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
+ beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
/**
* Update a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring The resource properties to be updated.
* @param context The context to associate with this operation.
@@ -1055,14 +861,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
- beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String portMirroringId,
- WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
+ beginUpdatePortMirroring(String resourceGroupName, String privateCloudName, String workloadNetworkName,
+ String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
/**
* Update a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1072,13 +879,15 @@ WorkloadNetworkPortMirroringInner createPortMirroring(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName,
- String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
+ String workloadNetworkName, String portMirroringId,
+ WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring);
/**
* Update a WorkloadNetworkPortMirroring.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param portMirroringId ID of the NSX port mirroring profile.
* @param workloadNetworkPortMirroring The resource properties to be updated.
* @param context The context to associate with this operation.
@@ -1089,7 +898,8 @@ WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
WorkloadNetworkPortMirroringInner updatePortMirroring(String resourceGroupName, String privateCloudName,
- String portMirroringId, WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
+ String workloadNetworkName, String portMirroringId,
+ WorkloadNetworkPortMirroringInner workloadNetworkPortMirroring, Context context);
/**
* Delete a WorkloadNetworkPortMirroring.
@@ -1151,138 +961,219 @@ void deletePortMirroring(String resourceGroupName, String portMirroringId, Strin
Context context);
/**
- * List WorkloadNetworkPublicIP resources by WorkloadNetwork.
+ * List WorkloadNetworkVMGroup resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName);
+ PagedIterable listVMGroups(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
- * List WorkloadNetworkPublicIP resources by WorkloadNetwork.
+ * List WorkloadNetworkVMGroup resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listPublicIPs(String resourceGroupName, String privateCloudName,
- Context context);
+ PagedIterable listVMGroups(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
- * Get a WorkloadNetworkPublicIP.
+ * Get a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkPublicIP along with {@link Response}.
+ * @return a WorkloadNetworkVMGroup along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName,
- String publicIpId, Context context);
+ Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId, Context context);
/**
- * Get a WorkloadNetworkPublicIP.
+ * Get a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkPublicIP.
+ * @return a WorkloadNetworkVMGroup.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName, String publicIpId);
+ WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId);
/**
- * Create a WorkloadNetworkPublicIP.
+ * Create a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
- * @param workloadNetworkPublicIp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Public IP Block.
+ * @return the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp(
- String resourceGroupName, String privateCloudName, String publicIpId,
- WorkloadNetworkPublicIpInner workloadNetworkPublicIp);
+ SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId,
+ WorkloadNetworkVMGroupInner resource);
/**
- * Create a WorkloadNetworkPublicIP.
+ * Create a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
- * @param workloadNetworkPublicIp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Public IP Block.
+ * @return the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp(
- String resourceGroupName, String privateCloudName, String publicIpId,
- WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context);
+ SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId,
+ WorkloadNetworkVMGroupInner resource, Context context);
/**
- * Create a WorkloadNetworkPublicIP.
+ * Create a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
- * @param workloadNetworkPublicIp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Public IP Block.
+ * @return nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, String publicIpId,
- WorkloadNetworkPublicIpInner workloadNetworkPublicIp);
+ WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource);
/**
- * Create a WorkloadNetworkPublicIP.
+ * Create a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param publicIpId ID of the DNS zone.
- * @param workloadNetworkPublicIp Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Public IP Block.
+ * @return nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName, String publicIpId,
- WorkloadNetworkPublicIpInner workloadNetworkPublicIp, Context context);
+ WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner resource, Context context);
/**
- * Delete a WorkloadNetworkPublicIP.
+ * Update a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param publicIpId ID of the DNS zone.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of nSX VM Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId,
+ WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+
+ /**
+ * Update a WorkloadNetworkVMGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of nSX VM Group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String vmGroupId,
+ WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context);
+
+ /**
+ * Update a WorkloadNetworkVMGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX VM Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+
+ /**
+ * Update a WorkloadNetworkVMGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param vmGroupId ID of the VM group.
+ * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX VM Group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String vmGroupId, WorkloadNetworkVMGroupInner workloadNetworkVMGroup,
+ Context context);
+
+ /**
+ * Delete a WorkloadNetworkVMGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmGroupId ID of the VM group.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -1290,14 +1181,14 @@ WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String pri
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId,
+ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId,
String privateCloudName);
/**
- * Delete a WorkloadNetworkPublicIP.
+ * Delete a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param publicIpId ID of the DNS zone.
+ * @param vmGroupId ID of the VM group.
* @param privateCloudName Name of the private cloud.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1306,27 +1197,27 @@ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName,
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIpId,
+ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId,
String privateCloudName, Context context);
/**
- * Delete a WorkloadNetworkPublicIP.
+ * Delete a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param publicIpId ID of the DNS zone.
+ * @param vmGroupId ID of the VM group.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName);
+ void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName);
/**
- * Delete a WorkloadNetworkPublicIP.
+ * Delete a WorkloadNetworkVMGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param publicIpId ID of the DNS zone.
+ * @param vmGroupId ID of the VM group.
* @param privateCloudName Name of the private cloud.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1334,521 +1225,756 @@ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName,
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deletePublicIp(String resourceGroupName, String publicIpId, String privateCloudName, Context context);
+ void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context);
/**
- * List WorkloadNetworkSegment resources by WorkloadNetwork.
+ * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listSegments(String resourceGroupName, String privateCloudName);
+ PagedIterable listVirtualMachines(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName);
/**
- * List WorkloadNetworkSegment resources by WorkloadNetwork.
+ * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkSegment list operation as paginated response with {@link PagedIterable}.
+ * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listSegments(String resourceGroupName, String privateCloudName,
+ PagedIterable listVirtualMachines(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, Context context);
+
+ /**
+ * Get a WorkloadNetworkVirtualMachine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param virtualMachineId ID of the virtual machine.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a WorkloadNetworkVirtualMachine along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getVirtualMachineWithResponse(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String virtualMachineId, Context context);
+
+ /**
+ * Get a WorkloadNetworkVirtualMachine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param virtualMachineId ID of the virtual machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a WorkloadNetworkVirtualMachine.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String virtualMachineId);
+
+ /**
+ * List WorkloadNetworkDnsService resources by WorkloadNetwork.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a WorkloadNetworkDnsService list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDnsServices(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
+
+ /**
+ * List WorkloadNetworkDnsService resources by WorkloadNetwork.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a WorkloadNetworkDnsService list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDnsServices(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
+
+ /**
+ * Get a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a WorkloadNetworkDnsService along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDnsServiceWithResponse(String resourceGroupName,
+ String privateCloudName, String workloadNetworkName, String dnsServiceId, Context context);
+
+ /**
+ * Get a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a WorkloadNetworkDnsService.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkDnsServiceInner getDnsService(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsServiceId);
+
+ /**
+ * Create a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId,
+ WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+
+ /**
+ * Create a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsServiceInner> beginCreateDnsService(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId,
+ WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+
+ /**
+ * Create a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+
+ /**
+ * Create a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkDnsServiceInner createDnsService(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService,
Context context);
/**
- * Get a WorkloadNetworkSegment.
+ * Update a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId,
+ WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
+
+ /**
+ * Update a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkSegment along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of nSX DNS Service.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsServiceInner> beginUpdateDnsService(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsServiceId,
+ WorkloadNetworkDnsServiceInner workloadNetworkDnsService, Context context);
+
+ /**
+ * Update a WorkloadNetworkDnsService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX DNS Service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getSegmentWithResponse(String resourceGroupName, String privateCloudName,
- String segmentId, Context context);
+ WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService);
/**
- * Get a WorkloadNetworkSegment.
+ * Update a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsServiceId ID of the DNS service.
+ * @param workloadNetworkDnsService The resource properties to be updated.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkSegment.
+ * @return nSX DNS Service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId);
+ WorkloadNetworkDnsServiceInner updateDnsService(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService,
+ Context context);
/**
- * Create a WorkloadNetworkSegment.
+ * Delete a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Segment.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments(
- String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment);
+ SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId,
+ String privateCloudName);
/**
- * Create a WorkloadNetworkSegment.
+ * Delete a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Segment.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments(
- String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment, Context context);
+ SyncPoller, Void> beginDeleteDnsService(String resourceGroupName, String dnsServiceId,
+ String privateCloudName, Context context);
/**
- * Create a WorkloadNetworkSegment.
+ * Delete a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment);
+ void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName);
/**
- * Create a WorkloadNetworkSegment.
+ * Delete a WorkloadNetworkDnsService.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsServiceId ID of the DNS service.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Segment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner createSegments(String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment, Context context);
+ void deleteDnsService(String resourceGroupName, String dnsServiceId, String privateCloudName, Context context);
/**
- * Update a WorkloadNetworkSegment.
+ * List WorkloadNetworkDnsZone resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Segment.
+ * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments(
- String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDnsZones(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
- * Update a WorkloadNetworkSegment.
+ * List WorkloadNetworkDnsZone resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX Segment.
+ * @return the response of a WorkloadNetworkDnsZone list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments(
- String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDnsZones(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
- * Update a WorkloadNetworkSegment.
+ * Get a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Segment.
+ * @return a WorkloadNetworkDnsZone along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment);
+ Response getDnsZoneWithResponse(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId, Context context);
/**
- * Update a WorkloadNetworkSegment.
+ * Get a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
- * @param workloadNetworkSegment The resource properties to be updated.
- * @param context The context to associate with this operation.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Segment.
+ * @return a WorkloadNetworkDnsZone.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner updateSegments(String resourceGroupName, String privateCloudName, String segmentId,
- WorkloadNetworkSegmentInner workloadNetworkSegment, Context context);
+ WorkloadNetworkDnsZoneInner getDnsZone(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId);
/**
- * Delete a WorkloadNetworkSegment.
+ * Create a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName,
- String segmentId);
+ SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId,
+ WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
/**
- * Delete a WorkloadNetworkSegment.
+ * Create a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteSegment(String resourceGroupName, String privateCloudName,
- String segmentId, Context context);
+ SyncPoller, WorkloadNetworkDnsZoneInner> beginCreateDnsZone(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId,
+ WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
/**
- * Delete a WorkloadNetworkSegment.
+ * Create a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId);
+ WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
/**
- * Delete a WorkloadNetworkSegment.
+ * Create a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param segmentId The ID of the NSX Segment.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteSegment(String resourceGroupName, String privateCloudName, String segmentId, Context context);
+ WorkloadNetworkDnsZoneInner createDnsZone(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone,
+ Context context);
/**
- * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork.
+ * Update a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of nSX DNS Zone.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachines(String resourceGroupName,
- String privateCloudName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId,
+ WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
/**
- * List WorkloadNetworkVirtualMachine resources by WorkloadNetwork.
+ * Update a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkVirtualMachine list operation as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of nSX DNS Zone.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVirtualMachines(String resourceGroupName,
- String privateCloudName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkloadNetworkDnsZoneInner> beginUpdateDnsZone(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String dnsZoneId,
+ WorkloadNetworkDnsZoneInner workloadNetworkDnsZone, Context context);
/**
- * Get a WorkloadNetworkVirtualMachine.
+ * Update a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param virtualMachineId ID of the virtual machine.
- * @param context The context to associate with this operation.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkVirtualMachine along with {@link Response}.
+ * @return nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getVirtualMachineWithResponse(String resourceGroupName,
- String privateCloudName, String virtualMachineId, Context context);
+ WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone);
/**
- * Get a WorkloadNetworkVirtualMachine.
+ * Update a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param virtualMachineId ID of the virtual machine.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param dnsZoneId ID of the DNS zone.
+ * @param workloadNetworkDnsZone The resource properties to be updated.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkVirtualMachine.
+ * @return nSX DNS Zone.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVirtualMachineInner getVirtualMachine(String resourceGroupName, String privateCloudName,
- String virtualMachineId);
+ WorkloadNetworkDnsZoneInner updateDnsZone(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String dnsZoneId, WorkloadNetworkDnsZoneInner workloadNetworkDnsZone,
+ Context context);
/**
- * List WorkloadNetworkVMGroup resources by WorkloadNetwork.
+ * Delete a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsZoneId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVMGroups(String resourceGroupName, String privateCloudName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId,
+ String privateCloudName);
/**
- * List WorkloadNetworkVMGroup resources by WorkloadNetwork.
+ * Delete a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsZoneId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a WorkloadNetworkVMGroup list operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVMGroups(String resourceGroupName, String privateCloudName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteDnsZone(String resourceGroupName, String dnsZoneId,
+ String privateCloudName, Context context);
/**
- * Get a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsZoneId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkVMGroup along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getVMGroupWithResponse(String resourceGroupName, String privateCloudName,
- String vmGroupId, Context context);
+ void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName);
/**
- * Get a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkDnsZone.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dnsZoneId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a WorkloadNetworkVMGroup.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId);
+ void deleteDnsZone(String resourceGroupName, String dnsZoneId, String privateCloudName, Context context);
/**
- * Create a WorkloadNetworkVMGroup.
+ * List WorkloadNetworkPublicIP resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX VM Group.
+ * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
- String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPublicIps(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName);
/**
- * Create a WorkloadNetworkVMGroup.
+ * List WorkloadNetworkPublicIP resources by WorkloadNetwork.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX VM Group.
+ * @return the response of a WorkloadNetworkPublicIP list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
- String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listPublicIps(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, Context context);
/**
- * Create a WorkloadNetworkVMGroup.
+ * Get a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup Resource create parameters.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX VM Group.
+ * @return a WorkloadNetworkPublicIP along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+ Response getPublicIpWithResponse(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String publicIPId, Context context);
/**
- * Create a WorkloadNetworkVMGroup.
+ * Get a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup Resource create parameters.
- * @param context The context to associate with this operation.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX VM Group.
+ * @return a WorkloadNetworkPublicIP.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner createVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context);
+ WorkloadNetworkPublicIpInner getPublicIp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String publicIPId);
/**
- * Update a WorkloadNetworkVMGroup.
+ * Create a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
+ * @param workloadNetworkPublicIP Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX VM Group.
+ * @return the {@link SyncPoller} for polling of nSX Public IP Block.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
- String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+ SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId,
+ WorkloadNetworkPublicIpInner workloadNetworkPublicIP);
/**
- * Update a WorkloadNetworkVMGroup.
+ * Create a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
+ * @param workloadNetworkPublicIP Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSX VM Group.
+ * @return the {@link SyncPoller} for polling of nSX Public IP Block.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
- String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context);
+ SyncPoller, WorkloadNetworkPublicIpInner> beginCreatePublicIp(
+ String resourceGroupName, String privateCloudName, String workloadNetworkName, String publicIPId,
+ WorkloadNetworkPublicIpInner workloadNetworkPublicIP, Context context);
/**
- * Update a WorkloadNetworkVMGroup.
+ * Create a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
+ * @param workloadNetworkPublicIP Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX VM Group.
+ * @return nSX Public IP Block.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup);
+ WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP);
/**
- * Update a WorkloadNetworkVMGroup.
+ * Create a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
- * @param vmGroupId ID of the VM group.
- * @param workloadNetworkVMGroup The resource properties to be updated.
+ * @param workloadNetworkName Name of the global reach connection.
+ * @param publicIPId ID of the DNS zone.
+ * @param workloadNetworkPublicIP Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX VM Group.
+ * @return nSX Public IP Block.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId,
- WorkloadNetworkVMGroupInner workloadNetworkVMGroup, Context context);
+ WorkloadNetworkPublicIpInner createPublicIp(String resourceGroupName, String privateCloudName,
+ String workloadNetworkName, String publicIPId, WorkloadNetworkPublicIpInner workloadNetworkPublicIP,
+ Context context);
/**
- * Delete a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmGroupId ID of the VM group.
+ * @param publicIPId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -1856,14 +1982,14 @@ WorkloadNetworkVMGroupInner updateVMGroup(String resourceGroupName, String priva
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId,
+ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId,
String privateCloudName);
/**
- * Delete a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmGroupId ID of the VM group.
+ * @param publicIPId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1872,27 +1998,27 @@ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName,
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName, String vmGroupId,
+ SyncPoller, Void> beginDeletePublicIp(String resourceGroupName, String publicIPId,
String privateCloudName, Context context);
/**
- * Delete a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmGroupId ID of the VM group.
+ * @param publicIPId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName);
+ void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName);
/**
- * Delete a WorkloadNetworkVMGroup.
+ * Delete a WorkloadNetworkPublicIP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmGroupId ID of the VM group.
+ * @param publicIPId ID of the DNS zone.
* @param privateCloudName Name of the private cloud.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1900,5 +2026,5 @@ SyncPoller, Void> beginDeleteVMGroup(String resourceGroupName,
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteVMGroup(String resourceGroupName, String vmGroupId, String privateCloudName, Context context);
+ void deletePublicIp(String resourceGroupName, String publicIPId, String privateCloudName, Context context);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java
index 792b3440ae93..b10182fc28ac 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AddonInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class AddonInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,9 +39,9 @@ public final class AddonInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of AddonInner class.
@@ -79,13 +79,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -99,13 +99,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java
index b0347fa58e48..900df918e115 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/AdminCredentialsInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -39,7 +39,7 @@ public final class AdminCredentialsInner implements JsonSerializable {
/*
* Zone and associated hosts info
@@ -26,7 +26,7 @@ public final class ClusterZoneListInner implements JsonSerializable zones() {
return this.zones;
}
- /**
- * Set the zones property: Zone and associated hosts info.
- *
- * @param zones the zones value to set.
- * @return the ClusterZoneListInner object itself.
- */
- public ClusterZoneListInner withZones(List zones) {
- this.zones = zones;
- return this;
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java
index 68f3c280b871..f3f342abacd5 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -33,9 +33,9 @@ public final class DatastoreInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -43,9 +43,9 @@ public final class DatastoreInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DatastoreInner class.
@@ -72,13 +72,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -92,13 +92,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java
index 09cb698a3b50..14aa6103e2c3 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/DatastoreProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java
index c3f3108809a2..0bd4d8fd831c 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class ExpressRouteAuthorizationInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,9 +39,9 @@ public final class ExpressRouteAuthorizationInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ExpressRouteAuthorizationInner class.
@@ -68,13 +68,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -88,13 +88,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java
index 54d2511d9088..0264950dcd01 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ExpressRouteAuthorizationProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java
index 31f6f0f74044..bb9dd9b570e4 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -30,9 +30,9 @@ public final class GlobalReachConnectionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class GlobalReachConnectionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of GlobalReachConnectionInner class.
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java
index 4949f7dc282a..3d759a9817d2 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/GlobalReachConnectionProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java
index ff9b36e91e33..983e7a7570c0 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -30,9 +30,9 @@ public final class HcxEnterpriseSiteInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class HcxEnterpriseSiteInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of HcxEnterpriseSiteInner class.
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java
index 38bc426d6b6d..94feae234d74 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/HcxEnterpriseSiteProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java
index cf045d012ee9..2f1c23cd338f 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class IscsiPathInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,9 +39,9 @@ public final class IscsiPathInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of IscsiPathInner class.
@@ -68,13 +68,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -88,13 +88,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java
index 5d0f1edd87bb..5f333c4f4f36 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/IscsiPathProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java
index 5cf8f1364040..db823bff417b 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/OperationInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,11 +15,9 @@
import java.io.IOException;
/**
- * REST API Operation
- *
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
-@Fluent
+@Immutable
public final class OperationInner implements JsonSerializable {
/*
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
@@ -28,8 +26,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
*/
private Boolean isDataAction;
@@ -45,14 +43,14 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
@@ -67,7 +65,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for ARM/control-plane operations.
+ * operations and "false" for Azure Resource Manager/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -84,17 +82,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: Localized display information for this particular operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
@@ -106,8 +93,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
- * only APIs.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
* @return the actionType value.
*/
@@ -132,7 +119,7 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString());
return jsonWriter.writeEndObject();
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java
index 7dcb848c9115..39f303d8b7a5 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class PlacementPolicyInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,9 +39,9 @@ public final class PlacementPolicyInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of PlacementPolicyInner class.
@@ -79,13 +79,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -99,13 +99,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java
index 3438b388b03d..9e5937d64077 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PlacementPolicyUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java
index 1fa39a194035..9f58ec30a682 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -53,9 +53,9 @@ public final class PrivateCloudInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -63,9 +63,9 @@ public final class PrivateCloudInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of PrivateCloudInner class.
@@ -132,13 +132,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -152,13 +152,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -593,6 +593,10 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
+ if (location() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property location in model PrivateCloudInner"));
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(PrivateCloudInner.class);
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java
index 6fe562c650ee..9de94fbf4a15 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java
index 3128314b749c..da1d4d2bbdbe 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/PrivateCloudUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java
index 60b0b840ade1..3cb22332a58a 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/QuotaInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -31,7 +31,7 @@ public final class QuotaInner implements JsonSerializable {
/**
* Creates an instance of QuotaInner class.
*/
- public QuotaInner() {
+ private QuotaInner() {
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java
index c62ba5862ad9..dfa4dcbf8866 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -32,9 +32,9 @@ public final class ScriptCmdletInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -42,14 +42,14 @@ public final class ScriptCmdletInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ScriptCmdletInner class.
*/
- public ScriptCmdletInner() {
+ private ScriptCmdletInner() {
}
/**
@@ -71,13 +71,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -91,13 +91,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java
index 59edb9ad797a..64f1e523c7f6 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptCmdletProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -48,7 +48,7 @@ public final class ScriptCmdletProperties implements JsonSerializable output) {
*
* @return the namedOutputs value.
*/
- public Map namedOutputs() {
+ public Map namedOutputs() {
return this.innerProperties() == null ? null : this.innerProperties().namedOutputs();
}
@@ -317,7 +318,7 @@ public Map namedOutputs() {
* @param namedOutputs the namedOutputs value to set.
* @return the ScriptExecutionInner object itself.
*/
- public ScriptExecutionInner withNamedOutputs(Map namedOutputs) {
+ public ScriptExecutionInner withNamedOutputs(Map namedOutputs) {
if (this.innerProperties() == null) {
this.innerProperties = new ScriptExecutionProperties();
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java
index 02fc66dcb498..85990808d928 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptExecutionProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -12,6 +12,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.avs.models.ScriptExecutionParameter;
+import com.azure.resourcemanager.avs.models.ScriptExecutionPropertiesNamedOutput;
import com.azure.resourcemanager.avs.models.ScriptExecutionProvisioningState;
import java.io.IOException;
import java.time.OffsetDateTime;
@@ -83,7 +84,7 @@ public final class ScriptExecutionProperties implements JsonSerializable namedOutputs;
+ private Map namedOutputs;
/*
* Standard information out stream from the powershell execution
@@ -291,7 +292,7 @@ public ScriptExecutionProperties withOutput(List output) {
*
* @return the namedOutputs value.
*/
- public Map namedOutputs() {
+ public Map namedOutputs() {
return this.namedOutputs;
}
@@ -301,7 +302,7 @@ public Map namedOutputs() {
* @param namedOutputs the namedOutputs value to set.
* @return the ScriptExecutionProperties object itself.
*/
- public ScriptExecutionProperties withNamedOutputs(Map namedOutputs) {
+ public ScriptExecutionProperties withNamedOutputs(Map namedOutputs) {
this.namedOutputs = namedOutputs;
return this;
}
@@ -350,6 +351,13 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property timeout in model ScriptExecutionProperties"));
}
+ if (namedOutputs() != null) {
+ namedOutputs().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(ScriptExecutionProperties.class);
@@ -368,7 +376,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("failureReason", this.failureReason);
jsonWriter.writeStringField("retention", this.retention);
jsonWriter.writeArrayField("output", this.output, (writer, element) -> writer.writeString(element));
- jsonWriter.writeMapField("namedOutputs", this.namedOutputs, (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeMapField("namedOutputs", this.namedOutputs, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -420,7 +428,8 @@ public static ScriptExecutionProperties fromJson(JsonReader jsonReader) throws I
List output = reader.readArray(reader1 -> reader1.getString());
deserializedScriptExecutionProperties.output = output;
} else if ("namedOutputs".equals(fieldName)) {
- Map namedOutputs = reader.readMap(reader1 -> reader1.readUntyped());
+ Map namedOutputs
+ = reader.readMap(reader1 -> ScriptExecutionPropertiesNamedOutput.fromJson(reader1));
deserializedScriptExecutionProperties.namedOutputs = namedOutputs;
} else if ("information".equals(fieldName)) {
List information = reader.readArray(reader1 -> reader1.getString());
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java
index ba29c22ec1a8..8c28fd56d560 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class ScriptPackageInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,14 +39,14 @@ public final class ScriptPackageInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ScriptPackageInner class.
*/
- public ScriptPackageInner() {
+ private ScriptPackageInner() {
}
/**
@@ -68,13 +68,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -88,13 +88,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java
index 09b4e16cac56..2102134fa1d9 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/ScriptPackageProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -45,7 +45,7 @@ public final class ScriptPackageProperties implements JsonSerializable {
/**
* Creates an instance of TrialInner class.
*/
- public TrialInner() {
+ private TrialInner() {
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java
index e62cf4649cea..fe2e97bc6daf 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -30,9 +30,9 @@ public final class VirtualMachineInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,14 +40,14 @@ public final class VirtualMachineInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VirtualMachineInner class.
*/
- public VirtualMachineInner() {
+ private VirtualMachineInner() {
}
/**
@@ -69,13 +69,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -89,13 +89,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java
index 3a1994e2bc3e..9273133818c5 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/VirtualMachineProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -46,7 +46,7 @@ public final class VirtualMachineProperties implements JsonSerializable {
/*
* The provisioning state of the resource.
@@ -35,7 +35,7 @@ public final class WorkloadNetworkGatewayProperties implements JsonSerializable<
/**
* Creates an instance of WorkloadNetworkGatewayProperties class.
*/
- public WorkloadNetworkGatewayProperties() {
+ private WorkloadNetworkGatewayProperties() {
}
/**
@@ -56,17 +56,6 @@ public String displayName() {
return this.displayName;
}
- /**
- * Set the displayName property: Display name of the DHCP entity.
- *
- * @param displayName the displayName value to set.
- * @return the WorkloadNetworkGatewayProperties object itself.
- */
- public WorkloadNetworkGatewayProperties withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
/**
* Get the path property: NSX Gateway Path.
*
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java
index 37b29b53c663..a78db495a5f0 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -29,9 +29,9 @@ public final class WorkloadNetworkInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,14 +39,14 @@ public final class WorkloadNetworkInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of WorkloadNetworkInner class.
*/
- public WorkloadNetworkInner() {
+ private WorkloadNetworkInner() {
}
/**
@@ -68,13 +68,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -88,13 +88,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java
index c47350ee403c..f97cfbf6bef9 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -31,9 +31,9 @@ public final class WorkloadNetworkPortMirroringInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -41,9 +41,9 @@ public final class WorkloadNetworkPortMirroringInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of WorkloadNetworkPortMirroringInner class.
@@ -70,13 +70,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -90,13 +90,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java
index 68ae5d148f4c..2d6ebb2c99c0 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkPortMirroringProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java
index 027ce7b763e9..d05d7604eaee 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/WorkloadNetworkProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.fluent.models;
@@ -25,7 +25,7 @@ public final class WorkloadNetworkProperties implements JsonSerializable {
/*
@@ -37,7 +37,7 @@ public final class WorkloadNetworkVirtualMachineProperties
/**
* Creates an instance of WorkloadNetworkVirtualMachineProperties class.
*/
- public WorkloadNetworkVirtualMachineProperties() {
+ private WorkloadNetworkVirtualMachineProperties() {
}
/**
@@ -58,17 +58,6 @@ public String displayName() {
return this.displayName;
}
- /**
- * Set the displayName property: Display name of the VM.
- *
- * @param displayName the displayName value to set.
- * @return the WorkloadNetworkVirtualMachineProperties object itself.
- */
- public WorkloadNetworkVirtualMachineProperties withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
/**
* Get the vmType property: Virtual machine type.
*
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java
index e4db28356c76..b69621f5a187 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for AvsClient.
+ * Package containing the inner data models for Avs.
* Azure VMware Solution API.
*/
package com.azure.resourcemanager.avs.fluent.models;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java
index 8b4c79e23926..76ed4c3f53b0 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for AvsClient.
+ * Package containing the service clients for Avs.
* Azure VMware Solution API.
*/
package com.azure.resourcemanager.avs.fluent;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java
index 25e3dc35424c..ce51c86b1356 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java
index ad4adc964f47..d98200df74cd 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -33,7 +33,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.avs.fluent.AddonsClient;
import com.azure.resourcemanager.avs.fluent.models.AddonInner;
-import com.azure.resourcemanager.avs.models.AddonList;
+import com.azure.resourcemanager.avs.implementation.models.AddonList;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -66,55 +66,55 @@ public final class AddonsClientImpl implements AddonsClient {
* The interface defining all the services for AvsClientAddons to be used by the proxy service to perform REST
* calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AvsClientAddons")
public interface AddonsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept,
+ @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName,
- @BodyParam("application/json") AddonInner addon, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, @BodyParam("application/json") AddonInner addon, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("addonName") String addonName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context);
}
/**
@@ -432,7 +432,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, addon, accept,
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, accept, addon,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -480,7 +480,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, addon, accept, context);
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, addonName, accept, addon, context);
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java
index cb695b25b924..9f24e290c0cd 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AddonsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java
index 72430f2f6c48..eb17c72e74b4 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AdminCredentialsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java
index 7d2610cb9246..7259697452fb 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -33,7 +33,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.avs.fluent.AuthorizationsClient;
import com.azure.resourcemanager.avs.fluent.models.ExpressRouteAuthorizationInner;
-import com.azure.resourcemanager.avs.models.ExpressRouteAuthorizationList;
+import com.azure.resourcemanager.avs.implementation.models.ExpressRouteAuthorizationList;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,51 +67,50 @@ public final class AuthorizationsClientImpl implements AuthorizationsClient {
* The interface defining all the services for AvsClientAuthorizations to be used by the proxy service to perform
* REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AvsClientAuthorizati")
public interface AuthorizationsService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept,
+ @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName,
- @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept,
+ @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName,
- @PathParam("authorizationName") String authorizationName,
- @BodyParam("application/json") ExpressRouteAuthorizationInner authorization,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept,
+ @BodyParam("application/json") ExpressRouteAuthorizationInner authorization, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName,
- @PathParam("authorizationName") String authorizationName, @HeaderParam("Accept") String accept,
+ @PathParam("authorizationName") String authorizationName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@@ -119,8 +118,8 @@ Mono>> delete(@HostParam("$host") String endpoint,
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("accept") String accept, Context context);
}
/**
@@ -447,8 +446,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, authorization,
- accept, context))
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, accept,
+ authorization, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -497,8 +496,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, authorization,
- accept, context);
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, authorizationName, accept,
+ authorization, context);
}
/**
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java
index 8c94f4de85a1..20d393d5a570 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AuthorizationsImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java
index 73199a2e75a0..72c78a4af843 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientBuilder.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -20,34 +20,34 @@
@ServiceClientBuilder(serviceClients = { AvsClientImpl.class })
public final class AvsClientBuilder {
/*
- * The ID of the target subscription. The value must be an UUID.
+ * Server parameter
*/
- private String subscriptionId;
+ private String endpoint;
/**
- * Sets The ID of the target subscription. The value must be an UUID.
+ * Sets Server parameter.
*
- * @param subscriptionId the subscriptionId value.
+ * @param endpoint the endpoint value.
* @return the AvsClientBuilder.
*/
- public AvsClientBuilder subscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AvsClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
/*
- * server parameter
+ * The ID of the target subscription. The value must be an UUID.
*/
- private String endpoint;
+ private String subscriptionId;
/**
- * Sets server parameter.
+ * Sets The ID of the target subscription. The value must be an UUID.
*
- * @param endpoint the endpoint value.
+ * @param subscriptionId the subscriptionId value.
* @return the AvsClientBuilder.
*/
- public AvsClientBuilder endpoint(String endpoint) {
- this.endpoint = endpoint;
+ public AvsClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -121,7 +121,6 @@ public AvsClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
* @return an instance of AvsClientImpl.
*/
public AvsClientImpl buildClient() {
- String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline = (pipeline != null)
? pipeline
@@ -132,7 +131,7 @@ public AvsClientImpl buildClient() {
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
AvsClientImpl client = new AvsClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval,
- localEnvironment, this.subscriptionId, localEndpoint);
+ localEnvironment, this.endpoint, this.subscriptionId);
return client;
}
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java
index 57bbc45c1895..ddbc989cf253 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/AvsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -56,26 +56,12 @@
@ServiceClient(builder = AvsClientBuilder.class)
public final class AvsClientImpl implements AvsClient {
/**
- * The ID of the target subscription. The value must be an UUID.
- */
- private final String subscriptionId;
-
- /**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- public String getSubscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * server parameter.
+ * Server parameter.
*/
private final String endpoint;
/**
- * Gets server parameter.
+ * Gets Server parameter.
*
* @return the endpoint value.
*/
@@ -84,12 +70,12 @@ public String getEndpoint() {
}
/**
- * Api Version.
+ * Version parameter.
*/
private final String apiVersion;
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
@@ -97,6 +83,20 @@ public String getApiVersion() {
return this.apiVersion;
}
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
/**
* The HTTP pipeline to send requests through.
*/
@@ -181,48 +181,6 @@ public PrivateCloudsClient getPrivateClouds() {
return this.privateClouds;
}
- /**
- * The AddonsClient object to access its operations.
- */
- private final AddonsClient addons;
-
- /**
- * Gets the AddonsClient object to access its operations.
- *
- * @return the AddonsClient object.
- */
- public AddonsClient getAddons() {
- return this.addons;
- }
-
- /**
- * The AuthorizationsClient object to access its operations.
- */
- private final AuthorizationsClient authorizations;
-
- /**
- * Gets the AuthorizationsClient object to access its operations.
- *
- * @return the AuthorizationsClient object.
- */
- public AuthorizationsClient getAuthorizations() {
- return this.authorizations;
- }
-
- /**
- * The CloudLinksClient object to access its operations.
- */
- private final CloudLinksClient cloudLinks;
-
- /**
- * Gets the CloudLinksClient object to access its operations.
- *
- * @return the CloudLinksClient object.
- */
- public CloudLinksClient getCloudLinks() {
- return this.cloudLinks;
- }
-
/**
* The ClustersClient object to access its operations.
*/
@@ -252,31 +210,31 @@ public DatastoresClient getDatastores() {
}
/**
- * The PlacementPoliciesClient object to access its operations.
+ * The HcxEnterpriseSitesClient object to access its operations.
*/
- private final PlacementPoliciesClient placementPolicies;
+ private final HcxEnterpriseSitesClient hcxEnterpriseSites;
/**
- * Gets the PlacementPoliciesClient object to access its operations.
+ * Gets the HcxEnterpriseSitesClient object to access its operations.
*
- * @return the PlacementPoliciesClient object.
+ * @return the HcxEnterpriseSitesClient object.
*/
- public PlacementPoliciesClient getPlacementPolicies() {
- return this.placementPolicies;
+ public HcxEnterpriseSitesClient getHcxEnterpriseSites() {
+ return this.hcxEnterpriseSites;
}
/**
- * The VirtualMachinesClient object to access its operations.
+ * The AuthorizationsClient object to access its operations.
*/
- private final VirtualMachinesClient virtualMachines;
+ private final AuthorizationsClient authorizations;
/**
- * Gets the VirtualMachinesClient object to access its operations.
+ * Gets the AuthorizationsClient object to access its operations.
*
- * @return the VirtualMachinesClient object.
+ * @return the AuthorizationsClient object.
*/
- public VirtualMachinesClient getVirtualMachines() {
- return this.virtualMachines;
+ public AuthorizationsClient getAuthorizations() {
+ return this.authorizations;
}
/**
@@ -294,45 +252,59 @@ public GlobalReachConnectionsClient getGlobalReachConnections() {
}
/**
- * The HcxEnterpriseSitesClient object to access its operations.
+ * The CloudLinksClient object to access its operations.
*/
- private final HcxEnterpriseSitesClient hcxEnterpriseSites;
+ private final CloudLinksClient cloudLinks;
/**
- * Gets the HcxEnterpriseSitesClient object to access its operations.
+ * Gets the CloudLinksClient object to access its operations.
*
- * @return the HcxEnterpriseSitesClient object.
+ * @return the CloudLinksClient object.
*/
- public HcxEnterpriseSitesClient getHcxEnterpriseSites() {
- return this.hcxEnterpriseSites;
+ public CloudLinksClient getCloudLinks() {
+ return this.cloudLinks;
}
/**
- * The IscsiPathsClient object to access its operations.
+ * The AddonsClient object to access its operations.
*/
- private final IscsiPathsClient iscsiPaths;
+ private final AddonsClient addons;
/**
- * Gets the IscsiPathsClient object to access its operations.
+ * Gets the AddonsClient object to access its operations.
*
- * @return the IscsiPathsClient object.
+ * @return the AddonsClient object.
*/
- public IscsiPathsClient getIscsiPaths() {
- return this.iscsiPaths;
+ public AddonsClient getAddons() {
+ return this.addons;
}
/**
- * The ScriptExecutionsClient object to access its operations.
+ * The VirtualMachinesClient object to access its operations.
*/
- private final ScriptExecutionsClient scriptExecutions;
+ private final VirtualMachinesClient virtualMachines;
/**
- * Gets the ScriptExecutionsClient object to access its operations.
+ * Gets the VirtualMachinesClient object to access its operations.
*
- * @return the ScriptExecutionsClient object.
+ * @return the VirtualMachinesClient object.
*/
- public ScriptExecutionsClient getScriptExecutions() {
- return this.scriptExecutions;
+ public VirtualMachinesClient getVirtualMachines() {
+ return this.virtualMachines;
+ }
+
+ /**
+ * The PlacementPoliciesClient object to access its operations.
+ */
+ private final PlacementPoliciesClient placementPolicies;
+
+ /**
+ * Gets the PlacementPoliciesClient object to access its operations.
+ *
+ * @return the PlacementPoliciesClient object.
+ */
+ public PlacementPoliciesClient getPlacementPolicies() {
+ return this.placementPolicies;
}
/**
@@ -363,6 +335,34 @@ public ScriptCmdletsClient getScriptCmdlets() {
return this.scriptCmdlets;
}
+ /**
+ * The ScriptExecutionsClient object to access its operations.
+ */
+ private final ScriptExecutionsClient scriptExecutions;
+
+ /**
+ * Gets the ScriptExecutionsClient object to access its operations.
+ *
+ * @return the ScriptExecutionsClient object.
+ */
+ public ScriptExecutionsClient getScriptExecutions() {
+ return this.scriptExecutions;
+ }
+
+ /**
+ * The IscsiPathsClient object to access its operations.
+ */
+ private final IscsiPathsClient iscsiPaths;
+
+ /**
+ * Gets the IscsiPathsClient object to access its operations.
+ *
+ * @return the IscsiPathsClient object.
+ */
+ public IscsiPathsClient getIscsiPaths() {
+ return this.iscsiPaths;
+ }
+
/**
* The WorkloadNetworksClient object to access its operations.
*/
@@ -384,33 +384,33 @@ public WorkloadNetworksClient getWorkloadNetworks() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
+ * @param endpoint Server parameter.
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
- * @param endpoint server parameter.
*/
AvsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval,
- AzureEnvironment environment, String subscriptionId, String endpoint) {
+ AzureEnvironment environment, String endpoint, String subscriptionId) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
- this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
this.apiVersion = "2023-09-01";
this.operations = new OperationsClientImpl(this);
this.locations = new LocationsClientImpl(this);
this.privateClouds = new PrivateCloudsClientImpl(this);
- this.addons = new AddonsClientImpl(this);
- this.authorizations = new AuthorizationsClientImpl(this);
- this.cloudLinks = new CloudLinksClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.datastores = new DatastoresClientImpl(this);
- this.placementPolicies = new PlacementPoliciesClientImpl(this);
- this.virtualMachines = new VirtualMachinesClientImpl(this);
- this.globalReachConnections = new GlobalReachConnectionsClientImpl(this);
this.hcxEnterpriseSites = new HcxEnterpriseSitesClientImpl(this);
- this.iscsiPaths = new IscsiPathsClientImpl(this);
- this.scriptExecutions = new ScriptExecutionsClientImpl(this);
+ this.authorizations = new AuthorizationsClientImpl(this);
+ this.globalReachConnections = new GlobalReachConnectionsClientImpl(this);
+ this.cloudLinks = new CloudLinksClientImpl(this);
+ this.addons = new AddonsClientImpl(this);
+ this.virtualMachines = new VirtualMachinesClientImpl(this);
+ this.placementPolicies = new PlacementPoliciesClientImpl(this);
this.scriptPackages = new ScriptPackagesClientImpl(this);
this.scriptCmdlets = new ScriptCmdletsClientImpl(this);
+ this.scriptExecutions = new ScriptExecutionsClientImpl(this);
+ this.iscsiPaths = new IscsiPathsClientImpl(this);
this.workloadNetworks = new WorkloadNetworksClientImpl(this);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java
index b67fe90ef706..4479dd7d9d4f 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinkImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java
index 46858d1e2888..ac2f1aa325dd 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -33,7 +33,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.avs.fluent.CloudLinksClient;
import com.azure.resourcemanager.avs.fluent.models.CloudLinkInner;
-import com.azure.resourcemanager.avs.models.CloudLinkList;
+import com.azure.resourcemanager.avs.implementation.models.CloudLinkList;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -67,56 +67,56 @@ public final class CloudLinksClientImpl implements CloudLinksClient {
* The interface defining all the services for AvsClientCloudLinks to be used by the proxy service to perform REST
* calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AvsClientCloudLinks")
public interface CloudLinksService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept,
+ @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName,
- @BodyParam("application/json") CloudLinkInner cloudLink, @HeaderParam("Accept") String accept,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") CloudLinkInner cloudLink,
Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("cloudLinkName") String cloudLinkName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context);
}
/**
@@ -434,7 +434,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, cloudLink, accept,
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, accept, cloudLink,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -482,7 +482,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, cloudLink, accept,
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, cloudLinkName, accept, cloudLink,
context);
}
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java
index 19d66b038bed..16f1190aa18e 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/CloudLinksImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java
index da07764b672d..ed8f26fde32e 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java
index 7c77d52c280f..ce644b168f91 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClusterZoneListImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
diff --git a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java
index 20a4cd159159..ea0b217f3868 100644
--- a/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java
+++ b/sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/ClustersClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.avs.implementation;
@@ -36,7 +36,7 @@
import com.azure.resourcemanager.avs.fluent.ClustersClient;
import com.azure.resourcemanager.avs.fluent.models.ClusterInner;
import com.azure.resourcemanager.avs.fluent.models.ClusterZoneListInner;
-import com.azure.resourcemanager.avs.models.ClusterList;
+import com.azure.resourcemanager.avs.implementation.models.ClusterList;
import com.azure.resourcemanager.avs.models.ClusterUpdate;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -70,76 +70,76 @@ public final class ClustersClientImpl implements ClustersClient {
* The interface defining all the services for AvsClientClusters to be used by the proxy service to perform REST
* calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "AvsClientClusters")
public interface ClustersService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("privateCloudName") String privateCloudName, @HeaderParam("Accept") String accept,
+ @PathParam("privateCloudName") String privateCloudName, @HeaderParam("accept") String accept,
Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterInner cluster, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, @BodyParam("application/json") ClusterInner cluster, Context context);
@Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterUpdate clusterUpdate, @HeaderParam("Accept") String accept,
+ @HeaderParam("accept") String accept, @BodyParam("application/json") ClusterUpdate clusterUpdate,
Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/listZones")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listZones(@HostParam("$host") String endpoint,
+ Mono> listZones(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("privateCloudName") String privateCloudName, @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("accept") String accept, Context context);
}
/**
@@ -457,7 +457,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, cluster, accept,
+ this.client.getSubscriptionId(), resourceGroupName, privateCloudName, clusterName, accept, cluster,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -505,7 +505,7 @@ private Mono