scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -201,6 +217,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -208,9 +237,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -232,7 +263,7 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile)
.append("-")
.append("com.azure.resourcemanager.avs")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -250,10 +281,15 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile)
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -284,7 +320,11 @@ public AvsManager authenticate(TokenCredential credential, AzureProfile profile)
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -292,7 +332,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Locations. */
+ /**
+ * Gets the resource collection API of Locations.
+ *
+ * @return Resource collection API of Locations.
+ */
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
@@ -300,7 +344,11 @@ public Locations locations() {
return locations;
}
- /** @return Resource collection API of PrivateClouds. */
+ /**
+ * Gets the resource collection API of PrivateClouds. It manages PrivateCloud.
+ *
+ * @return Resource collection API of PrivateClouds.
+ */
public PrivateClouds privateClouds() {
if (this.privateClouds == null) {
this.privateClouds = new PrivateCloudsImpl(clientObject.getPrivateClouds(), this);
@@ -308,7 +356,11 @@ public PrivateClouds privateClouds() {
return privateClouds;
}
- /** @return Resource collection API of Clusters. */
+ /**
+ * Gets the resource collection API of Clusters. It manages Cluster.
+ *
+ * @return Resource collection API of Clusters.
+ */
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
@@ -316,7 +368,11 @@ public Clusters clusters() {
return clusters;
}
- /** @return Resource collection API of Datastores. */
+ /**
+ * Gets the resource collection API of Datastores. It manages Datastore.
+ *
+ * @return Resource collection API of Datastores.
+ */
public Datastores datastores() {
if (this.datastores == null) {
this.datastores = new DatastoresImpl(clientObject.getDatastores(), this);
@@ -324,7 +380,11 @@ public Datastores datastores() {
return datastores;
}
- /** @return Resource collection API of HcxEnterpriseSites. */
+ /**
+ * Gets the resource collection API of HcxEnterpriseSites. It manages HcxEnterpriseSite.
+ *
+ * @return Resource collection API of HcxEnterpriseSites.
+ */
public HcxEnterpriseSites hcxEnterpriseSites() {
if (this.hcxEnterpriseSites == null) {
this.hcxEnterpriseSites = new HcxEnterpriseSitesImpl(clientObject.getHcxEnterpriseSites(), this);
@@ -332,7 +392,11 @@ public HcxEnterpriseSites hcxEnterpriseSites() {
return hcxEnterpriseSites;
}
- /** @return Resource collection API of Authorizations. */
+ /**
+ * 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);
@@ -340,7 +404,11 @@ public Authorizations authorizations() {
return authorizations;
}
- /** @return Resource collection API of GlobalReachConnections. */
+ /**
+ * Gets the resource collection API of GlobalReachConnections. It manages GlobalReachConnection.
+ *
+ * @return Resource collection API of GlobalReachConnections.
+ */
public GlobalReachConnections globalReachConnections() {
if (this.globalReachConnections == null) {
this.globalReachConnections =
@@ -349,7 +417,13 @@ public GlobalReachConnections globalReachConnections() {
return globalReachConnections;
}
- /** @return Resource collection API of WorkloadNetworks. */
+ /**
+ * Gets the resource collection API of WorkloadNetworks. It manages WorkloadNetworkSegment, WorkloadNetworkDhcp,
+ * WorkloadNetworkPortMirroring, WorkloadNetworkVMGroup, WorkloadNetworkDnsService, WorkloadNetworkDnsZone,
+ * WorkloadNetworkPublicIp.
+ *
+ * @return Resource collection API of WorkloadNetworks.
+ */
public WorkloadNetworks workloadNetworks() {
if (this.workloadNetworks == null) {
this.workloadNetworks = new WorkloadNetworksImpl(clientObject.getWorkloadNetworks(), this);
@@ -357,7 +431,11 @@ public WorkloadNetworks workloadNetworks() {
return workloadNetworks;
}
- /** @return Resource collection API of CloudLinks. */
+ /**
+ * 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);
@@ -365,7 +443,11 @@ public CloudLinks cloudLinks() {
return cloudLinks;
}
- /** @return Resource collection API of Addons. */
+ /**
+ * 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);
@@ -373,7 +455,11 @@ public Addons addons() {
return addons;
}
- /** @return Resource collection API of VirtualMachines. */
+ /**
+ * Gets the resource collection API of VirtualMachines.
+ *
+ * @return Resource collection API of VirtualMachines.
+ */
public VirtualMachines virtualMachines() {
if (this.virtualMachines == null) {
this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
@@ -381,7 +467,11 @@ public VirtualMachines virtualMachines() {
return virtualMachines;
}
- /** @return Resource collection API of PlacementPolicies. */
+ /**
+ * 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);
@@ -389,7 +479,11 @@ public PlacementPolicies placementPolicies() {
return placementPolicies;
}
- /** @return Resource collection API of ScriptPackages. */
+ /**
+ * Gets the resource collection API of ScriptPackages.
+ *
+ * @return Resource collection API of ScriptPackages.
+ */
public ScriptPackages scriptPackages() {
if (this.scriptPackages == null) {
this.scriptPackages = new ScriptPackagesImpl(clientObject.getScriptPackages(), this);
@@ -397,7 +491,11 @@ public ScriptPackages scriptPackages() {
return scriptPackages;
}
- /** @return Resource collection API of ScriptCmdlets. */
+ /**
+ * Gets the resource collection API of ScriptCmdlets.
+ *
+ * @return Resource collection API of ScriptCmdlets.
+ */
public ScriptCmdlets scriptCmdlets() {
if (this.scriptCmdlets == null) {
this.scriptCmdlets = new ScriptCmdletsImpl(clientObject.getScriptCmdlets(), this);
@@ -405,7 +503,11 @@ public ScriptCmdlets scriptCmdlets() {
return scriptCmdlets;
}
- /** @return Resource collection API of ScriptExecutions. */
+ /**
+ * 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);
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 6c3bcee6dcbb..56fcc5e42d49 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
@@ -23,7 +23,7 @@ public interface AddonsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of addons.
+ * @return a paged list of addons as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface AddonsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of addons.
+ * @return a paged list of addons as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -48,13 +48,15 @@ public interface AddonsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an addon by name in a private cloud.
+ * @return an addon by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AddonInner get(String resourceGroupName, String privateCloudName, String addonName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String addonName, Context context);
/**
* Get an addon by name in a private cloud.
@@ -62,15 +64,13 @@ public interface AddonsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param addonName Name of the addon for the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an addon by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String addonName, Context context);
+ AddonInner get(String resourceGroupName, String privateCloudName, String addonName);
/**
* Create or update a addon in a private cloud.
@@ -82,7 +82,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an addon resource.
+ * @return the {@link SyncPoller} for polling of an addon resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AddonInner> beginCreateOrUpdate(
@@ -99,7 +99,7 @@ SyncPoller, AddonInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an addon resource.
+ * @return the {@link SyncPoller} for polling of an addon resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AddonInner> beginCreateOrUpdate(
@@ -146,7 +146,7 @@ AddonInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName, String addonName);
@@ -161,7 +161,7 @@ AddonInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 9136a9b1aa51..9e2932349aa1 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
@@ -23,7 +23,7 @@ public interface AuthorizationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of ExpressRoute Circuit Authorizations.
+ * @return a paged list of ExpressRoute Circuit Authorizations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface AuthorizationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of ExpressRoute Circuit Authorizations.
+ * @return a paged list of ExpressRoute Circuit Authorizations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -49,13 +49,15 @@ PagedIterable list(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param authorizationName Name of the ExpressRoute Circuit Authorization in 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 an ExpressRoute Circuit Authorization by name in a private cloud.
+ * @return an ExpressRoute Circuit Authorization by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExpressRouteAuthorizationInner get(String resourceGroupName, String privateCloudName, String authorizationName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String authorizationName, Context context);
/**
* Get an ExpressRoute Circuit Authorization by name in a private cloud.
@@ -63,15 +65,13 @@ PagedIterable list(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param authorizationName Name of the ExpressRoute Circuit Authorization in 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 an ExpressRoute Circuit Authorization by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String authorizationName, Context context);
+ ExpressRouteAuthorizationInner get(String resourceGroupName, String privateCloudName, String authorizationName);
/**
* Create or update an ExpressRoute Circuit Authorization in a private cloud.
@@ -83,7 +83,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return expressRoute Circuit Authorization.
+ * @return the {@link SyncPoller} for polling of expressRoute Circuit Authorization.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExpressRouteAuthorizationInner> beginCreateOrUpdate(
@@ -103,7 +103,7 @@ SyncPoller, ExpressRouteAuthorization
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return expressRoute Circuit Authorization.
+ * @return the {@link SyncPoller} for polling of expressRoute Circuit Authorization.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ExpressRouteAuthorizationInner> beginCreateOrUpdate(
@@ -162,7 +162,7 @@ ExpressRouteAuthorizationInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -178,7 +178,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 5a218fbf79b8..026c015c4d45 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
@@ -23,7 +23,7 @@ public interface CloudLinksClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of cloud links.
+ * @return a paged list of cloud links as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface CloudLinksClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of cloud links.
+ * @return a paged list of cloud links as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -48,13 +48,15 @@ public interface CloudLinksClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param cloudLinkName Name of the cloud link resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an cloud link by name in a private cloud.
+ * @return an cloud link by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CloudLinkInner get(String resourceGroupName, String privateCloudName, String cloudLinkName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String cloudLinkName, Context context);
/**
* Get an cloud link by name in a private cloud.
@@ -62,15 +64,13 @@ public interface CloudLinksClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param cloudLinkName Name of the cloud link resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an cloud link by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String cloudLinkName, Context context);
+ CloudLinkInner get(String resourceGroupName, String privateCloudName, String cloudLinkName);
/**
* Create or update a cloud link in a private cloud.
@@ -82,7 +82,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cloud link resource.
+ * @return the {@link SyncPoller} for polling of a cloud link resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CloudLinkInner> beginCreateOrUpdate(
@@ -99,7 +99,7 @@ SyncPoller, CloudLinkInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cloud link resource.
+ * @return the {@link SyncPoller} for polling of a cloud link resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CloudLinkInner> beginCreateOrUpdate(
@@ -155,7 +155,7 @@ CloudLinkInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -171,7 +171,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 c2aa79632746..83152c1de1ef 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
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.avs.fluent.models.ClusterInner;
+import com.azure.resourcemanager.avs.fluent.models.ClusterZoneListInner;
import com.azure.resourcemanager.avs.models.ClusterUpdate;
/** An instance of this class provides access to all the operations defined in ClustersClient. */
@@ -24,7 +25,7 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of clusters.
+ * @return a paged list of clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -38,7 +39,7 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of clusters.
+ * @return a paged list of clusters as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -49,13 +50,15 @@ public interface ClustersClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a cluster by name in a private cloud.
+ * @return a cluster by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner get(String resourceGroupName, String privateCloudName, String clusterName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String clusterName, Context context);
/**
* Get a cluster by name in a private cloud.
@@ -63,15 +66,13 @@ public interface ClustersClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a cluster by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String clusterName, Context context);
+ ClusterInner get(String resourceGroupName, String privateCloudName, String clusterName);
/**
* Create or update a cluster in a private cloud.
@@ -83,7 +84,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cluster resource.
+ * @return the {@link SyncPoller} for polling of a cluster resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
@@ -100,7 +101,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cluster resource.
+ * @return the {@link SyncPoller} for polling of a cluster resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
@@ -149,7 +150,7 @@ ClusterInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cluster resource.
+ * @return the {@link SyncPoller} for polling of a cluster resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
@@ -166,7 +167,7 @@ SyncPoller, ClusterInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 cluster resource.
+ * @return the {@link SyncPoller} for polling of a cluster resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
@@ -222,7 +223,7 @@ ClusterInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -238,7 +239,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -270,4 +271,34 @@ SyncPoller, Void> beginDelete(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String privateCloudName, String clusterName, Context context);
+
+ /**
+ * List hosts by zone in a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param clusterName Name of the cluster in 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 list of all zones and associated hosts for a cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listZonesWithResponse(
+ String resourceGroupName, String privateCloudName, String clusterName, Context context);
+
+ /**
+ * List hosts by zone in a cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param clusterName Name of the cluster in 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 list of all zones and associated hosts for a cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterZoneListInner listZones(String resourceGroupName, String privateCloudName, String clusterName);
}
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 3d1cc0b234e7..e295cc467074 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
@@ -24,7 +24,7 @@ public interface DatastoresClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of datastores.
+ * @return a paged list of datastores as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, String clusterName);
@@ -39,7 +39,7 @@ public interface DatastoresClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of datastores.
+ * @return a paged list of datastores as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -52,13 +52,15 @@ PagedIterable list(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param datastoreName Name of the datastore in the private cloud cluster.
+ * @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 datastore in a private cloud cluster.
+ * @return a datastore in a private cloud cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatastoreInner get(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, Context context);
/**
* Get a datastore in a private cloud cluster.
@@ -67,15 +69,13 @@ PagedIterable list(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param datastoreName Name of the datastore in the private cloud cluster.
- * @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 datastore in a private cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String clusterName, String datastoreName, Context context);
+ DatastoreInner get(String resourceGroupName, String privateCloudName, String clusterName, String datastoreName);
/**
* Create or update a datastore in a private cloud cluster.
@@ -88,7 +88,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 datastore resource.
+ * @return the {@link SyncPoller} for polling of a datastore resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatastoreInner> beginCreateOrUpdate(
@@ -110,7 +110,7 @@ SyncPoller, DatastoreInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 datastore resource.
+ * @return the {@link SyncPoller} for polling of a datastore resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatastoreInner> beginCreateOrUpdate(
@@ -175,7 +175,7 @@ DatastoreInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -192,7 +192,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 5f3d70b53608..96c635ed10c7 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
@@ -23,7 +23,7 @@ public interface GlobalReachConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of global reach connections.
+ * @return a paged list of global reach connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -37,7 +37,7 @@ public interface GlobalReachConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of global reach connections.
+ * @return a paged list of global reach connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -48,13 +48,15 @@ public interface GlobalReachConnectionsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param globalReachConnectionName Name of the global reach connection in the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a global reach connection by name in a private cloud.
+ * @return a global reach connection by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GlobalReachConnectionInner get(String resourceGroupName, String privateCloudName, String globalReachConnectionName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String globalReachConnectionName, Context context);
/**
* Get a global reach connection by name in a private cloud.
@@ -62,15 +64,13 @@ public interface GlobalReachConnectionsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param globalReachConnectionName Name of the global reach connection in the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a global reach connection by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String globalReachConnectionName, Context context);
+ GlobalReachConnectionInner get(String resourceGroupName, String privateCloudName, String globalReachConnectionName);
/**
* Create or update a global reach connection in a private cloud.
@@ -82,7 +82,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 global reach connection resource.
+ * @return the {@link SyncPoller} for polling of a global reach connection resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, GlobalReachConnectionInner> beginCreateOrUpdate(
@@ -102,7 +102,7 @@ SyncPoller, GlobalReachConnectionInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 global reach connection resource.
+ * @return the {@link SyncPoller} for polling of a global reach connection resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, GlobalReachConnectionInner> beginCreateOrUpdate(
@@ -161,7 +161,7 @@ GlobalReachConnectionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -177,7 +177,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 34f3d77449ed..9fc4c3c23e02 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
@@ -21,7 +21,7 @@ public interface HcxEnterpriseSitesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of HCX Enterprise Sites.
+ * @return a paged list of HCX Enterprise Sites as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -35,7 +35,7 @@ public interface HcxEnterpriseSitesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of HCX Enterprise Sites.
+ * @return a paged list of HCX Enterprise Sites as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -46,13 +46,15 @@ public interface HcxEnterpriseSitesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in 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 an HCX Enterprise Site by name in a private cloud.
+ * @return an HCX Enterprise Site by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HcxEnterpriseSiteInner get(String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName, Context context);
/**
* Get an HCX Enterprise Site by name in a private cloud.
@@ -60,15 +62,13 @@ public interface HcxEnterpriseSitesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in 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 an HCX Enterprise Site by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName, Context context);
+ HcxEnterpriseSiteInner get(String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName);
/**
* Create or update an HCX Enterprise Site in a private cloud.
@@ -77,17 +77,19 @@ Response getWithResponse(
* @param privateCloudName The name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud.
* @param hcxEnterpriseSite The HCX Enterprise Site.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an HCX Enterprise Site resource.
+ * @return an HCX Enterprise Site resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HcxEnterpriseSiteInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String privateCloudName,
String hcxEnterpriseSiteName,
- HcxEnterpriseSiteInner hcxEnterpriseSite);
+ HcxEnterpriseSiteInner hcxEnterpriseSite,
+ Context context);
/**
* Create or update an HCX Enterprise Site in a private cloud.
@@ -96,19 +98,17 @@ HcxEnterpriseSiteInner createOrUpdate(
* @param privateCloudName The name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud.
* @param hcxEnterpriseSite The HCX Enterprise Site.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an HCX Enterprise Site resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ HcxEnterpriseSiteInner createOrUpdate(
String resourceGroupName,
String privateCloudName,
String hcxEnterpriseSiteName,
- HcxEnterpriseSiteInner hcxEnterpriseSite,
- Context context);
+ HcxEnterpriseSiteInner hcxEnterpriseSite);
/**
* Delete an HCX Enterprise Site in a private cloud.
@@ -116,12 +116,15 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in 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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName);
+ Response deleteWithResponse(
+ String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName, Context context);
/**
* Delete an HCX Enterprise Site in a private cloud.
@@ -129,13 +132,10 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName, Context context);
+ void delete(String resourceGroupName, String privateCloudName, String hcxEnterpriseSiteName);
}
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 94c7fab6eb3d..949b1697d0c7 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
@@ -10,6 +10,7 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.avs.fluent.models.QuotaInner;
import com.azure.resourcemanager.avs.fluent.models.TrialInner;
+import com.azure.resourcemanager.avs.models.Sku;
/** An instance of this class provides access to all the operations defined in LocationsClient. */
public interface LocationsClient {
@@ -17,49 +18,50 @@ public interface LocationsClient {
* Return trial status for subscription by region.
*
* @param location Azure region.
+ * @param sku The sku to check for trial availability.
+ * @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.
+ * @return subscription trial availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TrialInner checkTrialAvailability(String location);
+ Response checkTrialAvailabilityWithResponse(String location, Sku sku, Context context);
/**
* Return trial status for subscription by region.
*
* @param location Azure region.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkTrialAvailabilityWithResponse(String location, Context context);
+ TrialInner checkTrialAvailability(String location);
/**
* Return quota for subscription by region.
*
* @param location Azure region.
+ * @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.
+ * @return subscription quotas along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- QuotaInner checkQuotaAvailability(String location);
+ Response checkQuotaAvailabilityWithResponse(String location, Context context);
/**
* Return quota for subscription by region.
*
* @param location Azure region.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkQuotaAvailabilityWithResponse(String location, Context context);
+ 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 090e5625b134..9161726093af 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
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of operations.
+ * @return pageable list of operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of operations.
+ * @return pageable list of operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
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 aa6d77bfb09e..906606c62608 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
@@ -25,7 +25,7 @@ public interface PlacementPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents list of placement policies.
+ * @return represents list of placement policies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, String clusterName);
@@ -40,7 +40,7 @@ public interface PlacementPoliciesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents list of placement policies.
+ * @return represents list of placement policies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -53,14 +53,19 @@ PagedIterable list(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
+ * @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 placement policy by name in a private cloud cluster.
+ * @return a placement policy by name in a private cloud cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PlacementPolicyInner get(
- String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName);
+ Response getWithResponse(
+ String resourceGroupName,
+ String privateCloudName,
+ String clusterName,
+ String placementPolicyName,
+ Context context);
/**
* Get a placement policy by name in a private cloud cluster.
@@ -69,19 +74,14 @@ PlacementPolicyInner get(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
- * @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 placement policy by name in a private cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String privateCloudName,
- String clusterName,
- String placementPolicyName,
- Context context);
+ PlacementPolicyInner get(
+ String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName);
/**
* Create or update a placement policy in a private cloud cluster.
@@ -94,7 +94,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vSphere Distributed Resource Scheduler (DRS) placement policy.
+ * @return the {@link SyncPoller} for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PlacementPolicyInner> beginCreateOrUpdate(
@@ -116,7 +116,7 @@ SyncPoller, PlacementPolicyInner> beginCreateOr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vSphere Distributed Resource Scheduler (DRS) placement policy.
+ * @return the {@link SyncPoller} for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PlacementPolicyInner> beginCreateOrUpdate(
@@ -182,7 +182,7 @@ PlacementPolicyInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vSphere Distributed Resource Scheduler (DRS) placement policy.
+ * @return the {@link SyncPoller} for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PlacementPolicyInner> beginUpdate(
@@ -204,7 +204,7 @@ SyncPoller, PlacementPolicyInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vSphere Distributed Resource Scheduler (DRS) placement policy.
+ * @return the {@link SyncPoller} for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PlacementPolicyInner> beginUpdate(
@@ -269,7 +269,7 @@ PlacementPolicyInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -286,7 +286,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
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 cee4bf38b4e1..35bb4483977c 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
@@ -24,7 +24,7 @@ public interface PrivateCloudsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of private clouds.
+ * @return a paged list of private clouds as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -37,7 +37,7 @@ public interface PrivateCloudsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of private clouds.
+ * @return a paged list of private clouds as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -47,7 +47,7 @@ public interface PrivateCloudsClient {
*
* @throws com.azure.core.management.exception.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 paged list of private clouds.
+ * @return a paged list of private clouds as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -59,7 +59,7 @@ public interface PrivateCloudsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 paged list of private clouds.
+ * @return a paged list of private clouds as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -69,28 +69,28 @@ public interface PrivateCloudsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private cloud.
+ * @return a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateCloudInner getByResourceGroup(String resourceGroupName, String privateCloudName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String privateCloudName, Context context);
/**
* Get a 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 a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String privateCloudName, Context context);
+ PrivateCloudInner getByResourceGroup(String resourceGroupName, String privateCloudName);
/**
* Create or update a private cloud.
@@ -101,7 +101,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 private cloud resource.
+ * @return the {@link SyncPoller} for polling of a private cloud resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateCloudInner> beginCreateOrUpdate(
@@ -117,7 +117,7 @@ SyncPoller, PrivateCloudInner> beginCreateOrUpdate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 private cloud resource.
+ * @return the {@link SyncPoller} for polling of a private cloud resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateCloudInner> beginCreateOrUpdate(
@@ -162,7 +162,7 @@ PrivateCloudInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 private cloud resource.
+ * @return the {@link SyncPoller} for polling of a private cloud resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateCloudInner> beginUpdate(
@@ -178,7 +178,7 @@ SyncPoller, PrivateCloudInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 private cloud resource.
+ * @return the {@link SyncPoller} for polling of a private cloud resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateCloudInner> beginUpdate(
@@ -222,7 +222,7 @@ PrivateCloudInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String privateCloudName);
@@ -236,7 +236,7 @@ PrivateCloudInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @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);
@@ -274,7 +274,7 @@ PrivateCloudInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRotateVcenterPassword(String resourceGroupName, String privateCloudName);
@@ -288,7 +288,7 @@ PrivateCloudInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRotateVcenterPassword(
@@ -327,7 +327,7 @@ SyncPoller, Void> beginRotateVcenterPassword(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRotateNsxtPassword(String resourceGroupName, String privateCloudName);
@@ -341,7 +341,7 @@ SyncPoller, Void> beginRotateVcenterPassword(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRotateNsxtPassword(
@@ -377,26 +377,26 @@ SyncPoller, Void> beginRotateNsxtPassword(
*
* @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 administrative credentials for accessing vCenter and NSX-T along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdminCredentialsInner listAdminCredentials(String resourceGroupName, String privateCloudName);
+ Response listAdminCredentialsWithResponse(
+ String resourceGroupName, String privateCloudName, Context context);
/**
* 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)
- Response listAdminCredentialsWithResponse(
- 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 8d1070a7d7b8..dcd10a29ff64 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
@@ -23,7 +23,7 @@ public interface ScriptCmdletsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of scripts/cmdlets.
+ * @return pageable list of scripts/cmdlets as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, String scriptPackageName);
@@ -39,7 +39,7 @@ public interface ScriptCmdletsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of scripts/cmdlets.
+ * @return pageable list of scripts/cmdlets as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -52,14 +52,19 @@ PagedIterable list(
* @param privateCloudName Name of the private cloud.
* @param scriptPackageName Name of the script package in the private cloud.
* @param scriptCmdletName Name of the script cmdlet resource in the script package in the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a cmdlet available for script execution.
+ * @return a cmdlet available for script execution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScriptCmdletInner get(
- String resourceGroupName, String privateCloudName, String scriptPackageName, String scriptCmdletName);
+ Response getWithResponse(
+ String resourceGroupName,
+ String privateCloudName,
+ String scriptPackageName,
+ String scriptCmdletName,
+ Context context);
/**
* Return information about a script cmdlet resource in a specific package on a private cloud.
@@ -68,17 +73,12 @@ ScriptCmdletInner get(
* @param privateCloudName Name of the private cloud.
* @param scriptPackageName Name of the script package in the private cloud.
* @param scriptCmdletName Name of the script cmdlet resource in the script package in the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a cmdlet available for script execution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String privateCloudName,
- String scriptPackageName,
- String scriptCmdletName,
- Context context);
+ ScriptCmdletInner get(
+ String resourceGroupName, String privateCloudName, String scriptPackageName, String scriptCmdletName);
}
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 35405c52a6f7..3771d9787c94 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
@@ -25,7 +25,7 @@ public interface ScriptExecutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of script executions.
+ * @return pageable list of script executions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -39,7 +39,7 @@ public interface ScriptExecutionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return pageable list of script executions.
+ * @return pageable list of script executions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -50,13 +50,15 @@ public interface ScriptExecutionsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptExecutionName Name of the user-invoked script execution resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an script execution by name in a private cloud.
+ * @return an script execution by name in a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScriptExecutionInner get(String resourceGroupName, String privateCloudName, String scriptExecutionName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String scriptExecutionName, Context context);
/**
* Get an script execution by name in a private cloud.
@@ -64,15 +66,13 @@ public interface ScriptExecutionsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptExecutionName Name of the user-invoked script execution resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an script execution by name in a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String scriptExecutionName, Context context);
+ ScriptExecutionInner get(String resourceGroupName, String privateCloudName, String scriptExecutionName);
/**
* Create or update a script execution in a private cloud.
@@ -84,7 +84,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an instance of a script executed by a user - custom or AVS.
+ * @return the {@link SyncPoller} for polling of an instance of a script executed by a user - custom or AVS.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ScriptExecutionInner> beginCreateOrUpdate(
@@ -104,7 +104,7 @@ SyncPoller, ScriptExecutionInner> beginCreateOr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an instance of a script executed by a user - custom or AVS.
+ * @return the {@link SyncPoller} for polling of an instance of a script executed by a user - custom or AVS.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ScriptExecutionInner> beginCreateOrUpdate(
@@ -163,7 +163,7 @@ ScriptExecutionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -179,7 +179,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
@@ -218,14 +218,21 @@ SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptExecutionName Name of the user-invoked script execution resource.
+ * @param scriptOutputStreamType Name of the desired output stream to return. If not provided, will return all. An
+ * empty array will return nothing.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an instance of a script executed by a user - custom or AVS.
+ * @return an instance of a script executed by a user - custom or AVS along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScriptExecutionInner getExecutionLogs(
- String resourceGroupName, String privateCloudName, String scriptExecutionName);
+ Response getExecutionLogsWithResponse(
+ String resourceGroupName,
+ String privateCloudName,
+ String scriptExecutionName,
+ List scriptOutputStreamType,
+ Context context);
/**
* Return the logs for a script execution resource.
@@ -233,19 +240,12 @@ ScriptExecutionInner getExecutionLogs(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptExecutionName Name of the user-invoked script execution resource.
- * @param scriptOutputStreamType Name of the desired output stream to return. If not provided, will return all. An
- * empty array will return nothing.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an instance of a script executed by a user - custom or AVS.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getExecutionLogsWithResponse(
- String resourceGroupName,
- String privateCloudName,
- String scriptExecutionName,
- List scriptOutputStreamType,
- Context context);
+ ScriptExecutionInner getExecutionLogs(
+ String resourceGroupName, String privateCloudName, String scriptExecutionName);
}
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 dbb509267233..fc101fbe0aee 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
@@ -21,7 +21,7 @@ public interface ScriptPackagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of the available script packages.
+ * @return a list of the available script packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName);
@@ -35,7 +35,7 @@ public interface ScriptPackagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of the available script packages.
+ * @return a list of the available script packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
@@ -46,13 +46,15 @@ public interface ScriptPackagesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptPackageName Name of the script package in the private cloud.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a script package available to run on a private cloud.
+ * @return a script package available to run on a private cloud along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScriptPackageInner get(String resourceGroupName, String privateCloudName, String scriptPackageName);
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, String scriptPackageName, Context context);
/**
* Get a script package available to run on a private cloud.
@@ -60,13 +62,11 @@ public interface ScriptPackagesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param scriptPackageName Name of the script package in the private cloud.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a script package available to run on a private cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String privateCloudName, String scriptPackageName, Context context);
+ ScriptPackageInner get(String resourceGroupName, String privateCloudName, String scriptPackageName);
}
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 b3c9a9c85b86..fc52260fdcee 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
@@ -25,7 +25,7 @@ public interface VirtualMachinesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of Virtual Machines.
+ * @return a list of Virtual Machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String privateCloudName, String clusterName);
@@ -40,7 +40,7 @@ public interface VirtualMachinesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of Virtual Machines.
+ * @return a list of Virtual Machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -53,14 +53,19 @@ PagedIterable list(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param virtualMachineId Virtual Machine identifier.
+ * @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 virtual machine by id in a private cloud cluster.
+ * @return a virtual machine by id in a private cloud cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner get(
- String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId);
+ Response getWithResponse(
+ String resourceGroupName,
+ String privateCloudName,
+ String clusterName,
+ String virtualMachineId,
+ Context context);
/**
* Get a virtual machine by id in a private cloud cluster.
@@ -69,19 +74,14 @@ VirtualMachineInner get(
* @param privateCloudName Name of the private cloud.
* @param clusterName Name of the cluster in the private cloud.
* @param virtualMachineId Virtual Machine identifier.
- * @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 virtual machine by id in a private cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String privateCloudName,
- String clusterName,
- String virtualMachineId,
- Context context);
+ VirtualMachineInner get(
+ String resourceGroupName, String privateCloudName, String clusterName, String virtualMachineId);
/**
* Enable or disable DRS-driven VM movement restriction.
@@ -94,7 +94,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestrictMovement(
@@ -116,7 +116,7 @@ SyncPoller, Void> beginRestrictMovement(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestrictMovement(
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 f8ec201ad949..51ede42b52bc 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
@@ -15,14 +15,74 @@
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsServiceInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsZoneInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkGatewayInner;
+import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPortMirroringInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkPublicIpInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkSegmentInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVMGroupInner;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkVirtualMachineInner;
+import com.azure.resourcemanager.avs.models.WorkloadNetworkName;
/** An instance of this class provides access to all the operations defined in WorkloadNetworksClient. */
public interface WorkloadNetworksClient {
+ /**
+ * Get a private cloud workload network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name for the workload network in the private cloud.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private cloud workload network along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String privateCloudName, WorkloadNetworkName workloadNetworkName, Context context);
+
+ /**
+ * Get a private cloud workload network.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @param workloadNetworkName Name for the workload network in the private cloud.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private cloud workload network.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkloadNetworkInner get(
+ String resourceGroupName, String privateCloudName, WorkloadNetworkName workloadNetworkName);
+
+ /**
+ * List of workload networks in a private cloud.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param privateCloudName Name of the private cloud.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 list of workload networks as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String privateCloudName);
+
+ /**
+ * List of workload networks in a 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 a list of workload networks as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String privateCloudName, Context context);
+
/**
* List of segments in a private cloud workload network.
*
@@ -31,7 +91,7 @@ public interface WorkloadNetworksClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Segments.
+ * @return a list of NSX Segments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSegments(String resourceGroupName, String privateCloudName);
@@ -45,7 +105,7 @@ public interface WorkloadNetworksClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Segments.
+ * @return a list of NSX Segments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSegments(
@@ -57,13 +117,15 @@ PagedIterable listSegments(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param segmentId NSX Segment identifier. Generally the same as the Segment's display name.
+ * @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 segment by id in a private cloud workload network.
+ * @return a segment by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId);
+ Response getSegmentWithResponse(
+ String resourceGroupName, String privateCloudName, String segmentId, Context context);
/**
* Get a segment by id in a private cloud workload network.
@@ -71,15 +133,13 @@ PagedIterable listSegments(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param segmentId NSX Segment identifier. Generally the same as the Segment's display name.
- * @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 segment by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getSegmentWithResponse(
- String resourceGroupName, String privateCloudName, String segmentId, Context context);
+ WorkloadNetworkSegmentInner getSegment(String resourceGroupName, String privateCloudName, String segmentId);
/**
* Create a segment by id in a private cloud workload network.
@@ -91,7 +151,7 @@ Response getSegmentWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments(
@@ -111,7 +171,7 @@ SyncPoller, WorkloadNetworkSegmentInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkSegmentInner> beginCreateSegments(
@@ -171,7 +231,7 @@ WorkloadNetworkSegmentInner createSegments(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments(
@@ -191,7 +251,7 @@ SyncPoller, WorkloadNetworkSegmentInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX Segment.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkSegmentInner> beginUpdateSegments(
@@ -250,7 +310,7 @@ WorkloadNetworkSegmentInner updateSegments(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteSegment(
@@ -266,7 +326,7 @@ SyncPoller, Void> beginDeleteSegment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteSegment(
@@ -307,7 +367,7 @@ SyncPoller, Void> beginDeleteSegment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX dhcp entities.
+ * @return a list of NSX dhcp entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDhcp(String resourceGroupName, String privateCloudName);
@@ -321,7 +381,7 @@ SyncPoller, Void> beginDeleteSegment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX dhcp entities.
+ * @return a list of NSX dhcp entities as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDhcp(
@@ -333,13 +393,15 @@ PagedIterable listDhcp(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name.
* @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 dhcp by id in a private cloud workload network.
+ * @return dhcp by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName);
+ Response getDhcpWithResponse(
+ String resourceGroupName, String dhcpId, String privateCloudName, Context context);
/**
* Get dhcp by id in a private cloud workload network.
@@ -347,15 +409,13 @@ PagedIterable listDhcp(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name.
* @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 dhcp by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getDhcpWithResponse(
- String resourceGroupName, String dhcpId, String privateCloudName, Context context);
+ WorkloadNetworkDhcpInner getDhcp(String resourceGroupName, String dhcpId, String privateCloudName);
/**
* Create dhcp by id in a private cloud workload network.
@@ -367,7 +427,7 @@ Response getDhcpWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(
@@ -384,7 +444,7 @@ SyncPoller, WorkloadNetworkDhcpInner> begin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkDhcpInner> beginCreateDhcp(
@@ -441,7 +501,7 @@ WorkloadNetworkDhcpInner createDhcp(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(
@@ -458,7 +518,7 @@ SyncPoller, WorkloadNetworkDhcpInner> begin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX DHCP.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkDhcpInner> beginUpdateDhcp(
@@ -514,7 +574,7 @@ WorkloadNetworkDhcpInner updateDhcp(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteDhcp(
@@ -530,7 +590,7 @@ SyncPoller, Void> beginDeleteDhcp(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteDhcp(
@@ -571,7 +631,7 @@ SyncPoller, Void> beginDeleteDhcp(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Gateways.
+ * @return a list of NSX Gateways as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listGateways(String resourceGroupName, String privateCloudName);
@@ -585,7 +645,7 @@ SyncPoller, Void> beginDeleteDhcp(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Gateways.
+ * @return a list of NSX Gateways as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listGateways(
@@ -597,13 +657,15 @@ PagedIterable listGateways(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name.
+ * @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 gateway by id in a private cloud workload network.
+ * @return a gateway by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, String gatewayId);
+ Response getGatewayWithResponse(
+ String resourceGroupName, String privateCloudName, String gatewayId, Context context);
/**
* Get a gateway by id in a private cloud workload network.
@@ -611,15 +673,13 @@ PagedIterable listGateways(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name.
- * @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 gateway by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getGatewayWithResponse(
- String resourceGroupName, String privateCloudName, String gatewayId, Context context);
+ WorkloadNetworkGatewayInner getGateway(String resourceGroupName, String privateCloudName, String gatewayId);
/**
* List of port mirroring profiles in a private cloud workload network.
@@ -629,7 +689,7 @@ Response getGatewayWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Port Mirroring.
+ * @return a list of NSX Port Mirroring as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listPortMirroring(
@@ -644,7 +704,7 @@ PagedIterable listPortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Port Mirroring.
+ * @return a list of NSX Port Mirroring as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listPortMirroring(
@@ -656,14 +716,15 @@ PagedIterable listPortMirroring(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
+ * @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 port mirroring profile by id in a private cloud workload network.
+ * @return a port mirroring profile by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkPortMirroringInner getPortMirroring(
- String resourceGroupName, String privateCloudName, String portMirroringId);
+ Response getPortMirroringWithResponse(
+ String resourceGroupName, String privateCloudName, String portMirroringId, Context context);
/**
* Get a port mirroring profile by id in a private cloud workload network.
@@ -671,15 +732,14 @@ WorkloadNetworkPortMirroringInner getPortMirroring(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
- * @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 port mirroring profile by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getPortMirroringWithResponse(
- String resourceGroupName, String privateCloudName, String portMirroringId, Context context);
+ WorkloadNetworkPortMirroringInner getPortMirroring(
+ String resourceGroupName, String privateCloudName, String portMirroringId);
/**
* Create a port mirroring profile by id in a private cloud workload network.
@@ -691,7 +751,7 @@ Response getPortMirroringWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Port Mirroring.
+ * @return the {@link SyncPoller} for polling of nSX Port Mirroring.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
@@ -712,7 +772,7 @@ Response getPortMirroringWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Port Mirroring.
+ * @return the {@link SyncPoller} for polling of nSX Port Mirroring.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
@@ -773,7 +833,7 @@ WorkloadNetworkPortMirroringInner createPortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Port Mirroring.
+ * @return the {@link SyncPoller} for polling of nSX Port Mirroring.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
@@ -794,7 +854,7 @@ WorkloadNetworkPortMirroringInner createPortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSX Port Mirroring.
+ * @return the {@link SyncPoller} for polling of nSX Port Mirroring.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkPortMirroringInner>
@@ -854,7 +914,7 @@ WorkloadNetworkPortMirroringInner updatePortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeletePortMirroring(
@@ -870,7 +930,7 @@ SyncPoller, Void> beginDeletePortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeletePortMirroring(
@@ -912,7 +972,7 @@ void deletePortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX VM Groups.
+ * @return a list of NSX VM Groups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listVMGroups(String resourceGroupName, String privateCloudName);
@@ -926,7 +986,7 @@ void deletePortMirroring(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX VM Groups.
+ * @return a list of NSX VM Groups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listVMGroups(
@@ -938,13 +998,15 @@ PagedIterable listVMGroups(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name.
+ * @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 vm group by id in a private cloud workload network.
+ * @return a vm group by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId);
+ Response getVMGroupWithResponse(
+ String resourceGroupName, String privateCloudName, String vmGroupId, Context context);
/**
* Get a vm group by id in a private cloud workload network.
@@ -952,15 +1014,13 @@ PagedIterable listVMGroups(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name.
- * @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 vm group by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getVMGroupWithResponse(
- String resourceGroupName, String privateCloudName, String vmGroupId, Context context);
+ WorkloadNetworkVMGroupInner getVMGroup(String resourceGroupName, String privateCloudName, String vmGroupId);
/**
* Create a vm group by id in a private cloud workload network.
@@ -972,7 +1032,7 @@ Response getVMGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
@@ -992,7 +1052,7 @@ SyncPoller, WorkloadNetworkVMGroupInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkVMGroupInner> beginCreateVMGroup(
@@ -1052,7 +1112,7 @@ WorkloadNetworkVMGroupInner createVMGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
@@ -1072,7 +1132,7 @@ SyncPoller, WorkloadNetworkVMGroupInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 the {@link SyncPoller} for polling of nSX VM Group.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkloadNetworkVMGroupInner> beginUpdateVMGroup(
@@ -1131,7 +1191,7 @@ WorkloadNetworkVMGroupInner updateVMGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteVMGroup(
@@ -1147,7 +1207,7 @@ SyncPoller, Void> beginDeleteVMGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteVMGroup(
@@ -1188,7 +1248,7 @@ SyncPoller, Void> beginDeleteVMGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Virtual Machines.
+ * @return a list of NSX Virtual Machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listVirtualMachines(
@@ -1203,7 +1263,7 @@ PagedIterable listVirtualMachines(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX Virtual Machines.
+ * @return a list of NSX Virtual Machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listVirtualMachines(
@@ -1215,14 +1275,15 @@ PagedIterable listVirtualMachines(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param virtualMachineId Virtual Machine identifier.
+ * @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 virtual machine by id in a private cloud workload network.
+ * @return a virtual machine by id in a private cloud workload network along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadNetworkVirtualMachineInner getVirtualMachine(
- String resourceGroupName, String privateCloudName, String virtualMachineId);
+ Response getVirtualMachineWithResponse(
+ String resourceGroupName, String privateCloudName, String virtualMachineId, Context context);
/**
* Get a virtual machine by id in a private cloud workload network.
@@ -1230,15 +1291,14 @@ WorkloadNetworkVirtualMachineInner getVirtualMachine(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param virtualMachineId Virtual Machine identifier.
- * @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 virtual machine by id in a private cloud workload network.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getVirtualMachineWithResponse(
- String resourceGroupName, String privateCloudName, String virtualMachineId, Context context);
+ WorkloadNetworkVirtualMachineInner getVirtualMachine(
+ String resourceGroupName, String privateCloudName, String virtualMachineId);
/**
* List of DNS services in a private cloud workload network.
@@ -1248,7 +1308,7 @@ Response getVirtualMachineWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSX DNS Services.
+ * @return a list of NSX DNS Services as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable