diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/CHANGELOG.md b/sdk/servicefabric/azure-resourcemanager-servicefabric/CHANGELOG.md
index b539b5f41cda..77e4d7422858 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/CHANGELOG.md
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-01-29)
+
+- Azure Resource Manager ServiceFabric client library for Java. This package contains Microsoft Azure SDK for ServiceFabric Management SDK. Service Fabric Management Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/README.md b/sdk/servicefabric/azure-resourcemanager-servicefabric/README.md
index 17f98ec8b292..0016b9e3fd16 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/README.md
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-servicefabric
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/SAMPLE.md b/sdk/servicefabric/azure-resourcemanager-servicefabric/SAMPLE.md
index 7f5ed87fecf1..31c97baf160e 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/SAMPLE.md
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/SAMPLE.md
@@ -40,6 +40,10 @@
- [ListUpgradableVersions](#clusters_listupgradableversions)
- [Update](#clusters_update)
+## Operations
+
+- [List](#operations_list)
+
## Services
- [CreateOrUpdate](#services_createorupdate)
@@ -56,9 +60,7 @@ import java.util.Map;
/** Samples for ApplicationTypeVersions CreateOrUpdate. */
public final class ApplicationTypeVersionsCreateOrUpdateSamples {
/*
- * operationId: ApplicationTypeVersions_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put an application type version
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeVersionPutOperation_example.json
*/
/**
* Sample code: Put an application type version.
@@ -97,9 +99,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypeVersions Delete. */
public final class ApplicationTypeVersionsDeleteSamples {
/*
- * operationId: ApplicationTypeVersions_Delete
- * api-version: 2021-06-01
- * x-ms-examples: Delete an application type version
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeVersionDeleteOperation_example.json
*/
/**
* Sample code: Delete an application type version.
@@ -121,9 +121,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypeVersions Get. */
public final class ApplicationTypeVersionsGetSamples {
/*
- * operationId: ApplicationTypeVersions_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get an application type version
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeVersionGetOperation_example.json
*/
/**
* Sample code: Get an application type version.
@@ -145,9 +143,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypeVersions List. */
public final class ApplicationTypeVersionsListSamples {
/*
- * operationId: ApplicationTypeVersions_List
- * api-version: 2021-06-01
- * x-ms-examples: Get a list of application type version resources
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeVersionListOperation_example.json
*/
/**
* Sample code: Get a list of application type version resources.
@@ -170,9 +166,7 @@ import java.util.Map;
/** Samples for ApplicationTypes CreateOrUpdate. */
public final class ApplicationTypesCreateOrUpdateSamples {
/*
- * operationId: ApplicationTypes_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put an application type
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNamePutOperation_example.json
*/
/**
* Sample code: Put an application type.
@@ -209,9 +203,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypes Delete. */
public final class ApplicationTypesDeleteSamples {
/*
- * operationId: ApplicationTypes_Delete
- * api-version: 2021-06-01
- * x-ms-examples: Delete an application type
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNameDeleteOperation_example.json
*/
/**
* Sample code: Delete an application type.
@@ -232,9 +224,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypes Get. */
public final class ApplicationTypesGetSamples {
/*
- * operationId: ApplicationTypes_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get an application type
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNameGetOperation_example.json
*/
/**
* Sample code: Get an application type.
@@ -255,9 +245,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationTypes List. */
public final class ApplicationTypesListSamples {
/*
- * operationId: ApplicationTypes_List
- * api-version: 2021-06-01
- * x-ms-examples: Get a list of application type name resources
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNameListOperation_example.json
*/
/**
* Sample code: Get a list of application type name resources.
@@ -288,9 +276,7 @@ import java.util.Map;
/** Samples for Applications CreateOrUpdate. */
public final class ApplicationsCreateOrUpdateSamples {
/*
- * operationId: Applications_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put an application with maximum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_example_max.json
*/
/**
* Sample code: Put an application with maximum parameters.
@@ -344,9 +330,7 @@ public final class ApplicationsCreateOrUpdateSamples {
}
/*
- * operationId: Applications_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put an application with minimum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_example_min.json
*/
/**
* Sample code: Put an application with minimum parameters.
@@ -368,9 +352,7 @@ public final class ApplicationsCreateOrUpdateSamples {
}
/*
- * operationId: Applications_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put an application with recreate option
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json
*/
/**
* Sample code: Put an application with recreate option.
@@ -412,9 +394,7 @@ import com.azure.core.util.Context;
/** Samples for Applications Delete. */
public final class ApplicationsDeleteSamples {
/*
- * operationId: Applications_Delete
- * api-version: 2021-06-01
- * x-ms-examples: Delete an application
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationDeleteOperation_example.json
*/
/**
* Sample code: Delete an application.
@@ -435,9 +415,7 @@ import com.azure.core.util.Context;
/** Samples for Applications Get. */
public final class ApplicationsGetSamples {
/*
- * operationId: Applications_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get an application
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationGetOperation_example.json
*/
/**
* Sample code: Get an application.
@@ -458,9 +436,7 @@ import com.azure.core.util.Context;
/** Samples for Applications List. */
public final class ApplicationsListSamples {
/*
- * operationId: Applications_List
- * api-version: 2021-06-01
- * x-ms-examples: Get a list of application resources
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationListOperation_example.json
*/
/**
* Sample code: Get a list of application resources.
@@ -485,9 +461,7 @@ import java.util.Arrays;
/** Samples for Applications Update. */
public final class ApplicationsUpdateSamples {
/*
- * operationId: Applications_Update
- * api-version: 2021-06-01
- * x-ms-examples: Patch an application
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPatchOperation_example.json
*/
/**
* Sample code: Patch an application.
@@ -522,9 +496,7 @@ import com.azure.core.util.Context;
/** Samples for ClusterVersions Get. */
public final class ClusterVersionsGetSamples {
/*
- * operationId: ClusterVersions_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get cluster version
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsGet_example.json
*/
/**
* Sample code: Get cluster version.
@@ -546,9 +518,7 @@ import com.azure.resourcemanager.servicefabric.models.ClusterVersionsEnvironment
/** Samples for ClusterVersions GetByEnvironment. */
public final class ClusterVersionsGetByEnvironmentSamples {
/*
- * operationId: ClusterVersions_GetByEnvironment
- * api-version: 2021-06-01
- * x-ms-examples: Get cluster version by environment
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsGetByEnvironment_example.json
*/
/**
* Sample code: Get cluster version by environment.
@@ -572,9 +542,7 @@ import com.azure.core.util.Context;
/** Samples for ClusterVersions List. */
public final class ClusterVersionsListSamples {
/*
- * operationId: ClusterVersions_List
- * api-version: 2021-06-01
- * x-ms-examples: List cluster versions
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsList_example.json
*/
/**
* Sample code: List cluster versions.
@@ -596,9 +564,7 @@ import com.azure.resourcemanager.servicefabric.models.ClusterVersionsEnvironment
/** Samples for ClusterVersions ListByEnvironment. */
public final class ClusterVersionsListByEnvironmentSamples {
/*
- * operationId: ClusterVersions_ListByEnvironment
- * api-version: 2021-06-01
- * x-ms-examples: List cluster versions by environment
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsListByEnvironment.json
*/
/**
* Sample code: List cluster versions by environment.
@@ -656,9 +622,7 @@ import java.util.Map;
/** Samples for Clusters CreateOrUpdate. */
public final class ClustersCreateOrUpdateSamples {
/*
- * operationId: Clusters_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put a cluster with maximum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterPutOperation_example_max.json
*/
/**
* Sample code: Put a cluster with maximum parameters.
@@ -835,9 +799,7 @@ public final class ClustersCreateOrUpdateSamples {
}
/*
- * operationId: Clusters_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put a cluster with minimum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterPutOperation_example_min.json
*/
/**
* Sample code: Put a cluster with minimum parameters.
@@ -910,9 +872,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters Delete. */
public final class ClustersDeleteSamples {
/*
- * operationId: Clusters_Delete
- * api-version: 2021-06-01
- * x-ms-examples: Delete a cluster
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterDeleteOperation_example.json
*/
/**
* Sample code: Delete a cluster.
@@ -933,9 +893,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters GetByResourceGroup. */
public final class ClustersGetByResourceGroupSamples {
/*
- * operationId: Clusters_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get a cluster
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterGetOperation_example.json
*/
/**
* Sample code: Get a cluster.
@@ -956,9 +914,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters List. */
public final class ClustersListSamples {
/*
- * operationId: Clusters_List
- * api-version: 2021-06-01
- * x-ms-examples: List clusters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterListOperation_example.json
*/
/**
* Sample code: List clusters.
@@ -979,9 +935,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters ListByResourceGroup. */
public final class ClustersListByResourceGroupSamples {
/*
- * operationId: Clusters_ListByResourceGroup
- * api-version: 2021-06-01
- * x-ms-examples: List cluster by resource group
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterListByResourceGroupOperation_example.json
*/
/**
* Sample code: List cluster by resource group.
@@ -1004,9 +958,7 @@ import com.azure.resourcemanager.servicefabric.models.UpgradableVersionsDescript
/** Samples for Clusters ListUpgradableVersions. */
public final class ClustersListUpgradableVersionsSamples {
/*
- * operationId: Clusters_ListUpgradableVersions
- * api-version: 2021-06-01
- * x-ms-examples: Get minimum and maximum code versions
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListUpgradableVersionsMinMax_example.json
*/
/**
* Sample code: Get minimum and maximum code versions.
@@ -1019,9 +971,7 @@ public final class ClustersListUpgradableVersionsSamples {
}
/*
- * operationId: Clusters_ListUpgradableVersions
- * api-version: 2021-06-01
- * x-ms-examples: Get upgrade path
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListUpgradableVersionsPath_example.json
*/
/**
* Sample code: Get upgrade path.
@@ -1059,9 +1009,7 @@ import java.util.Map;
/** Samples for Clusters Update. */
public final class ClustersUpdateSamples {
/*
- * operationId: Clusters_Update
- * api-version: 2021-06-01
- * x-ms-examples: Patch a cluster
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterPatchOperation_example.json
*/
/**
* Sample code: Patch a cluster.
@@ -1118,6 +1066,27 @@ public final class ClustersUpdateSamples {
}
```
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json
+ */
+ /**
+ * Sample code: ListOperations.
+ *
+ * @param manager Entry point to ServiceFabricManager.
+ */
+ public static void listOperations(com.azure.resourcemanager.servicefabric.ServiceFabricManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
### Services_CreateOrUpdate
```java
@@ -1135,9 +1104,7 @@ import java.util.Map;
/** Samples for Services CreateOrUpdate. */
public final class ServicesCreateOrUpdateSamples {
/*
- * operationId: Services_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put a service with minimum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServicePutOperation_example_min.json
*/
/**
* Sample code: Put a service with minimum parameters.
@@ -1157,9 +1124,7 @@ public final class ServicesCreateOrUpdateSamples {
}
/*
- * operationId: Services_CreateOrUpdate
- * api-version: 2021-06-01
- * x-ms-examples: Put a service with maximum parameters
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServicePutOperation_example_max.json
*/
/**
* Sample code: Put a service with maximum parameters.
@@ -1214,9 +1179,7 @@ import com.azure.core.util.Context;
/** Samples for Services Delete. */
public final class ServicesDeleteSamples {
/*
- * operationId: Services_Delete
- * api-version: 2021-06-01
- * x-ms-examples: Delete a service
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServiceDeleteOperation_example.json
*/
/**
* Sample code: Delete a service.
@@ -1237,9 +1200,7 @@ import com.azure.core.util.Context;
/** Samples for Services Get. */
public final class ServicesGetSamples {
/*
- * operationId: Services_Get
- * api-version: 2021-06-01
- * x-ms-examples: Get a service
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServiceGetOperation_example.json
*/
/**
* Sample code: Get a service.
@@ -1260,9 +1221,7 @@ import com.azure.core.util.Context;
/** Samples for Services List. */
public final class ServicesListSamples {
/*
- * operationId: Services_List
- * api-version: 2021-06-01
- * x-ms-examples: Get a list of service resources
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServiceListOperation_example.json
*/
/**
* Sample code: Get a list of service resources.
@@ -1285,9 +1244,7 @@ import com.azure.resourcemanager.servicefabric.models.ServiceResource;
/** Samples for Services Update. */
public final class ServicesUpdateSamples {
/*
- * operationId: Services_Update
- * api-version: 2021-06-01
- * x-ms-examples: Patch a service
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ServicePatchOperation_example.json
*/
/**
* Sample code: Patch a service.
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/ServiceFabricManager.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/ServiceFabricManager.java
index 04067ded676b..34e2a6bed1ca 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/ServiceFabricManager.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/ServiceFabricManager.java
@@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -41,6 +42,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to ServiceFabricManager. Service Fabric Management Client. */
public final class ServiceFabricManager {
@@ -194,7 +196,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(" (")
@@ -217,11 +219,24 @@ public ServiceFabricManager authenticate(TokenCredential credential, AzureProfil
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
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 =
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..f29d8880880c 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
@@ -12,6 +12,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationTypeVersionResourceInner;
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationTypeVersionResourceListInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ApplicationTypeVersionsClient. */
public interface ApplicationTypeVersionsClient {
@@ -46,7 +47,7 @@ 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(
@@ -63,9 +64,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -86,9 +88,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -152,9 +155,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version);
@@ -169,9 +172,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, String version, Context context);
@@ -234,7 +237,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..dcaa745f70f0 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
@@ -12,6 +12,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationTypeResourceInner;
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationTypeResourceListInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ApplicationTypesClient. */
public interface ApplicationTypesClient {
@@ -43,7 +44,7 @@ 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(
@@ -79,7 +80,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(
@@ -98,9 +99,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName);
@@ -114,9 +115,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, Context context);
@@ -173,7 +174,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..dbb1194159ec 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
@@ -13,6 +13,7 @@
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationResourceInner;
import com.azure.resourcemanager.servicefabric.fluent.models.ApplicationResourceListInner;
import com.azure.resourcemanager.servicefabric.models.ApplicationResourceUpdate;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
public interface ApplicationsClient {
@@ -44,7 +45,7 @@ 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(
@@ -60,9 +61,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 application resource.
+ * @return the application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceInner parameters);
@@ -77,9 +78,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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -134,9 +135,9 @@ 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceUpdate parameters);
@@ -151,9 +152,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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -207,9 +208,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName);
@@ -223,9 +224,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, Context context);
@@ -280,7 +281,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..8db180f30620 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
@@ -35,7 +35,7 @@ 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(
@@ -66,7 +66,8 @@ 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(
@@ -92,7 +93,7 @@ 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 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);
@@ -119,7 +120,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..8d25ec7af465 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
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.servicefabric.fluent.models.UpgradableVersionPathResultInner;
import com.azure.resourcemanager.servicefabric.models.ClusterUpdateParameters;
import com.azure.resourcemanager.servicefabric.models.UpgradableVersionsDescription;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ClustersClient. */
public interface ClustersClient {
@@ -42,7 +43,7 @@ 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(
@@ -57,9 +58,9 @@ 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 cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters);
@@ -73,9 +74,9 @@ 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 cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
@@ -118,9 +119,9 @@ 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 cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterUpdateParameters parameters);
@@ -135,9 +136,9 @@ 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 cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterUpdateParameters parameters, Context context);
@@ -194,7 +195,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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String clusterName, Context context);
@@ -219,7 +220,8 @@ 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 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);
@@ -241,7 +243,8 @@ 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 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);
@@ -273,7 +276,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/ServicesClient.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/fluent/ServicesClient.java
index 8a6e3e36e034..fc336e373a89 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
@@ -13,6 +13,7 @@
import com.azure.resourcemanager.servicefabric.fluent.models.ServiceResourceInner;
import com.azure.resourcemanager.servicefabric.fluent.models.ServiceResourceListInner;
import com.azure.resourcemanager.servicefabric.models.ServiceResourceUpdate;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ServicesClient. */
public interface ServicesClient {
@@ -46,7 +47,7 @@ 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(
@@ -63,9 +64,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 service resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -85,9 +86,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 service resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -151,9 +152,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 service resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -173,9 +174,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 service resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServiceResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -238,9 +239,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, String serviceName);
@@ -255,9 +256,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, String serviceName, Context context);
@@ -317,7 +318,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/implementation/ApplicationTypeVersionsClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypeVersionsClientImpl.java
index 4bd652d7fc18..5f5a2303d7f7 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
@@ -145,7 +145,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(
@@ -207,7 +208,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(
@@ -265,7 +267,7 @@ 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(
@@ -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(
@@ -333,7 +335,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(
@@ -404,7 +407,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(
@@ -472,9 +476,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationTypeVersionResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -491,7 +496,7 @@ private Mono>> createOrUpdateWithResponseAsync(
this.client.getHttpPipeline(),
ApplicationTypeVersionResourceInner.class,
ApplicationTypeVersionResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -506,9 +511,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationTypeVersionResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -542,9 +548,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -568,9 +575,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 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationTypeVersionResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -595,7 +603,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(
@@ -621,7 +630,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(
@@ -696,7 +706,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(
@@ -756,7 +766,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(
@@ -812,16 +822,17 @@ 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)
+ @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());
}
/**
@@ -835,9 +846,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 Response} on successful completion of {@link Mono}.
*/
- @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);
@@ -858,9 +869,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 Response} on successful completion of {@link Mono}.
*/
- @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();
@@ -877,9 +888,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @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();
@@ -895,7 +906,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(
@@ -916,7 +927,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(
@@ -971,7 +982,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(
@@ -1028,7 +1039,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(
@@ -1081,7 +1092,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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(
@@ -1128,7 +1139,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/ApplicationTypesClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationTypesClientImpl.java
index ed4f75841b5d..e1d034c768e4 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
@@ -139,7 +139,7 @@ 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 name resource created or in the process of being created in the Service
- * Fabric cluster resource.
+ * Fabric cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -196,7 +196,7 @@ 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 name resource created or in the process of being created in the Service
- * Fabric cluster resource.
+ * Fabric cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -249,7 +249,7 @@ 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 name resource created or in the process of being created in the Service
- * Fabric cluster resource.
+ * Fabric cluster resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -295,7 +295,7 @@ public ApplicationTypeResourceInner get(String resourceGroupName, String cluster
* @throws ManagementException 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)
public Response getWithResponse(
@@ -313,7 +313,7 @@ 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 the application type name resource.
+ * @return the application type name resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -378,7 +378,7 @@ private Mono> createOrUpdateWithResponseA
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -440,7 +440,7 @@ private Mono> createOrUpdateWithResponseA
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -491,7 +491,7 @@ public ApplicationTypeResourceInner 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 application type name resource.
+ * @return the application type name resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
@@ -513,7 +513,7 @@ public Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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(
@@ -568,7 +568,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(
@@ -619,16 +619,17 @@ 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationTypeName) {
Mono>> mono =
deleteWithResponseAsync(resourceGroupName, clusterName, applicationTypeName);
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());
}
/**
@@ -641,9 +642,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationTypeName, Context context) {
context = this.client.mergeContext(context);
@@ -663,9 +664,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationTypeName).getSyncPoller();
@@ -681,9 +682,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationTypeName, Context context) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationTypeName, context).getSyncPoller();
@@ -698,7 +699,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(String resourceGroupName, String clusterName, String applicationTypeName) {
@@ -717,7 +718,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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(
@@ -768,7 +769,7 @@ public void delete(String resourceGroupName, String clusterName, String applicat
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -819,7 +820,7 @@ private Mono> listWithResponseAsync(
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -866,7 +867,7 @@ private Mono> listWithResponseAsync(
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(String resourceGroupName, String clusterName) {
@@ -909,7 +910,7 @@ public ApplicationTypeResourceListInner list(String resourceGroupName, String cl
* @throws 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)
public Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationsClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationsClientImpl.java
index 75ac636303db..9e31bcd6bb4c 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationsClientImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ApplicationsClientImpl.java
@@ -158,7 +158,7 @@ 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 resource created or in the process of being created in the Service Fabric
- * cluster resource.
+ * cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -215,7 +215,7 @@ 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 resource created or in the process of being created in the Service Fabric
- * cluster resource.
+ * cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -268,7 +268,7 @@ 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 resource created or in the process of being created in the Service Fabric
- * cluster resource.
+ * cluster resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -314,7 +314,7 @@ public ApplicationResourceInner get(String resourceGroupName, String clusterName
* @throws ManagementException 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)
public Response getWithResponse(
@@ -332,7 +332,7 @@ 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 the application resource.
+ * @return the application resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -394,7 +394,7 @@ 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 the application resource.
+ * @return the application resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -456,9 +456,9 @@ 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 the application resource.
+ * @return the application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationResourceInner> beginCreateOrUpdateAsync(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceInner parameters) {
Mono>> mono =
@@ -470,7 +470,7 @@ private PollerFlux, ApplicationResourceInne
this.client.getHttpPipeline(),
ApplicationResourceInner.class,
ApplicationResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -484,9 +484,9 @@ private PollerFlux, ApplicationResourceInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationResourceInner> beginCreateOrUpdateAsync(
String resourceGroupName,
String clusterName,
@@ -516,9 +516,9 @@ private PollerFlux, ApplicationResourceInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceInner parameters) {
return beginCreateOrUpdateAsync(resourceGroupName, clusterName, applicationName, parameters).getSyncPoller();
@@ -535,9 +535,9 @@ public SyncPoller, ApplicationResourceInner
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
@@ -558,7 +558,7 @@ public SyncPoller, ApplicationResourceInner
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -579,7 +579,7 @@ 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 the application resource.
+ * @return the application resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -644,7 +644,7 @@ public ApplicationResourceInner 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 application resource.
+ * @return the application resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -706,7 +706,7 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -768,9 +768,9 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationResourceInner> beginUpdateAsync(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceUpdate parameters) {
Mono>> mono =
@@ -782,7 +782,7 @@ private PollerFlux, ApplicationResourceInne
this.client.getHttpPipeline(),
ApplicationResourceInner.class,
ApplicationResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -796,9 +796,9 @@ private PollerFlux, ApplicationResourceInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ApplicationResourceInner> beginUpdateAsync(
String resourceGroupName,
String clusterName,
@@ -828,9 +828,9 @@ private PollerFlux, ApplicationResourceInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName, String clusterName, String applicationName, ApplicationResourceUpdate parameters) {
return beginUpdateAsync(resourceGroupName, clusterName, applicationName, parameters).getSyncPoller();
@@ -847,9 +847,9 @@ public SyncPoller, ApplicationResourceInner
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ApplicationResourceInner> beginUpdate(
String resourceGroupName,
String clusterName,
@@ -869,7 +869,7 @@ public SyncPoller, ApplicationResourceInner
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -890,7 +890,7 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 application resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -954,7 +954,7 @@ public ApplicationResourceInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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(
@@ -1009,7 +1009,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(
@@ -1060,16 +1060,17 @@ 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)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationName) {
Mono>> mono =
deleteWithResponseAsync(resourceGroupName, clusterName, applicationName);
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());
}
/**
@@ -1082,9 +1083,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String clusterName, String applicationName, Context context) {
context = this.client.mergeContext(context);
@@ -1104,9 +1105,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationName).getSyncPoller();
@@ -1122,9 +1123,9 @@ 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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String applicationName, Context context) {
return beginDeleteAsync(resourceGroupName, clusterName, applicationName, context).getSyncPoller();
@@ -1139,7 +1140,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(String resourceGroupName, String clusterName, String applicationName) {
@@ -1158,7 +1159,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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(
@@ -1208,7 +1209,7 @@ public void delete(String resourceGroupName, String clusterName, String applicat
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -1258,7 +1259,7 @@ private Mono> listWithResponseAsync(
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -1304,7 +1305,7 @@ private Mono> listWithResponseAsync(
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(String resourceGroupName, String clusterName) {
@@ -1345,7 +1346,7 @@ public ApplicationResourceListInner list(String resourceGroupName, String cluste
* @throws 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)
public Response listWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClusterVersionsClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClusterVersionsClientImpl.java
index c116f5a671e9..0c8a9a911349 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClusterVersionsClientImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClusterVersionsClientImpl.java
@@ -122,7 +122,8 @@ Mono> listByEnvironment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -170,7 +171,8 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -214,7 +216,8 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String location, String clusterVersion) {
@@ -253,7 +256,7 @@ public ClusterCodeVersionsListResultInner get(String location, String clusterVer
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response getWithResponse(
@@ -270,7 +273,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 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByEnvironmentWithResponseAsync(
@@ -323,7 +327,8 @@ private Mono> getByEnvironmentWithR
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByEnvironmentWithResponseAsync(
@@ -372,7 +377,8 @@ private Mono> getByEnvironmentWithR
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByEnvironmentAsync(
@@ -415,7 +421,8 @@ public ClusterCodeVersionsListResultInner getByEnvironment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response getByEnvironmentWithResponse(
@@ -430,7 +437,8 @@ public Response getByEnvironmentWithResponse
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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}
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(String location) {
@@ -472,7 +480,8 @@ private Mono> listWithResponseAsync
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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}
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(String location, Context context) {
@@ -510,7 +519,8 @@ private Mono> listWithResponseAsync
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(String location) {
@@ -547,7 +557,7 @@ public ClusterCodeVersionsListResultInner list(String location) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response listWithResponse(String location, Context context) {
@@ -562,7 +572,8 @@ public Response listWithResponse(String loca
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByEnvironmentWithResponseAsync(
@@ -610,7 +621,8 @@ private Mono> listByEnvironmentWith
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByEnvironmentWithResponseAsync(
@@ -654,7 +666,8 @@ private Mono> listByEnvironmentWith
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listByEnvironmentAsync(
@@ -695,7 +708,8 @@ public ClusterCodeVersionsListResultInner listByEnvironment(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response listByEnvironmentWithResponse(
diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClustersClientImpl.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClustersClientImpl.java
index 993c0e356f67..7058fc6b0d73 100644
--- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClustersClientImpl.java
+++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/implementation/ClustersClientImpl.java
@@ -180,7 +180,7 @@ Mono> listUpgradableVersions(
* @throws ManagementException 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -230,7 +230,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @throws ManagementException 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -276,7 +276,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @throws ManagementException 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) {
@@ -317,7 +317,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN
* @throws ManagementException 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)
public Response getByResourceGroupWithResponse(
@@ -334,7 +334,7 @@ public Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -390,7 +390,7 @@ 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 the cluster resource.
+ * @return the cluster resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -442,9 +442,9 @@ private Mono