diff --git a/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md b/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md
index 0b9b14f6a2ea..332aee33ca3e 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md
+++ b/sdk/elastic/azure-resourcemanager-elastic/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-01-14)
+- Azure Resource Manager elastic client library for Java. This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2020-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-07-08)
diff --git a/sdk/elastic/azure-resourcemanager-elastic/README.md b/sdk/elastic/azure-resourcemanager-elastic/README.md
index 25abdf94f102..195d1d931b0d 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/README.md
+++ b/sdk/elastic/azure-resourcemanager-elastic/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager elastic client library for Java.
-This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2020-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2020-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-elastic
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/elastic/azure-resourcemanager-elastic/SAMPLE.md b/sdk/elastic/azure-resourcemanager-elastic/SAMPLE.md
index e27b9e719bb0..49912b0cfa1a 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/SAMPLE.md
+++ b/sdk/elastic/azure-resourcemanager-elastic/SAMPLE.md
@@ -1,42 +1,382 @@
# Code snippets and samples
-### DeploymentInfo
+## DeploymentInfo
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/DeploymentInfoListSamples.java)
+- [List](#deploymentinfo_list)
-### MonitoredResources
+## MonitoredResources
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitoredResourcesListSamples.java)
+- [List](#monitoredresources_list)
-### Monitors
+## Monitors
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsDeleteSamples.java)
-- [GetByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsGetByResourceGroupSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListByResourceGroupSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsUpdateSamples.java)
+- [Create](#monitors_create)
+- [Delete](#monitors_delete)
+- [GetByResourceGroup](#monitors_getbyresourcegroup)
+- [List](#monitors_list)
+- [ListByResourceGroup](#monitors_listbyresourcegroup)
+- [Update](#monitors_update)
-### Operations
+## Operations
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/OperationsListSamples.java)
+- [List](#operations_list)
-### TagRules
+## TagRules
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesListSamples.java)
+- [CreateOrUpdate](#tagrules_createorupdate)
+- [Delete](#tagrules_delete)
+- [Get](#tagrules_get)
+- [List](#tagrules_list)
-### VMCollection
+## VMCollection
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMCollectionUpdateSamples.java)
+- [Update](#vmcollection_update)
-### VMHost
+## VMHost
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMHostListSamples.java)
+- [List](#vmhost_list)
-### VMIngestion
+## VMIngestion
+
+- [Details](#vmingestion_details)
+### DeploymentInfo_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DeploymentInfo List. */
+public final class DeploymentInfoListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/DeploymentInfo_List.json
+ */
+ /**
+ * Sample code: DeploymentInfo_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void deploymentInfoList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.deploymentInfoes().listWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### MonitoredResources_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MonitoredResources List. */
+public final class MonitoredResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/MonitoredResources_List.json
+ */
+ /**
+ * Sample code: MonitoredResources_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitoredResourcesList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitoredResources().list("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### Monitors_Create
+
+```java
+/** Samples for Monitors Create. */
+public final class MonitorsCreateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Create.json
+ */
+ /**
+ * Sample code: Monitors_Create.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsCreate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager
+ .monitors()
+ .define("myMonitor")
+ .withRegion((String) null)
+ .withExistingResourceGroup("myResourceGroup")
+ .create();
+ }
+}
+```
+
+### Monitors_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Monitors Delete. */
+public final class MonitorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Delete.json
+ */
+ /**
+ * Sample code: Monitors_Delete.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsDelete(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().delete("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### Monitors_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Monitors GetByResourceGroup. */
+public final class MonitorsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Get.json
+ */
+ /**
+ * Sample code: Monitors_Get.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsGet(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### Monitors_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Monitors List. */
+public final class MonitorsListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_List.json
+ */
+ /**
+ * Sample code: Monitors_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().list(Context.NONE);
+ }
+}
+```
+
+### Monitors_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Monitors ListByResourceGroup. */
+public final class MonitorsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Monitors_ListByResourceGroup.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsListByResourceGroup(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### Monitors_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.elastic.models.ElasticMonitorResource;
+
+/** Samples for Monitors Update. */
+public final class MonitorsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Update.json
+ */
+ /**
+ * Sample code: Monitors_Update.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void monitorsUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ ElasticMonitorResource resource =
+ manager.monitors().getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE).getValue();
+ resource.update().apply();
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: Operations_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### TagRules_CreateOrUpdate
+
+```java
+/** Samples for TagRules CreateOrUpdate. */
+public final class TagRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: TagRules_CreateOrUpdate.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void tagRulesCreateOrUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().define("default").withExistingMonitor("myResourceGroup", "myMonitor").create();
+ }
+}
+```
+
+### TagRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TagRules Delete. */
+public final class TagRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_Delete.json
+ */
+ /**
+ * Sample code: TagRules_Delete.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void tagRulesDelete(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().delete("myResourceGroup", "myMonitor", "default", Context.NONE);
+ }
+}
+```
+
+### TagRules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TagRules Get. */
+public final class TagRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_Get.json
+ */
+ /**
+ * Sample code: TagRules_Get.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void tagRulesGet(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().getWithResponse("myResourceGroup", "myMonitor", "default", Context.NONE);
+ }
+}
+```
+
+### TagRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TagRules List. */
+public final class TagRulesListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_List.json
+ */
+ /**
+ * Sample code: TagRules_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void tagRulesList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().list("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### VMCollection_Update
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VMCollection Update. */
+public final class VMCollectionUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMCollection_Update.json
+ */
+ /**
+ * Sample code: VMCollection_Update.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void vMCollectionUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMCollections().updateWithResponse("myResourceGroup", "myMonitor", null, Context.NONE);
+ }
+}
+```
+
+### VMHost_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VMHost List. */
+public final class VMHostListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMHost_List.json
+ */
+ /**
+ * Sample code: VMHost_List.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void vMHostList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMHosts().list("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
+
+### VMIngestion_Details
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VMIngestion Details. */
+public final class VMIngestionDetailsSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMIngestion_Details.json
+ */
+ /**
+ * Sample code: VMIngestion_Details.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void vMIngestionDetails(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMIngestions().detailsWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ }
+}
+```
-- [Details](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMIngestionDetailsSamples.java)
diff --git a/sdk/elastic/azure-resourcemanager-elastic/pom.xml b/sdk/elastic/azure-resourcemanager-elastic/pom.xml
index 866913882735..c49d00755901 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/pom.xml
+++ b/sdk/elastic/azure-resourcemanager-elastic/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for elastic Management
- This package contains Microsoft Azure SDK for elastic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2020-07-01.
+ This package contains Microsoft Azure SDK for elastic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2020-07-01-preview.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java
index 0ffa7f088f5b..29957e463b5c 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/ElasticManager.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;
@@ -43,6 +44,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to ElasticManager. */
public final class ElasticManager {
@@ -221,11 +223,24 @@ public ElasticManager authenticate(TokenCredential credential, AzureProfile prof
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/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java
index c027f56d2d6c..0b2d3a6510b0 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/DeploymentInfoesClient.java
@@ -34,7 +34,8 @@ public interface DeploymentInfoesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java
index 9a354fb207f2..980ef527e288 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/MonitorsClient.java
@@ -13,6 +13,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.elastic.fluent.models.ElasticMonitorResourceInner;
import com.azure.resourcemanager.elastic.models.ElasticMonitorResourceUpdateParameters;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in MonitorsClient. */
public interface MonitorsClient {
@@ -85,7 +86,7 @@ public interface MonitorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -100,9 +101,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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticMonitorResourceInner> beginCreate(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body);
@@ -116,9 +117,9 @@ SyncPoller, ElasticMonitorResourceInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticMonitorResourceInner> beginCreate(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body, Context context);
@@ -188,7 +189,7 @@ ElasticMonitorResourceInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return monitor resource.
+ * @return monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -202,9 +203,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 monitorName);
/**
@@ -216,9 +217,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 monitorName, Context context);
/**
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java
index 94862fd1bb96..11f845614a8a 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java
index 03c5d6840300..a23925359f98 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/TagRulesClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.elastic.fluent.models.MonitoringTagRulesInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in TagRulesClient. */
public interface TagRulesClient {
@@ -67,7 +68,7 @@ public interface TagRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -101,7 +102,7 @@ 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 a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -116,9 +117,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 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 monitorName, String ruleSetName);
/**
@@ -131,9 +132,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 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 monitorName, String ruleSetName, Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMCollectionsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMCollectionsClient.java
index 59f77620ffd5..b17e99a5bff1 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMCollectionsClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMCollectionsClient.java
@@ -34,7 +34,7 @@ public interface VMCollectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 updateWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMIngestionsClient.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMIngestionsClient.java
index 5931eb2ed95f..c61d84cd3cd6 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMIngestionsClient.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/VMIngestionsClient.java
@@ -34,7 +34,7 @@ public interface VMIngestionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response detailsWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java
index a8a92699d6f0..8100c3faf35d 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/fluent/models/MonitoredResourceInner.java
@@ -22,8 +22,8 @@ public final class MonitoredResourceInner {
private String id;
/*
- * Flag indicating the status of the resource for sending logs operation to
- * Elastic.
+ * SendingLogs Flag indicating the status of the resource for sending logs
+ * operation to Elastic.
*/
@JsonProperty(value = "sendingLogs")
private SendingLogs sendingLogs;
@@ -55,7 +55,8 @@ public MonitoredResourceInner withId(String id) {
}
/**
- * Get the sendingLogs property: Flag indicating the status of the resource for sending logs operation to Elastic.
+ * Get the sendingLogs property: SendingLogs Flag indicating the status of the resource for sending logs operation
+ * to Elastic.
*
* @return the sendingLogs value.
*/
@@ -64,7 +65,8 @@ public SendingLogs sendingLogs() {
}
/**
- * Set the sendingLogs property: Flag indicating the status of the resource for sending logs operation to Elastic.
+ * Set the sendingLogs property: SendingLogs Flag indicating the status of the resource for sending logs operation
+ * to Elastic.
*
* @param sendingLogs the sendingLogs value to set.
* @return the MonitoredResourceInner object itself.
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java
index aa856890cd9f..29aecbcd13a2 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/DeploymentInfoesClientImpl.java
@@ -78,7 +78,8 @@ Mono> list(
* @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -127,7 +128,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 the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listWithResponseAsync(
@@ -172,7 +174,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 the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listAsync(String resourceGroupName, String monitorName) {
@@ -211,7 +214,8 @@ public DeploymentInfoResponseInner list(String resourceGroupName, String monitor
* @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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java
index b4e36b14be06..28a111907f3d 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java
@@ -236,7 +236,7 @@ public VMCollectionsClient getVMCollections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-07-01";
+ this.apiVersion = "2020-07-01-preview";
this.operations = new OperationsClientImpl(this);
this.monitors = new MonitorsClientImpl(this);
this.monitoredResources = new MonitoredResourcesClientImpl(this);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitoredResourcesClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitoredResourcesClientImpl.java
index ec8de9df872b..a9bc9e8a4212 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitoredResourcesClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitoredResourcesClientImpl.java
@@ -94,7 +94,7 @@ Mono> listNext(
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -152,7 +152,7 @@ private Mono> listSinglePageAsync(
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -270,7 +270,7 @@ public PagedIterable list(String resourceGroupName, Stri
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -306,7 +306,7 @@ private Mono> listNextSinglePageAsync(Stri
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitorsClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitorsClientImpl.java
index 4fc23d81cd85..ef3f0bd5bab1 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitorsClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MonitorsClientImpl.java
@@ -179,7 +179,7 @@ Mono> listByResourceGroupNext(
*
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -225,7 +225,7 @@ private Mono> listSinglePageAsync() {
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -321,7 +321,7 @@ public PagedIterable list(Context context) {
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -374,7 +374,7 @@ private Mono> listByResourceGroupSing
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -486,7 +486,8 @@ public PagedIterable listByResourceGroup(String res
* @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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -535,7 +536,8 @@ private Mono> getByResourceGroupWithRespon
* @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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -580,7 +582,7 @@ private Mono> getByResourceGroupWithRespon
* @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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String monitorName) {
@@ -619,7 +621,7 @@ public ElasticMonitorResourceInner getByResourceGroup(String resourceGroupName,
* @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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -636,7 +638,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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -690,7 +692,7 @@ private Mono>> createWithResponseAsync(
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -740,9 +742,9 @@ private Mono>> createWithResponseAsync(
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ElasticMonitorResourceInner> beginCreateAsync(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body) {
Mono>> mono = createWithResponseAsync(resourceGroupName, monitorName, body);
@@ -753,7 +755,7 @@ private PollerFlux, ElasticMonitorResour
this.client.getHttpPipeline(),
ElasticMonitorResourceInner.class,
ElasticMonitorResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -766,9 +768,9 @@ private PollerFlux, ElasticMonitorResour
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ElasticMonitorResourceInner> beginCreateAsync(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body, Context context) {
context = this.client.mergeContext(context);
@@ -792,9 +794,9 @@ private PollerFlux, ElasticMonitorResour
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ElasticMonitorResourceInner> beginCreate(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body) {
return beginCreateAsync(resourceGroupName, monitorName, body).getSyncPoller();
@@ -810,9 +812,9 @@ public SyncPoller, ElasticMonitorResourc
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ElasticMonitorResourceInner> beginCreate(
String resourceGroupName, String monitorName, ElasticMonitorResourceInner body, Context context) {
return beginCreateAsync(resourceGroupName, monitorName, body, context).getSyncPoller();
@@ -827,7 +829,7 @@ public SyncPoller, ElasticMonitorResourc
* @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 monitor resource.
+ * @return monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -845,7 +847,7 @@ private Mono createAsync(
* @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 monitor resource.
+ * @return monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(String resourceGroupName, String monitorName) {
@@ -865,7 +867,7 @@ private Mono createAsync(String resourceGroupName,
* @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 monitor resource.
+ * @return monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -935,7 +937,7 @@ public ElasticMonitorResourceInner create(
* @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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -989,7 +991,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 monitor resource.
+ * @return monitor resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -1039,7 +1041,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 monitor resource.
+ * @return monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1063,7 +1065,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 monitor resource.
+ * @return monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String monitorName) {
@@ -1105,7 +1107,7 @@ public ElasticMonitorResourceInner update(String resourceGroupName, String monit
* @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 monitor resource.
+ * @return monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
@@ -1121,7 +1123,7 @@ public Response updateWithResponse(
* @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(String resourceGroupName, String monitorName) {
@@ -1169,7 +1171,7 @@ private Mono>> deleteWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -1214,14 +1216,15 @@ 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 monitorName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, monitorName);
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());
}
/**
@@ -1233,9 +1236,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @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 monitorName, Context context) {
context = this.client.mergeContext(context);
@@ -1253,9 +1256,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 monitorName) {
return beginDeleteAsync(resourceGroupName, monitorName).getSyncPoller();
}
@@ -1269,9 +1272,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @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 monitorName, Context context) {
return beginDeleteAsync(resourceGroupName, monitorName, context).getSyncPoller();
@@ -1285,7 +1288,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 monitorName) {
@@ -1301,7 +1304,7 @@ private Mono deleteAsync(String resourceGroupName, String monitorName) {
* @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 monitorName, Context context) {
@@ -1346,7 +1349,7 @@ public void delete(String resourceGroupName, String monitorName, Context context
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1382,7 +1385,7 @@ private Mono> listNextSinglePageAsync
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
@@ -1417,7 +1420,7 @@ private Mono> listNextSinglePageAsync
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1454,7 +1457,7 @@ private Mono> listByResourceGroupNext
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/OperationsClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/OperationsClientImpl.java
index 1322a6f79c70..ee28aac19ee0 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/OperationsClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/OperationsClientImpl.java
@@ -85,7 +85,8 @@ Mono> listNext(
*
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -118,7 +119,8 @@ private Mono> listSinglePageAsync() {
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -148,7 +150,7 @@ private Mono> listSinglePageAsync(Context co
*
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -162,7 +164,7 @@ private PagedFlux listAsync() {
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -175,7 +177,7 @@ private PagedFlux listAsync(Context context) {
*
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -189,7 +191,7 @@ public PagedIterable list() {
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -203,7 +205,8 @@ public PagedIterable list(Context context) {
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -239,7 +242,8 @@ private Mono> listNextSinglePageAsync(String
* @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 result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/TagRulesClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/TagRulesClientImpl.java
index 3a33bc62ffff..85e82a0936ca 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/TagRulesClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/TagRulesClientImpl.java
@@ -149,7 +149,7 @@ Mono> listNext(
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -207,7 +207,7 @@ private Mono> listSinglePageAsync(
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -329,7 +329,8 @@ public PagedIterable list(String resourceGroupName, 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 capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -388,7 +389,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 capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -447,7 +449,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 capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -472,7 +474,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 capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -517,7 +519,7 @@ public MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String m
* @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 capture logs and metrics of Azure resources based on ARM tags.
+ * @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
@@ -538,7 +540,8 @@ 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 a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -592,7 +595,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 a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -642,7 +646,7 @@ 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 a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String monitorName, String ruleSetName) {
@@ -683,7 +687,7 @@ public MonitoringTagRulesInner get(String resourceGroupName, String monitorName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -700,7 +704,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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -754,7 +758,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(
@@ -804,15 +808,16 @@ 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 monitorName, String ruleSetName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, monitorName, ruleSetName);
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());
}
/**
@@ -825,9 +830,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 monitorName, String ruleSetName, Context context) {
context = this.client.mergeContext(context);
@@ -847,9 +852,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 monitorName, String ruleSetName) {
return beginDeleteAsync(resourceGroupName, monitorName, ruleSetName).getSyncPoller();
@@ -865,9 +870,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 monitorName, String ruleSetName, Context context) {
return beginDeleteAsync(resourceGroupName, monitorName, ruleSetName, context).getSyncPoller();
@@ -882,7 +887,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 monitorName, String ruleSetName) {
@@ -901,7 +906,7 @@ private Mono deleteAsync(String resourceGroupName, String monitorName, 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(String resourceGroupName, String monitorName, String ruleSetName, Context context) {
@@ -948,7 +953,7 @@ public void delete(String resourceGroupName, String monitorName, String ruleSetN
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -984,7 +989,7 @@ private Mono> listNextSinglePageAsync(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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMCollectionsClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMCollectionsClientImpl.java
index c54711e3412e..4f1ef5085b4e 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMCollectionsClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMCollectionsClientImpl.java
@@ -81,7 +81,7 @@ Mono> 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> updateWithResponseAsync(
@@ -135,7 +135,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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -185,7 +185,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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String monitorName, VMCollectionUpdate body) {
@@ -201,7 +201,7 @@ private Mono updateAsync(String resourceGroupName, String monitorName, VMC
* @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 updateAsync(String resourceGroupName, String monitorName) {
@@ -235,7 +235,7 @@ public void update(String resourceGroupName, String monitorName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMHostsClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMHostsClientImpl.java
index 62c85d350c9d..359a33f0e020 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMHostsClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMHostsClientImpl.java
@@ -93,7 +93,7 @@ Mono> listNext(
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String resourceGroupName, String monitorName) {
@@ -150,7 +150,7 @@ private Mono> listSinglePageAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -268,7 +268,7 @@ public PagedIterable list(String resourceGroupName, String mon
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -304,7 +304,7 @@ private Mono> listNextSinglePageAsync(String nex
* @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 response of a list operation.
+ * @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMIngestionsClientImpl.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMIngestionsClientImpl.java
index a70c0a73409b..4d7f3107243c 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMIngestionsClientImpl.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/VMIngestionsClientImpl.java
@@ -78,7 +78,8 @@ Mono> details(
* @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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> detailsWithResponseAsync(
@@ -127,7 +128,8 @@ private Mono> detailsWithResponseAsync
* @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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> detailsWithResponseAsync(
@@ -172,7 +174,7 @@ private Mono> detailsWithResponseAsync
* @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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono detailsAsync(String resourceGroupName, String monitorName) {
@@ -211,7 +213,7 @@ public VMIngestionDetailsResponseInner details(String resourceGroupName, String
* @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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response detailsWithResponse(
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/DeploymentInfoes.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/DeploymentInfoes.java
index 4b0a2b7ce34d..e884a6546eae 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/DeploymentInfoes.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/DeploymentInfoes.java
@@ -30,7 +30,8 @@ public interface DeploymentInfoes {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 properties of deployment in Elastic cloud corresponding to the Elastic monitor resource.
+ * @return the properties of deployment in Elastic cloud corresponding to the Elastic monitor resource along with
+ * {@link Response}.
*/
Response listWithResponse(String resourceGroupName, String monitorName, Context context);
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/ElasticMonitorResourceUpdateParameters.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/ElasticMonitorResourceUpdateParameters.java
index dcc4516af3d6..f949e7d9ca10 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/ElasticMonitorResourceUpdateParameters.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/ElasticMonitorResourceUpdateParameters.java
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -19,6 +20,7 @@ public final class ElasticMonitorResourceUpdateParameters {
* elastic monitor resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitorProperties.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitorProperties.java
index a118319a59fb..4a1d3174a60f 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitorProperties.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitorProperties.java
@@ -15,7 +15,7 @@ public final class MonitorProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MonitorProperties.class);
/*
- * Provisioning state of the monitor resource.
+ * ProvisioningState Provisioning state of the monitor resource.
*/
@JsonProperty(value = "provisioningState")
private ProvisioningState provisioningState;
@@ -51,7 +51,7 @@ public final class MonitorProperties {
private Integer liftrResourcePreference;
/**
- * Get the provisioningState property: Provisioning state of the monitor resource.
+ * Get the provisioningState property: ProvisioningState Provisioning state of the monitor resource.
*
* @return the provisioningState value.
*/
@@ -60,7 +60,7 @@ public ProvisioningState provisioningState() {
}
/**
- * Set the provisioningState property: Provisioning state of the monitor resource.
+ * Set the provisioningState property: ProvisioningState Provisioning state of the monitor resource.
*
* @param provisioningState the provisioningState value to set.
* @return the MonitorProperties object itself.
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoredResource.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoredResource.java
index 3dd54f24d6a2..3502b2ce132c 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoredResource.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoredResource.java
@@ -16,7 +16,8 @@ public interface MonitoredResource {
String id();
/**
- * Gets the sendingLogs property: Flag indicating the status of the resource for sending logs operation to Elastic.
+ * Gets the sendingLogs property: SendingLogs Flag indicating the status of the resource for sending logs operation
+ * to Elastic.
*
* @return the sendingLogs value.
*/
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoringTagRulesProperties.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoringTagRulesProperties.java
index 577cb15d8303..32b2a3615e64 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoringTagRulesProperties.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/MonitoringTagRulesProperties.java
@@ -15,7 +15,7 @@ public final class MonitoringTagRulesProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MonitoringTagRulesProperties.class);
/*
- * Provisioning state of the monitoring tag rules.
+ * ProvisioningState Provisioning state of the monitoring tag rules.
*/
@JsonProperty(value = "provisioningState")
private ProvisioningState provisioningState;
@@ -27,7 +27,7 @@ public final class MonitoringTagRulesProperties {
private LogRules logRules;
/**
- * Get the provisioningState property: Provisioning state of the monitoring tag rules.
+ * Get the provisioningState property: ProvisioningState Provisioning state of the monitoring tag rules.
*
* @return the provisioningState value.
*/
@@ -36,7 +36,7 @@ public ProvisioningState provisioningState() {
}
/**
- * Set the provisioningState property: Provisioning state of the monitoring tag rules.
+ * Set the provisioningState property: ProvisioningState Provisioning state of the monitoring tag rules.
*
* @param provisioningState the provisioningState value to set.
* @return the MonitoringTagRulesProperties object itself.
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Monitors.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Monitors.java
index 2508c55c001b..fe01595238a7 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Monitors.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Monitors.java
@@ -74,7 +74,7 @@ public interface Monitors {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response}.
*/
Response getByResourceGroupWithResponse(
String resourceGroupName, String monitorName, Context context);
@@ -109,7 +109,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response}.
*/
ElasticMonitorResource getById(String id);
@@ -121,7 +121,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the properties of a specific monitor resource.
+ * @return the properties of a specific monitor resource along with {@link Response}.
*/
Response getByIdWithResponse(String id, Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Operations.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Operations.java
index 7b8e36ebb68e..f33d39163fad 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Operations.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/Operations.java
@@ -14,7 +14,7 @@ public interface Operations {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
PagedIterable list();
@@ -25,7 +25,7 @@ public interface Operations {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of GET request to list the Microsoft.
+ * @return result of GET request to list the Microsoft.Elastic operations.
*/
PagedIterable list(Context context);
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/TagRules.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/TagRules.java
index 716e04925718..2b23b3c43c5d 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/TagRules.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/TagRules.java
@@ -58,7 +58,7 @@ public interface TagRules {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response}.
*/
Response getWithResponse(
String resourceGroupName, String monitorName, String ruleSetName, Context context);
@@ -95,7 +95,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response}.
*/
MonitoringTagRules getById(String id);
@@ -107,7 +107,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a tag rule set for a given monitor resource.
+ * @return a tag rule set for a given monitor resource along with {@link Response}.
*/
Response getByIdWithResponse(String id, Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollectionUpdate.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollectionUpdate.java
index d3e45dcc4e4c..da5bdbbf6744 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollectionUpdate.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollectionUpdate.java
@@ -21,7 +21,7 @@ public final class VMCollectionUpdate {
private String vmResourceId;
/*
- * Operation to be performed for given VM.
+ * OperationName Operation to be performed for given VM.
*/
@JsonProperty(value = "operationName")
private OperationName operationName;
@@ -47,7 +47,7 @@ public VMCollectionUpdate withVmResourceId(String vmResourceId) {
}
/**
- * Get the operationName property: Operation to be performed for given VM.
+ * Get the operationName property: OperationName Operation to be performed for given VM.
*
* @return the operationName value.
*/
@@ -56,7 +56,7 @@ public OperationName operationName() {
}
/**
- * Set the operationName property: Operation to be performed for given VM.
+ * Set the operationName property: OperationName Operation to be performed for given VM.
*
* @param operationName the operationName value to set.
* @return the VMCollectionUpdate object itself.
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollections.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollections.java
index 274268918f92..4f51bd6c860b 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollections.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMCollections.java
@@ -30,7 +30,7 @@ public interface VMCollections {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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}.
*/
Response updateWithResponse(
String resourceGroupName, String monitorName, VMCollectionUpdate body, Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMIngestions.java b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMIngestions.java
index c88f2a92777d..a45bcddcc2da 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMIngestions.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/VMIngestions.java
@@ -30,7 +30,7 @@ public interface VMIngestions {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 vm ingestion details to install an agent.
+ * @return the vm ingestion details to install an agent along with {@link Response}.
*/
Response detailsWithResponse(
String resourceGroupName, String monitorName, Context context);
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesCreateOrUpdateSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesCreateOrUpdateSamples.java
deleted file mode 100644
index 4204b18575b4..000000000000
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesCreateOrUpdateSamples.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.elastic;
-
-/** Samples for TagRules CreateOrUpdate. */
-public final class TagRulesCreateOrUpdateSamples {
- /**
- * Sample code: TagRules_CreateOrUpdate.
- *
- * @param elasticManager Entry point to ElasticManager.
- */
- public static void tagRulesCreateOrUpdate(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.tagRules().define("default").withExistingMonitor("myResourceGroup", "myMonitor").create();
- }
-}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/DeploymentInfoListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/DeploymentInfoListSamples.java
similarity index 50%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/DeploymentInfoListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/DeploymentInfoListSamples.java
index 413233c92d0f..1a5851929c28 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/DeploymentInfoListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/DeploymentInfoListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for DeploymentInfo List. */
public final class DeploymentInfoListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/DeploymentInfo_List.json
+ */
/**
* Sample code: DeploymentInfo_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void deploymentInfoList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.deploymentInfoes().listWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ public static void deploymentInfoList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.deploymentInfoes().listWithResponse("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitoredResourcesListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitoredResourcesListSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitoredResourcesListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitoredResourcesListSamples.java
index c1b718c8d8f8..a171b82416d4 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitoredResourcesListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitoredResourcesListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for MonitoredResources List. */
public final class MonitoredResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/MonitoredResources_List.json
+ */
/**
* Sample code: MonitoredResources_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitoredResourcesList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.monitoredResources().list("myResourceGroup", "myMonitor", Context.NONE);
+ public static void monitoredResourcesList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitoredResources().list("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsCreateSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsCreateSamples.java
similarity index 63%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsCreateSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsCreateSamples.java
index d45afca9f408..3c85e96e3dd5 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsCreateSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsCreateSamples.java
@@ -2,17 +2,20 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
/** Samples for Monitors Create. */
public final class MonitorsCreateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Create.json
+ */
/**
* Sample code: Monitors_Create.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsCreate(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager
+ public static void monitorsCreate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager
.monitors()
.define("myMonitor")
.withRegion((String) null)
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsDeleteSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsDeleteSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsDeleteSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsDeleteSamples.java
index 2544933825c6..8599968bfb30 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsDeleteSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsDeleteSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for Monitors Delete. */
public final class MonitorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Delete.json
+ */
/**
* Sample code: Monitors_Delete.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsDelete(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.monitors().delete("myResourceGroup", "myMonitor", Context.NONE);
+ public static void monitorsDelete(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().delete("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsGetByResourceGroupSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsGetByResourceGroupSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsGetByResourceGroupSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsGetByResourceGroupSamples.java
index 3a3214c3c438..ce36b3133ee7 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsGetByResourceGroupSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsGetByResourceGroupSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for Monitors GetByResourceGroup. */
public final class MonitorsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Get.json
+ */
/**
* Sample code: Monitors_Get.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsGet(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.monitors().getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ public static void monitorsGet(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListByResourceGroupSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListByResourceGroupSamples.java
similarity index 52%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListByResourceGroupSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListByResourceGroupSamples.java
index 8845f61f336a..b86fab2047eb 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListByResourceGroupSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListByResourceGroupSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for Monitors ListByResourceGroup. */
public final class MonitorsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_ListByResourceGroup.json
+ */
/**
* Sample code: Monitors_ListByResourceGroup.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsListByResourceGroup(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.monitors().listByResourceGroup("myResourceGroup", Context.NONE);
+ public static void monitorsListByResourceGroup(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().listByResourceGroup("myResourceGroup", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListSamples.java
similarity index 54%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListSamples.java
index 571a97283b2c..fe972d5648a5 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for Monitors List. */
public final class MonitorsListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_List.json
+ */
/**
* Sample code: Monitors_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.monitors().list(Context.NONE);
+ public static void monitorsList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.monitors().list(Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsUpdateSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsUpdateSamples.java
similarity index 57%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsUpdateSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsUpdateSamples.java
index 9d78af8765c2..f03bf0c52994 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/MonitorsUpdateSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/MonitorsUpdateSamples.java
@@ -2,24 +2,24 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.elastic.models.ElasticMonitorResource;
/** Samples for Monitors Update. */
public final class MonitorsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Monitors_Update.json
+ */
/**
* Sample code: Monitors_Update.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void monitorsUpdate(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
+ public static void monitorsUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
ElasticMonitorResource resource =
- elasticManager
- .monitors()
- .getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE)
- .getValue();
+ manager.monitors().getByResourceGroupWithResponse("myResourceGroup", "myMonitor", Context.NONE).getValue();
resource.update().apply();
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/OperationsListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/OperationsListSamples.java
similarity index 54%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/OperationsListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/OperationsListSamples.java
index d0fd1052a59a..a31ffb1fb368 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/OperationsListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/OperationsListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/Operations_List.json
+ */
/**
* Sample code: Operations_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void operationsList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.operations().list(Context.NONE);
+ public static void operationsList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.operations().list(Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesCreateOrUpdateSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesCreateOrUpdateSamples.java
new file mode 100644
index 000000000000..12d6066a21ae
--- /dev/null
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesCreateOrUpdateSamples.java
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.elastic.generated;
+
+/** Samples for TagRules CreateOrUpdate. */
+public final class TagRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: TagRules_CreateOrUpdate.
+ *
+ * @param manager Entry point to ElasticManager.
+ */
+ public static void tagRulesCreateOrUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().define("default").withExistingMonitor("myResourceGroup", "myMonitor").create();
+ }
+}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesDeleteSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesDeleteSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesDeleteSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesDeleteSamples.java
index d05aaaa1657f..1d8fa1e073d0 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesDeleteSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesDeleteSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for TagRules Delete. */
public final class TagRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_Delete.json
+ */
/**
* Sample code: TagRules_Delete.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void tagRulesDelete(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.tagRules().delete("myResourceGroup", "myMonitor", "default", Context.NONE);
+ public static void tagRulesDelete(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().delete("myResourceGroup", "myMonitor", "default", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesGetSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesGetSamples.java
similarity index 50%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesGetSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesGetSamples.java
index a79523c2ab9d..3c19021127d2 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesGetSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesGetSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for TagRules Get. */
public final class TagRulesGetSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_Get.json
+ */
/**
* Sample code: TagRules_Get.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void tagRulesGet(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.tagRules().getWithResponse("myResourceGroup", "myMonitor", "default", Context.NONE);
+ public static void tagRulesGet(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().getWithResponse("myResourceGroup", "myMonitor", "default", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesListSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesListSamples.java
index bc4c9c6a195d..5f7bee4201e0 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/TagRulesListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/TagRulesListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for TagRules List. */
public final class TagRulesListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/TagRules_List.json
+ */
/**
* Sample code: TagRules_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void tagRulesList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.tagRules().list("myResourceGroup", "myMonitor", Context.NONE);
+ public static void tagRulesList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.tagRules().list("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMCollectionUpdateSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMCollectionUpdateSamples.java
similarity index 50%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMCollectionUpdateSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMCollectionUpdateSamples.java
index bb9bc7620c6e..25b5e6198bf7 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMCollectionUpdateSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMCollectionUpdateSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for VMCollection Update. */
public final class VMCollectionUpdateSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMCollection_Update.json
+ */
/**
* Sample code: VMCollection_Update.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void vMCollectionUpdate(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.vMCollections().updateWithResponse("myResourceGroup", "myMonitor", null, Context.NONE);
+ public static void vMCollectionUpdate(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMCollections().updateWithResponse("myResourceGroup", "myMonitor", null, Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMHostListSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMHostListSamples.java
similarity index 51%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMHostListSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMHostListSamples.java
index be10730f08f0..106a5e2c98af 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMHostListSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMHostListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for VMHost List. */
public final class VMHostListSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMHost_List.json
+ */
/**
* Sample code: VMHost_List.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void vMHostList(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.vMHosts().list("myResourceGroup", "myMonitor", Context.NONE);
+ public static void vMHostList(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMHosts().list("myResourceGroup", "myMonitor", Context.NONE);
}
}
diff --git a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMIngestionDetailsSamples.java b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMIngestionDetailsSamples.java
similarity index 50%
rename from sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMIngestionDetailsSamples.java
rename to sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMIngestionDetailsSamples.java
index 5fd605af6fc7..6bf62679ca43 100644
--- a/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/VMIngestionDetailsSamples.java
+++ b/sdk/elastic/azure-resourcemanager-elastic/src/samples/java/com/azure/resourcemanager/elastic/generated/VMIngestionDetailsSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.elastic;
+package com.azure.resourcemanager.elastic.generated;
import com.azure.core.util.Context;
/** Samples for VMIngestion Details. */
public final class VMIngestionDetailsSamples {
+ /*
+ * x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/preview/2020-07-01-preview/examples/VMIngestion_Details.json
+ */
/**
* Sample code: VMIngestion_Details.
*
- * @param elasticManager Entry point to ElasticManager.
+ * @param manager Entry point to ElasticManager.
*/
- public static void vMIngestionDetails(com.azure.resourcemanager.elastic.ElasticManager elasticManager) {
- elasticManager.vMIngestions().detailsWithResponse("myResourceGroup", "myMonitor", Context.NONE);
+ public static void vMIngestionDetails(com.azure.resourcemanager.elastic.ElasticManager manager) {
+ manager.vMIngestions().detailsWithResponse("myResourceGroup", "myMonitor", Context.NONE);
}
}