scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -163,6 +181,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.
*
@@ -170,9 +201,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;
}
@@ -194,7 +227,7 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.servicefabric")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -212,16 +245,34 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
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(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -233,7 +284,11 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
}
}
- /** @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);
@@ -241,7 +296,11 @@ public Clusters clusters() {
return clusters;
}
- /** @return Resource collection API of ClusterVersions. */
+ /**
+ * Gets the resource collection API of ClusterVersions.
+ *
+ * @return Resource collection API of ClusterVersions.
+ */
public ClusterVersions clusterVersions() {
if (this.clusterVersions == null) {
this.clusterVersions = new ClusterVersionsImpl(clientObject.getClusterVersions(), this);
@@ -249,7 +308,11 @@ public ClusterVersions clusterVersions() {
return clusterVersions;
}
- /** @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);
@@ -257,7 +320,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of ApplicationTypes. */
+ /**
+ * Gets the resource collection API of ApplicationTypes. It manages ApplicationTypeResource.
+ *
+ * @return Resource collection API of ApplicationTypes.
+ */
public ApplicationTypes applicationTypes() {
if (this.applicationTypes == null) {
this.applicationTypes = new ApplicationTypesImpl(clientObject.getApplicationTypes(), this);
@@ -265,7 +332,11 @@ public ApplicationTypes applicationTypes() {
return applicationTypes;
}
- /** @return Resource collection API of ApplicationTypeVersions. */
+ /**
+ * Gets the resource collection API of ApplicationTypeVersions. It manages ApplicationTypeVersionResource.
+ *
+ * @return Resource collection API of ApplicationTypeVersions.
+ */
public ApplicationTypeVersions applicationTypeVersions() {
if (this.applicationTypeVersions == null) {
this.applicationTypeVersions =
@@ -274,7 +345,11 @@ public ApplicationTypeVersions applicationTypeVersions() {
return applicationTypeVersions;
}
- /** @return Resource collection API of Applications. */
+ /**
+ * Gets the resource collection API of Applications. It manages ApplicationResource.
+ *
+ * @return Resource collection API of Applications.
+ */
public Applications applications() {
if (this.applications == null) {
this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
@@ -282,7 +357,11 @@ public Applications applications() {
return applications;
}
- /** @return Resource collection API of Services. */
+ /**
+ * Gets the resource collection API of Services. It manages ServiceResource.
+ *
+ * @return Resource collection API of Services.
+ */
public Services services() {
if (this.services == null) {
this.services = new ServicesImpl(clientObject.getServices(), this);
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypeVersionsClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypeVersionsClient.java
index 95b6614416a5..dd0901d53d09 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypeVersionsClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypeVersionsClient.java
@@ -16,8 +16,10 @@
/** An instance of this class provides access to all the operations defined in ApplicationTypeVersionsClient. */
public interface ApplicationTypeVersionsClient {
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ * Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -34,8 +36,10 @@ ApplicationTypeVersionResourceInner get(
String resourceGroupName, String clusterName, String applicationTypeName, String version);
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ *
Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -46,14 +50,16 @@ ApplicationTypeVersionResourceInner get(
* @throws com.azure.core.management.exception.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 Service Fabric application type version resource created or in the process of being created in the
- * Service Fabric application type name resource.
+ * Service Fabric application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context);
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -63,9 +69,10 @@ 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 application type version resource for the specified application type name resource.
+ * @return the {@link SyncPoller} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -75,7 +82,9 @@ Response getWithResponse(
ApplicationTypeVersionResourceInner parameters);
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -86,9 +95,10 @@ 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 application type version resource for the specified application type name resource.
+ * @return the {@link SyncPoller} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -99,7 +109,9 @@ Response getWithResponse(
Context context);
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -120,7 +132,9 @@ ApplicationTypeVersionResourceInner createOrUpdate(
ApplicationTypeVersionResourceInner parameters);
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ *
Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -143,7 +157,9 @@ ApplicationTypeVersionResourceInner createOrUpdate(
Context context);
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ *
Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -152,14 +168,16 @@ ApplicationTypeVersionResourceInner 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version);
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -169,14 +187,16 @@ 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context);
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -190,7 +210,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationTypeName, String version);
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -206,7 +228,10 @@ void delete(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context);
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ *
Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -223,7 +248,10 @@ ApplicationTypeVersionResourceListInner list(
String resourceGroupName, String clusterName, String applicationTypeName);
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ *
Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -234,7 +262,7 @@ ApplicationTypeVersionResourceListInner list(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type version resources created or in the process of being created in the Service Fabric
- * application type name resource.
+ * application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypesClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypesClient.java
index b4b6d2f5e55d..c645851e9137 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypesClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationTypesClient.java
@@ -16,7 +16,9 @@
/** An instance of this class provides access to all the operations defined in ApplicationTypesClient. */
public interface ApplicationTypesClient {
/**
- * Get a Service Fabric application type name resource created or in the process of being created in the Service
+ * Gets a Service Fabric application type name resource.
+ *
+ * Get a Service Fabric application type name resource created or in the process of being created in the Service
* Fabric cluster resource.
*
* @param resourceGroupName The name of the resource group.
@@ -32,7 +34,9 @@ public interface ApplicationTypesClient {
ApplicationTypeResourceInner get(String resourceGroupName, String clusterName, String applicationTypeName);
/**
- * Get a Service Fabric application type name resource created or in the process of being created in the Service
+ * Gets a Service Fabric application type name resource.
+ *
+ *
Get a Service Fabric application type name resource created or in the process of being created in the Service
* Fabric cluster resource.
*
* @param resourceGroupName The name of the resource group.
@@ -43,14 +47,16 @@ public interface ApplicationTypesClient {
* @throws com.azure.core.management.exception.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 Service Fabric application type name resource created or in the process of being created in the Service
- * Fabric cluster resource.
+ * Fabric cluster resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String clusterName, String applicationTypeName, Context context);
/**
- * Create or update a Service Fabric application type name resource with the specified name.
+ * Creates or updates a Service Fabric application type name resource.
+ *
+ * Create or update a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -69,7 +75,9 @@ ApplicationTypeResourceInner createOrUpdate(
ApplicationTypeResourceInner parameters);
/**
- * Create or update a Service Fabric application type name resource with the specified name.
+ * Creates or updates a Service Fabric application type name resource.
+ *
+ *
Create or update a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -79,7 +87,7 @@ ApplicationTypeResourceInner 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 application type name resource.
+ * @return the application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -90,7 +98,9 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete a Service Fabric application type name resource with the specified name.
+ * Deletes a Service Fabric application type name resource.
+ *
+ * Delete a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -98,14 +108,16 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName);
/**
- * Delete a Service Fabric application type name resource with the specified name.
+ * Deletes a Service Fabric application type name resource.
+ *
+ * Delete a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -114,14 +126,16 @@ 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, Context context);
/**
- * Delete a Service Fabric application type name resource with the specified name.
+ * Deletes a Service Fabric application type name resource.
+ *
+ * Delete a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -134,7 +148,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationTypeName);
/**
- * Delete a Service Fabric application type name resource with the specified name.
+ * Deletes a Service Fabric application type name resource.
+ *
+ * Delete a Service Fabric application type name resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -148,8 +164,10 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationTypeName, Context context);
/**
- * Gets all application type name resources created or in the process of being created in the Service Fabric cluster
- * resource.
+ * Gets the list of application type name resources created in the specified Service Fabric cluster resource.
+ *
+ * Gets all application type name resources created or in the process of being created in the Service Fabric
+ * cluster resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -163,8 +181,10 @@ SyncPoller, Void> beginDelete(
ApplicationTypeResourceListInner list(String resourceGroupName, String clusterName);
/**
- * Gets all application type name resources created or in the process of being created in the Service Fabric cluster
- * resource.
+ * Gets the list of application type name resources created in the specified Service Fabric cluster resource.
+ *
+ * Gets all application type name resources created or in the process of being created in the Service Fabric
+ * cluster resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -173,7 +193,7 @@ SyncPoller, Void> beginDelete(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type name resources created or in the process of being created in the Service Fabric
- * cluster resource.
+ * cluster resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationsClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationsClient.java
index c2132aa03556..4a4794ae634c 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationsClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ApplicationsClient.java
@@ -17,7 +17,9 @@
/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
public interface ApplicationsClient {
/**
- * Get a Service Fabric application resource created or in the process of being created in the Service Fabric
+ * Gets a Service Fabric application resource.
+ *
+ * Get a Service Fabric application resource created or in the process of being created in the Service Fabric
* cluster resource.
*
* @param resourceGroupName The name of the resource group.
@@ -33,7 +35,9 @@ public interface ApplicationsClient {
ApplicationResourceInner get(String resourceGroupName, String clusterName, String applicationName);
/**
- * Get a Service Fabric application resource created or in the process of being created in the Service Fabric
+ * Gets a Service Fabric application resource.
+ *
+ *
Get a Service Fabric application resource created or in the process of being created in the Service Fabric
* cluster resource.
*
* @param resourceGroupName The name of the resource group.
@@ -44,14 +48,16 @@ public interface ApplicationsClient {
* @throws com.azure.core.management.exception.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 Service Fabric application resource created or in the process of being created in the Service Fabric
- * cluster resource.
+ * cluster resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String clusterName, String applicationName, Context context);
/**
- * Create or update a Service Fabric application resource with the specified name.
+ * Creates or updates a Service Fabric application resource.
+ *
+ * Create or update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -60,14 +66,16 @@ 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 application resource.
+ * @return the {@link SyncPoller} for polling of the application resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceInner parameters);
/**
- * Create or update a Service Fabric application resource with the specified name.
+ * Creates or updates a Service Fabric application resource.
+ *
+ * Create or update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -77,9 +85,9 @@ SyncPoller, ApplicationResourceInner> 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 the application resource.
+ * @return the {@link SyncPoller} for polling of the application resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -88,7 +96,9 @@ SyncPoller, ApplicationResourceInner> begin
Context context);
/**
- * Create or update a Service Fabric application resource with the specified name.
+ * Creates or updates a Service Fabric application resource.
+ *
+ * Create or update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -104,7 +114,9 @@ ApplicationResourceInner createOrUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceInner parameters);
/**
- * Create or update a Service Fabric application resource with the specified name.
+ * Creates or updates a Service Fabric application resource.
+ *
+ *
Create or update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -125,7 +137,9 @@ ApplicationResourceInner createOrUpdate(
Context context);
/**
- * Update a Service Fabric application resource with the specified name.
+ * Updates a Service Fabric application resource.
+ *
+ *
Update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -134,14 +148,16 @@ ApplicationResourceInner 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 application resource.
+ * @return the {@link SyncPoller} for polling of the application resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceUpdate parameters);
/**
- * Update a Service Fabric application resource with the specified name.
+ * Updates a Service Fabric application resource.
+ *
+ * Update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -151,9 +167,9 @@ SyncPoller, ApplicationResourceInner> 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 the application resource.
+ * @return the {@link SyncPoller} for polling of the application resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -162,7 +178,9 @@ SyncPoller, ApplicationResourceInner> begin
Context context);
/**
- * Update a Service Fabric application resource with the specified name.
+ * Updates a Service Fabric application resource.
+ *
+ * Update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -178,7 +196,9 @@ ApplicationResourceInner update(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceUpdate parameters);
/**
- * Update a Service Fabric application resource with the specified name.
+ * Updates a Service Fabric application resource.
+ *
+ *
Update a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -199,7 +219,9 @@ ApplicationResourceInner update(
Context context);
/**
- * Delete a Service Fabric application resource with the specified name.
+ * Deletes a Service Fabric application resource.
+ *
+ *
Delete a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -207,14 +229,16 @@ ApplicationResourceInner 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName);
/**
- * Delete a Service Fabric application resource with the specified name.
+ * Deletes a Service Fabric application resource.
+ *
+ * Delete a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -223,14 +247,16 @@ 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, Context context);
/**
- * Delete a Service Fabric application resource with the specified name.
+ * Deletes a Service Fabric application resource.
+ *
+ * Delete a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -243,7 +269,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationName);
/**
- * Delete a Service Fabric application resource with the specified name.
+ * Deletes a Service Fabric application resource.
+ *
+ * Delete a Service Fabric application resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -257,7 +285,10 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationName, Context context);
/**
- * Gets all application resources created or in the process of being created in the Service Fabric cluster resource.
+ * Gets the list of application resources created in the specified Service Fabric cluster resource.
+ *
+ * Gets all application resources created or in the process of being created in the Service Fabric cluster
+ * resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -271,7 +302,10 @@ SyncPoller, Void> beginDelete(
ApplicationResourceListInner list(String resourceGroupName, String clusterName);
/**
- * Gets all application resources created or in the process of being created in the Service Fabric cluster resource.
+ * Gets the list of application resources created in the specified Service Fabric cluster resource.
+ *
+ * Gets all application resources created or in the process of being created in the Service Fabric cluster
+ * resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -280,7 +314,7 @@ SyncPoller, Void> beginDelete(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application resources created or in the process of being created in the Service Fabric cluster
- * resource.
+ * resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClusterVersionsClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClusterVersionsClient.java
index 85144b21b1cc..61cc69e39283 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClusterVersionsClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClusterVersionsClient.java
@@ -14,7 +14,9 @@
/** An instance of this class provides access to all the operations defined in ClusterVersionsClient. */
public interface ClusterVersionsClient {
/**
- * Gets information about an available Service Fabric cluster code version.
+ * Gets information about a Service Fabric cluster code version available in the specified location.
+ *
+ * Gets information about an available Service Fabric cluster code version.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param clusterVersion The cluster code version.
@@ -27,7 +29,9 @@ public interface ClusterVersionsClient {
ClusterCodeVersionsListResultInner get(String location, String clusterVersion);
/**
- * Gets information about an available Service Fabric cluster code version.
+ * Gets information about a Service Fabric cluster code version available in the specified location.
+ *
+ *
Gets information about an available Service Fabric cluster code version.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param clusterVersion The cluster code version.
@@ -35,14 +39,16 @@ public interface ClusterVersionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an available Service Fabric cluster code version.
+ * @return information about an available Service Fabric cluster code version along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String location, String clusterVersion, Context context);
/**
- * Gets information about an available Service Fabric cluster code version by environment.
+ * Gets information about a Service Fabric cluster code version available for the specified environment.
+ *
+ * Gets information about an available Service Fabric cluster code version by environment.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param environment The operating system of the cluster. The default means all.
@@ -57,7 +63,9 @@ ClusterCodeVersionsListResultInner getByEnvironment(
String location, ClusterVersionsEnvironment environment, String clusterVersion);
/**
- * Gets information about an available Service Fabric cluster code version by environment.
+ * Gets information about a Service Fabric cluster code version available for the specified environment.
+ *
+ *
Gets information about an available Service Fabric cluster code version by environment.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param environment The operating system of the cluster. The default means all.
@@ -66,14 +74,17 @@ ClusterCodeVersionsListResultInner getByEnvironment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an available Service Fabric cluster code version by environment.
+ * @return information about an available Service Fabric cluster code version by environment along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByEnvironmentWithResponse(
String location, ClusterVersionsEnvironment environment, String clusterVersion, Context context);
/**
- * Gets all available code versions for Service Fabric cluster resources by location.
+ * Gets the list of Service Fabric cluster code versions available for the specified location.
+ *
+ * Gets all available code versions for Service Fabric cluster resources by location.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -85,20 +96,24 @@ Response getByEnvironmentWithResponse(
ClusterCodeVersionsListResultInner list(String location);
/**
- * Gets all available code versions for Service Fabric cluster resources by location.
+ * Gets the list of Service Fabric cluster code versions available for the specified location.
+ *
+ * Gets all available code versions for Service Fabric cluster resources by location.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param context The context to associate with this 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 all available code versions for Service Fabric cluster resources by location.
+ * @return all available code versions for Service Fabric cluster resources by location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(String location, Context context);
/**
- * Gets all available code versions for Service Fabric cluster resources by environment.
+ * Gets the list of Service Fabric cluster code versions available for the specified environment.
+ *
+ * Gets all available code versions for Service Fabric cluster resources by environment.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param environment The operating system of the cluster. The default means all.
@@ -111,7 +126,9 @@ Response getByEnvironmentWithResponse(
ClusterCodeVersionsListResultInner listByEnvironment(String location, ClusterVersionsEnvironment environment);
/**
- * Gets all available code versions for Service Fabric cluster resources by environment.
+ * Gets the list of Service Fabric cluster code versions available for the specified environment.
+ *
+ * Gets all available code versions for Service Fabric cluster resources by environment.
*
* @param location The location for the cluster code versions. This is different from cluster location.
* @param environment The operating system of the cluster. The default means all.
@@ -119,7 +136,8 @@ Response getByEnvironmentWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all available code versions for Service Fabric cluster resources by environment.
+ * @return all available code versions for Service Fabric cluster resources by environment along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listByEnvironmentWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClustersClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClustersClient.java
index e3acf2d9da58..4674dc0cf83b 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClustersClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ClustersClient.java
@@ -19,7 +19,10 @@
/** An instance of this class provides access to all the operations defined in ClustersClient. */
public interface ClustersClient {
/**
- * Get a Service Fabric cluster resource created or in the process of being created in the specified resource group.
+ * Gets a Service Fabric cluster resource.
+ *
+ * Get a Service Fabric cluster resource created or in the process of being created in the specified resource
+ * group.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -33,7 +36,10 @@ public interface ClustersClient {
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
- * Get a Service Fabric cluster resource created or in the process of being created in the specified resource group.
+ * Gets a Service Fabric cluster resource.
+ *
+ *
Get a Service Fabric cluster resource created or in the process of being created in the specified resource
+ * group.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -42,14 +48,16 @@ public interface ClustersClient {
* @throws com.azure.core.management.exception.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 Service Fabric cluster resource created or in the process of being created in the specified resource
- * group.
+ * group along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context);
/**
- * Create or update a Service Fabric cluster resource with the specified name.
+ * Creates or updates a Service Fabric cluster resource.
+ *
+ * Create or update a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -57,14 +65,16 @@ 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 the cluster resource.
+ * @return the {@link SyncPoller} for polling of the cluster resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters);
/**
- * Create or update a Service Fabric cluster resource with the specified name.
+ * Creates or updates a Service Fabric cluster resource.
+ *
+ * Create or update a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -73,14 +83,16 @@ 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 the cluster resource.
+ * @return the {@link SyncPoller} for polling of the cluster resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
/**
- * Create or update a Service Fabric cluster resource with the specified name.
+ * Creates or updates a Service Fabric cluster resource.
+ *
+ * Create or update a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -94,7 +106,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters);
/**
- * Create or update a Service Fabric cluster resource with the specified name.
+ * Creates or updates a Service Fabric cluster resource.
+ *
+ * Create or update a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -109,7 +123,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
/**
- * Update the configuration of a Service Fabric cluster resource with the specified name.
+ * Updates the configuration of a Service Fabric cluster resource.
+ *
+ * Update the configuration of a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -118,14 +134,16 @@ 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 the cluster resource.
+ * @return the {@link SyncPoller} for polling of the cluster resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterUpdateParameters parameters);
/**
- * Update the configuration of a Service Fabric cluster resource with the specified name.
+ * Updates the configuration of a Service Fabric cluster resource.
+ *
+ * Update the configuration of a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -135,14 +153,16 @@ 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 the cluster resource.
+ * @return the {@link SyncPoller} for polling of the cluster resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterUpdateParameters parameters, Context context);
/**
- * Update the configuration of a Service Fabric cluster resource with the specified name.
+ * Updates the configuration of a Service Fabric cluster resource.
+ *
+ * Update the configuration of a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -157,7 +177,9 @@ SyncPoller, ClusterInner> beginUpdate(
ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdateParameters parameters);
/**
- * Update the configuration of a Service Fabric cluster resource with the specified name.
+ * Updates the configuration of a Service Fabric cluster resource.
+ *
+ * Update the configuration of a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -174,7 +196,9 @@ ClusterInner update(
String resourceGroupName, String clusterName, ClusterUpdateParameters parameters, Context context);
/**
- * Delete a Service Fabric cluster resource with the specified name.
+ * Deletes a Service Fabric cluster resource.
+ *
+ *
Delete a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -186,7 +210,9 @@ ClusterInner update(
void delete(String resourceGroupName, String clusterName);
/**
- * Delete a Service Fabric cluster resource with the specified name.
+ * Deletes a Service Fabric cluster resource.
+ *
+ *
Delete a Service Fabric cluster resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -194,13 +220,15 @@ 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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String clusterName, Context context);
/**
- * Gets all Service Fabric cluster resources created or in the process of being created in the resource group.
+ * Gets the list of Service Fabric cluster resources created in the specified resource group.
+ *
+ * Gets all Service Fabric cluster resources created or in the process of being created in the resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -212,20 +240,25 @@ ClusterInner update(
ClusterListResultInner listByResourceGroup(String resourceGroupName);
/**
- * Gets all Service Fabric cluster resources created or in the process of being created in the resource group.
+ * Gets the list of Service Fabric cluster resources created in the specified resource group.
+ *
+ *
Gets all Service Fabric cluster resources created or in the process of being created in the resource group.
*
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Service Fabric cluster resources created or in the process of being created in the resource group.
+ * @return all Service Fabric cluster resources created or in the process of being created in the resource group
+ * along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listByResourceGroupWithResponse(String resourceGroupName, Context context);
/**
- * Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
+ * Gets the list of Service Fabric cluster resources created in the specified subscription.
+ *
+ * Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -235,19 +268,25 @@ ClusterInner update(
ClusterListResultInner list();
/**
- * Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
+ * Gets the list of Service Fabric cluster resources created in the specified subscription.
+ *
+ *
Gets all Service Fabric cluster resources created or in the process of being created in the subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Service Fabric cluster resources created or in the process of being created in the subscription.
+ * @return all Service Fabric cluster resources created or in the process of being created in the subscription along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
/**
- * If a target is not provided, it will get the minimum and maximum versions available from the current cluster
+ * Operation to get the minimum and maximum upgradable version from the current cluster version, or the required
+ * path to get to the an specific target version.
+ *
+ * If a target is not provided, it will get the minimum and maximum versions available from the current cluster
* version. If a target is given, it will provide the required path to get from the current cluster version to the
* target version.
*
@@ -262,7 +301,10 @@ ClusterInner update(
UpgradableVersionPathResultInner listUpgradableVersions(String resourceGroupName, String clusterName);
/**
- * If a target is not provided, it will get the minimum and maximum versions available from the current cluster
+ * Operation to get the minimum and maximum upgradable version from the current cluster version, or the required
+ * path to get to the an specific target version.
+ *
+ *
If a target is not provided, it will get the minimum and maximum versions available from the current cluster
* version. If a target is given, it will provide the required path to get from the current cluster version to the
* target version.
*
@@ -273,7 +315,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 list of intermediate cluster code versions for an upgrade or downgrade.
+ * @return the list of intermediate cluster code versions for an upgrade or downgrade along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listUpgradableVersionsWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/OperationsClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/OperationsClient.java
index 31dff4796b3c..e901b65091fa 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/OperationsClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/OperationsClient.java
@@ -13,23 +13,29 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
- * Get the list of available Service Fabric resource provider API operations.
+ * Lists all of the available Service Fabric resource provider API operations.
+ *
+ * Get the list of available Service Fabric resource provider API operations.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of available Service Fabric resource provider API operations.
+ * @return the list of available Service Fabric resource provider API operations as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
- * Get the list of available Service Fabric resource provider API operations.
+ * Lists all of the available Service Fabric resource provider API operations.
+ *
+ * Get the list of available Service Fabric resource provider API operations.
*
* @param context The context to associate with this 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 list of available Service Fabric resource provider API operations.
+ * @return the list of available Service Fabric resource provider API operations as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ServicesClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ServicesClient.java
index 8a6e3e36e034..8154b1cc26e5 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ServicesClient.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ServicesClient.java
@@ -17,7 +17,9 @@
/** An instance of this class provides access to all the operations defined in ServicesClient. */
public interface ServicesClient {
/**
- * Get a Service Fabric service resource created or in the process of being created in the Service Fabric
+ * Gets a Service Fabric service resource.
+ *
+ * Get a Service Fabric service resource created or in the process of being created in the Service Fabric
* application resource.
*
* @param resourceGroupName The name of the resource group.
@@ -34,7 +36,9 @@ public interface ServicesClient {
ServiceResourceInner get(String resourceGroupName, String clusterName, String applicationName, String serviceName);
/**
- * Get a Service Fabric service resource created or in the process of being created in the Service Fabric
+ * Gets a Service Fabric service resource.
+ *
+ *
Get a Service Fabric service resource created or in the process of being created in the Service Fabric
* application resource.
*
* @param resourceGroupName The name of the resource group.
@@ -46,14 +50,16 @@ public interface ServicesClient {
* @throws com.azure.core.management.exception.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 Service Fabric service resource created or in the process of being created in the Service Fabric
- * application resource.
+ * application resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String clusterName, String applicationName, String serviceName, Context context);
/**
- * Create or update a Service Fabric service resource with the specified name.
+ * Creates or updates a Service Fabric service resource.
+ *
+ * Create or update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -63,9 +69,9 @@ 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 service resource.
+ * @return the {@link SyncPoller} for polling of the service resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -74,7 +80,9 @@ SyncPoller, ServiceResourceInner> beginCreateOr
ServiceResourceInner parameters);
/**
- * Create or update a Service Fabric service resource with the specified name.
+ * Creates or updates a Service Fabric service resource.
+ *
+ * Create or update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -85,9 +93,9 @@ SyncPoller, ServiceResourceInner> 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 the service resource.
+ * @return the {@link SyncPoller} for polling of the service resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -97,7 +105,9 @@ SyncPoller, ServiceResourceInner> beginCreateOr
Context context);
/**
- * Create or update a Service Fabric service resource with the specified name.
+ * Creates or updates a Service Fabric service resource.
+ *
+ * Create or update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -118,7 +128,9 @@ ServiceResourceInner createOrUpdate(
ServiceResourceInner parameters);
/**
- * Create or update a Service Fabric service resource with the specified name.
+ * Creates or updates a Service Fabric service resource.
+ *
+ *
Create or update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -141,7 +153,9 @@ ServiceResourceInner createOrUpdate(
Context context);
/**
- * Update a Service Fabric service resource with the specified name.
+ * Updates a Service Fabric service resource.
+ *
+ *
Update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -151,9 +165,9 @@ ServiceResourceInner 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 service resource.
+ * @return the {@link SyncPoller} for polling of the service resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -162,7 +176,9 @@ SyncPoller, ServiceResourceInner> beginUpdate(
ServiceResourceUpdate parameters);
/**
- * Update a Service Fabric service resource with the specified name.
+ * Updates a Service Fabric service resource.
+ *
+ * Update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -173,9 +189,9 @@ SyncPoller, ServiceResourceInner> 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 the service resource.
+ * @return the {@link SyncPoller} for polling of the service resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -185,7 +201,9 @@ SyncPoller, ServiceResourceInner> beginUpdate(
Context context);
/**
- * Update a Service Fabric service resource with the specified name.
+ * Updates a Service Fabric service resource.
+ *
+ * Update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -206,7 +224,9 @@ ServiceResourceInner update(
ServiceResourceUpdate parameters);
/**
- * Update a Service Fabric service resource with the specified name.
+ * Updates a Service Fabric service resource.
+ *
+ *
Update a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -229,7 +249,9 @@ ServiceResourceInner update(
Context context);
/**
- * Delete a Service Fabric service resource with the specified name.
+ * Deletes a Service Fabric service resource.
+ *
+ *
Delete a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -238,14 +260,16 @@ ServiceResourceInner 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, String serviceName);
/**
- * Delete a Service Fabric service resource with the specified name.
+ * Deletes a Service Fabric service resource.
+ *
+ * Delete a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -255,14 +279,16 @@ 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, String serviceName, Context context);
/**
- * Delete a Service Fabric service resource with the specified name.
+ * Deletes a Service Fabric service resource.
+ *
+ * Delete a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -276,7 +302,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String clusterName, String applicationName, String serviceName);
/**
- * Delete a Service Fabric service resource with the specified name.
+ * Deletes a Service Fabric service resource.
+ *
+ * Delete a Service Fabric service resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -292,7 +320,10 @@ void delete(
String resourceGroupName, String clusterName, String applicationName, String serviceName, Context context);
/**
- * Gets all service resources created or in the process of being created in the Service Fabric application resource.
+ * Gets the list of service resources created in the specified Service Fabric application resource.
+ *
+ *
Gets all service resources created or in the process of being created in the Service Fabric application
+ * resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -307,7 +338,10 @@ void delete(
ServiceResourceListInner list(String resourceGroupName, String clusterName, String applicationName);
/**
- * Gets all service resources created or in the process of being created in the Service Fabric application resource.
+ * Gets the list of service resources created in the specified Service Fabric application resource.
+ *
+ *
Gets all service resources created or in the process of being created in the Service Fabric application
+ * resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -317,7 +351,7 @@ void delete(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all service resources created or in the process of being created in the Service Fabric application
- * resource.
+ * resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceInner.java
index 003016cc82e2..726facce1d55 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceInner.java
@@ -7,12 +7,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ApplicationMetricDescription;
import com.azure.resourcemanager.servicefabric.models.ApplicationUpgradePolicy;
import com.azure.resourcemanager.servicefabric.models.ApplicationUserAssignedIdentity;
import com.azure.resourcemanager.servicefabric.models.ManagedIdentity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -21,8 +19,6 @@
/** The application resource. */
@Fluent
public final class ApplicationResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationResourceInner.class);
-
/*
* Describes the managed identities for an Azure resource.
*/
@@ -36,8 +32,7 @@ public final class ApplicationResourceInner extends ProxyResource {
private ApplicationResourceProperties innerProperties;
/*
- * It will be deprecated in New API, resource location depends on the
- * parent resource.
+ * It will be deprecated in New API, resource location depends on the parent resource.
*/
@JsonProperty(value = "location")
private String location;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceListInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceListInner.java
index 740db258de6d..491df70b3d42 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceListInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceListInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list of application resources. */
@Fluent
public final class ApplicationResourceListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationResourceListInner.class);
-
/*
* The value property.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceProperties.java
index af4faf65d772..2335f870a2c4 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceProperties.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ApplicationMetricDescription;
import com.azure.resourcemanager.servicefabric.models.ApplicationUpgradePolicy;
import com.azure.resourcemanager.servicefabric.models.ApplicationUserAssignedIdentity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -17,11 +15,8 @@
/** The application resource properties. */
@Fluent
public final class ApplicationResourceProperties extends ApplicationResourceUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationResourceProperties.class);
-
/*
- * The current deployment or provisioning state, which only appears in the
- * response
+ * The current deployment or provisioning state, which only appears in the response
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceUpdateProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceUpdateProperties.java
index da9c28d7f94d..f7adb98b3e84 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceUpdateProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationResourceUpdateProperties.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ApplicationMetricDescription;
import com.azure.resourcemanager.servicefabric.models.ApplicationUpgradePolicy;
import com.azure.resourcemanager.servicefabric.models.ApplicationUserAssignedIdentity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -18,18 +16,15 @@
/** The application resource properties for patch operations. */
@Fluent
public class ApplicationResourceUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationResourceUpdateProperties.class);
-
/*
- * The version of the application type as defined in the application
- * manifest.
+ * The version of the application type as defined in the application manifest.
*/
@JsonProperty(value = "typeVersion")
private String typeVersion;
/*
- * List of application parameters with overridden values from their default
- * values specified in the application manifest.
+ * List of application parameters with overridden values from their default values specified in the application
+ * manifest.
*/
@JsonProperty(value = "parameters")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
@@ -42,21 +37,18 @@ public class ApplicationResourceUpdateProperties {
private ApplicationUpgradePolicy upgradePolicy;
/*
- * The minimum number of nodes where Service Fabric will reserve capacity
- * for this application. Note that this does not mean that the services of
- * this application will be placed on all of those nodes. If this property
- * is set to zero, no capacity will be reserved. The value of this property
- * cannot be more than the value of the MaximumNodes property.
+ * The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does
+ * not mean that the services of this application will be placed on all of those nodes. If this property is set to
+ * zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes
+ * property.
*/
@JsonProperty(value = "minimumNodes")
private Long minimumNodes;
/*
- * The maximum number of nodes where Service Fabric will reserve capacity
- * for this application. Note that this does not mean that the services of
- * this application will be placed on all of those nodes. By default, the
- * value of this property is zero and it means that the services can be
- * placed on any node.
+ * The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does
+ * not mean that the services of this application will be placed on all of those nodes. By default, the value of
+ * this property is zero and it means that the services can be placed on any node.
*/
@JsonProperty(value = "maximumNodes")
private Long maximumNodes;
@@ -74,8 +66,7 @@ public class ApplicationResourceUpdateProperties {
private List metrics;
/*
- * List of user assigned identities for the application, each mapped to a
- * friendly name.
+ * List of user assigned identities for the application, each mapped to a friendly name.
*/
@JsonProperty(value = "managedIdentities")
private List managedIdentities;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceInner.java
index 7cbfa46a7341..9c6263706f39 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceInner.java
@@ -7,8 +7,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -16,8 +14,6 @@
/** The application type name resource. */
@Fluent
public final class ApplicationTypeResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeResourceInner.class);
-
/*
* The application type name properties
*/
@@ -25,8 +21,7 @@ public final class ApplicationTypeResourceInner extends ProxyResource {
private ApplicationTypeResourceProperties innerProperties;
/*
- * It will be deprecated in New API, resource location depends on the
- * parent resource.
+ * It will be deprecated in New API, resource location depends on the parent resource.
*/
@JsonProperty(value = "location")
private String location;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceListInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceListInner.java
index afeaccfa1942..8775d4a28fa5 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceListInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceListInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list of application type names. */
@Fluent
public final class ApplicationTypeResourceListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeResourceListInner.class);
-
/*
* The value property.
*/
@@ -22,8 +18,7 @@ public final class ApplicationTypeResourceListInner {
private List value;
/*
- * URL to get the next set of application type list results if there are
- * any.
+ * URL to get the next set of application type list results if there are any.
*/
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceProperties.java
index 861f248e4bce..0d22a1c96382 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeResourceProperties.java
@@ -5,18 +5,13 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The application type name properties. */
@Immutable
public final class ApplicationTypeResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeResourceProperties.class);
-
/*
- * The current deployment or provisioning state, which only appears in the
- * response.
+ * The current deployment or provisioning state, which only appears in the response.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceInner.java
index d7ed399e6beb..d7a63e29f2d2 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceInner.java
@@ -7,8 +7,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -16,8 +14,6 @@
/** An application type version resource for the specified application type name resource. */
@Fluent
public final class ApplicationTypeVersionResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeVersionResourceInner.class);
-
/*
* The properties of the application type version resource.
*/
@@ -25,8 +21,7 @@ public final class ApplicationTypeVersionResourceInner extends ProxyResource {
private ApplicationTypeVersionResourceProperties innerProperties;
/*
- * It will be deprecated in New API, resource location depends on the
- * parent resource.
+ * It will be deprecated in New API, resource location depends on the parent resource.
*/
@JsonProperty(value = "location")
private String location;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceListInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceListInner.java
index 3684625c7bc3..b65f81478e9f 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceListInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceListInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list of application type version resources for the specified application type name resource. */
@Fluent
public final class ApplicationTypeVersionResourceListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeVersionResourceListInner.class);
-
/*
* The value property.
*/
@@ -22,8 +18,7 @@ public final class ApplicationTypeVersionResourceListInner {
private List value;
/*
- * URL to get the next set of application type version list results if
- * there are any.
+ * URL to get the next set of application type version list results if there are any.
*/
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceProperties.java
index 1f68f3b538d1..d47638a92549 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ApplicationTypeVersionResourceProperties.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -14,11 +13,8 @@
/** The properties of the application type version resource. */
@Fluent
public final class ApplicationTypeVersionResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeVersionResourceProperties.class);
-
/*
- * The current deployment or provisioning state, which only appears in the
- * response
+ * The current deployment or provisioning state, which only appears in the response
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
@@ -30,8 +26,7 @@ public final class ApplicationTypeVersionResourceProperties {
private String appPackageUrl;
/*
- * List of application type parameters that can be overridden when creating
- * or updating the application.
+ * List of application type parameters that can be overridden when creating or updating the application.
*/
@JsonProperty(value = "defaultParameterList", access = JsonProperty.Access.WRITE_ONLY)
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
@@ -84,10 +79,12 @@ public Map defaultParameterList() {
*/
public void validate() {
if (appPackageUrl() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property appPackageUrl in model ApplicationTypeVersionResourceProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationTypeVersionResourceProperties.class);
}
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterCodeVersionsListResultInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterCodeVersionsListResultInner.java
index 77400a50a509..d1a4b7248906 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterCodeVersionsListResultInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterCodeVersionsListResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ClusterCodeVersionsResult;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list results of the Service Fabric runtime versions. */
@Fluent
public final class ClusterCodeVersionsListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterCodeVersionsListResultInner.class);
-
/*
* The value property.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterInner.java
index 555fe036d905..2ebd9840c782 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterInner.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.AddOnFeatures;
import com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionsCleanupPolicy;
import com.azure.resourcemanager.servicefabric.models.AzureActiveDirectory;
@@ -27,7 +26,6 @@
import com.azure.resourcemanager.servicefabric.models.SfZonalUpgradeMode;
import com.azure.resourcemanager.servicefabric.models.UpgradeMode;
import com.azure.resourcemanager.servicefabric.models.VmssZonalUpgradeMode;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -36,8 +34,6 @@
/** The cluster resource. */
@Fluent
public final class ClusterInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterInner.class);
-
/*
* The cluster resource properties
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterListResultInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterListResultInner.java
index 26d90cb9688e..b24c92d831a0 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterListResultInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterListResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Cluster list results. */
@Fluent
public final class ClusterListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterListResultInner.class);
-
/*
* The value property.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterProperties.java
index cbb07f7c5f81..910ac14458ce 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterProperties.java
@@ -25,7 +25,6 @@
import com.azure.resourcemanager.servicefabric.models.SfZonalUpgradeMode;
import com.azure.resourcemanager.servicefabric.models.UpgradeMode;
import com.azure.resourcemanager.servicefabric.models.VmssZonalUpgradeMode;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -33,8 +32,6 @@
/** Describes the cluster resource properties. */
@Fluent
public final class ClusterProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterProperties.class);
-
/*
* The list of add-on features to enable in the cluster.
*/
@@ -54,47 +51,41 @@ public final class ClusterProperties {
private AzureActiveDirectory azureActiveDirectory;
/*
- * The certificate to use for securing the cluster. The certificate
- * provided will be used for node to node security within the cluster, SSL
- * certificate for cluster management endpoint and default admin client.
+ * The certificate to use for securing the cluster. The certificate provided will be used for node to node security
+ * within the cluster, SSL certificate for cluster management endpoint and default admin client.
*/
@JsonProperty(value = "certificate")
private CertificateDescription certificate;
/*
- * Describes a list of server certificates referenced by common name that
- * are used to secure the cluster.
+ * Describes a list of server certificates referenced by common name that are used to secure the cluster.
*/
@JsonProperty(value = "certificateCommonNames")
private ServerCertificateCommonNames certificateCommonNames;
/*
- * The list of client certificates referenced by common name that are
- * allowed to manage the cluster.
+ * The list of client certificates referenced by common name that are allowed to manage the cluster.
*/
@JsonProperty(value = "clientCertificateCommonNames")
private List clientCertificateCommonNames;
/*
- * The list of client certificates referenced by thumbprint that are
- * allowed to manage the cluster.
+ * The list of client certificates referenced by thumbprint that are allowed to manage the cluster.
*/
@JsonProperty(value = "clientCertificateThumbprints")
private List clientCertificateThumbprints;
/*
- * The Service Fabric runtime version of the cluster. This property can
- * only by set the user when **upgradeMode** is set to 'Manual'. To get
- * list of available Service Fabric versions for new clusters use
- * [ClusterVersion API](./ClusterVersion.md). To get the list of available
- * version for existing clusters use **availableClusterVersions**.
+ * The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode**
+ * is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion
+ * API](./ClusterVersion.md). To get the list of available version for existing clusters use
+ * **availableClusterVersions**.
*/
@JsonProperty(value = "clusterCodeVersion")
private String clusterCodeVersion;
/*
- * The Azure Resource Provider endpoint. A system service in the cluster
- * connects to this endpoint.
+ * The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint.
*/
@JsonProperty(value = "clusterEndpoint", access = JsonProperty.Access.WRITE_ONLY)
private String clusterEndpoint;
@@ -108,30 +99,21 @@ public final class ClusterProperties {
/*
* The current state of the cluster.
*
- * - WaitingForNodes - Indicates that the cluster resource is created and
- * the resource provider is waiting for Service Fabric VM extension to boot
- * up and report to it.
- * - Deploying - Indicates that the Service Fabric runtime is being
- * installed on the VMs. Cluster resource will be in this state until the
- * cluster boots up and system services are up.
- * - BaselineUpgrade - Indicates that the cluster is upgrading to
- * establishes the cluster version. This upgrade is automatically initiated
- * when the cluster boots up for the first time.
- * - UpdatingUserConfiguration - Indicates that the cluster is being
- * upgraded with the user provided configuration.
- * - UpdatingUserCertificate - Indicates that the cluster is being upgraded
- * with the user provided certificate.
- * - UpdatingInfrastructure - Indicates that the cluster is being upgraded
- * with the latest Service Fabric runtime version. This happens only when
- * the **upgradeMode** is set to 'Automatic'.
- * - EnforcingClusterVersion - Indicates that cluster is on a different
- * version than expected and the cluster is being upgraded to the expected
- * version.
- * - UpgradeServiceUnreachable - Indicates that the system service in the
- * cluster is no longer polling the Resource Provider. Clusters in this
- * state cannot be managed by the Resource Provider.
- * - AutoScale - Indicates that the ReliabilityLevel of the cluster is
- * being adjusted.
+ * - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for
+ * Service Fabric VM extension to boot up and report to it.
+ * - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be
+ * in this state until the cluster boots up and system services are up.
+ * - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is
+ * automatically initiated when the cluster boots up for the first time.
+ * - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.
+ * - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.
+ * - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime
+ * version. This happens only when the **upgradeMode** is set to 'Automatic'.
+ * - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is
+ * being upgraded to the expected version.
+ * - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource
+ * Provider. Clusters in this state cannot be managed by the Resource Provider.
+ * - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.
* - Ready - Indicates that the cluster is in a stable state.
*
*/
@@ -139,8 +121,7 @@ public final class ClusterProperties {
private ClusterState clusterState;
/*
- * The storage account information for storing Service Fabric diagnostic
- * logs.
+ * The storage account information for storing Service Fabric diagnostic logs.
*/
@JsonProperty(value = "diagnosticsStorageAccountConfig")
private DiagnosticsStorageAccountConfig diagnosticsStorageAccountConfig;
@@ -176,18 +157,16 @@ public final class ClusterProperties {
private ProvisioningState provisioningState;
/*
- * The reliability level sets the replica set size of system services.
- * Learn about
+ * The reliability level sets the replica set size of system services. Learn about
* [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).
*
- * - None - Run the System services with a target replica set count of 1.
- * This should only be used for test clusters.
- * - Bronze - Run the System services with a target replica set count of 3.
- * This should only be used for test clusters.
+ * - None - Run the System services with a target replica set count of 1. This should only be used for test
+ * clusters.
+ * - Bronze - Run the System services with a target replica set count of 3. This should only be used for test
+ * clusters.
* - Silver - Run the System services with a target replica set count of 5.
* - Gold - Run the System services with a target replica set count of 7.
- * - Platinum - Run the System services with a target replica set count of
- * 9.
+ * - Platinum - Run the System services with a target replica set count of 9.
*
*/
@JsonProperty(value = "reliabilityLevel")
@@ -200,8 +179,7 @@ public final class ClusterProperties {
private CertificateDescription reverseProxyCertificate;
/*
- * Describes a list of server certificates referenced by common name that
- * are used to secure the cluster.
+ * Describes a list of server certificates referenced by common name that are used to secure the cluster.
*/
@JsonProperty(value = "reverseProxyCertificateCommonNames")
private ServerCertificateCommonNames reverseProxyCertificateCommonNames;
@@ -213,8 +191,7 @@ public final class ClusterProperties {
private ClusterUpgradePolicy upgradeDescription;
/*
- * The upgrade mode of the cluster when new Service Fabric runtime version
- * is available.
+ * The upgrade mode of the cluster when new Service Fabric runtime version is available.
*/
@JsonProperty(value = "upgradeMode")
private UpgradeMode upgradeMode;
@@ -226,24 +203,21 @@ public final class ClusterProperties {
private ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy;
/*
- * The VM image VMSS has been configured with. Generic names such as
- * Windows or Linux can be used.
+ * The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used.
*/
@JsonProperty(value = "vmImage")
private String vmImage;
/*
- * This property controls the logical grouping of VMs in upgrade domains
- * (UDs). This property can't be modified if a node type with multiple
- * Availability Zones is already present in the cluster.
+ * This property controls the logical grouping of VMs in upgrade domains (UDs). This property can't be modified if
+ * a node type with multiple Availability Zones is already present in the cluster.
*/
@JsonProperty(value = "sfZonalUpgradeMode")
private SfZonalUpgradeMode sfZonalUpgradeMode;
/*
- * This property defines the upgrade mode for the virtual machine scale
- * set, it is mandatory if a node type with multiple Availability Zones is
- * added.
+ * This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with
+ * multiple Availability Zones is added.
*/
@JsonProperty(value = "vmssZonalUpgradeMode")
private VmssZonalUpgradeMode vmssZonalUpgradeMode;
@@ -255,25 +229,22 @@ public final class ClusterProperties {
private Boolean infrastructureServiceManager;
/*
- * Indicates when new cluster runtime version upgrades will be applied
- * after they are released. By default is Wave0. Only applies when
- * **upgradeMode** is set to 'Automatic'.
+ * Indicates when new cluster runtime version upgrades will be applied after they are released. By default is
+ * Wave0. Only applies when **upgradeMode** is set to 'Automatic'.
*/
@JsonProperty(value = "upgradeWave")
private ClusterUpgradeCadence upgradeWave;
/*
- * Indicates the start date and time to pause automatic runtime version
- * upgrades on the cluster for an specific period of time on the cluster
- * (UTC).
+ * Indicates the start date and time to pause automatic runtime version upgrades on the cluster for an specific
+ * period of time on the cluster (UTC).
*/
@JsonProperty(value = "upgradePauseStartTimestampUtc")
private OffsetDateTime upgradePauseStartTimestampUtc;
/*
- * Indicates the end date and time to pause automatic runtime version
- * upgrades on the cluster for an specific period of time on the cluster
- * (UTC).
+ * Indicates the end date and time to pause automatic runtime version upgrades on the cluster for an specific
+ * period of time on the cluster (UTC).
*/
@JsonProperty(value = "upgradePauseEndTimestampUtc")
private OffsetDateTime upgradePauseEndTimestampUtc;
@@ -976,13 +947,13 @@ public void validate() {
fabricSettings().forEach(e -> e.validate());
}
if (managementEndpoint() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property managementEndpoint in model ClusterProperties"));
}
if (nodeTypes() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property nodeTypes in model ClusterProperties"));
} else {
@@ -1004,4 +975,6 @@ public void validate() {
notifications().forEach(e -> e.validate());
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ClusterProperties.class);
}
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterPropertiesUpdateParameters.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterPropertiesUpdateParameters.java
index a76d143e7f90..717ce1fce052 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterPropertiesUpdateParameters.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterPropertiesUpdateParameters.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.AddOnFeatures;
import com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionsCleanupPolicy;
import com.azure.resourcemanager.servicefabric.models.CertificateDescription;
@@ -21,7 +20,6 @@
import com.azure.resourcemanager.servicefabric.models.SfZonalUpgradeMode;
import com.azure.resourcemanager.servicefabric.models.UpgradeMode;
import com.azure.resourcemanager.servicefabric.models.VmssZonalUpgradeMode;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -29,8 +27,6 @@
/** Describes the cluster resource properties that can be updated during PATCH operation. */
@Fluent
public final class ClusterPropertiesUpdateParameters {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPropertiesUpdateParameters.class);
-
/*
* The list of add-on features to enable in the cluster.
*/
@@ -38,40 +34,37 @@ public final class ClusterPropertiesUpdateParameters {
private List addOnFeatures;
/*
- * The certificate to use for securing the cluster. The certificate
- * provided will be used for node to node security within the cluster, SSL
- * certificate for cluster management endpoint and default admin client.
+ * The certificate to use for securing the cluster. The certificate provided will be used for node to node
+ * security within the cluster, SSL certificate for cluster management endpoint and default admin client.
*/
@JsonProperty(value = "certificate")
private CertificateDescription certificate;
/*
- * Describes a list of server certificates referenced by common name that
- * are used to secure the cluster.
+ * Describes a list of server certificates referenced by common name that are used to secure the cluster.
*/
@JsonProperty(value = "certificateCommonNames")
private ServerCertificateCommonNames certificateCommonNames;
/*
- * The list of client certificates referenced by common name that are
- * allowed to manage the cluster. This will overwrite the existing list.
+ * The list of client certificates referenced by common name that are allowed to manage the cluster. This will
+ * overwrite the existing list.
*/
@JsonProperty(value = "clientCertificateCommonNames")
private List clientCertificateCommonNames;
/*
- * The list of client certificates referenced by thumbprint that are
- * allowed to manage the cluster. This will overwrite the existing list.
+ * The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will
+ * overwrite the existing list.
*/
@JsonProperty(value = "clientCertificateThumbprints")
private List clientCertificateThumbprints;
/*
- * The Service Fabric runtime version of the cluster. This property can
- * only by set the user when **upgradeMode** is set to 'Manual'. To get
- * list of available Service Fabric versions for new clusters use
- * [ClusterVersion API](./ClusterVersion.md). To get the list of available
- * version for existing clusters use **availableClusterVersions**.
+ * The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode**
+ * is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion
+ * API](./ClusterVersion.md). To get the list of available version for existing clusters use
+ * **availableClusterVersions**.
*/
@JsonProperty(value = "clusterCodeVersion")
private String clusterCodeVersion;
@@ -83,32 +76,28 @@ public final class ClusterPropertiesUpdateParameters {
private Boolean eventStoreServiceEnabled;
/*
- * The list of custom fabric settings to configure the cluster. This will
- * overwrite the existing list.
+ * The list of custom fabric settings to configure the cluster. This will overwrite the existing list.
*/
@JsonProperty(value = "fabricSettings")
private List fabricSettings;
/*
- * The list of node types in the cluster. This will overwrite the existing
- * list.
+ * The list of node types in the cluster. This will overwrite the existing list.
*/
@JsonProperty(value = "nodeTypes")
private List nodeTypes;
/*
- * The reliability level sets the replica set size of system services.
- * Learn about
+ * The reliability level sets the replica set size of system services. Learn about
* [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity).
*
- * - None - Run the System services with a target replica set count of 1.
- * This should only be used for test clusters.
- * - Bronze - Run the System services with a target replica set count of 3.
- * This should only be used for test clusters.
+ * - None - Run the System services with a target replica set count of 1. This should only be used for test
+ * clusters.
+ * - Bronze - Run the System services with a target replica set count of 3. This should only be used for test
+ * clusters.
* - Silver - Run the System services with a target replica set count of 5.
* - Gold - Run the System services with a target replica set count of 7.
- * - Platinum - Run the System services with a target replica set count of
- * 9.
+ * - Platinum - Run the System services with a target replica set count of 9.
*
*/
@JsonProperty(value = "reliabilityLevel")
@@ -133,24 +122,21 @@ public final class ClusterPropertiesUpdateParameters {
private ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy;
/*
- * The upgrade mode of the cluster when new Service Fabric runtime version
- * is available.
+ * The upgrade mode of the cluster when new Service Fabric runtime version is available.
*/
@JsonProperty(value = "upgradeMode")
private UpgradeMode upgradeMode;
/*
- * This property controls the logical grouping of VMs in upgrade domains
- * (UDs). This property can't be modified if a node type with multiple
- * Availability Zones is already present in the cluster.
+ * This property controls the logical grouping of VMs in upgrade domains (UDs). This property can't be modified if
+ * a node type with multiple Availability Zones is already present in the cluster.
*/
@JsonProperty(value = "sfZonalUpgradeMode")
private SfZonalUpgradeMode sfZonalUpgradeMode;
/*
- * This property defines the upgrade mode for the virtual machine scale
- * set, it is mandatory if a node type with multiple Availability Zones is
- * added.
+ * This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with
+ * multiple Availability Zones is added.
*/
@JsonProperty(value = "vmssZonalUpgradeMode")
private VmssZonalUpgradeMode vmssZonalUpgradeMode;
@@ -162,23 +148,20 @@ public final class ClusterPropertiesUpdateParameters {
private Boolean infrastructureServiceManager;
/*
- * Indicates when new cluster runtime version upgrades will be applied
- * after they are released. By default is Wave0. Only applies when
- * **upgradeMode** is set to 'Automatic'.
+ * Indicates when new cluster runtime version upgrades will be applied after they are released. By default is
+ * Wave0. Only applies when **upgradeMode** is set to 'Automatic'.
*/
@JsonProperty(value = "upgradeWave")
private ClusterUpgradeCadence upgradeWave;
/*
- * The start timestamp to pause runtime version upgrades on the cluster
- * (UTC).
+ * The start timestamp to pause runtime version upgrades on the cluster (UTC).
*/
@JsonProperty(value = "upgradePauseStartTimestampUtc")
private OffsetDateTime upgradePauseStartTimestampUtc;
/*
- * The end timestamp of pause runtime version upgrades on the cluster
- * (UTC).
+ * The end timestamp of pause runtime version upgrades on the cluster (UTC).
*/
@JsonProperty(value = "upgradePauseEndTimestampUtc")
private OffsetDateTime upgradePauseEndTimestampUtc;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterVersionDetails.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterVersionDetails.java
index 4624f806dd6c..979a9e6181b7 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterVersionDetails.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ClusterVersionDetails.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ClusterEnvironment;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The detail of the Service Fabric runtime version result. */
@Fluent
public final class ClusterVersionDetails {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterVersionDetails.class);
-
/*
* The Service Fabric runtime version of the cluster.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/OperationResultInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/OperationResultInner.java
index 47088fc77591..e9ceef290798 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/OperationResultInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/OperationResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.AvailableOperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Available operation list result. */
@Fluent
public final class OperationResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultInner.class);
-
/*
* The name of the operation.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceInner.java
index 9b1a0478187d..f1ce1317d4da 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceInner.java
@@ -7,14 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ArmServicePackageActivationMode;
import com.azure.resourcemanager.servicefabric.models.MoveCost;
import com.azure.resourcemanager.servicefabric.models.PartitionSchemeDescription;
import com.azure.resourcemanager.servicefabric.models.ServiceCorrelationDescription;
import com.azure.resourcemanager.servicefabric.models.ServiceLoadMetricDescription;
import com.azure.resourcemanager.servicefabric.models.ServicePlacementPolicyDescription;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -23,8 +21,6 @@
/** The service resource. */
@Fluent
public final class ServiceResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceInner.class);
-
/*
* The service resource properties.
*/
@@ -32,8 +28,7 @@ public final class ServiceResourceInner extends ProxyResource {
private ServiceResourceProperties innerProperties;
/*
- * It will be deprecated in New API, resource location depends on the
- * parent resource.
+ * It will be deprecated in New API, resource location depends on the parent resource.
*/
@JsonProperty(value = "location")
private String location;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceListInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceListInner.java
index beaaa753f70b..41c87290628d 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceListInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceListInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list of service resources. */
@Fluent
public final class ServiceResourceListInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceListInner.class);
-
/*
* The value property.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceProperties.java
index 1738e6a22760..42ab14aa299e 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceProperties.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.ArmServicePackageActivationMode;
import com.azure.resourcemanager.servicefabric.models.MoveCost;
import com.azure.resourcemanager.servicefabric.models.PartitionSchemeDescription;
@@ -15,7 +14,6 @@
import com.azure.resourcemanager.servicefabric.models.ServiceResourcePropertiesBase;
import com.azure.resourcemanager.servicefabric.models.StatefulServiceProperties;
import com.azure.resourcemanager.servicefabric.models.StatelessServiceProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@@ -35,11 +33,8 @@
})
@Fluent
public class ServiceResourceProperties extends ServiceResourcePropertiesBase {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceProperties.class);
-
/*
- * The current deployment or provisioning state, which only appears in the
- * response
+ * The current deployment or provisioning state, which only appears in the response
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
@@ -63,8 +58,8 @@ public class ServiceResourceProperties extends ServiceResourcePropertiesBase {
private ArmServicePackageActivationMode servicePackageActivationMode;
/*
- * Dns name used for the service. If this is specified, then the service
- * can be accessed via its DNS name instead of service name.
+ * Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead
+ * of service name.
*/
@JsonProperty(value = "serviceDnsName")
private String serviceDnsName;
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceUpdateProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceUpdateProperties.java
index 3816cd8aface..f5e8f598408b 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceUpdateProperties.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/ServiceResourceUpdateProperties.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.servicefabric.models.MoveCost;
import com.azure.resourcemanager.servicefabric.models.ServiceCorrelationDescription;
import com.azure.resourcemanager.servicefabric.models.ServiceLoadMetricDescription;
@@ -13,7 +12,6 @@
import com.azure.resourcemanager.servicefabric.models.ServiceResourcePropertiesBase;
import com.azure.resourcemanager.servicefabric.models.StatefulServiceUpdateProperties;
import com.azure.resourcemanager.servicefabric.models.StatelessServiceUpdateProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -32,8 +30,6 @@
})
@Fluent
public class ServiceResourceUpdateProperties extends ServiceResourcePropertiesBase {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceResourceUpdateProperties.class);
-
/** {@inheritDoc} */
@Override
public ServiceResourceUpdateProperties withPlacementConstraints(String placementConstraints) {
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/UpgradableVersionPathResultInner.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/UpgradableVersionPathResultInner.java
index 6dcdfd5f1df1..40cd729bb546 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/UpgradableVersionPathResultInner.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/models/UpgradableVersionPathResultInner.java
@@ -5,8 +5,6 @@
package com.azure.resourcemanager.servicefabric.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -16,8 +14,6 @@
*/
@Fluent
public final class UpgradableVersionPathResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UpgradableVersionPathResultInner.class);
-
/*
* The supportedPath property.
*/
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationResourceImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationResourceImpl.java
index 56f200b45513..4724d7269de5 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationResourceImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationResourceImpl.java
@@ -124,6 +124,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ApplicationResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeResourceImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeResourceImpl.java
index 2365fdac4bf6..91e7c2dcae3f 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeResourceImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeResourceImpl.java
@@ -63,6 +63,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ApplicationTypeResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionResourceImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionResourceImpl.java
index c5e907afcc11..5682a6954de0 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionResourceImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionResourceImpl.java
@@ -78,6 +78,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ApplicationTypeVersionResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsClientImpl.java
index 4bd652d7fc18..34ffb3e5c332 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsClientImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicefabric.fluent.ApplicationTypeVersionsClient;
@@ -37,8 +36,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationTypeVersionsClient. */
public final class ApplicationTypeVersionsClientImpl implements ApplicationTypeVersionsClient {
- private final ClientLogger logger = new ClientLogger(ApplicationTypeVersionsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ApplicationTypeVersionsService service;
@@ -134,8 +131,10 @@ Mono> list(
}
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ * Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -145,7 +144,8 @@ Mono> list(
* @throws 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 Service Fabric application type version resource created or in the process of being created in the
- * Service Fabric application type name resource.
+ * Service Fabric application type name resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -195,8 +195,10 @@ private Mono> getWithResponseAsync
}
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ * Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -207,7 +209,8 @@ private Mono> getWithResponseAsync
* @throws 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 Service Fabric application type version resource created or in the process of being created in the
- * Service Fabric application type name resource.
+ * Service Fabric application type name resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -254,8 +257,10 @@ private Mono> getWithResponseAsync
}
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ * Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -265,25 +270,20 @@ private Mono> getWithResponseAsync
* @throws 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 Service Fabric application type version resource created or in the process of being created in the
- * Service Fabric application type name resource.
+ * Service Fabric application type name resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
String resourceGroupName, String clusterName, String applicationTypeName, String version) {
return getWithResponseAsync(resourceGroupName, clusterName, applicationTypeName, version)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ * Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -302,8 +302,10 @@ public ApplicationTypeVersionResourceInner get(
}
/**
- * Get a Service Fabric application type version resource created or in the process of being created in the Service
- * Fabric application type name resource.
+ * Gets a Service Fabric application type version resource.
+ *
+ *
Get a Service Fabric application type version resource created or in the process of being created in the
+ * Service Fabric application type name resource.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -314,7 +316,7 @@ public ApplicationTypeVersionResourceInner get(
* @throws 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 Service Fabric application type version resource created or in the process of being created in the
- * Service Fabric application type name resource.
+ * Service Fabric application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -323,7 +325,9 @@ public Response getWithResponse(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -333,7 +337,8 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return an application type version resource for the specified application type name resource along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -393,7 +398,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -404,7 +411,8 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return an application type version resource for the specified application type name resource along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -462,7 +470,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -472,9 +482,10 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return the {@link PollerFlux} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationTypeVersionResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -491,11 +502,13 @@ private Mono>> createOrUpdateWithResponseAsync(
this.client.getHttpPipeline(),
ApplicationTypeVersionResourceInner.class,
ApplicationTypeVersionResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -506,9 +519,10 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return the {@link PollerFlux} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationTypeVersionResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -532,7 +546,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -542,9 +558,10 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return the {@link SyncPoller} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -557,7 +574,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -568,9 +587,10 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return the {@link SyncPoller} for polling of an application type version resource for the specified application
+ * type name resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -585,7 +605,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -595,7 +617,8 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return an application type version resource for the specified application type name resource on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -610,7 +633,9 @@ private Mono createOrUpdateAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -621,7 +646,8 @@ private Mono createOrUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 application type version resource for the specified application type name resource.
+ * @return an application type version resource for the specified application type name resource on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -638,7 +664,9 @@ private Mono createOrUpdateAsync(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ * Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -661,7 +689,9 @@ public ApplicationTypeVersionResourceInner createOrUpdate(
}
/**
- * Create or update a Service Fabric application type version resource with the specified name.
+ * Creates or updates a Service Fabric application type version resource.
+ *
+ *
Create or update a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -687,7 +717,9 @@ public ApplicationTypeVersionResourceInner createOrUpdate(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ *
Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -696,7 +728,7 @@ public ApplicationTypeVersionResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -746,7 +778,9 @@ private Mono>> deleteWithResponseAsync(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -756,7 +790,7 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -803,7 +837,9 @@ private Mono>> deleteWithResponseAsync(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -812,20 +848,23 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationTypeName, String version) {
Mono>> mono =
deleteWithResponseAsync(resourceGroupName, clusterName, applicationTypeName, version);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -835,9 +874,9 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context) {
context = this.client.mergeContext(context);
@@ -849,7 +888,9 @@ private PollerFlux, Void> beginDeleteAsync(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -858,16 +899,18 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationTypeName, version).getSyncPoller();
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -877,16 +920,18 @@ public SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationTypeName, version, context).getSyncPoller();
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -895,7 +940,7 @@ public SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -906,7 +951,9 @@ private Mono deleteAsync(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -916,7 +963,7 @@ private Mono deleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -927,7 +974,9 @@ private Mono deleteAsync(
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ * Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -943,7 +992,9 @@ public void delete(String resourceGroupName, String clusterName, String applicat
}
/**
- * Delete a Service Fabric application type version resource with the specified name.
+ * Deletes a Service Fabric application type version resource.
+ *
+ *
Delete a Service Fabric application type version resource with the specified name.
*
* @param resourceGroupName The name of the resource group.
* @param clusterName The name of the cluster resource.
@@ -961,7 +1012,10 @@ public void delete(
}
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ *
Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -971,7 +1025,7 @@ public void delete(
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type version resources created or in the process of being created in the Service Fabric
- * application type name resource.
+ * application type name resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -1017,7 +1071,10 @@ private Mono> listWithResponse
}
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ * Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -1028,7 +1085,7 @@ private Mono> listWithResponse
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type version resources created or in the process of being created in the Service Fabric
- * application type name resource.
+ * application type name resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -1071,7 +1128,10 @@ private Mono> listWithResponse
}
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ * Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -1081,24 +1141,20 @@ private Mono> listWithResponse
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type version resources created or in the process of being created in the Service Fabric
- * application type name resource.
+ * application type name resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(
String resourceGroupName, String clusterName, String applicationTypeName) {
return listWithResponseAsync(resourceGroupName, clusterName, applicationTypeName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ * Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -1117,7 +1173,10 @@ public ApplicationTypeVersionResourceListInner list(
}
/**
- * Gets all application type version resources created or in the process of being created in the Service Fabric
+ * Gets the list of application type version resources created in the specified Service Fabric application type name
+ * resource.
+ *
+ *
Gets all application type version resources created or in the process of being created in the Service Fabric
* application type name resource.
*
* @param resourceGroupName The name of the resource group.
@@ -1128,7 +1187,7 @@ public ApplicationTypeVersionResourceListInner list(
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all application type version resources created or in the process of being created in the Service Fabric
- * application type name resource.
+ * application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsImpl.java
index 505dc2a6f26c..f5a1cf965b3e 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsImpl.java
@@ -14,10 +14,9 @@
import com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionResource;
import com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersionResourceList;
import com.azure.resourcemanager.servicefabric.models.ApplicationTypeVersions;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ApplicationTypeVersionsImpl implements ApplicationTypeVersions {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationTypeVersionsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationTypeVersionsImpl.class);
private final ApplicationTypeVersionsClient innerClient;
@@ -94,7 +93,7 @@ public Response listWithResponse(
public ApplicationTypeVersionResource getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -102,14 +101,14 @@ public ApplicationTypeVersionResource getById(String id) {
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -118,7 +117,7 @@ public ApplicationTypeVersionResource getById(String id) {
}
String version = Utils.getValueFromIdByName(id, "versions");
if (version == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
@@ -131,7 +130,7 @@ public ApplicationTypeVersionResource getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -139,14 +138,14 @@ public Response getByIdWithResponse(String id, C
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -155,7 +154,7 @@ public Response getByIdWithResponse(String id, C
}
String version = Utils.getValueFromIdByName(id, "versions");
if (version == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
@@ -166,7 +165,7 @@ public Response getByIdWithResponse(String id, C
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -174,14 +173,14 @@ public void deleteById(String id) {
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -190,7 +189,7 @@ public void deleteById(String id) {
}
String version = Utils.getValueFromIdByName(id, "versions");
if (version == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
@@ -201,7 +200,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -209,14 +208,14 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String clusterName = Utils.getValueFromIdByName(id, "clusters");
if (clusterName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id)));
}
String applicationTypeName = Utils.getValueFromIdByName(id, "applicationTypes");
if (applicationTypeName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -225,7 +224,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String version = Utils.getValueFromIdByName(id, "versions");
if (version == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypesClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypesClientImpl.java
index ed4f75841b5d..145824461e65 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypesClientImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypesClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicefabric.fluent.ApplicationTypesClient;
@@ -37,8 +36,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationTypesClient. */
public final class ApplicationTypesClientImpl implements ApplicationTypesClient {
- private final ClientLogger logger = new ClientLogger(ApplicationTypesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ApplicationTypesService service;
@@ -129,7 +126,9 @@ Mono> list(
}
/**
- * Get a Service Fabric application type name resource created or in the process of being created in the Service
+ * Gets a Service Fabric application type name resource.
+ *
+ * Get a Service Fabric application type name resource created or in the process of being created in the Service
* Fabric cluster resource.
*
* @param resourceGroupName The name of the resource group.
@@ -139,7 +138,7 @@ Mono